1 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
3 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
4 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
7 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
8 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
9 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
10 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
11 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
14 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
15 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
16 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
17 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
19 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
21 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
22 "static") to make the device num available in the offload image.
24 2022-01-19 Martin Liska <mliska@suse.cz>
25 Thomas Schwinge <thomas@codesourcery.com>
27 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
29 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
30 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
32 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
33 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
34 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
35 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
36 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
38 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
40 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
42 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
44 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
46 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
48 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
49 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
50 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
52 2022-01-18 Martin Liska <mliska@suse.cz>
54 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
56 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
57 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
58 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
59 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
60 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
61 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
62 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
63 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
64 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
65 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
66 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
67 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
68 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
69 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
70 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
72 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
74 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
75 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
76 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
78 2022-01-17 Julian Brown <julian@codesourcery.com>
79 Thomas Schwinge <thomas@codesourcery.com>
81 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
82 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
83 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
85 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
86 Andrew Stubbs <ams@codesourcery.com>
88 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
89 the number of teams and threads if necessary.
90 (gcn_exec): Automatically set the number of gangs and workers if
93 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
95 * testsuite/libgomp.fortran/allocate-1.c: New test.
96 * testsuite/libgomp.fortran/allocate-1.f90: New test.
97 * libgomp.texi: Remove string that says that allocate clause
98 support is for C/C++ only.
100 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
102 * testsuite/libgomp.c-c++-common/on_device_arch.h
103 (any_device_arch, any_device_arch_intel_mic): New.
104 * testsuite/lib/libgomp.exp
105 (check_effective_target_offload_device_any_intel_mic): New.
106 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
107 * testsuite/libgomp.fortran/target10.f90: Likewise.
109 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
111 PR tree-optimization/102192
112 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
113 '-Wuninitialized' diagnostics.
115 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
117 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
118 current '-Wuninitialized' diagnostics.
119 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
120 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
121 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
122 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
123 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
124 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
125 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
126 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
127 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
128 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
129 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
132 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
134 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
135 for 'offload_device_intel_mic'.
137 2022-01-13 Julian Brown <julian@codesourcery.com>
138 Thomas Schwinge <thomas@codesourcery.com>
140 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
141 offloading execution XFAIL.
143 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
146 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
148 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
149 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
152 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
154 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
156 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
158 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
159 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
160 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
161 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
162 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
164 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
165 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
166 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
167 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
169 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
171 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
172 * testsuite/libgomp.fortran/target10.f90: Likewise.
174 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
176 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
177 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
178 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
180 2022-01-03 Jakub Jelinek <jakub@redhat.com>
182 * libgomp.texi: Bump @copying's copyright year.
184 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
186 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
187 * testsuite/libgomp.fortran/atomic-19.f90: New test.
189 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
191 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
192 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
193 table, not individual symbols.
195 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
197 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
198 "target offload_device_nonshared_as"
199 * testsuite/libgomp.c++/target-this-3.C: Likewise.
200 * testsuite/libgomp.c++/target-this-4.C: Likewise.
202 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
204 * target.c (gomp_map_vars_existing): Make sure attached pointer is
205 not overwritten during cross-host/device copying.
206 (gomp_update): Likewise.
207 (gomp_exit_data): Likewise.
208 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
209 * testsuite/libgomp.c++/target-12.C: Likewise.
210 * testsuite/libgomp.c++/target-15.C: Likewise.
211 * testsuite/libgomp.c++/target-16.C: Likewise.
212 * testsuite/libgomp.c++/target-17.C: Likewise.
213 * testsuite/libgomp.c++/target-21.C: Likewise.
214 * testsuite/libgomp.c++/target-23.C: Likewise.
215 * testsuite/libgomp.c/target-23.c: Likewise.
216 * testsuite/libgomp.c/target-29.c: Likewise.
217 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
219 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
222 * libgomp.h (gomp_attach_pointer): Add bool parameter.
223 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
224 (goacc_enter_data_internal): Likewise.
225 * target.c (gomp_map_vars_existing): Update assert condition to
226 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
227 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
228 parameter, add support for mapping a pointer with NULL target.
229 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
230 parameter, add support for attaching a pointer with NULL target.
231 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
232 gomp_attach_pointer, add handling for
233 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
234 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
235 * testsuite/libgomp.c++/target-23.C: New testcase.
236 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
237 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
238 * testsuite/libgomp.c++/target-this-1.C: New testcase.
239 * testsuite/libgomp.c++/target-this-2.C: New testcase.
240 * testsuite/libgomp.c++/target-this-3.C: New testcase.
241 * testsuite/libgomp.c++/target-this-4.C: New testcase.
242 * testsuite/libgomp.c++/target-this-5.C: New testcase.
244 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
246 * libgomp.texi (OpenMP 5.1): Update status.
248 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
250 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
252 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
255 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
256 * testsuite/libgomp.fortran/pr90030.f90: New test.
258 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
259 Thomas Schwinge <thomas@codesourcery.com>
261 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
264 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
265 Thomas Schwinge <thomas@codesourcery.com>
267 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
270 2021-11-29 Richard Biener <rguenther@suse.de>
272 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
275 2021-11-24 Jakub Jelinek <jakub@redhat.com>
278 * testsuite/libgomp.c/declare-variant-2.c: New test.
280 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
282 * alloc.c (gomp_aligned_alloc): Fix typo.
284 2021-11-18 Jakub Jelinek <jakub@redhat.com>
287 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
288 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
289 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
290 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
291 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
292 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
293 gomp_aligned_alloc instead of team_malloc.
295 2021-11-18 Jakub Jelinek <jakub@redhat.com>
298 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
299 memalign over posix_memalign over aligned_alloc over fallback
300 with malloc instead of aligned_alloc over _aligned_alloc over
301 posix_memalign over memalign over fallback with malloc. For
302 aligned_alloc, round up size up to multiple of al.
304 2021-11-16 Jakub Jelinek <jakub@redhat.com>
306 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
307 construct as implemented.
309 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
311 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
313 2021-11-15 Jakub Jelinek <jakub@redhat.com>
315 * task.c (gomp_create_target_task): Copy args array as well.
316 * target.c (gomp_target_fallback): Add args argument.
317 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
318 (GOMP_target): Adjust gomp_target_fallback caller.
319 (GOMP_target_ext): Likewise.
320 (gomp_target_task_fn): Likewise.
321 * config/nvptx/team.c (gomp_nvptx_main): Set
322 gomp_global_icv.thread_limit_var.
323 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
325 2021-11-15 Jakub Jelinek <jakub@redhat.com>
327 * config/nvptx/team.c (__gomp_team_num): Define as
328 __attribute__((shared)) var.
329 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
330 * config/nvptx/target.c (__gomp_team_num): Declare as
331 extern __attribute__((shared)) var.
332 (GOMP_teams4): Use __gomp_team_num as the team number instead of
333 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
334 is bigger than num_blocks, use num_teams_lower teams and arrange for
335 bumping of __gomp_team_num if !first and returning false once we run
337 * config/nvptx/teams.c (__gomp_team_num): Declare as
338 extern __attribute__((shared)) var.
339 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
341 2021-11-15 Jakub Jelinek <jakub@redhat.com>
343 * testsuite/libgomp.c/teams-5.c: New test.
345 2021-11-12 Jakub Jelinek <jakub@redhat.com>
348 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
350 * config/gcn/teams.c: ... here. New file.
352 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
354 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
355 implicit map handling to allow a "superset" existing map as valid case.
356 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
357 (get_implicit): New function to extract implicit status.
358 (gomp_map_fields_existing): Adjust arguments in calls to
359 gomp_map_vars_existing, and add uses of get_implicit.
360 (gomp_map_vars_internal): Likewise.
361 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
363 2021-11-12 Jakub Jelinek <jakub@redhat.com>
365 * libgomp_g.h (GOMP_teams4): Declare.
366 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
367 * target.c (GOMP_teams4): New function.
368 * config/nvptx/target.c (GOMP_teams): Remove.
369 (GOMP_teams4): New function.
370 * config/gcn/target.c (GOMP_teams): Remove.
371 (GOMP_teams4): New function.
372 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
373 teams instead of <= 2.
374 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
376 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
378 * testsuite/libgomp.fortran/teams-1.f90: New test.
380 2021-11-11 Jakub Jelinek <jakub@redhat.com>
382 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
383 * team.c (struct gomp_thread_start_data): Likewise.
384 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
385 (gomp_team_start): Initialize start_data->num_teams and
386 start_data->team_num. Update nthr->num_teams and nthr->team_num.
387 * teams.c (gomp_num_teams, gomp_team_num): Remove.
388 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
389 instead of gomp_num_teams and gomp_team_num.
390 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
391 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
392 * testsuite/libgomp.c/teams-4.c: New test.
394 2021-11-11 Jakub Jelinek <jakub@redhat.com>
396 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
398 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
400 * env.c (parse_gomp_openacc_dim): Restore parsing.
402 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
405 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
407 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
408 * testsuite/libgomp.c/target-3.c: Likewise.
409 * testsuite/libgomp.c/target-5.c: Likewise.
410 * testsuite/libgomp.c/target-6.c: Likewise.
411 * testsuite/libgomp.c/target-teams-1.c: Likewise.
412 * testsuite/libgomp.c/teams-1.c: Likewise.
413 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
414 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
415 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
416 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
417 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
418 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
419 * testsuite/libgomp.fortran/teams1.f90: Likewise.
421 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
423 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
424 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
426 2021-10-27 Jakub Jelinek <jakub@redhat.com>
428 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
429 aren't implemented for Fortran yet.
431 2021-10-27 Jakub Jelinek <jakub@redhat.com>
433 * testsuite/libgomp.c/loop-26.c: New test.
434 * testsuite/libgomp.c/loop-27.c: New test.
436 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
439 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
440 instead of #include <alloca.h> + alloca.
442 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
444 * libgomp.texi (Support of strictly structured blocks in Fortran):
446 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
448 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
450 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
451 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
453 2021-10-20 Jakub Jelinek <jakub@redhat.com>
456 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
457 (struct gomp_work_share): Only use aligned(64) attribute if
458 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
459 add padding before lock to ensure lock is at offset 64 bytes
461 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
462 New poor man's static assertions.
463 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
464 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
466 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
467 Richard Biener <rguenther@suse.de>
469 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
471 2021-10-18 Jakub Jelinek <jakub@redhat.com>
473 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
474 && gomp_places_list_len < count after nfirst <= nlast loop condition.
476 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
485 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
487 2021-10-15 Jakub Jelinek <jakub@redhat.com>
489 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
490 type from char [50] to const char *.
491 (places_array): Add a testcase for simplified syntax place followed
492 by length or length and stride.
494 2021-10-15 Jakub Jelinek <jakub@redhat.com>
496 * env.c (parse_one_place): Handle non-negative-number the same
497 as { non-negative-number }. Reject even !number:1 and
498 !number:1:stride or !place:1 or !place:1:stride instead of just
500 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
501 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
502 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
504 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
507 2021-10-15 Jakub Jelinek <jakub@redhat.com>
509 * env.c (parse_schedule): For strtoul or strtoull calls which don't
510 clearly reject return value 0 as invalid handle the case where end
511 pointer is the same as first argument as invalid.
512 (parse_unsigned_long_1): Likewise.
513 (parse_one_place): Likewise.
514 (parse_places_var): Likewise.
515 (parse_stacksize): Likewise.
516 (parse_spincount): Likewise.
517 (parse_affinity): Likewise.
518 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
520 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
521 For strtoul calls which don't clearly reject return value 0 as
522 invalid handle the case where end pointer is the same as first
524 (gomp_affinity_init_level_1): Likewise.
525 (gomp_affinity_init_numa_domains): Likewise.
526 * config/rtems/proc.c (parse_thread_pools): Likewise.
528 2021-10-15 Jakub Jelinek <jakub@redhat.com>
530 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
531 after creating count places clean up and return immediately.
532 * testsuite/libgomp.c/places-6.c: New test.
533 * testsuite/libgomp.c/places-7.c: New test.
534 * testsuite/libgomp.c/places-8.c: New test.
535 * testsuite/libgomp.c/places-9.c: New test.
536 * testsuite/libgomp.c/places-10.c: New test.
538 2021-10-15 Jakub Jelinek <jakub@redhat.com>
540 * env.c (parse_places_var): Handle numa_domains as level 5.
541 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
543 (gomp_affinity_init_level): Use it instead of
544 gomp_affinity_init_level_1 for level == 5.
545 * testsuite/libgomp.c/places-5.c: New test.
547 2021-10-15 Jakub Jelinek <jakub@redhat.com>
549 * env.c (parse_places_var): Handle ll_caches as level 4.
550 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
552 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
554 (gomp_affinity_init_level): Likewise.
555 * testsuite/libgomp.c/places-1.c: New test.
556 * testsuite/libgomp.c/places-2.c: New test.
557 * testsuite/libgomp.c/places-3.c: New test.
558 * testsuite/libgomp.c/places-4.c: New test.
560 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
562 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
565 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
567 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
569 2021-10-12 Julian Brown <julian@codesourcery.com>
571 * target.c (gomp_copy_host2dev): Release device lock on cbuf
574 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
576 * testsuite/libgomp.fortran/icv-3.f90: New.
577 * testsuite/libgomp.fortran/icv-4.f90: New.
579 2021-10-12 Jakub Jelinek <jakub@redhat.com>
581 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
582 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
583 OMP_TEAMS_THREAD_LIMIT): Document.
585 2021-10-12 Jakub Jelinek <jakub@redhat.com>
587 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
588 to avoid makeinfo warnings.
590 2021-10-12 Jakub Jelinek <jakub@redhat.com>
592 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
593 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
595 2021-10-12 Jakub Jelinek <jakub@redhat.com>
599 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
600 allocation sizes from 420 to 320 and from 768 to 568.
601 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
602 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
605 2021-10-12 Jakub Jelinek <jakub@redhat.com>
607 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
608 * testsuite/libgomp.c/scan-12.c: Likewise.
609 * testsuite/libgomp.c/scan-13.c: Likewise.
610 * testsuite/libgomp.c/scan-14.c: Likewise.
611 * testsuite/libgomp.c/scan-15.c: Likewise.
612 * testsuite/libgomp.c/scan-16.c: Likewise.
613 * testsuite/libgomp.c/scan-17.c: Likewise.
614 * testsuite/libgomp.c/scan-18.c: Likewise.
615 * testsuite/libgomp.c/scan-19.c: Likewise.
616 * testsuite/libgomp.c/scan-20.c: Likewise.
617 * testsuite/libgomp.c/scan-21.c: Likewise.
618 * testsuite/libgomp.c/scan-22.c: Likewise.
619 * testsuite/libgomp.c++/scan-9.C: Likewise.
620 * testsuite/libgomp.c++/scan-10.C: Likewise.
621 * testsuite/libgomp.c++/scan-11.C: Likewise.
622 * testsuite/libgomp.c++/scan-12.C: Likewise.
623 * testsuite/libgomp.c++/scan-13.C: Likewise.
624 * testsuite/libgomp.c++/scan-14.C: Likewise.
625 * testsuite/libgomp.c++/scan-15.C: Likewise.
626 * testsuite/libgomp.c++/scan-16.C: Likewise.
628 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
630 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
632 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
634 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
636 * omp.h.in: Add deprecated flag for omp_atv_sequential.
637 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
638 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
639 * testsuite/libgomp.fortran/alloc-12.f90: New test.
641 2021-10-11 Jakub Jelinek <jakub@redhat.com>
643 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
644 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
645 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
646 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
647 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
648 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
649 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
650 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
651 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
652 omp_set_teams_thread_limit{,_,_8_}.
653 * icv.c (omp_set_num_teams, omp_get_max_teams,
654 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
656 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
657 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
658 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
660 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
661 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
662 is not specified, use gomp_nteams_var.
663 * fortran.c (omp_set_num_teams, omp_get_max_teams,
664 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
666 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
667 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
668 omp_get_teams_thread_limit_): New functions.
670 2021-10-09 liuhongt <hongtao.liu@intel.com>
672 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
673 * testsuite/libgomp.c++/scan-11.C: Ditto.
674 * testsuite/libgomp.c++/scan-12.C: Ditto.
675 * testsuite/libgomp.c++/scan-13.C: Ditto.
676 * testsuite/libgomp.c++/scan-14.C: Ditto.
677 * testsuite/libgomp.c++/scan-15.C: Ditto.
678 * testsuite/libgomp.c++/scan-16.C: Ditto.
679 * testsuite/libgomp.c++/scan-9.C: Ditto.
680 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
681 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
682 * testsuite/libgomp.c/scan-11.c: Ditto.
683 * testsuite/libgomp.c/scan-12.c: Ditto.
684 * testsuite/libgomp.c/scan-13.c: Ditto.
685 * testsuite/libgomp.c/scan-14.c: Ditto.
686 * testsuite/libgomp.c/scan-15.c: Ditto.
687 * testsuite/libgomp.c/scan-16.c: Ditto.
688 * testsuite/libgomp.c/scan-17.c: Ditto.
689 * testsuite/libgomp.c/scan-18.c: Ditto.
690 * testsuite/libgomp.c/scan-19.c: Ditto.
691 * testsuite/libgomp.c/scan-20.c: Ditto.
692 * testsuite/libgomp.c/scan-21.c: Ditto.
693 * testsuite/libgomp.c/scan-22.c: Ditto.
695 2021-10-09 Jakub Jelinek <jakub@redhat.com>
697 * libgomp.texi (OpenMP 5.1): Mention implemented support for
698 structured block sequences in C/C++. Mention support for
699 unconstrained/reproducible modifiers on order clause.
700 Mention partial (C/C++ only) support of extentensions to atomics
701 construct. Mention partial (C/C++ on clause only) support of
702 align/allocator modifiers on allocate clause.
704 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
706 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
707 based on libgomp.c-c++-common/order-reproducible-1.c.
708 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
709 * testsuite/libgomp.fortran/my-usleep.c: New test.
711 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
713 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
714 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
715 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
716 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
717 based on libgomp.c-c++-common/alloc-9.c.
719 2021-10-01 Jakub Jelinek <jakub@redhat.com>
721 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
722 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
724 2021-10-01 Jakub Jelinek <jakub@redhat.com>
726 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
728 * env.c (handle_omp_display_env): Use ialias_call.
729 * icv-device.c: Move ialias right below each function.
730 (omp_get_device_num): Use ialias_call.
731 * fortran.c (omp_fulfill_event): Add ialias_redirect.
732 * icv.c (omp_get_active_level): Add ialias_redirect.
734 2021-10-01 Jakub Jelinek <jakub@redhat.com>
736 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
737 __alloc_align__ (1) attribute.
738 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
740 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
742 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
743 for -fintrinsic-modules-path= warning of the C compiler.
744 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
745 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
747 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
749 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
750 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
751 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
753 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
755 * testsuite/libgomp.fortran/alloc-10.f90: New test.
756 * testsuite/libgomp.fortran/alloc-6.f90: New test.
757 * testsuite/libgomp.fortran/alloc-7.c: New test.
758 * testsuite/libgomp.fortran/alloc-7.f90: New test.
759 * testsuite/libgomp.fortran/alloc-8.f90: New test.
760 * testsuite/libgomp.fortran/alloc-9.f90: New test.
762 2021-09-30 Jakub Jelinek <jakub@redhat.com>
764 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
765 omp_realloc): New prototypes.
766 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
768 * allocator.c: Include string.h.
769 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
770 variable and use it instead of alignment so that when retrying the old
771 alignment is used again. Don't retry if new alignment is the same
772 as old alignment, unless allocator had pool size.
773 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
774 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
775 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
776 omp_aligned_calloc and omp_realloc.
777 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
778 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
779 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
780 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
781 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
782 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
784 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
787 * configure.ac: Only check for int-type = 2*size_t support when
788 building with Fortran support.
789 * configure: Regenerate.
791 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
793 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
794 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
796 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
798 * team.c: Initialize start_data.
799 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
800 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
802 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
804 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
805 dg-message back to dg-note.
807 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
810 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
811 expected dg-note output.
813 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
816 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
817 r12-3722 by removing -Wno-missing-include-dirs.
818 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
820 2021-09-22 Jakub Jelinek <jakub@redhat.com>
822 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
823 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
825 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
828 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
830 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
832 2021-09-18 Jakub Jelinek <jakub@redhat.com>
834 * testsuite/libgomp.c++/default-1.C: New test.
835 * testsuite/libgomp.c-c++-common/default-1.c: New test.
836 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
837 to default clause in C and C++" as implemented.
839 2021-09-17 Julian Brown <julian@codesourcery.com>
841 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
843 2021-09-17 Julian Brown <julian@codesourcery.com>
845 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
847 2021-09-17 Jakub Jelinek <jakub@redhat.com>
849 * libgomp.texi (OpenMP 5.1): Spelling fix,
850 declare variante -> declare variant.
852 2021-09-17 Jakub Jelinek <jakub@redhat.com>
854 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
855 Use /* */ comments instead of //.
856 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
857 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
858 * testsuite/libgomp.c++/atomic-16.C: New test.
859 * testsuite/libgomp.c++/atomic-17.C: New test.
861 2021-09-10 Jakub Jelinek <jakub@redhat.com>
863 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
864 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
865 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
867 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
869 * libgomp.texi (OpenMP Implementation Status): Extend
871 (OpenACC Profiling Interface): Fix typo.
873 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
875 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
876 not to 4.5; link to new section.
877 (OpenMP Implementation Status): New.
879 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
881 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
883 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
885 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
887 * testsuite/libgomp.fortran/error-1.f90: Likewise.
889 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
890 Jakub Jelinek <jakub@redhat.com>
892 * testsuite/libgomp.c/address-space-1.c: New file.
894 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
896 * testsuite/lib/libgomp.exp
897 (check_effective_target_offload_target_intelmic): Remove 'proc'.
898 (check_effective_target_offload_device_intel_mic): New 'proc'.
899 * testsuite/libgomp.c-c++-common/on_device_arch.h
900 (device_arch_intel_mic, on_device_arch_intel_mic): New.
901 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
903 * testsuite/libgomp.fortran/target10.f90: Likewise.
905 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
907 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
908 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
909 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
910 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
912 2021-08-23 Jakub Jelinek <jakub@redhat.com>
914 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
915 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
916 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
918 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
920 * config/nvptx/error.c (fwrite, exit): Override, too.
921 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
922 of offloading testing.
923 * testsuite/libgomp.fortran/error-1.f90: Likewise.
925 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
927 * testsuite/libgomp.fortran/error-1.f90: New test.
929 2021-08-20 Jakub Jelinek <jakub@redhat.com>
931 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
932 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
933 * error.c (GOMP_warning, GOMP_error): New functions.
934 * testsuite/libgomp.c-c++-common/error-1.c: New test.
936 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
938 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
939 omp_target_free. omp_target_is_present, omp_target_memcpy,
940 omp_target_memcpy_rect, omp_target_associate_ptr,
941 omp_target_disassociate_ptr): Add interface.
942 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
943 omp_target_free. omp_target_is_present, omp_target_memcpy,
944 omp_target_memcpy_rect, omp_target_associate_ptr,
945 omp_target_disassociate_ptr): Add interface.
946 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
947 interface block for omp_alloc + omp_free.
948 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
949 * testsuite/libgomp.fortran/refcount-1.f90: New test.
950 * testsuite/libgomp.fortran/target-12.f90: New test.
952 2021-08-18 Jakub Jelinek <jakub@redhat.com>
954 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
956 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
958 * testsuite/libgomp.fortran/scope-1.f90: New test.
959 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
961 2021-08-17 Jakub Jelinek <jakub@redhat.com>
963 * Makefile.am (libgomp_la_SOURCES): Add scope.c
964 * Makefile.in: Regenerated.
965 * libgomp_g.h (GOMP_scope_start): Declare.
966 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
968 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
969 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
971 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
973 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
976 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
978 * testsuite/libgomp.fortran/masked-1.f90: New test.
980 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
982 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
984 2021-08-12 Jakub Jelinek <jakub@redhat.com>
986 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
988 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
990 * env.c (parse_bind_var): Accept 'primary' as alias for
992 (omp_display_env): Add TODO comment to
993 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
994 * libgomp.texi: Change 'master thread' to 'primary thread'
995 in line with OpenMP 5.1.
996 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
997 omp_proc_bind_master is an alias of it.
998 (OMP_PROC_BIND): Mention 'PRIMARY'.
999 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
1000 (omp_proc_bind_primary): Add.
1001 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
1002 * omp_lib.f90.in (omp_proc_bind_primary): Add.
1003 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
1004 * omp_lib.h.in (omp_proc_bind_primary): Add.
1005 * testsuite/libgomp.c/affinity-1.c: Check that
1006 'primary' works and is identical to 'master'.
1008 2021-08-09 Julian Brown <julian@codesourcery.com>
1009 Kwok Cheung Yeung <kcy@codesourcery.com>
1010 Thomas Schwinge <thomas@codesourcery.com>
1012 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
1014 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
1015 [acc_device_radeon]: Update.
1016 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
1017 [ACC_DEVICE_TYPE_radeon]: Likewise.
1018 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
1019 [acc_device_radeon]: Likewise.
1020 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
1021 [ACC_DEVICE_TYPE_radeon]: Likewise.
1022 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
1023 'openacc_radeon_accel_selected' and '-O0'.
1024 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
1026 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
1028 * icv-device.c (omp_get_device_num): New API function, host side.
1029 * fortran.c (omp_get_device_num_): New interface function.
1030 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
1031 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
1032 omp_get_device_num_.
1033 * libgomp.texi (omp_get_device_num): Add documentation for new API
1035 * omp.h.in (omp_get_device_num): Add declaration.
1036 * omp_lib.f90.in (omp_get_device_num): Likewise.
1037 * omp_lib.h.in (omp_get_device_num): Likewise.
1038 * target.c (gomp_load_image_to_device): If additional entry for device
1039 number exists at end of returned entries from 'load_image_func' hook,
1040 copy the assigned device number over to the device variable.
1041 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
1042 (omp_get_device_num): New API function, device side.
1043 * plugin/plugin-gcn.c ("symcat.h"): Add include.
1044 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
1045 at end of returned 'target_table' entries.
1046 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
1047 (omp_get_device_num): New API function, device side.
1048 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
1049 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
1050 at end of returned 'target_table' entries.
1051 * testsuite/lib/libgomp.exp
1052 (check_effective_target_offload_target_intelmic): New function for
1053 testing for intelmic offloading.
1054 * testsuite/libgomp.c-c++-common/target-45.c: New test.
1055 * testsuite/libgomp.fortran/target10.f90: New test.
1057 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
1058 Ulrich Drepper <drepper@redhat.com>
1060 * fortran.c (omp_display_env_, omp_display_env_8_): Only
1061 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
1063 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
1064 Julian Brown <julian@codesourcery.com>
1065 Kwok Cheung Yeung <kcy@codesourcery.com>
1067 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
1068 's%oaccdevlow%oaccloops%g'.
1069 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
1070 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
1071 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
1073 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
1075 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
1077 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
1079 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
1081 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
1083 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
1085 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
1087 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
1089 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
1091 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
1093 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
1095 2021-07-27 Ulrich Drepper <drepper@gmail.com>
1097 * env.c (wait_policy, stacksize): New static variables,
1098 move out of handle_omp_display_env.
1099 (omp_display_env): New function. The meat of the old
1100 handle_omp_display_env function.
1101 (handle_omp_display_env): Change to not take parameters
1102 and instead use the global variables. Only perform
1103 parsing, defer to omp_display_env for the implementation.
1104 (initialize_env): Remove local variables wait_policy and
1105 stacksize. Don't pass parameters to handle_omp_display_env.
1106 * fortran.c: Add ialias_redirect for omp_display_env.
1107 (omp_display_env_, omp_display_env_8_): New functions.
1108 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
1109 omp_display_env_, and omp_display_env_8_.
1110 * omp.h.in: Declare omp_display_env.
1111 * omp_lib.f90.in: Likewise.
1112 * omp_lib.h.in: Likewise.
1114 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
1115 Julian Brown <julian@codesourcery.com>
1117 * target.c (gomp_coalesce_buf_add): Update comment.
1118 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
1120 (gomp_map_vars_internal): Only 'if (!aq)', do
1121 'gomp_coalesce_buf_add'.
1122 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
1125 2021-07-27 Julian Brown <julian@codesourcery.com>
1126 Thomas Schwinge <thomas@codesourcery.com>
1128 * libgomp.h (gomp_copy_host2dev): Update prototype.
1129 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
1130 argument to gomp_copy_host2dev (false).
1131 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
1132 (copy_data): Don't free src.
1133 (queue_push_copy): Remove free_src handling.
1134 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
1135 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
1137 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
1139 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
1140 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
1141 data when true, and set up deferred freeing of temporary buffer.
1142 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
1143 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
1144 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
1145 calls to gomp_copy_host2dev with appropriate ephemeral argument.
1146 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
1149 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
1150 Tom de Vries <tom@codesourcery.com>
1152 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
1153 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
1155 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
1157 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
1158 sequencing of 'async' data copying vs. profiling events.
1159 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1162 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
1163 Julian Brown <julian@codesourcery.com>
1165 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
1166 'async'/'wait' issue.
1167 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
1168 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
1169 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
1171 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
1172 Joseph Myers <joseph@codesourcery.com>
1173 Cesar Philippidis <cesar@codesourcery.com>
1175 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
1177 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
1179 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
1181 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
1183 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
1186 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
1187 '-Wno-error=array-bounds'.
1188 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
1189 * libgomp.h [__AMDGCN__]: Likewise.
1191 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
1194 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
1195 * libgomp.h [__AMDGCN__]: Likewise.
1197 2021-07-13 Jakub Jelinek <jakub@redhat.com>
1198 Florian Weimer <fweimer@redhat.com>
1200 * config/linux/sem.h: Don't include limits.h.
1201 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
1202 * config/linux/affinity.c: Include limits.h.
1204 2021-07-01 Jakub Jelinek <jakub@redhat.com>
1207 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
1209 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
1212 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
1213 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
1214 avoid disabling other offload targets.
1215 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
1216 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1217 * testsuite/libgomp.c/target-44.c: Likewise.
1219 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
1221 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
1222 target has shared memory and disable some scalar pointer/allocatable
1223 checks if not as firstprivate does not work.
1225 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
1228 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
1229 Add "target offload_device_nonshared_as" condition for enabling test.
1231 2021-06-24 Jakub Jelinek <jakub@redhat.com>
1233 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
1234 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
1235 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
1236 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
1238 2021-06-23 Jakub Jelinek <jakub@redhat.com>
1240 PR middle-end/101167
1241 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
1243 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
1245 * hashtab.h (htab_clear): New function with initialization code
1246 factored out from...
1247 (htab_create): ...here, adjust to use htab_clear function.
1248 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
1249 special refcount values, add comments.
1250 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
1251 (REFCOUNT_LINK): Likewise.
1252 (REFCOUNT_STRUCTELEM): New special refcount range for structure
1254 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
1256 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
1257 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
1258 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
1259 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
1260 (struct splay_tree_key_s): Add structelem_refcount and
1261 structelem_refcount_ptr fields into a union with dynamic_refcount.
1263 (gomp_map_vars): Delete declaration.
1264 (gomp_map_vars_async): Likewise.
1265 (gomp_unmap_vars): Likewise.
1266 (gomp_unmap_vars_async): Likewise.
1267 (goacc_map_vars): New declaration.
1268 (goacc_unmap_vars): Likewise.
1269 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
1270 (goacc_enter_datum): Likewise.
1271 (goacc_enter_data_internal): Likewise.
1272 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
1273 and goacc_unmap_vars.
1274 (GOACC_data_start): Adjust to use goacc_map_vars.
1275 (GOACC_data_end): Adjust to use goacc_unmap_vars.
1276 * target.c (hash_entry_type): New typedef.
1277 (htab_alloc): New function hook for hashtab.h.
1278 (htab_free): Likewise.
1279 (htab_hash): Likewise.
1280 (htab_eq): Likewise.
1281 (hashtab.h): Add file include.
1282 (gomp_increment_refcount): New function.
1283 (gomp_decrement_refcount): Likewise.
1284 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
1285 gomp_increment_refcount.
1286 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
1287 to gomp_map_vars_existing.
1288 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
1289 variable to guard OpenMP specific paths, adjust calls to
1290 gomp_map_vars_existing, add structure element sibling splay_tree_key
1291 sequence creation code, adjust Fortran map case to avoid increment
1293 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
1294 local refcount_set if caller passed in NULL, adjust call to
1295 gomp_map_vars_internal.
1296 (gomp_map_vars_async): Adjust and rename into...
1297 (goacc_map_vars): ...this new function, adjust call to
1298 gomp_map_vars_internal.
1299 (gomp_remove_splay_tree_key): New function with code factored out from
1300 gomp_remove_var_internal.
1301 (gomp_remove_var_internal): Add code to handle removing multiple
1302 splay_tree_key sequence for structure elements, adjust code to use
1303 gomp_remove_splay_tree_key for splay-tree key removal.
1304 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
1305 gomp_decrement_refcount.
1306 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
1307 local refcount_set if caller passed in NULL, adjust call to
1308 gomp_unmap_vars_internal.
1309 (gomp_unmap_vars_async): Adjust and rename into...
1310 (goacc_unmap_vars): ...this new function, adjust call to
1311 gomp_unmap_vars_internal.
1312 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
1314 (GOMP_target_ext): Likewise.
1315 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
1316 (GOMP_target_data): Likewise.
1317 (GOMP_target_data_ext): Likewise.
1318 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
1319 (gomp_exit_data): Add refcount_set parameter, adjust to use
1320 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
1322 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
1323 gomp_map_vars and gomp_exit_data.
1324 (gomp_target_task_fn): Likewise.
1325 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
1326 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
1327 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
1328 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
1329 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
1330 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
1332 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
1335 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
1337 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
1338 Thomas Schwinge <thomas@codesourcery.com>
1340 * libgomp.map (GOACC_2.0.2): New symbol version.
1341 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
1342 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
1344 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
1345 Andrew Stubbs <ams@codesourcery.com>
1347 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
1349 (GOACC_enter_exit_data): ... here.
1350 (GOACC_declare): Use it.
1352 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
1354 * oacc-parallel.c (GOACC_declare): Move...
1355 * oacc-mem.c: ... here.
1356 * libgomp_g.h: Adjust.
1358 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
1359 Thomas Schwinge <thomas@codesourcery.com>
1361 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
1364 2021-06-10 Jakub Jelinek <jakub@redhat.com>
1366 PR tree-optimization/100981
1367 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
1368 dsdotr and dsdoti to 0.
1370 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
1372 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
1373 if atomic compare-and-swap is supported on 'int'.
1375 2021-06-09 Richard Biener <rguenther@suse.de>
1377 PR tree-optimization/100981
1378 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
1380 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1382 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
1384 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1386 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1387 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
1389 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1391 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
1392 '-DACC_MEM_SHARED=0'.
1393 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
1394 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
1395 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
1396 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1397 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1398 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
1399 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1400 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1401 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1402 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1403 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
1404 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
1405 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
1406 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
1407 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
1408 'acc_device_radeon' testing.
1409 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
1410 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
1411 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
1412 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
1413 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1414 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1415 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
1416 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
1417 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
1418 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
1419 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
1420 for non-'openacc_nvidia_accel_selected'.
1421 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1422 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
1423 all implement this checking".
1424 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1425 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1426 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1427 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1428 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1430 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1432 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
1433 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
1435 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1437 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
1438 for 'acc_device_radeon'.
1440 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1442 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
1443 for non-'acc_device_nvidia'.
1445 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1447 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
1448 'acc_device_radeon' testing.
1449 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1450 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1451 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1453 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1455 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
1456 require 'openacc_nvidia_accel_selected'. Fix up for
1457 'ACC_DEVICE_TYPE_radeon'.
1459 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1461 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
1462 'openacc_nvidia_accel_selected'.
1463 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
1465 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1467 * testsuite/lib/libgomp.exp
1468 (check_effective_target_openacc_radeon_accel_selected):
1471 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1473 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
1476 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1478 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
1479 <acc_device_nvidia>: Update comment.
1481 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
1483 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
1485 2021-05-27 Jakub Jelinek <jakub@redhat.com>
1487 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
1488 check_effective_target_openacc_cublas,
1489 check_effective_target_openacc_cudart): New.
1490 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
1491 target openacc_cublas.
1492 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
1493 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
1494 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
1495 target openacc_cuda.
1496 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
1497 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
1498 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
1499 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
1500 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
1501 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
1502 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
1503 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
1504 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
1505 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
1506 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
1507 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1508 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
1509 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
1510 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
1511 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
1512 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
1513 targets openacc_cublas and openacc_cudart.
1514 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
1515 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
1516 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
1517 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
1518 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
1519 Require effective target openacc_cudart.
1520 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
1521 for effective target openacc_cuda and add && defined USE_CUDA_H to
1522 preprocessor conditionals. Guard -lcuda also on openacc_cuda
1525 2021-05-26 Jakub Jelinek <jakub@redhat.com>
1528 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
1529 GOMP_target_end_data, GOMP_target_update_ext,
1530 GOMP_target_enter_exit_data): New dummy entrypoints.
1531 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
1532 GOMP_target_end_data, GOMP_target_update_ext,
1533 GOMP_target_enter_exit_data): Likewise.
1534 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
1535 OMPFROM, OMPTO): Define.
1536 (main): Remove #pragma omp target teams around all the tests.
1537 * testsuite/libgomp.c-c++-common/target-41.c: New test.
1538 * testsuite/libgomp.c-c++-common/target-42.c: New test.
1540 2021-05-25 Jakub Jelinek <jakub@redhat.com>
1543 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
1545 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
1548 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
1549 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
1550 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
1552 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
1555 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
1556 uninteresting/varying diagnostics.
1558 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1561 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
1562 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1564 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1567 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
1569 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
1570 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
1571 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1573 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1575 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1577 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1579 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1581 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1583 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1585 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1587 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1589 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1591 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1593 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1595 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1597 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1599 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1601 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1603 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1605 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1607 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1609 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1611 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1613 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
1614 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
1615 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
1616 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
1617 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
1618 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
1619 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
1620 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
1621 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1622 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1623 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
1624 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
1625 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1626 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
1627 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1629 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
1631 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
1633 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1635 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
1636 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
1638 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1639 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1640 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1641 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
1642 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
1643 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1644 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1646 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1648 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1650 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1652 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1654 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1656 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1658 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1660 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1662 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1664 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1666 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1668 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1670 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1671 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1672 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
1674 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
1676 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1677 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1678 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1680 2021-05-21 Julian Brown <julian@codesourcery.com>
1681 Chung-Lin Tang <cltang@codesourcery.com>
1682 Thomas Schwinge <thomas@codesourcery.com>
1685 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
1687 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
1689 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
1692 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1694 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
1695 for nvptx offloading.
1697 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
1699 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
1701 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
1704 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
1706 2021-05-19 Julian Brown <julian@codesourcery.com>
1708 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
1710 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
1712 * testsuite/lib/libgomp.exp
1713 (check_effective_target_offload_target_nvptx): Don't shadow global
1714 'offload_targets' variable.
1716 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
1718 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
1719 '-latomic' to nvptx offloading compilation.
1720 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1722 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
1724 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
1725 offloading compilation.
1727 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
1729 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
1730 if new tasks generated.
1731 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
1733 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
1735 * testsuite/libgomp.fortran/parallel-master.f90: New test.
1737 2021-05-13 Martin Liska <mliska@suse.cz>
1740 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
1741 * testsuite/libgomp.c/pr46032-2.c: Likewise.
1742 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
1743 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
1745 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
1747 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
1748 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
1750 2021-05-11 Jakub Jelinek <jakub@redhat.com>
1752 PR middle-end/100471
1753 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
1754 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
1756 * testsuite/libgomp.c/task-reduction-4.c: New test.
1758 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
1759 Tom de Vries <tdevries@suse.de>
1761 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
1762 complex/floating-point || + && reduction with 'omp target'.
1763 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1765 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
1767 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
1768 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
1769 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
1770 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
1772 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
1775 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
1776 declaration to scope of non-'depend'-guarded assignment to avoid races.
1778 2021-05-03 Tom de Vries <tdevries@suse.de>
1781 * testsuite/libgomp.c/target-44.c: New test.
1783 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
1785 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
1787 2021-04-29 Tom de Vries <tdevries@suse.de>
1789 * testsuite/libgomp.c/pr81778.c: New test.
1791 2021-04-29 Tom de Vries <tdevries@suse.de>
1794 * testsuite/libgomp.c/target-43.c: New file.
1796 2021-04-28 Jakub Jelinek <jakub@redhat.com>
1797 Tobias Burnus <tobias@codesourcery.com>
1799 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
1800 * target.c (gomp_load_plugin_for_device): If set and if a plugin
1801 can't be dlopened, silently assume it has no devices.
1802 * Makefile.in: Regenerate.
1803 * config.h.in: Regenerate.
1804 * configure: Regenerate.
1806 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
1808 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1809 Use [Ww]arning in dg-bogus as FE diagnostic and default
1810 diagnostic differ and the result depends on ENABLE_OFFLOAD.
1811 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1812 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1813 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1815 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
1817 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1818 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
1819 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1820 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1821 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1823 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
1824 Nathan Sidwell <nathan@codesourcery.com>
1825 Tom de Vries <vries@codesourcery.com>
1826 Julian Brown <julian@codesourcery.com>
1827 Kwok Cheung Yeung <kcy@codesourcery.com>
1829 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
1830 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
1831 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
1832 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1833 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1834 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1835 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
1837 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
1838 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1839 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1840 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1842 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
1843 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1845 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1846 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
1847 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
1848 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
1849 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
1850 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
1852 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1853 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
1854 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1855 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1856 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1857 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
1858 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1859 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1860 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1861 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1862 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1864 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
1866 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
1868 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1869 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1871 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1872 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
1873 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1874 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1875 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1876 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1877 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
1879 2021-04-22 Richard Biener <rguenther@suse.de>
1881 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
1884 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
1886 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
1887 omp_depend_kind instead of defining it as 16.
1889 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
1891 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
1892 New, based on check_effective_target_offload_target_nvptx.
1893 (check_effective_target_offload_target_nvptx): Call it.
1894 (check_effective_target_offload_target_amdgcn): New.
1895 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
1896 Require target offload_target_nvptx || offload_target_amdgcn.
1897 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
1898 * testsuite/libgomp.c/pr86416-1.c: Likewise.
1899 * testsuite/libgomp.c/pr86416-2.c: Likewise.
1901 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
1903 * testsuite/libgomp.fortran/depobj-1.f90: New test.
1905 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
1907 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1908 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
1909 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1911 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1913 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1915 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
1918 * testsuite/lib/libgomp.exp
1919 (check_effective_target_offload_device_nvptx): New.
1920 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
1921 resolved, make sure that we exit quickly, with error status,
1923 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
1924 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1926 2021-04-14 Jakub Jelinek <jakub@redhat.com>
1929 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
1930 cp = omp_alloc with cp, p arguments instead of cq, q and call
1931 c_f_pointer after last cq = omp_alloc with cq, q.
1933 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
1936 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
1937 for loop with GT/GE condition.
1938 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
1940 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
1945 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
1947 2021-04-09 Jakub Jelinek <jakub@redhat.com>
1950 * team.c (gomp_thread_start): Call pthread_setspecific for
1951 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
1952 has been initialized to avoid false positive warning.
1954 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
1957 * testsuite/lib/on_device_arch.c: Move to ...
1958 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
1959 * testsuite/libgomp.fortran/on_device_arch.c: New file;
1960 #include on_device_arch.h.
1961 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
1962 on_device_arch.h instead of using dg-additional-source.
1963 * testsuite/libgomp.c/pr99555-1.c: Likewise.
1964 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
1965 on_device_arch.c without relative paths.
1967 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
1969 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
1970 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
1971 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
1972 * config.h.in: Regenerate.
1973 * configure: Likewise.
1975 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
1978 * testsuite/lib/on_device_arch.c: New file.
1979 * testsuite/libgomp.c/pr99555-1.c: Likewise.
1980 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
1981 skip for nvptx offloading, with error status.
1982 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1984 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
1986 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
1987 OpenACC 'serial' construct diagnostic for nvptx offloading.
1989 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
1992 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
1994 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
1997 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
1999 2021-03-04 Jakub Jelinek <jakub@redhat.com>
2001 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
2002 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
2003 checking of -m32 or -mx32 options on the command line.
2004 * config.h.in: Regenerated.
2005 * configure: Regenerated.
2007 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
2009 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
2010 support from the target.
2012 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
2013 Jakub Jelinek <jakub@redhat.com>
2016 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
2017 (struct gomp_task): Replace detach and completion_sem fields with
2018 union containing completion_sem and detach_team. Add deferred_p
2020 (struct gomp_team): Remove task_detach_queue.
2021 * task.c: Include assert.h.
2022 (gomp_init_task): Initialize deferred_p and completion_sem fields.
2023 Rearrange initialization order of fields.
2024 (task_fulfilled_p): Delete.
2025 (GOMP_task): Use address of task as the event handle. Remove
2026 initialization of detach field. Initialize deferred_p field.
2027 Use automatic local for completion_sem. Initialize detach_team field
2029 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
2030 Set kind of suspended detach task to GOMP_TASK_DETACHED and
2031 decrement task_running_count. Move finish_cancelled block out of
2032 else branch. Relocate call to gomp_team_barrier_done.
2033 (GOMP_taskwait): Handle tasks with completion events that have not
2035 (GOMP_taskgroup_end): Likewise.
2036 (omp_fulfill_event): Use address of task as event handle. Post to
2037 completion_sem for undeferred tasks. Clear detach_team if task
2038 has not finished. For finished tasks, handle post-execution tasks,
2039 call gomp_team_barrier_wake if necessary, and free task.
2040 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
2041 (free_team): Remove free of task_detach_queue.
2042 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
2043 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
2044 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
2045 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
2046 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
2047 Change data-sharing of detach events on enclosing parallel to private.
2048 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
2050 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
2051 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
2052 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
2053 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
2054 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
2055 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
2056 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
2057 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
2058 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
2059 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
2060 Change data-sharing of detach events on enclosing parallel to private.
2061 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
2063 * testsuite/libgomp.fortran/task-detach-7.f90: New.
2064 * testsuite/libgomp.fortran/task-detach-8.f90: New.
2065 * testsuite/libgomp.fortran/task-detach-9.f90: New.
2066 * testsuite/libgomp.fortran/task-detach-10.f90: New.
2067 * testsuite/libgomp.fortran/task-detach-11.f90: New.
2069 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
2072 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
2074 2021-02-17 Julian Brown <julian@codesourcery.com>
2076 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
2079 2021-02-17 Julian Brown <julian@codesourcery.com>
2081 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
2082 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
2084 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
2086 * config/linux/x86/futex.h (__futex_wait):
2087 Revert output type back to long.
2088 (__futex_wake): Ditto.
2089 (futex_wait): Update for revert.
2090 (futex_wake): Ditto.
2092 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
2094 * config/linux/x86/futex.h (__futex_wait): New static inline
2095 wrapper function. Correct output type to int and
2096 timeout type to void *.
2097 (__futex_wake): New static inline wrapper function.
2098 Correct output type to int.
2099 (futex_wait): Use __futex_wait.
2100 (futex_wake): Use __futex_wake.
2102 2021-02-10 Julian Brown <julian@codesourcery.com>
2105 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
2108 2021-02-04 Julian Brown <julian@codesourcery.com>
2110 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
2112 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
2114 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
2115 EF_AMDGPU_MACH_AMDGCN_GFX908.
2116 (gcn_gfx908_s): New constant string.
2117 (isa_hsa_name): Add gfx908.
2118 (isa_code): Add gfx908.
2120 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
2122 * libgomp.texi (omp_fulfill_event): New entry.
2124 2021-01-20 Jakub Jelinek <jakub@redhat.com>
2126 * task.c (GOMP_task): Rename priority argument to priority_arg,
2127 add priority automatic variable and modify that variable. Instead of
2128 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
2129 check flags for that bit.
2131 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
2134 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
2136 2021-01-18 Andreas Schwab <schwab@suse.de>
2138 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
2140 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
2142 * config/rtems/sem.h (gomp_sem_getcount): New function.
2144 2021-01-18 Jakub Jelinek <jakub@redhat.com>
2146 * config/linux/sem.h (gomp_sem_getcount): New function.
2147 * config/posix/sem.h (gomp_sem_getcount): New function.
2148 * config/posix/sem.c (gomp_sem_getcount): New function.
2149 * config/accel/sem.h (gomp_sem_getcount): New function.
2150 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
2151 (omp_fulfill_event): Likewise.
2153 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
2155 * fortran.c (omp_fulfill_event_): New.
2156 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
2157 (struct gomp_team): Add task_detach_queue and task_detach_count
2159 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
2160 * libgomp_g.h (GOMP_task): Add extra argument.
2161 * omp.h.in (enum omp_event_handle_t): New.
2162 (omp_fulfill_event): New.
2163 * omp_lib.f90.in (omp_event_handle_kind): New.
2164 (omp_fulfill_event): New.
2165 * omp_lib.h.in (omp_event_handle_kind): New.
2166 (omp_fulfill_event): Declare.
2167 * priority_queue.c (priority_tree_find): New.
2168 (priority_list_find): New.
2169 (priority_queue_find): New.
2170 * priority_queue.h (priority_queue_predicate): New.
2171 (priority_queue_find): New.
2172 * task.c (gomp_init_task): Initialize detach field.
2173 (task_fulfilled_p): New.
2174 (GOMP_task): Add detach argument. Ignore detach argument if
2175 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
2176 field. Copy address of completion_sem into detach argument and
2177 into the start of the data record. Wait for detach event if task
2179 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
2180 Remove completed tasks and requeue dependent tasks.
2181 (omp_fulfill_event): New.
2182 * team.c (gomp_new_team): Initialize task_detach_queue and
2183 task_detach_count fields.
2184 (free_team): Free task_detach_queue field.
2185 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
2186 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
2187 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
2188 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
2189 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
2190 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
2191 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
2192 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
2193 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
2194 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
2195 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
2196 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
2198 2021-01-15 Jakub Jelinek <jakub@redhat.com>
2201 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
2202 be added through preprocessor check on
2203 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
2205 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
2208 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
2210 * configure: Regenerate.
2211 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
2214 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
2216 * configure: Re-generate.
2218 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
2220 * configure: Re-generate.
2222 2021-01-05 Julian Brown <julian@codesourcery.com>
2224 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
2225 (struct ptx_device): Add omp_stacks struct.
2226 (nvptx_open_device): Initialise cached-stacks housekeeping info.
2227 (nvptx_close_device): Free cached stacks block and mutex.
2228 (nvptx_stacks_free): New function.
2229 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
2230 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
2231 (nvptx_stacks_alloc): Rename to...
2232 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
2233 size or smaller is required.
2234 (nvptx_stacks_free): Remove.
2235 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
2236 during kernel execution.
2238 2021-01-01 Jakub Jelinek <jakub@redhat.com>
2240 * libgomp.texi: Bump @copying's copyright year.
2242 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
2244 * libgomp.texi (Top): Avoid bad "up" link.
2246 2020-12-18 Jakub Jelinek <jakub@redhat.com>
2248 * testsuite/libgomp.c/task-6.c: New test.
2250 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
2252 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
2253 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
2255 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
2257 * testsuite/libgomp.fortran/scan-1.f90: New test.
2259 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
2262 * configure: Regenerate.
2264 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
2266 * configure: Regenerate.
2268 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
2270 * testsuite/libgomp.oacc-c++/cache-1.C: New.
2271 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
2273 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
2275 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
2278 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
2280 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
2281 (reserved): Delete unused define.
2283 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
2285 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
2286 Tcl 8.5-specific behavior.
2287 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
2289 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2291 * env.c (gomp_global_icv): Remove nest_var field. Add
2292 max_active_levels_var field.
2293 (gomp_max_active_levels_var): Remove.
2294 (parse_boolean): Return true on success.
2295 (handle_omp_display_env): Express OMP_NESTED in terms of
2296 max_active_levels_var. Change format specifier for
2297 max_active_levels_var.
2298 (initialize_env): Set max_active_levels_var from
2299 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
2301 * icv.c (omp_set_nested): Express in terms of
2302 max_active_levels_var.
2303 (omp_get_nested): Likewise.
2304 (omp_set_max_active_levels): Use max_active_levels_var field instead
2305 of gomp_max_active_levels_var.
2306 (omp_get_max_active_levels): Likewise.
2307 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
2308 max_active_levels_var field.
2309 (gomp_supported_active_levels): Set to UCHAR_MAX.
2310 (gomp_max_active_levels_var): Delete.
2311 * libgomp.texi (omp_get_nested): Update documentation.
2312 (omp_set_nested): Likewise.
2313 (OMP_MAX_ACTIVE_LEVELS): Likewise.
2314 (OMP_NESTED): Likewise.
2315 (OMP_NUM_THREADS): Likewise.
2316 (OMP_PROC_BIND): Likewise.
2317 * parallel.c (gomp_resolve_num_threads): Replace reference
2318 to nest_var with max_active_levels_var. Use max_active_levels_var
2319 field instead of gomp_max_active_levels_var.
2321 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
2323 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
2324 nvptx_usleep; use also for device={arch(gcn)}.
2326 2020-11-14 Jakub Jelinek <jakub@redhat.com>
2328 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
2329 (foo): Add tests for non-VLA private and firstprivate clauses on
2331 (bar): Likewise. Remove taking of address from private/firstprivate
2333 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
2334 (foo): Add p, q, px and s arguments. Add tests for array reductions
2335 and for non-VLA private and firstprivate clauses on omp task.
2337 (main): Adjust foo caller. Don't call bar.
2339 2020-11-13 Gergö Barany <gergo@codesourcery.com>
2340 Thomas Schwinge <thomas@codesourcery.com>
2342 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2344 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
2346 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2348 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
2349 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
2351 2020-11-13 Gergö Barany <gergo@codesourcery.com>
2352 Thomas Schwinge <thomas@codesourcery.com>
2355 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
2357 2020-11-13 Jakub Jelinek <jakub@redhat.com>
2359 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
2360 for array reductions.
2361 (main): Adjust foo callers.
2363 2020-11-12 Jakub Jelinek <jakub@redhat.com>
2365 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
2366 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
2367 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
2368 * allocator.c (omp_aligned_alloc): New for now static function,
2369 add alignment argument and handle it.
2370 (omp_alloc): Reimplement using omp_aligned_alloc.
2371 (GOMP_alloc, GOMP_free): New functions.
2372 (omp_free): Add ialias.
2373 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
2374 * testsuite/libgomp.c++/allocate-1.C: New test.
2376 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
2379 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
2381 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
2383 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
2385 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
2386 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
2387 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
2388 (goacc_enter_data_internal): Likewise.
2389 * target.c (gomp_map_vars_internal):
2390 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
2391 of gomp_attach_pointer for OpenMP cases.
2392 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
2393 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
2394 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
2396 2020-11-05 Ulrich Drepper <drepper@redhat.com>
2397 Kwok Cheung Yeung <kcy@codesourcery.com>
2399 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
2400 * Makefile.in: Regenerate.
2401 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
2402 pragmas to ignore -Wdeprecated-declarations warnings.
2404 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
2405 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
2406 and omp_get_nested with __GOMP_DEPRECATED_5_0.
2407 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
2409 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
2411 * testsuite/libgomp.c/affinity-1.c: Likewise.
2412 * testsuite/libgomp.c/affinity-2.c: Likewise.
2413 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
2414 * testsuite/libgomp.c/lib-1.c: Likewise.
2415 * testsuite/libgomp.c/nested-1.c: Likewise.
2416 * testsuite/libgomp.c/nested-2.c: Likewise.
2417 * testsuite/libgomp.c/nested-3.c: Likewise.
2418 * testsuite/libgomp.c/pr32362-1.c: Likewise.
2419 * testsuite/libgomp.c/pr32362-2.c: Likewise.
2420 * testsuite/libgomp.c/pr32362-3.c: Likewise.
2421 * testsuite/libgomp.c/pr35549.c: Likewise.
2422 * testsuite/libgomp.c/pr42942.c: Likewise.
2423 * testsuite/libgomp.c/pr61200.c: Likewise.
2424 * testsuite/libgomp.c/sort-1.c: Likewise.
2425 * testsuite/libgomp.c/target-5.c: Likewise.
2426 * testsuite/libgomp.c/target-6.c: Likewise.
2427 * testsuite/libgomp.c/teams-1.c: Likewise.
2428 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
2429 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
2430 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
2431 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
2432 * testsuite/libgomp.fortran/lib1.f90: Likewise.
2433 * testsuite/libgomp.fortran/lib2.f: Likewise.
2434 * testsuite/libgomp.fortran/nested1.f90: Likewise.
2435 * testsuite/libgomp.fortran/teams1.f90: Likewise.
2437 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
2440 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
2441 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
2442 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2444 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
2448 * testsuite/lib/libgomp.exp (libgomp_init): Set
2449 'gcc_warning_prefix', 'gcc_error_prefix'.
2451 2020-10-30 Jakub Jelinek <jakub@redhat.com>
2453 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
2454 even in field_tgt_clear initializer.
2456 2020-10-28 Jakub Jelinek <jakub@redhat.com>
2458 * testsuite/libgomp.c/target-42.c: New test.
2460 2020-10-28 Jakub Jelinek <jakub@redhat.com>
2461 Tom de Vries <tdevries@suse.de>
2464 * testsuite/libgomp.c/usleep.h: New file.
2465 * testsuite/libgomp.c/target-32.c: Include usleep.h.
2466 (main): Use tgt_usleep instead of usleep.
2467 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
2468 (main): Use tgt_usleep instead of usleep.
2470 2020-10-28 Jakub Jelinek <jakub@redhat.com>
2473 * testsuite/libgomp.c/declare-variant-1.c: New test.
2475 2020-10-22 Jakub Jelinek <jakub@redhat.com>
2477 * testsuite/libgomp.c/target-41.c: New test.
2479 2020-10-22 Jakub Jelinek <jakub@redhat.com>
2481 * icv.c (omp_get_initial_device): Remove including corresponding
2483 * icv-device.c (omp_get_initial_device): New function. Return
2484 gomp_get_num_devices (). Add ialias.
2485 * target.c (resolve_device): Don't fail with
2486 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
2487 gomp_get_num_devices ().
2488 (omp_target_alloc, omp_target_free, omp_target_is_present,
2489 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
2490 omp_target_disassociate_ptr, omp_pause_resource): Use
2491 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
2492 first use in the functions, in uses dominated by the
2493 gomp_get_num_devices call use num_devices_openmp instead.
2494 * libgomp.texi (omp_get_initial_device): Document.
2495 * config/gcn/icv-device.c (omp_get_initial_device): New function.
2497 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
2498 * testsuite/libgomp.c/target-40.c: New test.
2500 2020-10-21 Jakub Jelinek <jakub@redhat.com>
2502 * env.c (parse_target_offload): Change new_offload var type to int,
2503 preinitialize to -1, remove found var and test new_offload != -1
2506 2020-10-20 Jakub Jelinek <jakub@redhat.com>
2508 * target.c (gomp_target_init): Inside of the function, use automatic
2509 variables corresponding to num_devices, num_devices_openmp and devices
2510 global variables and update the globals only at the end of the
2513 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
2515 * env.c (gomp_target_offload_var): New.
2516 (parse_target_offload): New.
2517 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
2518 (initialize_env): Parse OMP_TARGET_OFFLOAD.
2519 * libgomp.h (gomp_target_offload_t): New.
2520 (gomp_target_offload_var): New.
2521 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
2522 * target.c (resolve_device): Generate error if device not found and
2523 offloading is mandatory.
2524 (gomp_target_fallback): Generate error if offloading is mandatory.
2525 (GOMP_target): Add argument in call to gomp_target_fallback.
2526 (GOMP_target_ext): Likewise.
2527 (gomp_target_data_fallback): Generate error if offloading is mandatory.
2528 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
2529 (GOMP_target_data_ext): Likewise.
2530 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
2531 (gomp_target_init): Return early if offloading is disabled.
2533 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2535 * libgomp.texi (omp_get_max_active_levels): Modify description.
2536 (omp_get_supported_active_levels): Make descriptions consistent.
2538 2020-10-14 Jakub Jelinek <jakub@redhat.com>
2540 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
2542 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
2544 * env.c (gomp_max_active_levels_var): Initialize to
2545 gomp_supported_active_levels.
2546 (initialize_env): Limit gomp_max_active_levels_var to be at most
2547 equal to gomp_supported_active_levels.
2548 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
2549 (omp_get_supported_active_levels_): New.
2550 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
2551 to at most equal to gomp_supported_active_levels.
2552 (omp_get_supported_active_levels): New.
2553 * libgomp.h (gomp_supported_active_levels): New.
2554 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
2555 omp_get_supported_active_levels_.
2556 * libgomp.texi (omp_get_supported_active_levels): New.
2557 (omp_set_max_active_levels): Update. Add reference to
2558 omp_get_supported_active_levels.
2559 * omp.h.in (omp_get_supported_active_levels): New.
2560 * omp_lib.f90.in (omp_get_supported_active_levels): New.
2561 * omp_lib.h.in (omp_get_supported_active_levels): New.
2562 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
2563 against omp_get_supported_active_levels.
2564 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
2566 2020-10-11 Clement Chigot <clement.chigot@atos.net>
2568 * config/t-aix: Delete and recreate libgomp before creating
2571 2020-10-08 Tom de Vries <tdevries@suse.de>
2574 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
2577 2020-10-06 Tom de Vries <tdevries@suse.de>
2579 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
2581 2020-10-06 Tom de Vries <tdevries@suse.de>
2584 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
2586 2020-10-05 Tom de Vries <tdevries@suse.de>
2589 * testsuite/libgomp.fortran/pr95654.f90: New test.
2591 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
2593 * Makefile.in: Regenerate with automake 1.15.1.
2594 * aclocal.m4: Likewise.
2595 * configure: Likewise.
2596 * testsuite/Makefile.in: Likewise.
2598 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
2600 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
2603 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
2605 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
2607 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
2609 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
2610 total number of threads is one.
2611 (gomp_team_barrier_wake): Likewise.
2612 (gomp_team_barrier_wait_end): Likewise.
2613 (gomp_team_barrier_wait_cancel_end): Likewise.
2614 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
2615 (gomp_team_barrier_wake): Likewise.
2616 (gomp_team_barrier_wait_end): Likewise.
2617 (gomp_team_barrier_wait_cancel_end): Likewise.
2618 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
2620 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
2623 * testsuite/libgomp.c++/pr96390.C: New test.
2624 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
2626 2020-09-27 Clement Chigot <clement.chigot@atos.net>
2628 * config/t-aix: Use $(AR) without -X32_64.
2630 2020-09-25 Jakub Jelinek <jakub@redhat.com>
2632 * testsuite/libgomp.c/loop-25.c: New test.
2634 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
2637 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
2639 2020-09-22 Tom de Vries <tdevries@suse.de>
2641 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
2644 2020-09-16 Nathan Sidwell <nathan@acm.org>
2646 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
2648 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
2651 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
2653 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
2656 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
2657 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
2658 (gomp_map_vars_existing): Update call to it.
2659 (gomp_map_fields_existing): Likewise
2660 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
2661 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
2663 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
2665 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
2666 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
2668 2020-09-14 Tom de Vries <tdevries@suse.de>
2670 * config/nvptx/atomic.c: New file. Add
2671 __sync_val_compare_and_swap_16.
2672 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
2673 target offload_target_nvptx.
2675 2020-09-08 Julian Brown <julian@codesourcery.com>
2677 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
2678 iteration-ordering assumptions.
2680 2020-09-08 Julian Brown <julian@codesourcery.com>
2682 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
2683 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2685 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
2687 * plugin/plugin-nvptx.c (nvptx_free):
2688 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
2689 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
2692 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
2694 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
2696 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
2698 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
2700 2020-08-13 Jakub Jelinek <jakub@redhat.com>
2702 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
2703 * testsuite/libgomp.c/loop-23.c (main): Likewise.
2704 * testsuite/libgomp.c/loop-24.c: New test.
2706 2020-08-08 Jakub Jelinek <jakub@redhat.com>
2707 Tobias Burnus <tobias@codesourcery.com>
2710 * testsuite/libgomp.fortran/pr93553.f90: New test.
2712 2020-08-05 Jakub Jelinek <jakub@redhat.com>
2714 * testsuite/libgomp.c/loop-22.c: New test.
2715 * testsuite/libgomp.c/loop-23.c: New test.
2717 2020-08-05 Jakub Jelinek <jakub@redhat.com>
2720 * testsuite/libgomp.c/teams-3.c: New test.
2721 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
2723 (N(test)): Use it before all N(f*) calls.
2724 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
2725 (main): Don't call all test_* functions from within
2726 #pragma omp teams reduction(|:err), call them directly.
2728 2020-08-04 Tom de Vries <tdevries@suse.de>
2731 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
2732 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
2734 2020-08-03 Julian Brown <julian@codesourcery.com>
2735 Thomas Schwinge <thomas@codesourcery.com>
2737 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
2738 shared-memory devices. Extend with further checking.
2740 2020-08-03 Martin Jambor <mjambor@suse.cz>
2742 * plugin/Makefrag.am: Remove configuration of HSA plugin.
2743 * aclocal.m4: Regenerated.
2744 * Makefile.in: Regenerated.
2745 * config.h.in: Regenerated.
2746 * configure: Regenerated.
2747 * plugin/configfrag.ac: Likewise.
2748 * plugin/hsa_ext_finalize.h: Removed.
2749 * plugin/plugin-hsa.c: Likewise.
2750 * testsuite/Makefile.in: Regenerated.
2751 * testsuite/lib/libgomp.exp
2752 (offload_target_to_openacc_device_type): Remove hsa case.
2753 (check_effective_target_hsa_offloading_selected_nocache): Removed
2754 (check_effective_target_hsa_offloading_selected): Likewise.
2755 (libgomp_init): Do not add -Wno-hsa to additional_flags.
2756 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
2757 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
2758 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
2759 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
2760 * testsuite/libgomp.hsa.c/c.exp: Likewise.
2761 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
2762 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
2763 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
2764 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
2765 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
2766 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
2767 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
2768 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
2769 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
2770 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
2771 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
2772 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
2773 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
2774 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
2775 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
2776 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
2777 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
2778 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
2779 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
2781 2020-07-27 Julian Brown <julian@codesourcery.com>
2782 Thomas Schwinge <thomas@codesourcery.com>
2784 * libgomp.h (struct target_var_desc): Rename do_detach field to
2786 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
2787 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
2788 (goacc_enter_data_internal): Don't affect reference counts
2789 for attach mappings.
2790 (goacc_exit_data_internal): Don't affect reference counts for detach
2792 * target.c (gomp_map_vars_existing): Don't affect reference counts for
2794 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
2795 mark attach mappings.
2796 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
2797 reference count for attach mappings.
2798 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
2799 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2800 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2801 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
2803 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
2804 gracefully in no-finalize mode.
2805 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
2807 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
2809 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
2811 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2812 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2814 2020-07-23 Julian Brown <julian@codesourcery.com>
2815 Thomas Schwinge <thomas@codesourcery.com>
2817 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
2818 finalization for detach operation.
2819 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
2822 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
2824 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
2825 * libgomp_f.h.in (omp_check_defines): Check whether
2826 sizeof of determined Fortran kind and C typedef match.
2827 * omp_lib.f90.in: Add omp_depened_kind.
2828 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
2829 * configure: Regenerate.
2830 * Makefile.in: Regenerate.
2831 * testsuite/Makefile.in: Regenerate.
2833 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
2835 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
2836 gcc/testsuite/c-c++-common/gomp/.
2837 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
2838 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
2839 from gcc/testsuite/gfortran.dg/gomp/.
2840 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
2842 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
2844 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
2845 * omp_lib.h.in: Likewise.
2847 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
2850 * testsuite/libgomp.c/pr95620.c: New test.
2852 2020-07-16 Julian Brown <julian@codesourcery.com>
2853 Thomas Schwinge <thomas@codesourcery.com>
2855 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
2856 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
2858 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
2860 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
2861 avoid conversion on 32bit systems from 32bit to 64bit due
2862 to -fdefault-integer-8.
2864 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
2866 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
2867 variables; add character(kind=4) tests; update TODO comment.
2869 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
2871 * allocator.c: Add ialias for omp_init_allocator and
2872 omp_destroy_allocator.
2873 * configure.ac: Set INTPTR_T_KIND.
2874 * configure: Regenerate.
2875 * Makefile.in: Regenerate.
2876 * testsuite/Makefile.in: Regenerate.
2877 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
2878 omp_set_default_allocator_, omp_get_default_allocator_): New
2879 functions and ialias_redirect.
2880 * icv.c: Add ialias for omp_set_default_allocator and
2881 omp_get_default_allocator.
2882 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
2883 omp_destroy_allocator_, omp_set_default_allocator_ and
2884 omp_get_default_allocator_.
2885 * omp_lib.f90.in: Add allocator traits parameters, declare
2886 allocator routines and add related kind parameters.
2887 * omp_lib.h.in: Likewise.
2888 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
2889 * testsuite/libgomp.fortran/alloc-1.F90: New test.
2890 * testsuite/libgomp.fortran/alloc-2.F90: New test.
2891 * testsuite/libgomp.fortran/alloc-3.F: New test.
2892 * testsuite/libgomp.fortran/alloc-4.f90: New test.
2893 * testsuite/libgomp.fortran/alloc-5.f90: New test.
2895 2020-07-14 Tom de Vries <tom@codesourcery.com>
2896 Cesar Philippidis <cesar@codesourcery.com>
2897 Thomas Schwinge <thomas@codesourcery.com>
2898 Kwok Cheung Yeung <kcy@codesourcery.com>
2900 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
2902 (acc_init_1): Set acc_init_thread to pthread_self (). Set
2903 acc_init_state to initializing at the start, and to initialized at the
2905 (self_initializing_p): New function.
2906 (acc_get_device_type): Return acc_device_none if called by thread that
2907 is currently executing acc_init_1.
2908 * libgomp.texi (acc_get_device_type): Update documentation.
2909 (Implementation Status and Implementation-Defined Behavior): Likewise.
2910 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
2912 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
2914 * config/t-aix: Set BITS from compiler cpp macro.
2916 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
2918 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
2920 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
2923 * testsuite/libgomp.fortran/target-map-1.f90: New test.
2925 2020-07-14 Jakub Jelinek <jakub@redhat.com>
2927 * testsuite/libgomp.c/loop-21.c: New test.
2929 2020-07-13 Julian Brown <julian@codesourcery.com>
2930 Thomas Schwinge <thomas@codesourcery.com>
2932 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
2934 2020-07-10 Julian Brown <julian@codesourcery.com>
2935 Thomas Schwinge <thomas@codesourcery.com>
2937 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
2939 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
2940 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
2942 (acc_unmap_data): Update comment.
2943 (goacc_map_var_existing, goacc_enter_datum): Adjust for
2944 dynamic_refcount semantics.
2945 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
2946 Adjust for dynamic_refcount semantics.
2947 (goacc_enter_data_internal): Implement "present" case of dynamic
2948 memory-map handling here. Update "non-present" case for
2949 dynamic_refcount semantics.
2950 (goacc_exit_data_internal): Use goacc_exit_datum_1.
2951 * target.c (gomp_map_vars_internal): Remove
2952 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
2954 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
2955 (gomp_load_image_to_device): Substitute dynamic_refcount for
2957 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
2958 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
2959 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
2960 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
2961 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
2963 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
2965 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
2967 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
2968 Remove stale comment.
2969 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
2970 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
2971 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2972 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2973 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2974 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
2976 2020-07-10 Julian Brown <julian@codesourcery.com>
2977 Thomas Schwinge <thomas@codesourcery.com>
2979 * oacc-mem.c (goacc_map_var_existing): New function.
2980 (goacc_enter_datum): Use above function.
2981 (goacc_exit_datum_1): New function.
2982 (goacc_exit_datum): Use above function.
2984 2020-07-09 Julian Brown <julian@codesourcery.com>
2985 Thomas Schwinge <thomas@codesourcery.com>
2988 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
2989 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
2991 2020-07-09 Julian Brown <julian@codesourcery.com>
2993 * oacc-mem.c (find_group_last): Group data-movement clauses
2994 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
2995 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
2997 2020-07-09 Jakub Jelinek <jakub@redhat.com>
2999 * testsuite/libgomp.c/loop-19.c: New test.
3000 * testsuite/libgomp.c/loop-20.c: New test.
3002 2020-07-09 Jakub Jelinek <jakub@redhat.com>
3004 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
3005 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
3006 it. Remove __omp_alloctrait_value_max__.
3007 * allocator.c (omp_init_allocator): Handle omp_atv_default for
3008 omp_atk_alignment and omp_atk_pool_size.
3010 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
3012 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
3013 behavior for 'GOMP_MAP_FORCE_FROM'.
3014 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
3016 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
3018 * oacc-mem.c (goacc_exit_data_internal): Remove
3019 'GOMP_MAP_ALWAYS_FROM' handling.
3021 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
3023 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
3024 'scan-assembler' with 'scan-offload-rtl'.
3025 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
3026 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
3027 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
3028 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
3030 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
3032 * target.c (gomp_map_vars_existing): Assert 'kind !=
3034 (gomp_map_vars_internal): Clean up.
3036 2020-06-27 Jakub Jelinek <jakub@redhat.com>
3038 * testsuite/libgomp.c/loop-17.c: New test.
3039 * testsuite/libgomp.c/loop-18.c: New test.
3041 2020-06-26 Marek Polacek <polacek@redhat.com>
3043 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
3045 2020-06-23 Alexandre Oliva <oliva@adacore.com>
3047 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
3048 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
3050 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
3052 * Makefile.am: Use -include.
3053 * Makefile.in: Regenerate.
3055 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
3057 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
3058 * Makefile.in: Regenerate
3059 * configure.ac (tmake_file): Substitute.
3060 * configure: Regenerate.
3061 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
3062 * config/t-aix: New file.
3064 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
3067 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
3070 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
3072 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
3073 variant for HSA_RUNTIME_LIB name.
3074 (find_executable_symbol_1): Delete.
3075 (find_executable_symbol): Delete.
3076 (init_kernel_properties): Add ".kd" suffix to symbol names.
3077 (find_load_offset): Delete.
3078 (create_and_finalize_hsa_program): Remove relocation handling.
3080 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
3082 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
3084 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
3088 * testsuite/libgomp.fortran/target-var.f90: New test.
3090 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
3091 Julian Brown <julian@codesourcery.com>
3093 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
3096 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
3097 Julian Brown <julian@codesourcery.com>
3099 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
3102 2020-06-05 Julian Brown <julian@codesourcery.com>
3104 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
3105 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
3107 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
3109 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
3110 Evaluate 'copyfrom' individually for each entry.
3111 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
3113 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
3115 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
3116 Evaluate 'finalize' individually for each entry.
3117 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
3118 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
3121 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
3123 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
3125 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
3127 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
3128 Julian Brown <julian@codesourcery.com>
3130 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
3132 (acc_unmap_data, goacc_exit_data_internal): Restore
3133 'is_tgt_unmapped' checking.
3134 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
3136 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
3137 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
3138 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
3139 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
3140 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
3141 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
3143 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
3144 Julian Brown <julian@codesourcery.com>
3146 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
3148 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
3151 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
3153 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
3156 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
3159 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
3160 Julian Brown <julian@codesourcery.com>
3162 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
3164 (acc_map_data): Clean up accordingly.
3166 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
3168 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
3169 of over-eager 'finalize' clause.
3170 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
3172 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
3173 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
3174 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
3175 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
3176 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
3177 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
3178 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
3179 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
3181 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
3183 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
3185 2020-06-04 Julian Brown <julian@codesourcery.com>
3187 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
3189 (goacc_detach_internal): Likewise.
3191 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
3193 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
3195 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3196 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3197 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
3198 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
3199 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
3201 2020-06-02 Jakub Jelinek <jakub@redhat.com>
3203 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
3206 2020-05-30 Jakub Jelinek <jakub@redhat.com>
3208 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
3210 2020-05-30 Jakub Jelinek <jakub@redhat.com>
3212 * allocator.c (omp_alloc): For size == 0, return NULL early.
3214 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
3217 * configure: Regenerated.
3219 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
3222 * testsuite/libgomp.fortran/async_io_9.f90: New test.
3224 2020-05-19 Jakub Jelinek <jakub@redhat.com>
3226 * omp.h.in (omp_uintptr_t): New typedef.
3227 (__GOMP_UINTPTR_T_ENUM): Define.
3228 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
3229 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
3230 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
3231 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
3232 omp_get_default_allocator, omp_alloc, omp_free): Declare.
3233 * libgomp.h (struct gomp_team_state): Add def_allocator field.
3234 (gomp_def_allocator): Declare.
3235 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
3236 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
3237 omp_alloc and omp_free.
3238 * team.c (gomp_team_start): Copy over ts.def_allocator.
3239 * env.c (gomp_def_allocator): New variable.
3240 (parse_wait_policy): Adjust function comment.
3241 (parse_allocator): New function.
3242 (handle_omp_display_env): Print OMP_ALLOCATOR.
3243 (initialize_env): Call parse_allocator.
3244 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
3245 * allocator.c: New file.
3246 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
3248 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
3249 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
3250 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
3251 * Makefile.in: Regenerated.
3253 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
3256 * configure: Regenerated.
3258 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
3261 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
3263 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
3265 * configure: Regenerated.
3267 2020-05-14 Jakub Jelinek <jakub@redhat.com>
3269 * testsuite/libgomp.c-c++-common/target-40.c: New test.
3271 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
3274 * testsuite/libgomp.fortran/pr66199-3.f90: New.
3275 * testsuite/libgomp.fortran/pr66199-4.f90: New.
3276 * testsuite/libgomp.fortran/pr66199-5.f90: New.
3277 * testsuite/libgomp.fortran/pr66199-6.f90: New.
3278 * testsuite/libgomp.fortran/pr66199-7.f90: New.
3279 * testsuite/libgomp.fortran/pr66199-8.f90: New.
3280 * testsuite/libgomp.fortran/pr66199-9.f90: New.
3282 2020-05-12 Jakub Jelinek <jakub@redhat.com>
3284 * testsuite/libgomp.c/target-39.c: New test.
3286 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
3288 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
3289 * openacc.f90 (acc_device_current): Likewise.
3290 * openacc.h (acc_device_current): Likewise.
3291 * openacc_lib.h (acc_device_current): Likewise.
3294 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
3295 'dg-allow-blank-lines-in-output'.
3297 * oacc-init.c (get_openacc_name): Handle 'gcn'.
3298 * testsuite/lib/libgomp.exp
3299 (offload_target_to_openacc_device_type) [amdgcn*]: Return
3300 'radeon'. Adjust all users.
3301 (check_effective_target_openacc_amdgcn_accel_present): Rename
3303 (check_effective_target_openacc_radeon_accel_present): ... this.
3305 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
3306 (check_effective_target_openacc_radeon_accel_selected): ... this.
3309 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
3312 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
3316 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
3318 (GOMP_OFFLOAD_init_device): Check return values from both calls to
3319 hsa_agent_iterate_regions.
3321 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
3324 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
3327 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
3330 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
3333 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
3336 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
3338 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
3341 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
3343 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
3345 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
3347 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
3349 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
3351 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
3353 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
3355 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
3357 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
3359 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
3361 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
3363 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
3365 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
3367 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
3369 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
3371 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
3373 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
3375 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
3377 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
3379 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
3381 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
3383 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
3385 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
3387 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
3389 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
3391 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
3393 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
3395 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
3397 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
3399 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
3401 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
3403 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
3406 2020-04-10 Julian Brown <julian@codesourcery.com>
3407 Thomas Schwinge <thomas@codesourcery.com>
3410 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
3412 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
3414 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
3416 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
3418 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
3420 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
3422 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
3424 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
3426 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
3428 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
3430 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
3432 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
3434 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
3436 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
3438 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
3440 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
3443 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
3445 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
3448 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
3451 * libgomp.oacc-c++/declare-pr94120.C: New.
3453 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
3455 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
3457 * configure: Regenerate.
3458 * testsuite/libgomp-site-extra.exp.in: New file.
3459 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
3461 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
3463 * testsuite/Makefile.in: Regenerate.
3465 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
3467 PR tree-optimization/89713
3469 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
3471 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
3473 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
3475 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
3476 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
3478 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
3481 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
3483 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
3486 * target.c (gomp_load_image_to_device): Fix link
3489 2020-03-19 Jakub Jelinek <jakub@redhat.com>
3492 * testsuite/libgomp.c++/pr93931.C: New test.
3494 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
3496 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
3497 dg-allow-blank-lines-in-output.
3499 2020-03-18 Julian Brown <julian@codesourcery.com>
3500 Tobias Burnus <tobias@codesourcery.com>
3502 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
3503 it work concurrently.
3505 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
3507 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
3508 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
3509 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
3511 2020-03-14 Jakub Jelinek <jakub@redhat.com>
3514 * testsuite/libgomp.c/pr93566.c: New test.
3516 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
3518 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
3519 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
3520 integer(acc_device_property) for the type of the return value of
3523 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
3525 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
3526 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
3527 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
3528 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
3529 (acc_set_device_num): Fix Fortran argument name, use same name for C.
3530 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
3531 corrections; add note about the previous interface and named constant.
3532 (OpenACC library and environment variables): Fix two typos.
3533 * openacc.f90: Use for all procedures the argument names from the spec
3534 as for …_h they are user visible.
3535 (openacc_kinds): Rename acc_device_property to
3536 acc_device_property_kinds and change value to int32 ; and update users.
3537 Re-add acc_device_property for for backward compatibility.
3538 (acc_get_property_string_h): Clean up as acc_device_property_kind
3540 (acc_get_property_h): Likewise and return c_size_t instead of
3541 acc_device_property.
3542 (openacc): Also export acc_device_property_kinds.
3543 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
3544 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
3545 handling; check against /= 0 instead of == 1 to match C.
3546 * openacc_lib.h: Use for all procedures the argument names from the spec
3547 as for …_h they are user visible. Place !GCC$ into the first column to
3548 be active also for fixed-form souce form.
3549 (acc_device_current, acc_device_property_kind, acc_device_property,
3550 acc_property_memory, acc_property_free_memory, acc_property_name,
3551 acc_property_vendor, acc_property_driver): New named constants.
3552 (acc_get_property, acc_get_property_string): New generic interface.
3554 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
3557 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
3558 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
3560 (gomp_target_task_fn): Assert "devicep->async_run_func".
3561 (clear_unsupported_flags): New function to remove unsupported flags
3562 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
3563 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
3564 * testsuite/libgomp.c/target-33.c:
3565 Remove xfail for offload_target_nvptx.
3566 * testsuite/libgomp.c/target-34.c: Likewise.
3568 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
3570 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
3571 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
3572 * testsuite/libgomp.c/target-34.c: Likewise.
3573 * testsuite/libgomp.c/target-link-1.c: Add xfail for
3574 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
3576 2020-02-09 Jakub Jelinek <jakub@redhat.com>
3578 * testsuite/libgomp.c/target-38.c: New test.
3580 2020-02-06 Jakub Jelinek <jakub@redhat.com>
3583 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
3585 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
3587 * testsuite/lib/libgomp.exp
3588 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
3589 and not as 'source' argument to libgomp_target_compile.
3591 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
3593 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
3594 (gcn_gfx801_s): Remove.
3595 (isa_hsa_name): Remove gfx801.
3596 (isa_gcc_name): Remove gfx801/carizzo.
3597 (isa_code): Remove gfx801.
3599 2020-02-03 Julian Brown <julian@codesourcery.com>
3600 Tobias Burnus <tobias@codesourcery.com>
3602 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
3603 and *_finalize variants; document acc_attach and acc_detach; update
3604 references from OpenACC 2.0 to 2.6.
3605 * openacc.f90 (openacc_version): Update to 201711.
3606 * openacc_lib.h (openacc_version): Update to 201711.
3607 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
3608 openacc_version to 201711.
3609 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3611 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
3613 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
3614 and vgpr_count fields.
3615 (struct kernel_info): Add a field for a hsa_kernel_description.
3616 (run_kernel): Reduce the number of threads/workers if the requested
3617 number would require too many VGPRs.
3618 (init_basic_kernel_info): Initialize description field with
3619 the hsa_kernel_description entry for the kernel.
3621 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
3624 * plugin/configfrag.ac (enable_offload_targets): Skip
3625 HSA and GCN plugin besides -m32 also for -mx32.
3626 * configure: Regenerate.
3628 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
3630 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
3632 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
3634 * plugin-gcn.c (struct agent_info): Add fields "name" and
3636 (GOMP_OFFLOAD_init_device): ... and init from here.
3637 (struct hsa_context_info): Add field "driver_version_s" ...
3638 (init_hsa_contest): ... and init from here.
3639 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
3641 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
3642 Enable test execution for amdgcn and host offloading targets.
3643 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
3644 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
3645 (expect_device_properties): Split function into ...
3646 (expect_device_string_properties): ... this new function ...
3647 (expect_device_memory): ... and this new function.
3648 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
3651 2020-01-28 Julian Brown <julian@codesourcery.com>
3653 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
3654 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
3655 component/non-component variable refs in a single directive.
3656 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
3658 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
3660 * configure.ac: Handle `--with-toolexeclibdir='.
3661 * Makefile.in: Regenerate.
3662 * aclocal.m4: Regenerate.
3663 * configure: Regenerate.
3664 * testsuite/Makefile.in: Regenerate.
3666 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
3668 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
3669 (expect_device_properties): Remove "expected_free_mem" argument,
3670 change "expected_total_mem" argument type to size_t;
3671 change types of acc_get_property results to size_t,
3672 adapt format strings.
3673 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
3674 Use %zu instead of %zd to print size_t values.
3675 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
3677 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
3678 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
3680 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
3682 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
3684 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
3687 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
3689 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
3690 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
3691 Adjust test dimensions for amdgcn.
3692 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
3693 gang/worker/vector expectations dynamically.
3694 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
3696 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
3697 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
3698 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
3699 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
3700 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
3701 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
3702 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
3703 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
3704 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
3705 (acc_gang): Recognise acc_device_radeon.
3706 (acc_worker): Likewise.
3707 (acc_vector): Likewise.
3708 (main): Set expectations for amdgcn.
3709 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
3710 (main): Adjust gang/worker/vector expectations dynamically.
3711 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
3712 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
3713 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
3714 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
3717 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
3719 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
3721 (openacc): Likewise.
3722 * openacc.f90 (openacc_kinds): Likewise.
3723 (openacc): Likewise.
3724 * openacc.h (acc_device_t): Likewise.
3725 * openacc_lib.h: Likewise.
3726 * testsuite/lib/libgomp.exp
3727 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
3728 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
3729 (cb_compute_construct_end): Likewise.
3730 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
3731 (cb_enqueue_launch_start): Likewise.
3732 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
3733 (cb_enter_data_end): Likewise.
3734 (cb_exit_data_start): Likewise.
3735 (cb_exit_data_end): Likewise.
3736 (cb_compute_construct_end): Likewise.
3737 (cb_enqueue_launch_start): Likewise.
3738 (cb_enqueue_launch_end): Likewise.
3739 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
3742 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
3744 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
3745 to use this instead of 'enum gomp_device_property'.
3746 (GOMP_OFFLOAD_get_property): Rename to...
3747 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
3748 * libgomp.h (struct gomp_device_descr): Move
3749 'GOMP_OFFLOAD_openacc_get_property'...
3750 (struct acc_dispatch_t): ... here. Adjust all users.
3751 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
3753 * target.c (gomp_map_vars_internal)
3754 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
3757 2020-01-10 Jakub Jelinek <jakub@redhat.com>
3760 * libgomp.h (gomp_print_string): Change return type from void to int.
3761 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
3762 not all characters have been written.
3764 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
3766 * libgomp.texi: Fix typos, use https.
3768 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
3770 * testsuite/libgomp.fortran/optional-map.f90: Add test for
3771 unallocated/disassociated actual arguments to nonallocatable/nonpointer
3772 dummy arguments; those are/shall be regarded as absent arguments.
3773 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
3774 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
3776 2020-01-01 Jakub Jelinek <jakub@redhat.com>
3778 Update copyright years.
3780 * libgomp.texi: Bump @copying's copyright year.
3782 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
3785 * oacc-init.c (goacc_runtime_deinitialize): New function.
3787 2019-12-28 Jakub Jelinek <jakub@redhat.com>
3790 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
3791 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
3793 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
3794 Frederik Harwath <frederik@codesourcery.com>
3795 Thomas Schwinge <tschwinge@codesourcery.com>
3797 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
3798 * libgomp-plugin.h (gomp_device_property_value): New union.
3799 (gomp_device_property_value): New prototype.
3800 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
3802 (acc_device_property_t): New enum.
3803 (acc_get_property, acc_get_property_string): New prototypes.
3804 * oacc-init.c (acc_get_device_type): Also assert that result
3805 is not `acc_device_current'.
3806 (get_property_any, acc_get_property, acc_get_property_string):
3808 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
3809 `acc_property_memory', `acc_property_free_memory',
3810 `acc_property_name', `acc_property_vendor' and
3811 `acc_property_driver' constants. Add `acc_device_property' data
3813 (openacc_internal): Add `acc_get_property' and
3814 `acc_get_property_string' interfaces. Add `acc_get_property_h',
3815 `acc_get_property_string_h', `acc_get_property_l' and
3816 `acc_get_property_string_l'.
3817 * oacc-host.c (host_get_property): New function.
3818 (host_dispatch): Wire it.
3819 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
3820 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
3821 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
3822 * libgomp.texi (OpenACC Runtime Library Routines): Add
3824 (acc_get_property): New node.
3825 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
3827 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
3828 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
3829 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
3831 (GOMP_OFFLOAD_get_property): New function.
3832 (struct ptx_device): Add new field "name".
3833 (cuda_driver_version_s): Add new static variable ...
3834 (nvptx_init): ... and init from here.
3836 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
3837 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
3838 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
3839 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
3840 with test helper functions.
3842 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
3844 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
3846 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
3849 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
3851 * target.c (gomp_map_vars_internal): Restore 'omp declare target
3854 2019-12-19 Julian Brown <julian@codesourcery.com>
3856 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
3857 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
3858 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
3860 2019-12-19 Julian Brown <julian@codesourcery.com>
3861 Cesar Philippidis <cesar@codesourcery.com>
3863 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
3864 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
3865 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
3866 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
3867 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
3868 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
3869 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
3870 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
3871 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
3872 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
3873 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
3874 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
3875 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
3877 2019-12-19 Julian Brown <julian@codesourcery.com>
3879 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
3880 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
3881 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
3882 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
3883 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
3884 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
3885 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
3886 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
3887 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
3888 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
3889 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
3890 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
3892 2019-12-19 Julian Brown <julian@codesourcery.com>
3894 * libgomp.h (struct target_var_desc): Add do_detach flag.
3895 * oacc-init.c (acc_shutdown_1): Free aux block if present.
3896 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
3897 struct components. Tidy up and add some new checks.
3898 (goacc_enter_data_internal): Update call to find_group_last.
3899 (goacc_exit_data_internal): Support detach operations and
3901 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
3902 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
3903 attach/detach in enter/exit data detection code.
3904 * target.c (gomp_map_vars_existing): Initialise do_detach field of
3906 (gomp_map_vars_internal): Support attach.
3907 (gomp_unmap_vars_internal): Support detach.
3909 2019-12-19 Julian Brown <julian@codesourcery.com>
3910 Thomas Schwinge <thomas@codesourcery.com>
3912 * libgomp.h (struct splay_tree_aux): Add attach_count field.
3913 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
3914 * libgomp.map (OACC_2.6): New section. Add acc_attach,
3915 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
3916 acc_detach_finalize_async.
3917 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
3918 acc_detach, acc_detach_async, acc_detach_finalize,
3919 acc_detach_finalize_async): New functions.
3920 * openacc.h (acc_attach, acc_attach_async, acc_detach,
3921 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
3923 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
3924 (gomp_remove_var_internal): Free attachment counts if present.
3925 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
3926 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
3928 2019-12-19 Julian Brown <julian@codesourcery.com>
3929 Cesar Philippidis <cesar@codesourcery.com>
3931 * libgomp.h (gomp_map_val): Add prototype.
3932 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
3933 open-coding device-address calculation.
3934 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
3937 2019-12-19 Julian Brown <julian@codesourcery.com>
3939 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
3940 field for virtual_refcount.
3941 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
3942 (gomp_free_memmap): Remove prototype.
3943 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
3944 instead of calling gomp_free_memmap.
3945 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
3947 (acc_unmap_data): Open code instead of forcing target_mem_desc's
3948 to_free field to NULL then calling gomp_unmap_vars. Handle
3949 REFCOUNT_INFINITY on target blocks.
3950 (goacc_enter_data): Rename to...
3951 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
3952 handling for mapping groups. Use virtual_refcount instead of
3953 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
3954 map_map_vars_async call. Re-do lookup for target pointer return value.
3955 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
3956 renamed goacc_enter_datum function.
3957 (goacc_exit_data): Rename to...
3958 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
3959 (acc_delete, acc_delete_async, acc_delete_finalize,
3960 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
3961 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
3962 goacc_exit_datum function.
3963 (gomp_acc_remove_pointer, find_pointer): Remove functions.
3964 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
3966 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
3967 goacc_exit_data_internal helper functions.
3968 * target.c (gomp_map_vars_internal): Handle
3969 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
3971 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
3972 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
3973 virtual_refcount field instead of dynamic_refcount.
3974 (gomp_free_memmap): Remove function.
3975 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
3976 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
3977 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
3979 2019-12-19 Julian Brown <julian@codesourcery.com>
3980 Thomas Schwinge <thomas@codesourcery.com>
3982 * libgomp.h (struct splay_tree_aux): New.
3983 (struct splay_tree_key_s): Replace link_key field with aux pointer.
3984 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
3986 (gomp_remove_var_internal): Free aux block if present.
3987 (gomp_load_image_to_device): Zero-initialise aux field instead of
3989 (omp_target_associate_pointer): Zero-initialise aux field.
3991 2019-12-18 Jakub Jelinek <jakub@redhat.com>
3994 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
3996 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
3999 2019-12-19 Julian Brown <julian@codesourcery.com>
4000 Maciej W. Rozycki <macro@codesourcery.com>
4001 Tobias Burnus <tobias@codesourcery.com>
4002 Thomas Schwinge <thomas@codesourcery.com>
4004 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
4005 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
4006 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
4007 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
4008 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
4009 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
4010 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
4011 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
4012 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
4014 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
4016 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
4018 (goacc_insert_pointer): ... from here, "present" case.
4019 (goacc_insert_pointer): Inline function into...
4020 (GOACC_enter_exit_data): ... here, and simplify.
4022 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
4024 (goacc_insert_pointer): ... from here, "not present" case.
4026 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
4029 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
4030 'goacc_enter_data', 'goacc_exit_data'.
4032 * oacc-mem.c (delete_copyout): Refactor into...
4033 (goacc_exit_data): ... this. Adjust all users.
4035 * oacc-mem.c (present_create_copy): Refactor into...
4036 (goacc_enter_data): ... this. Adjust all users.
4038 * target.c (gomp_unmap_vars_internal): Add a safeguard to
4041 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
4042 like 'GOMP_MAP_FROM'.
4047 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
4049 (GOACC_enter_exit_data): Simplify accordingly.
4050 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
4052 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
4053 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
4055 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
4057 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
4058 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
4060 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
4062 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
4064 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
4065 'finalize' handling.
4068 * oacc-mem.c (acc_map_data, present_create_copy)
4069 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
4070 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
4071 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
4072 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
4073 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
4074 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
4075 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
4076 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
4079 * target.c (gomp_unmap_tgt): Make it 'static'.
4080 * libgomp.h (gomp_unmap_tgt): Remove.
4082 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
4085 * testsuite/libgomp.c/pr86416-1.c: New.
4086 * testsuite/libgomp.c/pr86416-2.c: New.
4088 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
4090 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
4091 all symbols as public except for the 'use …, only' imported symbol,
4093 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
4094 all symbols from module openacc_kinds as PUBLIC
4095 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
4097 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
4099 2019-12-13 Julian Brown <julian@codesourcery.com>
4103 * libgomp.h (gomp_remove_var_async): Add prototype.
4104 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
4106 * target.c (gomp_unref_tgt): Change return type to bool, indicating
4107 whether target_mem_desc was unmapped.
4108 (gomp_unref_tgt_void): New.
4109 (gomp_remove_var): Reimplement in terms of...
4110 (gomp_remove_var_internal): ...this new helper function.
4111 (gomp_remove_var_async): New, implemented using above helper function.
4112 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
4115 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
4117 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
4118 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
4119 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
4120 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
4121 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
4123 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
4124 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
4126 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
4128 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
4129 as public except for the 'use …, only' imported symbol, which is
4131 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
4132 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
4133 attributes for acc_copyout_finalize and acc_delete_finalize.
4135 2019-12-11 Jakub Jelinek <jakub@redhat.com>
4138 * testsuite/libgomp.fortran/atomic1.f90: New test.
4140 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
4143 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
4144 reference counting for structured 'REFCOUNT_INFINITY'. Add some
4146 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
4147 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
4148 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
4149 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
4150 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
4152 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
4153 * oacc-mem.c: ... here.
4154 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
4155 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
4156 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
4158 * libgomp_g.h: Update.
4160 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
4161 * oacc-async.c: ... here.
4162 * oacc-int.h (goacc_wait): Declare.
4163 * libgomp_g.h: Update
4166 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
4168 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
4170 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
4172 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
4174 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
4176 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
4179 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
4180 Julian Brown <julian@codesourcery.com>
4182 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
4183 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
4185 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
4187 * omp_lib.h.in: Fix spelling of function declaration
4188 omp_get_cancell(l)ation.
4189 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
4191 * env.c: Fix comment typos.
4192 * oacc-host.c: Likewise.
4193 * ordered.c: Likewise.
4196 * config/gcn/task.c: Likewise.
4197 * config/gcn/team.c: Likewise.
4198 * config/nvptx/task.c: Likewise.
4199 * config/nvptx/team.c: Likewise.
4200 * plugin/plugin-gcn.c: Likewise.
4201 * testsuite/libgomp.fortran/jacobi.f: Likewise.
4202 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4203 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
4205 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
4207 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
4208 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
4209 unnecessary 'dg-additional-options "-w"'.
4211 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
4212 Julian Brown <julian@codesourcery.com>
4217 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
4218 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
4220 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
4222 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
4224 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
4226 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
4229 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
4230 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
4232 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
4234 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
4236 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
4238 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
4240 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
4242 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
4243 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
4244 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
4245 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
4246 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
4247 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
4248 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4249 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
4250 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
4251 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
4254 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
4255 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
4256 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
4258 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
4260 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
4262 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
4263 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
4266 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
4268 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
4270 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
4272 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
4274 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
4275 ... with their content moved into, and extended in this new file.
4276 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
4278 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
4280 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
4282 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
4285 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
4288 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
4290 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
4292 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
4294 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
4296 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
4298 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
4299 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
4300 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
4301 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
4303 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
4304 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
4306 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
4308 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
4310 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
4311 Kwok Cheung Yeung <kcy@codesourcery.com>
4313 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
4314 if input it a NULL pointer.
4315 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
4316 diagnostic of NULL pointer.
4317 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
4318 * testsuite/libgomp.fortran/optional-map.f90: New.
4319 * testsuite/libgomp.fortran/use_device_addr-1.f90
4320 (test_dummy_opt_callee_1_absent): New.
4321 (test_dummy_opt_call_1): Call it.
4322 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
4323 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
4324 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
4325 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
4326 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
4327 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
4328 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
4329 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
4330 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
4331 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
4332 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
4333 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
4334 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
4335 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
4336 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
4337 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
4339 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
4341 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
4342 expect dg-output of 'Error termination.' for GCN.
4343 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
4344 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
4346 2019-12-04 Jakub Jelinek <jakub@redhat.com>
4349 * testsuite/libgomp.fortran/teams1.f90: New test.
4350 * testsuite/libgomp.fortran/teams2.f90: New test.
4352 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
4354 * oacc-init.c (acc_known_device_type): Add function.
4355 (unknown_device_type_error): Add function.
4356 (name_of_acc_device_t): Change to call unknown_device_type_error
4358 (resolve_device): Use acc_known_device_type.
4359 (acc_init): Fail if acc_device_t argument is not valid.
4360 (acc_shutdown): Likewise.
4361 (acc_get_num_devices): Likewise.
4362 (acc_set_device_type): Likewise.
4363 (acc_get_device_num): Likewise.
4364 (acc_set_device_num): Likewise.
4365 (acc_on_device): Add comment that argument validity is not checked.
4367 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
4369 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
4371 (check_effective_target_openacc_amdgcn_accel_present): New proc.
4372 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
4373 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
4374 * testsuite/libgomp.oacc-c/c.exp: Likewise.
4375 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4377 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
4380 * configure.tgt: Avoid IE tls on *-*-musl*.
4382 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
4384 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
4385 adding a common-block test case.
4387 2019-11-29 Jakub Jelinek <jakub@redhat.com>
4390 * testsuite/libgomp.c++/udr-20.C: New test.
4391 * testsuite/libgomp.c++/udr-21.C: New test.
4393 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
4395 * testsuite/lib/libgomp.exp
4396 (check_effective_target_offload_target_nvptx): New proc.
4397 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
4399 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
4400 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
4401 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
4403 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4405 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
4406 * testsuite/libgomp.c/pr39591-2.c: Likewise.
4407 * testsuite/libgomp.c/pr39591-3.c: Likewise.
4408 * testsuite/libgomp.c/private-1.c: Likewise.
4409 * testsuite/libgomp.c/task-1.c: Likewise.
4410 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
4412 2019-11-20 Julian Brown <julian@codesourcery.com>
4414 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
4416 (queue_push_launch): Lock aq->mutex before calling
4417 wait_for_queue_nonfull.
4418 (queue_push_callback): Likewise.
4419 (queue_push_asyncwait): Likewise.
4420 (queue_push_placeholder): Likewise.
4422 2019-11-20 Julian Brown <julian@codesourcery.com>
4424 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
4425 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
4426 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
4429 2019-11-20 Julian Brown <julian@codesourcery.com>
4433 * oacc-mem.c (present_create_copy): Fix device pointer return value in
4434 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
4435 in non-present/create case.
4436 (delete_copyout): Change error condition to fail only on copies outside
4437 of mapped block. Adjust error message accordingly.
4438 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
4439 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
4440 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
4442 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4443 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
4444 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
4446 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
4448 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
4449 libatomic in build-tree testing.
4451 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
4453 * testsuite/Makefile.in: Regenerate.
4455 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
4457 * testsuite/libgomp.c/target-print-1.c: New file.
4458 * testsuite/libgomp.fortran/target-print-1.f90: New file.
4459 * testsuite/libgomp.oacc-c/print-1.c: New file.
4460 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
4462 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4463 Kwok Cheung Yeung <kcy@codesourcery.com>
4464 Julian Brown <julian@codesourcery.com>
4465 Tom de Vries <tom@codesourcery.com>
4467 * plugin/Makefrag.am: Add amdgcn plugin support.
4468 * plugin/configfrag.ac: Likewise.
4469 * plugin/plugin-gcn.c: New file.
4470 * configure: Regenerate.
4471 * Makefile.in: Regenerate.
4472 * testsuite/Makefile.in: Regenerate.
4474 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4476 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
4477 and use team_malloc variants.
4478 (gomp_gcn_exit_kernel): Use team_free.
4479 * libgomp.h (TEAM_ARENA_SIZE): Define.
4480 (TEAM_ARENA_START): Define.
4481 (TEAM_ARENA_FREE): Define.
4482 (TEAM_ARENA_END): Define.
4483 (team_malloc): New function.
4484 (team_malloc_cleared): New function.
4485 (team_free): New function.
4486 * team.c (gomp_new_team): Initialize and use team_malloc.
4487 (free_team): Use team_free.
4488 (gomp_free_thread): Use team_free.
4489 (gomp_pause_host): Use team_free.
4490 * work.c (gomp_init_work_share): Use team_malloc.
4491 (gomp_fini_work_share): Use team_free.
4493 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4494 Kwok Cheung Yeung <kcy@codesourcery.com>
4495 Julian Brown <julian@codesourcery.com>
4496 Tom de Vries <tom@codesourcery.com>
4498 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
4499 * Makefile.in: Regenerate.
4500 * config.h.in (PLUGIN_GCN): Add new undef.
4501 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
4502 * config/gcn/affinity-fmt.c: New file.
4503 * config/gcn/bar.c: New file.
4504 * config/gcn/bar.h: New file.
4505 * config/gcn/doacross.h: New file.
4506 * config/gcn/icv-device.c: New file.
4507 * config/gcn/oacc-target.c: New file.
4508 * config/gcn/simple-bar.h: New file.
4509 * config/gcn/target.c: New file.
4510 * config/gcn/task.c: New file.
4511 * config/gcn/team.c: New file.
4512 * config/gcn/time.c: New file.
4513 * configure.ac: Add amdgcn*-*-*.
4514 * configure: Regenerate.
4515 * configure.tgt: Add amdgcn*-*-*.
4516 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
4517 * libgomp.h (gcn_thrs): Add amdgcn variant.
4518 (set_gcn_thrs): Likewise.
4519 (gomp_thread): Likewise.
4520 * oacc-int.h (goacc_thread): Likewise.
4521 * oacc-target.c: New file.
4522 * openacc.f90 (acc_device_gcn): New parameter.
4523 * openacc.h (acc_device_t): Add acc_device_gcn.
4524 * team.c (gomp_free_pool_helper): Add amdgcn support.
4526 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4527 Julian Brown <julian@codesourcery.com>
4529 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
4531 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
4533 * oacc-host.c (host_openacc_async_construct): Add device parameter.
4534 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
4537 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4539 * configure.tgt (nvptx*-*-*): Add "accel" directory.
4540 * config/nvptx/libgomp-plugin.c: Move ...
4541 * config/accel/libgomp-plugin.c: ... to here.
4542 * config/nvptx/lock.c: Move ...
4543 * config/accel/lock.c: ... to here.
4544 * config/nvptx/mutex.c: Move ...
4545 * config/accel/mutex.c: ... to here.
4546 * config/nvptx/mutex.h: Move ...
4547 * config/accel/mutex.h: ... to here.
4548 * config/nvptx/oacc-async.c: Move ...
4549 * config/accel/oacc-async.c: ... to here.
4550 * config/nvptx/oacc-cuda.c: Move ...
4551 * config/accel/oacc-cuda.c: ... to here.
4552 * config/nvptx/oacc-host.c: Move ...
4553 * config/accel/oacc-host.c: ... to here.
4554 * config/nvptx/oacc-init.c: Move ...
4555 * config/accel/oacc-init.c: ... to here.
4556 * config/nvptx/oacc-mem.c: Move ...
4557 * config/accel/oacc-mem.c: ... to here.
4558 * config/nvptx/oacc-plugin.c: Move ...
4559 * config/accel/oacc-plugin.c: ... to here.
4560 * config/nvptx/omp-lock.h: Move ...
4561 * config/accel/omp-lock.h: ... to here.
4562 * config/nvptx/openacc.f90: Move ...
4563 * config/accel/openacc.f90: ... to here.
4564 * config/nvptx/pool.h: Move ...
4565 * config/accel/pool.h: ... to here.
4566 * config/nvptx/proc.c: Move ...
4567 * config/accel/proc.c: ... to here.
4568 * config/nvptx/ptrlock.c: Move ...
4569 * config/accel/ptrlock.c: ... to here.
4570 * config/nvptx/ptrlock.h: Move ...
4571 * config/accel/ptrlock.h: ... to here.
4572 * config/nvptx/sem.c: Move ...
4573 * config/accel/sem.c: ... to here.
4574 * config/nvptx/sem.h: Move ...
4575 * config/accel/sem.h: ... to here.
4576 * config/nvptx/thread-stacksize.h: Move ...
4577 * config/accel/thread-stacksize.h: ... to here.
4579 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4580 Tobias Burnus <tobias@codesourcery.com>
4581 Frederik Harwath <frederik@codesourcery.com>
4582 Thomas Schwinge <thomas@codesourcery.com>
4585 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
4586 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
4587 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
4589 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4590 Kwok Cheung Yeung <kcy@codesourcery.com>
4592 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
4593 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
4595 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4597 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
4599 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
4601 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
4602 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
4604 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
4606 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
4607 Add expected warnings about missing reduction clauses.
4608 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
4610 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
4612 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4615 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
4617 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
4618 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
4619 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
4620 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
4621 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
4622 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
4624 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
4627 * testsuite/libgomp.fortran/allocatable2.f90: Use
4628 unique numbers with 'stop'.
4629 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
4630 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
4631 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
4632 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
4633 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
4635 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
4637 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
4638 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
4639 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
4640 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
4641 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
4642 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
4644 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
4646 * testsuite/libgomp.fortran/target9.f90: New.
4648 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
4650 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
4651 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
4652 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
4653 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
4654 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
4655 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
4656 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
4657 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
4658 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
4659 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
4660 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
4661 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
4662 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
4663 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
4664 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
4665 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
4666 * testsuite/libgomp.fortran/associate1.f90: Ditto.
4667 * testsuite/libgomp.fortran/associate2.f90: Ditto.
4668 * testsuite/libgomp.fortran/associate3.f90: Ditto.
4669 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
4670 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
4671 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
4672 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
4673 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
4674 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
4675 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
4676 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
4677 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
4678 * testsuite/libgomp.fortran/character1.f90: Ditto.
4679 * testsuite/libgomp.fortran/character2.f90: Ditto.
4680 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
4681 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
4682 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
4683 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
4684 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
4685 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
4686 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
4687 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
4688 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
4689 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
4690 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
4691 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
4692 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
4693 * testsuite/libgomp.fortran/do1.f90: Ditto.
4694 * testsuite/libgomp.fortran/do2.f90: Ditto.
4695 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
4696 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
4697 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
4698 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
4699 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
4700 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
4701 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
4702 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
4703 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
4704 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
4705 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
4706 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
4707 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
4708 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
4709 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
4710 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
4711 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
4712 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
4713 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
4714 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
4715 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
4716 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
4717 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
4718 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
4719 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
4720 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
4721 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
4722 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
4723 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
4724 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
4725 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
4726 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
4727 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
4728 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
4729 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
4730 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
4731 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
4732 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
4733 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
4734 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
4735 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
4736 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
4737 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
4738 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
4739 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
4740 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
4741 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
4742 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
4743 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
4744 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
4745 * testsuite/libgomp.fortran/lib1.f90: Ditto.
4746 * testsuite/libgomp.fortran/lib4.f90: Ditto.
4747 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
4748 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
4749 * testsuite/libgomp.fortran/nested1.f90: Ditto.
4750 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
4751 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
4752 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
4753 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
4754 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
4755 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
4756 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
4757 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
4758 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
4759 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
4760 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
4761 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
4762 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
4763 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
4764 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
4765 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
4766 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
4767 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
4768 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
4769 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
4770 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
4771 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
4772 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
4773 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
4774 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
4775 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
4776 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
4777 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
4778 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
4779 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
4780 * testsuite/libgomp.fortran/pr28390.f: Ditto.
4781 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
4782 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
4783 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
4784 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
4785 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4786 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
4787 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
4788 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
4789 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
4790 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
4791 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
4792 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
4793 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
4794 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
4795 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
4796 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
4797 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
4798 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
4799 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
4800 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
4801 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
4802 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
4803 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
4804 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
4805 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
4806 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
4807 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
4808 * testsuite/libgomp.fortran/reference1.f90: Ditto.
4809 * testsuite/libgomp.fortran/reference2.f90: Ditto.
4810 * testsuite/libgomp.fortran/retval1.f90: Ditto.
4811 * testsuite/libgomp.fortran/retval2.f90: Ditto.
4812 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
4813 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
4814 * testsuite/libgomp.fortran/simd1.f90: Ditto.
4815 * testsuite/libgomp.fortran/simd2.f90: Ditto.
4816 * testsuite/libgomp.fortran/simd3.f90: Ditto.
4817 * testsuite/libgomp.fortran/simd4.f90: Ditto.
4818 * testsuite/libgomp.fortran/simd5.f90: Ditto.
4819 * testsuite/libgomp.fortran/simd6.f90: Ditto.
4820 * testsuite/libgomp.fortran/simd7.f90: Ditto.
4821 * testsuite/libgomp.fortran/stack.f90: Ditto.
4822 * testsuite/libgomp.fortran/strassen.f90: Ditto.
4823 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
4824 * testsuite/libgomp.fortran/tabs2.f: Ditto.
4825 * testsuite/libgomp.fortran/target1.f90: Ditto.
4826 * testsuite/libgomp.fortran/target2.f90: Ditto.
4827 * testsuite/libgomp.fortran/target3.f90: Ditto.
4828 * testsuite/libgomp.fortran/target4.f90: Ditto.
4829 * testsuite/libgomp.fortran/target5.f90: Ditto.
4830 * testsuite/libgomp.fortran/target6.f90: Ditto.
4831 * testsuite/libgomp.fortran/target7.f90: Ditto.
4832 * testsuite/libgomp.fortran/target8.f90: Ditto.
4833 * testsuite/libgomp.fortran/task1.f90: Ditto.
4834 * testsuite/libgomp.fortran/task2.f90: Ditto.
4835 * testsuite/libgomp.fortran/task3.f90: Ditto.
4836 * testsuite/libgomp.fortran/task4.f90: Ditto.
4837 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4838 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4839 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
4840 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
4841 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
4842 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
4843 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
4844 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
4845 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
4846 * testsuite/libgomp.fortran/udr1.f90: Ditto.
4847 * testsuite/libgomp.fortran/udr10.f90: Ditto.
4848 * testsuite/libgomp.fortran/udr11.f90: Ditto.
4849 * testsuite/libgomp.fortran/udr12.f90: Ditto.
4850 * testsuite/libgomp.fortran/udr13.f90: Ditto.
4851 * testsuite/libgomp.fortran/udr14.f90: Ditto.
4852 * testsuite/libgomp.fortran/udr15.f90: Ditto.
4853 * testsuite/libgomp.fortran/udr2.f90: Ditto.
4854 * testsuite/libgomp.fortran/udr3.f90: Ditto.
4855 * testsuite/libgomp.fortran/udr4.f90: Ditto.
4856 * testsuite/libgomp.fortran/udr5.f90: Ditto.
4857 * testsuite/libgomp.fortran/udr6.f90: Ditto.
4858 * testsuite/libgomp.fortran/udr7.f90: Ditto.
4859 * testsuite/libgomp.fortran/udr8.f90: Ditto.
4860 * testsuite/libgomp.fortran/udr9.f90: Ditto.
4861 * testsuite/libgomp.fortran/vla1.f90: Ditto.
4862 * testsuite/libgomp.fortran/vla2.f90: Ditto.
4863 * testsuite/libgomp.fortran/vla3.f90: Ditto.
4864 * testsuite/libgomp.fortran/vla4.f90: Ditto.
4865 * testsuite/libgomp.fortran/vla5.f90: Ditto.
4866 * testsuite/libgomp.fortran/vla6.f90: Ditto.
4867 * testsuite/libgomp.fortran/vla7.f90: Ditto.
4868 * testsuite/libgomp.fortran/vla8.f90: Ditto.
4869 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4870 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4872 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
4874 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
4875 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
4876 Ditto; add 'dg-do run' for torture testing.
4877 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
4878 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
4879 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
4880 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
4881 * testsuite/libgomp.fortran/pr28390.f: Ditto.
4882 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4883 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
4884 * testsuite/libgomp.fortran/task2.f90: Ditto.
4885 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4886 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4887 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
4888 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
4889 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4890 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4892 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
4894 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
4895 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
4896 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
4897 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
4898 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
4899 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
4900 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
4901 Use 'stop' not abort().
4902 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
4903 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
4904 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
4905 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
4906 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
4907 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
4908 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
4909 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
4910 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
4911 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
4912 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
4913 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
4914 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
4915 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
4916 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
4917 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
4918 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
4920 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4922 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4924 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4926 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4928 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
4930 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
4932 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
4934 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
4936 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
4938 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
4940 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
4942 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
4944 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
4946 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
4947 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
4948 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
4949 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
4950 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
4951 Likewise and also add 'dg-do run'.
4952 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
4955 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
4956 Tobias Burnus <tobias@codesourcery.com>
4958 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
4959 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
4960 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
4962 2019-10-14 Jakub Jelinek <jakub@redhat.com>
4965 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
4968 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
4970 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
4971 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
4973 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
4976 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
4979 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
4982 * testsuite/libgomp.fortran/fortran.exp: Conditionally
4984 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
4986 2019-10-09 Jakub Jelinek <jakub@redhat.com>
4989 * target.c (gomp_map_vars_internal): Readd the previous
4990 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
4991 though do that just in the !not_found_cnt case.
4993 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
4995 * gfortran.dg/gomp/target-simd.f90: New.
4997 2019-10-02 Julian Brown <julian@codesourcery.com>
4998 Cesar Philippidis <cesar@codesourcery.com>
5000 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
5001 * target.c (FIELD_TGT_EMPTY): Define.
5002 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
5003 as switch instead of list of ifs.
5004 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
5006 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
5008 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
5009 include. Replace alloca () with __builtin_alloca ().
5010 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
5012 2019-10-01 Jakub Jelinek <jakub@redhat.com>
5014 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
5015 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
5016 * oacc-parallel.c: Don't include "libgomp_g.h".
5017 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
5018 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
5019 * aclocal.m4: Regenerated.
5020 * config.h.in: Regenerated.
5021 * configure: Regenerated.
5022 * Makefile.in: Regenerated.
5024 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
5026 * libgomp_g.h: Include stdint.h instead of gstdint.h.
5028 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
5030 * configure: Regenerate.
5032 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
5034 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
5035 string is initialized.
5037 2019-09-06 Florian Weimer <fweimer@redhat.com>
5039 * configure: Regenerate.
5041 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
5044 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
5045 scanning to conform to the GNU Coding Standards.
5046 * configure: Regenerate.
5048 2019-08-28 Jakub Jelinek <jakub@redhat.com>
5051 * testsuite/libgomp.c/scan-21.c: New test.
5052 * testsuite/libgomp.c/scan-22.c: New test.
5054 2019-08-27 Jakub Jelinek <jakub@redhat.com>
5057 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
5059 * testsuite/libgomp.c/scan-12.c: Likewise.
5060 * testsuite/libgomp.c/scan-13.c: Likewise.
5061 * testsuite/libgomp.c/scan-14.c: Likewise.
5062 * testsuite/libgomp.c/scan-15.c: Likewise.
5063 * testsuite/libgomp.c/scan-16.c: Likewise.
5064 * testsuite/libgomp.c/scan-17.c: Likewise.
5065 * testsuite/libgomp.c/scan-18.c: Likewise.
5066 * testsuite/libgomp.c/scan-19.c: Likewise.
5067 * testsuite/libgomp.c/scan-20.c: Likewise.
5068 * testsuite/libgomp.c++/scan-9.C: Likewise.
5069 * testsuite/libgomp.c++/scan-10.C: Likewise.
5070 * testsuite/libgomp.c++/scan-11.C: Likewise.
5071 * testsuite/libgomp.c++/scan-12.C: Likewise.
5072 * testsuite/libgomp.c++/scan-14.C: Likewise.
5073 * testsuite/libgomp.c++/scan-15.C: Likewise.
5074 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
5075 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
5076 * testsuite/libgomp.c++/scan-16.C: Likewise.
5078 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
5081 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
5082 -std=legacy so invalid code in the test case is accepted.
5084 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
5087 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
5090 2019-08-08 Jakub Jelinek <jakub@redhat.com>
5092 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
5093 perform the lookup in the first loop only if !not_found_cnt, otherwise
5094 perform lookups for it in the second loop guarded with
5095 if (not_found_cnt || has_firstprivate).
5096 * testsuite/libgomp.c/target-37.c: New test.
5097 * testsuite/libgomp.c++/target-22.C: New test.
5099 2019-08-07 Jakub Jelinek <jakub@redhat.com>
5101 * testsuite/libgomp.c/target-18.c (struct S): New type.
5102 (foo): Use use_device_addr clause instead of use_device_ptr clause
5103 where required by OpenMP 5.0, add further tests for both use_device_ptr
5104 and use_device_addr clauses.
5105 * testsuite/libgomp.c++/target-9.C (struct S): New type.
5106 (foo): Use use_device_addr clause instead of use_device_ptr clause
5107 where required by OpenMP 5.0, add further tests for both use_device_ptr
5108 and use_device_addr clauses. Add t and u arguments.
5109 (main): Adjust caller.
5111 2019-08-06 Jakub Jelinek <jakub@redhat.com>
5113 * testsuite/libgomp.c++/loop-13.C: New test.
5114 * testsuite/libgomp.c++/loop-14.C: New test.
5115 * testsuite/libgomp.c++/loop-15.C: New test.
5117 2019-07-31 Jakub Jelinek <jakub@redhat.com>
5120 * testsuite/libgomp.c++/for-27.C: New test.
5122 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
5124 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
5125 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
5127 2019-07-20 Jakub Jelinek <jakub@redhat.com>
5129 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
5131 2019-07-08 Jakub Jelinek <jakub@redhat.com>
5133 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
5134 * testsuite/libgomp.c++/scan-16.C: Likewise.
5136 2019-07-06 Jakub Jelinek <jakub@redhat.com>
5138 * testsuite/libgomp.c/scan-19.c: New test.
5139 * testsuite/libgomp.c/scan-20.c: New test.
5141 * testsuite/libgomp.c/scan-11.c: New test.
5142 * testsuite/libgomp.c/scan-12.c: New test.
5143 * testsuite/libgomp.c/scan-13.c: New test.
5144 * testsuite/libgomp.c/scan-14.c: New test.
5145 * testsuite/libgomp.c/scan-15.c: New test.
5146 * testsuite/libgomp.c/scan-16.c: New test.
5147 * testsuite/libgomp.c/scan-17.c: New test.
5148 * testsuite/libgomp.c/scan-18.c: New test.
5149 * testsuite/libgomp.c++/scan-9.C: New test.
5150 * testsuite/libgomp.c++/scan-10.C: New test.
5151 * testsuite/libgomp.c++/scan-11.C: New test.
5152 * testsuite/libgomp.c++/scan-12.C: New test.
5153 * testsuite/libgomp.c++/scan-13.C: New test.
5154 * testsuite/libgomp.c++/scan-14.C: New test.
5155 * testsuite/libgomp.c++/scan-15.C: New test.
5156 * testsuite/libgomp.c++/scan-16.C: New test.
5158 2019-07-04 Jakub Jelinek <jakub@redhat.com>
5160 * testsuite/libgomp.c/scan-9.c: New test.
5161 * testsuite/libgomp.c/scan-10.c: New test.
5163 2019-07-03 Jakub Jelinek <jakub@redhat.com>
5165 * testsuite/libgomp.c++/scan-1.C: New test.
5166 * testsuite/libgomp.c++/scan-2.C: New test.
5167 * testsuite/libgomp.c++/scan-3.C: New test.
5168 * testsuite/libgomp.c++/scan-4.C: New test.
5169 * testsuite/libgomp.c++/scan-5.C: New test.
5170 * testsuite/libgomp.c++/scan-6.C: New test.
5171 * testsuite/libgomp.c++/scan-7.C: New test.
5172 * testsuite/libgomp.c++/scan-8.C: New test.
5173 * testsuite/libgomp.c/scan-1.c: New test.
5174 * testsuite/libgomp.c/scan-2.c: New test.
5175 * testsuite/libgomp.c/scan-3.c: New test.
5176 * testsuite/libgomp.c/scan-4.c: New test.
5177 * testsuite/libgomp.c/scan-5.c: New test.
5178 * testsuite/libgomp.c/scan-6.c: New test.
5179 * testsuite/libgomp.c/scan-7.c: New test.
5180 * testsuite/libgomp.c/scan-8.c: New test.
5182 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
5184 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
5185 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
5188 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
5191 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
5193 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
5196 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
5199 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
5201 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
5202 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
5203 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
5204 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
5207 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
5210 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
5212 2019-06-16 Tom de Vries <tdevries@suse.de>
5214 PR tree-optimization/89376
5215 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
5217 2019-06-15 Tom de Vries <tdevries@suse.de>
5219 PR tree-optimization/89713
5220 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
5221 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
5223 2019-06-15 Jakub Jelinek <jakub@redhat.com>
5226 * testsuite/libgomp.c/pr90779.c: New test.
5227 * testsuite/libgomp.fortran/pr90779.f90: New test.
5229 2019-06-15 Tom de Vries <tdevries@suse.de>
5231 PR tree-optimization/90009
5232 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
5234 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
5236 PR tree-optimization/89713
5237 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
5239 2019-06-11 Jakub Jelinek <jakub@redhat.com>
5242 * testsuite/libgomp.c/pr90811.c: New test.
5244 2019-06-05 Jakub Jelinek <jakub@redhat.com>
5246 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
5247 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
5249 2019-06-04 Jakub Jelinek <jakub@redhat.com>
5251 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
5252 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
5253 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
5254 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
5256 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5258 * configure.ac: Call AX_COUNT_CPUS.
5259 Substitute CPU_COUNT.
5260 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
5262 * aclocal.m4: Regenerate.
5263 * configure: Regenerate.
5264 * Makefile.in, testsuite/Makefile.in: Regenerate.
5266 2019-05-29 Jakub Jelinek <jakub@redhat.com>
5268 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
5270 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
5271 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
5272 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
5274 2019-05-27 Jakub Jelinek <jakub@redhat.com>
5276 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
5278 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
5281 * work.c (gomp_init_work_share): Instead of aligning final ordered
5282 value to multiples of long long alignment, align to that the
5283 first part (ordered team ids) and if inline_ordered_team_ids
5284 is not on a long long alignment boundary within the structure,
5285 use __alignof__ (long long) - 1 pad size always.
5286 * loop.c (GOMP_loop_start): Fix *mem computation if
5287 inline_ordered_team_ids is not aligned on long long alignment boundary
5288 within the structure.
5289 * loop-ull.c (GOMP_loop_ull_start): Likewise.
5290 * sections.c (GOMP_sections2_start): Likewise.
5292 2019-05-24 Jakub Jelinek <jakub@redhat.com>
5294 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
5295 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
5298 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
5299 HAVE_INTTYPES_H is defined.
5300 (print_uint64_t): New typedef.
5301 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
5302 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
5303 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
5304 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
5305 before casting to void *.
5306 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
5307 * oacc-mem.c: Don't include config.h nor stdint.h.
5308 * target.c: Don't include config.h.
5309 * oacc-cuda.c: Likewise.
5310 * oacc-host.c: Don't include stdint.h.
5312 2019-05-20 Jakub Jelinek <jakub@redhat.com>
5315 * alloc.c (_GNU_SOURCE): Define.
5317 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
5319 * acc_prof.h: New file.
5320 * oacc-profiling.c: Likewise.
5321 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
5322 Add these, respectively.
5323 * Makefile.in: Regenerate.
5324 * env.c (initialize_env): Call goacc_profiling_initialize.
5325 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
5326 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
5327 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
5328 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
5329 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
5330 acc_prof_register, acc_prof_unregister, and acc_register_library.
5331 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
5332 GOMP_PLUGIN_goacc_thread.
5333 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
5334 prof_callbacks_enabled members.
5335 (goacc_prof_enabled, goacc_profiling_initialize)
5336 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
5337 (goacc_profiling_dispatch): Declare.
5338 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
5339 (GOACC_PROFILING_SETUP_P): Define.
5340 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
5341 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
5342 OpenACC Profiling Interface.
5343 * oacc-cuda.c (acc_get_current_cuda_device)
5344 (acc_get_current_cuda_context, acc_get_cuda_stream)
5345 (acc_set_cuda_stream): Likewise.
5346 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
5347 (acc_init, acc_set_device_type, acc_get_device_type)
5348 (acc_get_device_num, goacc_lazy_initialize): Likewise.
5349 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
5350 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
5351 (acc_unmap_data, present_create_copy, delete_copyout)
5352 (update_dev_host): Likewise.
5353 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
5354 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
5356 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
5357 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
5359 * libgomp.texi: Update.
5360 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
5362 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
5363 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5365 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5367 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
5369 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
5372 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
5374 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
5375 (struct goacc_asyncqueue_list): Likewise.
5376 (goacc_aq): Likewise.
5377 (goacc_aq_list): Likewise.
5378 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
5379 (GOMP_OFFLOAD_openacc_async_test): Remove.
5380 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
5381 (GOMP_OFFLOAD_openacc_async_wait): Remove.
5382 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
5383 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
5384 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
5385 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
5386 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
5387 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
5388 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
5389 (GOMP_OFFLOAD_openacc_async_exec): Declare.
5390 (GOMP_OFFLOAD_openacc_async_construct): Declare.
5391 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
5392 (GOMP_OFFLOAD_openacc_async_test): Declare.
5393 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
5394 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
5395 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
5396 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
5397 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
5399 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
5400 (gomp_acc_insert_pointer): Adjust declaration.
5401 (gomp_copy_host2dev): New declaration.
5402 (gomp_copy_dev2host): Likewise.
5403 (gomp_map_vars_async): Likewise.
5404 (gomp_unmap_tgt): Likewise.
5405 (gomp_unmap_vars_async): Likewise.
5406 (gomp_fini_device): Likewise.
5408 * oacc-async.c (get_goacc_thread): New function.
5409 (get_goacc_thread_device): New function.
5410 (lookup_goacc_asyncqueue): New function.
5411 (get_goacc_asyncqueue): New function.
5412 (acc_async_test): Adjust code to use new async design.
5413 (acc_async_test_all): Likewise.
5414 (acc_wait): Likewise.
5415 (acc_wait_async): Likewise.
5416 (acc_wait_all): Likewise.
5417 (acc_wait_all_async): Likewise.
5418 (goacc_async_free): New function.
5419 (goacc_init_asyncqueues): Likewise.
5420 (goacc_fini_asyncqueues): Likewise.
5421 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
5423 (acc_set_cuda_stream): Likewise.
5424 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
5425 (host_openacc_register_async_cleanup): Remove.
5426 (host_openacc_async_exec): New function.
5427 (host_openacc_async_test): Adjust parameters.
5428 (host_openacc_async_test_all): Remove.
5429 (host_openacc_async_wait): Remove.
5430 (host_openacc_async_wait_async): Remove.
5431 (host_openacc_async_wait_all): Remove.
5432 (host_openacc_async_wait_all_async): Remove.
5433 (host_openacc_async_set_async): Remove.
5434 (host_openacc_async_synchronize): New function.
5435 (host_openacc_async_serialize): New function.
5436 (host_openacc_async_host2dev): New function.
5437 (host_openacc_async_dev2host): New function.
5438 (host_openacc_async_queue_callback): New function.
5439 (host_openacc_async_construct): New function.
5440 (host_openacc_async_destruct): New function.
5441 (struct gomp_device_descr host_dispatch): Remove initialization of old
5442 interface, add initialization of new async sub-struct.
5443 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
5444 (goacc_attach_host_thread_to_device): Remove old async code usage.
5445 * oacc-int.h (goacc_init_asyncqueues): New declaration.
5446 (goacc_fini_asyncqueues): Likewise.
5447 (goacc_async_copyout_unmap_vars): Likewise.
5448 (goacc_async_free): Likewise.
5449 (get_goacc_asyncqueue): Likewise.
5450 (lookup_goacc_asyncqueue): Likewise.
5451 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
5453 (present_create_copy): Adjust code to use new async design.
5454 (delete_copyout): Likewise.
5455 (update_dev_host): Likewise.
5456 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
5458 (gomp_acc_remove_pointer): Adjust code to use new async design.
5459 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
5461 (GOACC_enter_exit_data): Likewise.
5462 (goacc_wait): Likewise.
5463 (GOACC_update): Likewise.
5464 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
5465 when called, warn as obsolete in comment.
5466 * target.c (goacc_device_copy_async): New function.
5467 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
5468 add goacc_device_copy_async case.
5469 (gomp_copy_dev2host): Likewise.
5470 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
5471 (gomp_map_pointer): Likewise.
5472 (gomp_map_fields_existing): Likewise.
5473 (gomp_map_vars_internal): New always_inline function, renamed from
5475 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
5476 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
5477 passing goacc_asyncqueue argument.
5478 (gomp_unmap_tgt): Remove static, add attribute_hidden.
5479 (gomp_unref_tgt): New function.
5480 (gomp_unmap_vars_internal): New always_inline function, renamed from
5482 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
5483 (gomp_unmap_vars_async): Implement by calling
5484 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
5485 (gomp_fini_device): New function.
5486 (gomp_exit_data): Adjust gomp_copy_dev2host call.
5487 (gomp_load_plugin_for_device): Remove old interface, adjust to load
5488 new async interface.
5489 (gomp_target_fini): Adjust code to call gomp_fini_device.
5491 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
5492 (struct ptx_stream): Remove.
5493 (struct nvptx_thread): Remove current_stream field.
5494 (cuda_map_create): Remove.
5495 (cuda_map_destroy): Remove.
5500 (struct goacc_asyncqueue): Define.
5501 (struct nvptx_callback): Define.
5502 (struct ptx_free_block): Define.
5503 (struct ptx_device): Remove null_stream, active_streams, async_streams,
5504 stream_lock, and next fields.
5505 (enum ptx_event_type): Remove.
5506 (struct ptx_event): Remove.
5507 (ptx_event_lock): Remove.
5508 (ptx_events): Remove.
5509 (init_streams_for_device): Remove.
5510 (fini_streams_for_device): Remove.
5511 (select_stream_for_async): Remove.
5512 (nvptx_init): Remove ptx_events and ptx_event_lock references.
5513 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
5515 (nvptx_open_device): Add free_blocks initialization, remove
5516 init_streams_for_device call.
5517 (nvptx_close_device): Remove fini_streams_for_device call, add
5518 free_blocks destruct code.
5520 (event_add): Remove.
5521 (nvptx_exec): Adjust parameters and code.
5522 (nvptx_free): Likewise.
5523 (nvptx_host2dev): Remove.
5524 (nvptx_dev2host): Remove.
5525 (nvptx_set_async): Remove.
5526 (nvptx_async_test): Remove.
5527 (nvptx_async_test_all): Remove.
5528 (nvptx_wait): Remove.
5529 (nvptx_wait_async): Remove.
5530 (nvptx_wait_all): Remove.
5531 (nvptx_wait_all_async): Remove.
5532 (nvptx_get_cuda_stream): Remove.
5533 (nvptx_set_cuda_stream): Remove.
5534 (GOMP_OFFLOAD_alloc): Adjust code.
5535 (GOMP_OFFLOAD_free): Likewise.
5536 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
5537 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
5538 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
5539 (GOMP_OFFLOAD_openacc_async_wait): Remove.
5540 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
5541 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
5542 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
5543 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
5544 (cuda_free_argmem): New function.
5545 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
5546 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
5547 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
5548 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
5549 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
5550 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
5551 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
5552 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
5553 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
5554 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
5555 (cuda_callback_wrapper): New function.
5556 (cuda_memcpy_sanity_check): New function.
5557 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
5558 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
5559 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
5560 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
5562 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
5565 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
5567 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
5569 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
5571 2019-03-27 Kevin Buettner <kevinb@redhat.com>
5573 * team.c (gomp_team_start): Initialize pool->threads[0].
5575 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
5577 * testsuite/libgomp.oacc-c++/c++.exp: Specify
5578 "-foffload=$offload_target".
5579 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5580 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5581 * testsuite/lib/libgomp.exp
5582 (check_effective_target_openacc_nvidia_accel_configured): Remove,
5583 as (conceptually) merged into
5584 check_effective_target_openacc_nvidia_accel_selected. Adjust all
5587 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
5588 * testsuite/libgomp-test-support.exp.in: Adjust.
5589 * testsuite/lib/libgomp.exp: Likewise. Don't populate
5590 openacc_device_types_s.
5591 (offload_target_to_openacc_device_type): New proc.
5592 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
5593 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5594 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5595 * Makefile.in: Regenerate.
5596 * configure: Likewise.
5597 * testsuite/Makefile.in: Likewise.
5599 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
5600 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
5601 instead of OFFLOAD_TARGETS.
5602 * target.c (gomp_target_init): Adjust.
5603 * testsuite/libgomp-test-support.exp.in: Likewise.
5604 * testsuite/lib/libgomp.exp: Likewise. Populate
5605 openacc_device_types_s instead of offload_targets_s_openacc.
5606 (check_effective_target_openacc_nvidia_accel_selected)
5607 (check_effective_target_openacc_host_selected): Adjust.
5608 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
5609 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5610 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5611 * Makefile.in: Regenerate.
5612 * config.h.in: Likewise.
5613 * configure: Likewise.
5614 * testsuite/Makefile.in: Likewise.
5616 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
5617 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
5618 "offloading: supported, but hardware not accessible".
5619 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5620 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5622 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
5625 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
5627 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
5628 and related adjustment.
5630 2019-01-30 Jakub Jelinek <jakub@redhat.com>
5633 * testsuite/libgomp.c++/pr88988.C: New test.
5635 2019-01-28 Jakub Jelinek <jakub@redhat.com>
5638 * testsuite/libgomp.c/pr89002.c: New test.
5640 2019-01-28 Richard Biener <rguenther@suse.de>
5643 PR tree-optimization/86865
5644 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
5646 2019-01-24 Tom de Vries <tdevries@suse.de>
5648 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
5649 once instantiated_devices drops to 0.
5651 2019-01-23 Tom de Vries <tdevries@suse.de>
5654 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
5656 (nvptx_exec): Don't call map_push if mapnum == 0.
5657 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
5659 2019-01-23 Tom de Vries <tdevries@suse.de>
5663 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
5664 (map_fini): Remove "assert (!s->map->active)".
5665 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
5667 2019-01-23 Tom de Vries <tdevries@suse.de>
5670 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
5671 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
5673 2019-01-15 Tom de Vries <tdevries@suse.de>
5676 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
5679 2019-01-12 Tom de Vries <tdevries@suse.de>
5681 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
5682 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
5683 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
5684 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
5686 2019-01-12 Tom de Vries <tdevries@suse.de>
5688 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
5690 2019-01-12 Tom de Vries <tdevries@suse.de>
5692 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
5693 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
5694 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
5696 2019-01-12 Tom de Vries <tdevries@suse.de>
5699 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
5700 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
5702 2019-01-12 Tom de Vries <tdevries@suse.de>
5705 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
5706 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
5708 2019-01-12 Tom de Vries <tdevries@suse.de>
5710 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
5711 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
5712 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
5714 2019-01-12 Tom de Vries <tdevries@suse.de>
5716 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
5717 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
5718 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
5720 2019-01-12 Tom de Vries <tdevries@suse.de>
5722 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
5723 resources diagnostic.
5725 2019-01-12 Tom de Vries <tdevries@suse.de>
5727 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
5728 vector length to be 128.
5729 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
5730 length 2097152 to be reduced to 1024 instead of 32.
5732 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
5733 James Norris <jnorris@codesourcery.com>
5735 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
5736 Library Routines", and "Environment Variables".
5738 2019-01-11 Tom de Vries <tdevries@suse.de>
5740 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
5743 2019-01-11 Tom de Vries <tdevries@suse.de>
5745 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
5747 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
5748 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
5749 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
5750 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
5752 2019-01-11 Tom de Vries <tdevries@suse.de>
5754 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
5757 2019-01-10 Nathan Sidwell <nathan@acm.org>
5758 Julian Brown <julian@codesourcery.com>
5761 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
5762 * testsuite/libgomp.oacc-c++/pr71959.C: New.
5764 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5766 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
5769 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5771 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
5772 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
5775 2019-01-09 Tom de Vries <tdevries@suse.de>
5778 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
5779 #define instead of "const int".
5780 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
5781 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
5782 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
5783 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
5785 2019-01-09 Tom de Vries <tdevries@suse.de>
5787 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
5790 2019-01-07 Tom de Vries <tdevries@suse.de>
5792 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
5793 GOMP_OPENACC_DIM argument.
5795 2019-01-03 Tom de Vries <tdevries@suse.de>
5797 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
5798 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
5800 2019-01-01 Jakub Jelinek <jakub@redhat.com>
5802 Update copyright years.
5804 2019-01-01 Jakub Jelinek <jakub@redhat.com>
5806 * libgomp.texi: Bump @copying's copyright year.
5808 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
5810 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
5811 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
5812 (GOACC_declare): Redefine the "device" argument to "flags".
5814 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
5815 Cesar Philippidis <cesar@codesourcery.com>
5817 * target.c (struct gomp_coalesce_chunk): New structure.
5818 (struct gomp_coalesce_buf): Update the chunks member to use that
5819 type. Adjust all users.
5821 2018-12-19 Tom de Vries <tdevries@suse.de>
5823 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
5824 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
5825 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
5827 2018-12-19 Tom de Vries <tdevries@suse.de>
5829 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
5830 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
5831 gcc/testsuite/gcc.dg/goacc.
5832 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
5834 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
5835 Chung-Lin Tang <cltang@codesourcery.com>
5837 * oacc-mem.c (acc_present_or_create): Remove definition and change
5838 to alias of acc_create.
5839 (acc_present_or_copyin): Remove definition and change to alias of
5841 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
5842 of acc_present_or_create.
5843 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
5844 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5845 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5846 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5847 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5848 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5849 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5850 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5851 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5852 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5853 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5854 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5855 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5856 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5857 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5858 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5860 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
5863 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
5864 "identical parameters".
5865 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
5866 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
5869 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
5870 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
5873 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
5874 (nvptx_wait_async): Unseen async-argument is a no-op.
5875 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
5876 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
5877 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5878 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5879 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
5880 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
5881 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
5882 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
5883 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
5885 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
5886 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5888 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
5890 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
5891 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5892 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5894 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
5897 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
5898 (acc_set_cuda_stream): Clarify.
5899 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
5901 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
5903 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
5904 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
5905 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
5906 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5908 2018-12-14 Tom de Vries <tdevries@suse.de>
5910 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
5911 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
5912 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
5913 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
5914 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
5916 2018-12-13 Tom de Vries <tdevries@suse.de>
5918 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
5919 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
5920 * fortran.c (omp_display_affinity_): ... here.
5921 * libgomp.h (gomp_print_string): Declare.
5922 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
5923 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
5926 2018-12-13 Jakub Jelinek <jakub@redhat.com>
5929 * testsuite/libgomp.c++/for-24.C (results): Include it in
5930 omp declare target region.
5931 (main): Use map (always, tofrom: results) instead of
5932 map (tofrom: results).
5934 2018-12-12 Jakub Jelinek <jakub@redhat.com>
5937 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
5938 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
5940 * testsuite/libgomp.c-c++-common/for-16.c: New test.
5942 2018-12-12 Andreas Schwab <schwab@suse.de>
5944 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
5947 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
5950 * testsuite/libgomp.fortran/async_io_8.f90: New test.
5952 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
5953 Jakub Jelinek <jakub@redhat.com>
5955 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
5956 devicep->host2dev_func.
5958 2018-12-08 Jakub Jelinek <jakub@redhat.com>
5961 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
5962 tls_runtime effective target.
5963 (t): New threadprivate variable.
5964 (main): Set t in threads which execute iterations of the worksharing
5965 loop. Propagate that to the task after the loop and don't abort
5966 if the current taskgroup hasn't been cancelled.
5968 2018-12-02 Jakub Jelinek <jakub@redhat.com>
5970 * testsuite/libgomp.c/task-reduction-3.c: New test.
5972 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
5974 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
5977 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
5978 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
5980 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
5982 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
5984 2018-10-19 Richard Biener <rguenther@suse.de>
5986 PR tree-optimization/88182
5987 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
5989 2018-11-26 Jakub Jelinek <jakub@redhat.com>
5991 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
5992 (RUNTEST): Don't define.
5993 (RUNTESTDEFAULTFLAGS): Add.
5994 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
5995 (distclean-am): Depend on distclean-DEJAGNU.
5996 (check-am): If -j% option is present in MFLAGS and if
5997 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
5998 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
5999 * testsuite/Makefile.in: Regenerated.
6001 2018-11-26 Richard Biener <rguenther@suse.de>
6003 PR tree-optimization/88182
6004 * testsuite/libgomp.c++/pr88182.C: New testcase.
6006 2018-11-20 Jakub Jelinek <jakub@redhat.com>
6009 * config/mingw32/affinity-fmt.c: New file.
6011 2018-11-09 Jakub Jelinek <jakub@redhat.com>
6013 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
6014 (gomp_display_affinity): Use __builtin_choose_expr to handle
6015 properly handle argument having integral, or pointer or some other
6016 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
6017 with uint64_t type instead of %llx and unsigned long long.
6019 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
6020 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
6022 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6024 * affinity.c: Include <string.h>, <stdio.h>.
6025 (gomp_display_affinity_place): Remove cpusetp.
6026 * teams.c: Include <limits.h>.
6028 2018-11-08 Jakub Jelinek <jakub@redhat.com>
6030 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
6031 in_reduction clause for s[0].
6033 * affinity.c (gomp_display_affinity_place): New function.
6034 * affinity-fmt.c: New file.
6035 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
6036 * config/linux/affinity.c (gomp_display_affinity_place): New function.
6037 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
6038 Move these functions to ...
6039 * config/nvptx/teams.c: ... here. New file.
6040 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
6042 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
6044 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
6045 and _aligned_malloc.
6046 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
6047 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
6048 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
6049 gomp_affinity_format_len): New variables.
6050 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
6051 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
6052 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
6053 modifiers. Display (non-default) chunk sizes. Print
6054 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
6055 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
6056 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
6057 * fortran.c: Include stdio.h and string.h.
6058 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
6059 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
6060 (omp_set_affinity_format_, omp_get_affinity_format_,
6061 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
6062 omp_pause_resource_all_): New functions.
6063 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
6065 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
6067 * teams.c: ... here. New file.
6068 * libgomp_g.h: Include gstdint.h.
6069 (GOMP_loop_nonmonotonic_runtime_start,
6070 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
6071 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
6072 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
6073 GOMP_parallel_loop_nonmonotonic_runtime,
6074 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
6075 GOMP_loop_ull_nonmonotonic_runtime_start,
6076 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
6077 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
6078 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
6079 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
6080 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
6081 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
6082 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
6083 GOMP_teams_reg): Declare.
6084 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
6085 gomp_aligned_alloc uses fallback implementation.
6086 (gomp_aligned_alloc, gomp_aligned_free): Declare.
6087 (enum gomp_schedule_type): Add GFS_MONOTONIC.
6088 (struct gomp_doacross_work_share): Add extra field.
6089 (struct gomp_work_share): Add task_reductions field.
6090 (struct gomp_taskgroup): Add workshare and reductions fields.
6091 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
6092 (gomp_thread_handle): New typedef.
6093 (gomp_display_affinity_place, gomp_set_affinity_format,
6094 gomp_display_string, gomp_display_affinity,
6095 gomp_display_affinity_thread): Declare.
6096 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
6097 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
6098 gomp_workshare_task_reduction_register): Declare.
6099 (gomp_team_start): Add taskgroup argument.
6100 (gomp_pause_host): Declare.
6101 (gomp_init_work_share, gomp_work_share_start): Change bool argument
6103 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
6104 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
6105 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
6106 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
6107 GOMP_loop_ull_doacross_start,
6108 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
6109 GOMP_loop_maybe_nonmonotonic_runtime_next,
6110 GOMP_loop_maybe_nonmonotonic_runtime_start,
6111 GOMP_loop_nonmonotonic_runtime_next,
6112 GOMP_loop_nonmonotonic_runtime_start,
6113 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
6114 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
6115 GOMP_loop_ull_nonmonotonic_runtime_next,
6116 GOMP_loop_ull_nonmonotonic_runtime_start,
6117 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
6118 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
6119 GOMP_taskgroup_reduction_register,
6120 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
6121 GOMP_teams_reg and GOMP_taskwait_depend.
6122 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
6123 omp_{capture,display}_affinity{,_}, and
6124 omp_[gs]et_affinity_format{,_}.
6125 * loop.c: Include string.h.
6126 (GOMP_loop_runtime_next): Add ialias.
6127 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
6128 (gomp_loop_static_start, gomp_loop_dynamic_start,
6129 gomp_loop_guided_start, gomp_loop_ordered_static_start,
6130 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
6131 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
6132 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
6133 or gomp_doacross_init callers.
6134 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
6135 GOMP_loop_doacross_start): New functions.
6136 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
6137 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
6138 Mask off GFS_MONOTONIC bit.
6139 (GOMP_loop_maybe_nonmonotonic_runtime_next,
6140 GOMP_loop_maybe_nonmonotonic_runtime_start,
6141 GOMP_loop_nonmonotonic_runtime_next,
6142 GOMP_loop_nonmonotonic_runtime_start,
6143 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
6144 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
6146 (gomp_parallel_loop_start): Pass NULL as taskgroup to
6148 * loop_ull.c: Include string.h.
6149 (GOMP_loop_ull_runtime_next): Add ialias.
6150 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
6151 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
6152 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
6153 gomp_loop_ull_ordered_dynamic_start,
6154 gomp_loop_ull_ordered_guided_start,
6155 gomp_loop_ull_doacross_static_start,
6156 gomp_loop_ull_doacross_dynamic_start,
6157 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
6158 and gomp_doacross_ull_init callers.
6159 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
6160 GOMP_loop_ull_doacross_start): New functions.
6161 (GOMP_loop_ull_runtime_start,
6162 GOMP_loop_ull_ordered_runtime_start,
6163 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
6164 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
6165 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
6166 GOMP_loop_ull_nonmonotonic_runtime_next,
6167 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
6168 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
6169 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
6170 (omp_pause_resource_t, omp_depend_t): New typedefs.
6171 (enum omp_lock_hint_t): Renamed to ...
6172 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
6173 enumerators using numbers and omp_lock_hint_* as their aliases.
6174 (omp_lock_hint_t): New typedef. Rename to ...
6175 (omp_sync_hint_t): ... this.
6176 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
6177 omp_sync_hint_t instead of omp_lock_hint_t.
6178 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
6179 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
6181 (omp_target_is_present, omp_target_disassociate_ptr):
6182 Change first argument from void * to const void *.
6183 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
6184 from void * to const void *.
6185 (omp_target_associate_ptr): Change first and second arguments from
6186 void * to const void *.
6187 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
6188 omp_pause_hard): New parameters.
6189 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
6190 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
6192 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
6193 omp_pause_hard): New parameters.
6194 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
6195 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
6197 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
6198 EXTRA argument. If not needed to prepare array, if extra is 0,
6199 clear ws->doacross, otherwise allocate just doacross structure and
6200 extra payload. If array is needed, allocate also extra payload.
6201 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
6202 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
6204 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
6206 (GOMP_parallel): Likewise. Formatting fix.
6207 (GOMP_parallel_reductions): New function.
6208 (GOMP_cancellation_point): If taskgroup has workshare
6209 flag set, check cancelled of prev taskgroup if any.
6210 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
6211 on prev taskgroup if any.
6212 * sections.c: Include string.h.
6213 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
6214 (GOMP_sections_start): Adjust gomp_work_share_start caller.
6215 (GOMP_sections2_start): New function.
6216 (GOMP_parallel_sections_start, GOMP_parallel_sections):
6217 Pass NULL as taskgroup to gomp_team_start.
6218 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
6219 gomp_work_share_start callers.
6220 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
6221 If taskgroup has workshare flag set, check cancelled on prev
6222 taskgroup if any. Guard all cancellation tests with
6223 gomp_cancel_var test.
6224 (omp_target_is_present, omp_target_disassociate_ptr):
6225 Change ptr argument from void * to const void *.
6226 (omp_target_memcpy): Change src argument from void * to const void *.
6227 (omp_target_memcpy_rect): Likewise.
6228 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
6229 instead of char * where needed.
6230 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
6231 from void * to const void *.
6232 (omp_pause_resource, omp_pause_resource_all): New functions.
6233 * task.c (gomp_task_handle_depend): Handle new depend array format
6234 in addition to the old. Handle mutexinoutset kinds the same as
6235 inout for now, handle unspecified kinds.
6236 (gomp_create_target_task): If taskgroup has workshare flag set, check
6237 cancelled on prev taskgroup if any. Guard all cancellation tests with
6238 gomp_cancel_var test. Handle new depend array format count in
6239 addition to the old.
6240 (GOMP_task): Likewise. Adjust function comment.
6241 (gomp_task_run_pre): If taskgroup has workshare flag set, check
6242 cancelled on prev taskgroup if any. Guard all cancellation tests with
6243 gomp_cancel_var test.
6244 (GOMP_taskwait_depend): New function.
6245 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
6246 format in addition to the old. Handle mutexinoutset kinds the same as
6247 inout for now, handle unspecified kinds. Fix a function comment typo.
6248 (gomp_taskgroup_init): New function.
6249 (GOMP_taskgroup_start): Use it.
6250 (gomp_reduction_register, gomp_create_artificial_team,
6251 GOMP_taskgroup_reduction_register,
6252 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
6253 gomp_parallel_reduction_register,
6254 gomp_workshare_task_reduction_register,
6255 gomp_workshare_taskgroup_start,
6256 GOMP_workshare_task_reduction_unregister): New functions.
6257 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
6258 check cancelled on prev taskgroup if any. Guard all cancellation
6259 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
6260 by calling GOMP_taskgroup_reduction_register.
6261 * team.c (gomp_thread_attr): Remove comment.
6262 (struct gomp_thread_start_data): Add handle field.
6263 (gomp_thread_start): Call pthread_detach.
6264 (gomp_new_team): Adjust gomp_init_work_share caller.
6265 (gomp_free_pool_helper): Call pthread_detach.
6266 (gomp_team_start): Add taskgroup argument, initialize implicit
6267 tasks' taskgroup field to that. Don't call
6268 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
6269 (gomp_team_end): Determine nesting by thr->ts.level != 0
6270 rather than thr->ts.team != NULL.
6271 (gomp_pause_pool_helper, gomp_pause_host): New functions.
6272 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
6273 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
6274 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
6275 if more than 1 allocate also extra payload at the end of array. Never
6276 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
6277 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
6278 return true instead of ws.
6279 * Makefile.in: Regenerated.
6280 * configure: Regenerated.
6281 * config.h.in: Regenerated.
6282 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
6284 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
6285 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
6286 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
6287 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
6288 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
6289 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
6290 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
6291 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
6292 * testsuite/libgomp.c-c++-common/for-10.c: New test.
6293 * testsuite/libgomp.c-c++-common/for-11.c: New test.
6294 * testsuite/libgomp.c-c++-common/for-12.c: New test.
6295 * testsuite/libgomp.c-c++-common/for-13.c: New test.
6296 * testsuite/libgomp.c-c++-common/for-14.c: New test.
6297 * testsuite/libgomp.c-c++-common/for-15.c: New test.
6298 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
6299 define a different N(test), don't define N(f0) to N(f14), but instead
6300 define N(f20) to N(f34) using != comparisons.
6301 * testsuite/libgomp.c-c++-common/for-7.c: New test.
6302 * testsuite/libgomp.c-c++-common/for-8.c: New test.
6303 * testsuite/libgomp.c-c++-common/for-9.c: New test.
6304 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
6305 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
6306 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
6307 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
6308 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
6309 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
6310 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
6311 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
6312 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
6313 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
6314 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
6315 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
6316 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
6317 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
6318 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
6319 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
6320 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
6321 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
6322 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
6323 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
6324 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
6325 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
6326 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
6327 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
6328 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
6329 * testsuite/libgomp.c++/depend-1.C: New test.
6330 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
6331 * testsuite/libgomp.c++/depobj-1.C: New test.
6332 * testsuite/libgomp.c++/for-16.C: New test.
6333 * testsuite/libgomp.c++/for-21.C: New test.
6334 * testsuite/libgomp.c++/for-22.C: New test.
6335 * testsuite/libgomp.c++/for-23.C: New test.
6336 * testsuite/libgomp.c++/for-24.C: New test.
6337 * testsuite/libgomp.c++/for-25.C: New test.
6338 * testsuite/libgomp.c++/for-26.C: New test.
6339 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
6340 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
6341 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
6342 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
6343 * testsuite/libgomp.c++/task-reduction-10.C: New test.
6344 * testsuite/libgomp.c++/task-reduction-11.C: New test.
6345 * testsuite/libgomp.c++/task-reduction-12.C: New test.
6346 * testsuite/libgomp.c++/task-reduction-13.C: New test.
6347 * testsuite/libgomp.c++/task-reduction-14.C: New test.
6348 * testsuite/libgomp.c++/task-reduction-15.C: New test.
6349 * testsuite/libgomp.c++/task-reduction-16.C: New test.
6350 * testsuite/libgomp.c++/task-reduction-17.C: New test.
6351 * testsuite/libgomp.c++/task-reduction-18.C: New test.
6352 * testsuite/libgomp.c++/task-reduction-19.C: New test.
6353 * testsuite/libgomp.c/task-reduction-1.c: New test.
6354 * testsuite/libgomp.c++/task-reduction-1.C: New test.
6355 * testsuite/libgomp.c/task-reduction-2.c: New test.
6356 * testsuite/libgomp.c++/task-reduction-2.C: New test.
6357 * testsuite/libgomp.c++/task-reduction-3.C: New test.
6358 * testsuite/libgomp.c++/task-reduction-4.C: New test.
6359 * testsuite/libgomp.c++/task-reduction-5.C: New test.
6360 * testsuite/libgomp.c++/task-reduction-6.C: New test.
6361 * testsuite/libgomp.c++/task-reduction-7.C: New test.
6362 * testsuite/libgomp.c++/task-reduction-8.C: New test.
6363 * testsuite/libgomp.c++/task-reduction-9.C: New test.
6364 * testsuite/libgomp.c/teams-1.c: New test.
6365 * testsuite/libgomp.c/teams-2.c: New test.
6366 * testsuite/libgomp.c/thread-limit-4.c: New test.
6367 * testsuite/libgomp.c/thread-limit-5.c: New test.
6368 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
6370 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
6372 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
6373 acc_memcpy_to/from_device functions, now with async parameter.
6374 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
6375 (acc_memcpy_from_device): Likewise.
6376 (acc_memcpy_to_device_async): New API function.
6377 (acc_memcpy_from_device_async): Likewise.
6378 (present_create_copy): Add async parameter and async setting/unsetting.
6379 (acc_create): Adjust present_create_copy call.
6380 (acc_copyin): Likewise.
6381 (acc_present_or_create): Likewise.
6382 (acc_present_or_copyin): Likewise.
6383 (acc_create_async): New API function.
6384 (acc_copyin_async): New API function.
6385 (delete_copyout): Add async parameter and async setting/unsetting.
6386 (acc_delete): Adjust delete_copyout call.
6387 (acc_copyout): Likewise.
6388 (acc_delete_async): New API function.
6389 (acc_copyout_async): Likewise.
6390 (update_dev_host): Add async parameter and async setting/unsetting.
6391 (acc_update_device): Adjust update_dev_host call.
6392 (acc_update_self): Likewise.
6393 (acc_update_device_async): New API function.
6394 (acc_update_self_async): Likewise.
6395 * openacc.h (acc_copyin_async): Declare new API function.
6396 (acc_create_async): Likewise.
6397 (acc_copyout_async): Likewise.
6398 (acc_delete_async): Likewise.
6399 (acc_update_device_async): Likewise.
6400 (acc_update_self_async): Likewise.
6401 (acc_memcpy_to_device_async): Likewise.
6402 (acc_memcpy_from_device_async): Likewise.
6403 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
6404 (acc_copyin_async_64_h): New subroutine.
6405 (acc_copyin_async_array_h): New subroutine.
6406 (acc_create_async_32_h): New subroutine.
6407 (acc_create_async_64_h): New subroutine.
6408 (acc_create_async_array_h): New subroutine.
6409 (acc_copyout_async_32_h): New subroutine.
6410 (acc_copyout_async_64_h): New subroutine.
6411 (acc_copyout_async_array_h): New subroutine.
6412 (acc_delete_async_32_h): New subroutine.
6413 (acc_delete_async_64_h): New subroutine.
6414 (acc_delete_async_array_h): New subroutine.
6415 (acc_update_device_async_32_h): New subroutine.
6416 (acc_update_device_async_64_h): New subroutine.
6417 (acc_update_device_async_array_h): New subroutine.
6418 (acc_update_self_async_32_h): New subroutine.
6419 (acc_update_self_async_64_h): New subroutine.
6420 (acc_update_self_async_array_h): New subroutine.
6421 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
6422 (acc_copyin_async_64_h): New subroutine.
6423 (acc_copyin_async_array_h): New subroutine.
6424 (acc_create_async_32_h): New subroutine.
6425 (acc_create_async_64_h): New subroutine.
6426 (acc_create_async_array_h): New subroutine.
6427 (acc_copyout_async_32_h): New subroutine.
6428 (acc_copyout_async_64_h): New subroutine.
6429 (acc_copyout_async_array_h): New subroutine.
6430 (acc_delete_async_32_h): New subroutine.
6431 (acc_delete_async_64_h): New subroutine.
6432 (acc_delete_async_array_h): New subroutine.
6433 (acc_update_device_async_32_h): New subroutine.
6434 (acc_update_device_async_64_h): New subroutine.
6435 (acc_update_device_async_array_h): New subroutine.
6436 (acc_update_self_async_32_h): New subroutine.
6437 (acc_update_self_async_64_h): New subroutine.
6438 (acc_update_self_async_array_h): New subroutine.
6439 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
6440 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
6441 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
6442 acc_memcpy_to_device_async*, acc_update_device_async*, and
6443 acc_update_self_async* entries.
6444 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
6445 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
6446 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
6448 2018-10-31 Joseph Myers <joseph@codesourcery.com>
6451 * Makefile.am: Include multilib.am
6452 (AUTOMAKE_OPTIONS): Add info-in-builddir.
6453 (CLEANFILES): Remove libgomp.info.
6454 * configure.ac: Remove AC_PREREQ.
6455 * testsuite/Makefile.am (RUNTEST): Remove quotes.
6456 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
6459 2018-10-29 Joseph Myers <joseph@codesourcery.com>
6460 Julian Brown <julian@codesourcery.com>
6462 * testsuite/libgomp.oacc-c++/this.C: New.
6464 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
6466 * plugin/plugin-nvptx.c (struct cuda_map): New.
6467 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
6468 h_tail with (cuda_map *) map.
6469 (cuda_map_create): New function.
6470 (cuda_map_destroy): New function.
6471 (map_init): Update to use a linked list of cuda_map objects.
6472 (map_fini): Likewise.
6473 (map_pop): Likewise.
6474 (map_push): Likewise. Return CUdeviceptr instead of void.
6475 (init_streams_for_device): Remove stales references to ptx_stream
6477 (select_stream_for_async): Likewise.
6478 (nvptx_exec): Update call to map_init.
6480 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
6481 Julian Brown <julian@codesourcery.com>
6484 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
6486 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
6487 Thomas Koenig <tkoenig@gcc.gnu.org>
6490 * testsuite/libgomp.fortran/async_io_1.f90: New test.
6491 * testsuite/libgomp.fortran/async_io_2.f90: New test.
6492 * testsuite/libgomp.fortran/async_io_3.f90: New test.
6493 * testsuite/libgomp.fortran/async_io_4.f90: New test.
6494 * testsuite/libgomp.fortran/async_io_5.f90: New test.
6495 * testsuite/libgomp.fortran/async_io_6.f90: New test.
6496 * testsuite/libgomp.fortran/async_io_7.f90: New test.
6498 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
6499 Tom de Vries <tdevries@suse.de>
6502 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
6503 (cuOccupancyMaxPotentialBlockSize): Declare.
6504 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
6505 CUDA_ONE_CALL_MAYBE_NULL.
6506 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
6507 CUoccupancyB2DSize and declare
6508 cuOccupancyMaxPotentialBlockSize.
6509 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
6510 default num_gangs and num_workers when the driver supports it.
6512 2018-08-08 Tom de Vries <tdevries@suse.de>
6514 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
6515 CUDA_ONE_CALL_MAYBE_NULL.
6516 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
6517 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
6518 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
6521 2018-08-08 Tom de Vries <tdevries@suse.de>
6523 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
6524 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
6527 2018-08-08 Tom de Vries <tdevries@suse.de>
6529 * plugin/plugin-nvptx.c
6530 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
6531 (nvptx_open_device): Use
6532 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
6534 2018-08-08 Tom de Vries <tdevries@suse.de>
6536 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
6537 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
6539 2018-08-07 Tom de Vries <tdevries@suse.de>
6541 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
6542 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
6543 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
6544 corresponding call in CUDA_ONE_CALL. Add def/undef of
6545 CUDA_ONE_CALL_MAYBE_NULL.
6546 (CUDA_CALL_EXISTS): Define.
6548 2018-08-07 Tom de Vries <tdevries@suse.de>
6550 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
6551 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
6552 corresponding undefs right after.
6554 2018-08-04 Tom de Vries <tdevries@suse.de>
6556 * plugin/configfrag.ac: For --without-cuda-driver, set
6557 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
6558 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
6559 * configure: Regenerate.
6561 2018-08-02 Tom de Vries <tdevries@suse.de>
6564 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
6565 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
6566 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
6568 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
6569 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
6570 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
6572 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
6573 Thomas Schwinge <thomas@codesourcery.com>
6575 * config/nvptx/oacc-parallel.c: Truncate.
6577 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
6578 James Norris <jnorris@codesourcery.com>
6580 * plugin/plugin-nvptx.c (struct map): Removed.
6581 (map_init, map_pop): Remove use of struct map.
6582 (map_push): Likewise and change argument list.
6583 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
6585 2018-08-01 Tom de Vries <tdevries@suse.de>
6587 * plugin/cuda-lib.def: New file. Factor out of ...
6588 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
6589 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
6592 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6594 Revert 'AsyncI/O patch committed'.
6595 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
6596 Thomas Koenig <tkoenig@gcc.gnu.org>
6599 * testsuite/libgomp.fortran/async_io_1.f90: New test.
6600 * testsuite/libgomp.fortran/async_io_2.f90: New test.
6601 * testsuite/libgomp.fortran/async_io_3.f90: New test.
6602 * testsuite/libgomp.fortran/async_io_4.f90: New test.
6603 * testsuite/libgomp.fortran/async_io_5.f90: New test.
6604 * testsuite/libgomp.fortran/async_io_6.f90: New test.
6605 * testsuite/libgomp.fortran/async_io_7.f90: New test.
6607 2018-07-30 Tom de Vries <tdevries@suse.de>
6609 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
6610 (nvptx_exec): Ensure worker and vector default dims don't exceed
6611 targ_fn->max_threads_per_block.
6613 2018-07-30 Tom de Vries <tdevries@suse.de>
6615 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
6616 (nvptx_open_device): Init default_dims for device.
6617 (nvptx_exec): Use default_dims from device.
6619 2018-07-26 Jakub Jelinek <jakub@redhat.com>
6622 * testsuite/libgomp.c++/for-15.C (results): Include it in
6623 omp declare target region.
6624 (main): Use map (always, tofrom: results) instead of
6625 map (tofrom: results).
6628 * testsuite/libgomp.c/pr86660.c: New test.
6630 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
6631 Tom de Vries <tdevries@suse.de>
6633 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
6634 sufficient resources to launch a kernel, and give a hint on how to fix
6637 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
6638 Tom de Vries <tdevries@suse.de>
6640 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
6641 max_threads_per_block and max_threads_per_multiprocessor fields.
6642 (nvptx_open_device): Initialize new fields.
6643 (nvptx_exec): Use num_sms, and new fields.
6645 2018-07-26 Tom de Vries <tdevries@suse.de>
6647 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
6648 to correct locations. Remove xfail.
6650 2018-07-26 Tom de Vries <tdevries@suse.de>
6652 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
6653 acc_wait. Move acc_async_test calls to correct locations. Remove
6656 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
6657 Thomas Koenig <tkoenig@gcc.gnu.org>
6660 * testsuite/libgomp.fortran/async_io_1.f90: New test.
6661 * testsuite/libgomp.fortran/async_io_2.f90: New test.
6662 * testsuite/libgomp.fortran/async_io_3.f90: New test.
6663 * testsuite/libgomp.fortran/async_io_4.f90: New test.
6664 * testsuite/libgomp.fortran/async_io_5.f90: New test.
6665 * testsuite/libgomp.fortran/async_io_6.f90: New test.
6666 * testsuite/libgomp.fortran/async_io_7.f90: New test.
6668 2018-07-17 Jakub Jelinek <jakub@redhat.com>
6671 * testsuite/libgomp.c++/pr86542.C: New test.
6674 * testsuite/libgomp.c++/pr86539.C: New test.
6676 2018-07-11 Jakub Jelinek <jakub@redhat.com>
6679 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
6680 (results): Make sure the variable is not inside declare target region.
6681 (qux): Remove unused function.
6683 2018-07-10 Jakub Jelinek <jakub@redhat.com>
6686 * testsuite/libgomp.c++/for-15.C: New test.
6688 2018-06-26 Jakub Jelinek <jakub@redhat.com>
6691 * testsuite/libgomp.c++/pr86291.C: New test.
6693 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
6695 * libgomp.texi (Top): Move www.openmp.org to https.
6696 (Enabling OpenMP): Ditto.
6697 (omp_get_active_level): Ditto.
6698 (omp_get_ancestor_thread_num): Ditto.
6699 (omp_get_cancellation): Ditto.
6700 (omp_get_default_device): Ditto.
6701 (omp_get_dynamic): Ditto.
6702 (omp_get_level): Ditto.
6703 (omp_get_max_active_levels): Ditto.
6704 (omp_get_max_task_priority): Ditto.
6705 (omp_get_max_threads): Ditto.
6706 (omp_get_nested): Ditto.
6707 (omp_get_num_devices): Ditto.
6708 (omp_get_num_procs): Ditto.
6709 (omp_get_num_teams): Ditto.
6710 (omp_get_num_threads): Ditto.
6711 (omp_get_proc_bind): Ditto.
6712 (omp_get_schedule): Ditto.
6713 (omp_get_team_num): Ditto.
6714 (omp_get_team_size): Ditto.
6715 (omp_get_thread_limit): Ditto.
6716 (omp_get_thread_num): Ditto.
6717 (omp_in_parallel): Ditto.
6718 (omp_in_final): Ditto.
6719 (omp_is_initial_device): Ditto.
6720 (omp_set_default_device): Ditto.
6721 (omp_set_dynamic): Ditto.
6722 (omp_set_max_active_levels): Ditto.
6723 (omp_set_nested): Ditto.
6724 (omp_set_num_threads): Ditto.
6725 (omp_set_schedule): Ditto.
6726 (omp_init_lock): Ditto.
6727 (omp_set_lock): Ditto.
6728 (omp_test_lock): Ditto.
6729 (omp_unset_lock): Ditto.
6730 (omp_destroy_lock): Ditto.
6731 (omp_init_nest_lock): Ditto.
6732 (omp_set_nest_lock): Ditto.
6733 (omp_test_nest_lock): Ditto.
6734 (omp_unset_nest_lock): Ditto.
6735 (omp_destroy_nest_lock): Ditto.
6736 (omp_get_wtick): Ditto.
6737 (omp_get_wtime): Ditto.
6738 (OMP_CANCELLATION): Ditto.
6739 (OMP_DISPLAY_ENV): Ditto.
6740 (OMP_DEFAULT_DEVICE): Ditto.
6741 (OMP_DYNAMIC): Ditto.
6742 (OMP_MAX_ACTIVE_LEVELS): Ditto.
6743 (OMP_MAX_TASK_PRIORITY): Ditto.
6744 (OMP_NESTED): Ditto.
6745 (OMP_NUM_THREADS): Ditto.
6746 (OMP_PROC_BIND): Ditto.
6747 (OMP_PLACES): Ditto.
6748 (OMP_STACKSIZE): Ditto.
6749 (OMP_SCHEDULE): Ditto.
6750 (OMP_THREAD_LIMIT): Ditto.
6751 (OMP_WAIT_POLICY): Ditto.
6753 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
6754 James Norris <jnorris@codesourcery.com>
6755 Julian Brown <julian@codesourcery.com>
6756 Thomas Schwinge <thomas@codesourcery.com>
6757 Tom de Vries <tom@codesourcery.com>
6759 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
6760 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
6761 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
6762 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
6763 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
6764 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
6765 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
6766 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
6767 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
6768 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
6770 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6772 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6774 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
6776 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
6778 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6780 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
6782 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
6784 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
6786 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
6788 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
6790 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
6792 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
6794 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
6796 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
6798 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
6800 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
6802 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
6804 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
6806 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
6808 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
6810 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
6812 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
6814 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
6816 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
6818 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
6820 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
6822 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
6823 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
6824 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
6825 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
6826 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
6827 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
6828 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
6829 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
6830 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
6832 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
6834 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
6835 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
6836 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
6838 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
6839 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
6840 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
6842 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6844 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6846 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6848 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6850 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
6852 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
6854 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
6856 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
6858 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
6860 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
6862 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
6864 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
6866 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
6868 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
6870 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
6871 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
6872 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
6873 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
6874 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
6875 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
6876 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
6878 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
6879 Thomas Schwinge <thomas@codesourcery.com>
6880 Cesar Philippidis <cesar@codesourcery.com>
6882 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
6883 (gomp_acc_remove_pointer): Update declaration.
6884 (gomp_acc_declare_allocate): Declare.
6885 (gomp_remove_var): Declare.
6886 * libgomp.map (OACC_2.5): Define.
6887 * oacc-mem.c (acc_map_data): Update refcount.
6888 (acc_unmap_data): Likewise.
6889 (present_create_copy): Likewise.
6890 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
6891 (acc_copyin): Likewise.
6892 (FLAG_FINALIZE): Define.
6893 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
6894 (acc_delete_finalize): New function.
6895 (acc_delete_finalize_async): New function.
6896 (acc_copyout_finalize): New function.
6897 (acc_copyout_finalize_async): New function.
6898 (gomp_acc_insert_pointer): Update refcounts.
6899 (gomp_acc_remove_pointer): Return if data is not present on the
6901 * oacc-parallel.c (find_pset): Rename to find_pointer.
6902 (find_pointer): Add support for GOMP_MAP_POINTER.
6903 (handle_ftn_pointers): New function.
6904 (GOACC_parallel_keyed): Update refcounts of variables.
6905 (GOACC_enter_exit_data): Add support for finalized data mappings.
6906 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
6908 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
6909 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
6910 for GOMP_MAP_FORCE_FROM.
6911 * openacc.f90 (module openacc_internal): Add
6912 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
6913 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
6914 acc_copyout_finalize and acc_delete_finalize.
6915 (acc_copyout_finalize_32_h): New subroutine.
6916 (acc_copyout_finalize_64_h): New subroutine.
6917 (acc_copyout_finalize_array_h): New subroutine.
6918 (acc_delete_finalize_32_h): New subroutine.
6919 (acc_delete_finalize_64_h): New subroutine.
6920 (acc_delete_finalize_array_h): New subroutine.
6921 * openacc.h (acc_copyout_finalize): Declare.
6922 (acc_copyout_finalize_async): Declare.
6923 (acc_delete_finalize): Declare.
6924 (acc_delete_finalize_async): Declare.
6925 * openacc_lib.h (acc_copyout_finalize): New interface.
6926 (acc_delete_finalize): New interface.
6927 * target.c (gomp_map_vars): Update dynamic_refcount.
6928 (gomp_remove_var): New function.
6929 (gomp_unmap_vars): Use it.
6930 (gomp_unload_image_from_device): Likewise.
6931 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
6932 case to utilize OpenACC 2.5 data clause semantics.
6933 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6934 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6935 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6936 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6937 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6938 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6939 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6940 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6941 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6942 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
6943 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6944 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
6945 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
6946 utilize OpenACC 2.5 data clause semantics.
6947 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6948 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6949 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6950 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6951 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6952 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6953 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6954 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
6955 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
6957 2018-05-21 Janus Weil <janus@gcc.gnu.org>
6961 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
6962 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
6963 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
6964 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
6965 * testsuite/libgomp.fortran/task2.f90: Ditto.
6966 * testsuite/libgomp.fortran/vla1.f90: Ditto.
6967 * testsuite/libgomp.fortran/vla2.f90: Ditto.
6968 * testsuite/libgomp.fortran/vla3.f90: Ditto.
6969 * testsuite/libgomp.fortran/vla4.f90: Ditto.
6970 * testsuite/libgomp.fortran/vla5.f90: Ditto.
6971 * testsuite/libgomp.fortran/vla6.f90: Ditto.
6972 * testsuite/libgomp.fortran/vla8.f90: Ditto.
6973 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
6974 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
6976 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
6979 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
6981 2018-05-09 Tom de Vries <tom@codesourcery.com>
6984 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
6985 to GOACC_enter_exit_data.
6987 2018-05-09 Tom de Vries <tom@codesourcery.com>
6990 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
6991 (async_synchronous_p): New function.
6992 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
6994 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
6995 async_valid_stream_id_p.
6996 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
6997 * oacc-parallel.c (GOACC_parallel_keyed): Same.
6999 2018-05-07 Tom de Vries <tom@codesourcery.com>
7002 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
7003 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
7005 2018-05-03 Tom de Vries <tom@codesourcery.com>
7008 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
7009 extra_tool_flags if it contains an -foffload=-fdump-* flag.
7010 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
7011 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
7013 2018-05-02 Tom de Vries <tom@codesourcery.com>
7016 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
7017 GOMP_OPENACC_DIM ...
7018 * env.c (parse_gomp_openacc_dim): ... here. New function.
7019 (initialize_env): Call parse_gomp_openacc_dim.
7020 (goacc_default_dims): Define.
7021 * libgomp.h (goacc_default_dims): Declare.
7022 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
7023 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
7024 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
7025 GOMP_PLUGIN_acc_default_dim.
7026 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
7027 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
7029 2018-05-02 Tom de Vries <tom@codesourcery.com>
7032 * testsuite/libgomp.c++/udr-9.C: Update.
7033 * testsuite/libgomp.c++/atomic-16.C: Remove.
7034 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
7035 * testsuite/libgomp.c++/loop-13.C: Remove.
7036 * testsuite/libgomp.c++/loop-14.C: Remove.
7037 * testsuite/libgomp.c++/loop-15.C: Remove.
7038 * testsuite/libgomp.c++/monotonic-1.C: Remove.
7039 * testsuite/libgomp.c++/monotonic-2.C: Remove.
7040 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
7041 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
7042 * testsuite/libgomp.c++/ordered-1.C: Remove.
7043 * testsuite/libgomp.c++/pr45784.C: Remove.
7044 * testsuite/libgomp.c++/pr64824.C: Remove.
7045 * testsuite/libgomp.c++/pr64868.C: Remove.
7046 * testsuite/libgomp.c++/pr66199-1.C: Remove.
7047 * testsuite/libgomp.c++/pr66199-2.C: Remove.
7048 * testsuite/libgomp.c++/pr66199-3.C: Remove.
7049 * testsuite/libgomp.c++/pr66199-4.C: Remove.
7050 * testsuite/libgomp.c++/pr66199-5.C: Remove.
7051 * testsuite/libgomp.c++/pr66199-6.C: Remove.
7052 * testsuite/libgomp.c++/pr66199-7.C: Remove.
7053 * testsuite/libgomp.c++/pr66199-8.C: Remove.
7054 * testsuite/libgomp.c++/pr66199-9.C: Remove.
7055 * testsuite/libgomp.c++/pr69389.C: Remove.
7056 * testsuite/libgomp.c++/simd10.C: Remove.
7057 * testsuite/libgomp.c++/simd11.C: Remove.
7058 * testsuite/libgomp.c++/simd12.C: Remove.
7059 * testsuite/libgomp.c++/simd13.C: Remove.
7060 * testsuite/libgomp.c++/target-1.C: Remove.
7061 * testsuite/libgomp.c++/target-3.C: Remove.
7062 * testsuite/libgomp.c++/target-4.C: Remove.
7063 * testsuite/libgomp.c++/target-5.C: Remove.
7064 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
7065 * testsuite/libgomp.c++/taskloop-1.C: Remove.
7066 * testsuite/libgomp.c++/taskloop-2.C: Remove.
7067 * testsuite/libgomp.c++/taskloop-3.C: Remove.
7068 * testsuite/libgomp.c++/taskloop-4.C: Remove.
7069 * testsuite/libgomp.c++/udr-9.C: Remove.
7070 * testsuite/libgomp.c++/for-10.C: Remove.
7071 * testsuite/libgomp.c++/for-11.C: Remove.
7072 * testsuite/libgomp.c++/for-12.C: Remove.
7073 * testsuite/libgomp.c++/for-13.C: Remove.
7074 * testsuite/libgomp.c++/for-14.C: Remove.
7075 * testsuite/libgomp.c++/for-9.C: Remove.
7076 * testsuite/libgomp.c/atomic-18.c: Move ...
7077 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
7078 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
7079 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
7080 * testsuite/libgomp.c/loop-13.c: Move ...
7081 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
7082 * testsuite/libgomp.c/loop-14.c: Move ...
7083 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
7084 * testsuite/libgomp.c/loop-15.c: Remove.
7085 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
7086 * testsuite/libgomp.c/monotonic-1.c: Move ...
7087 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
7088 * testsuite/libgomp.c/monotonic-2.c: Move ...
7089 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
7090 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
7091 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
7092 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
7093 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
7094 * testsuite/libgomp.c/ordered-4.c: Move ...
7095 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
7096 * testsuite/libgomp.c/pr45784.c: Move ...
7097 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
7098 * testsuite/libgomp.c/pr64824.c: Move ...
7099 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
7100 * testsuite/libgomp.c/pr64868.c: Move ...
7101 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
7102 * testsuite/libgomp.c/pr66199-1.c: Move ...
7103 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
7104 * testsuite/libgomp.c/pr66199-2.c: Move ...
7105 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
7106 * testsuite/libgomp.c/pr66199-3.c: Move ...
7107 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
7108 * testsuite/libgomp.c/pr66199-4.c: Move ...
7109 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
7110 * testsuite/libgomp.c/pr66199-5.c: Move ...
7111 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
7112 * testsuite/libgomp.c/pr66199-6.c: Move ...
7113 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
7114 * testsuite/libgomp.c/pr66199-7.c: Move ...
7115 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
7116 * testsuite/libgomp.c/pr66199-8.c: Move ...
7117 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
7118 * testsuite/libgomp.c/pr66199-9.c: Move ...
7119 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
7120 * testsuite/libgomp.c/pr69389.c: Move ...
7121 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
7122 * testsuite/libgomp.c/simd-14.c: Move ...
7123 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
7124 * testsuite/libgomp.c/simd-15.c: Move ...
7125 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
7126 * testsuite/libgomp.c/simd-16.c: Move ...
7127 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
7128 * testsuite/libgomp.c/simd-17.c: Move ...
7129 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
7130 * testsuite/libgomp.c/target-1.c: Move ...
7131 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
7132 * testsuite/libgomp.c/target-10.c: Move ...
7133 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
7134 * testsuite/libgomp.c/target-13.c: Move ...
7135 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
7136 * testsuite/libgomp.c/target-2.c: Move ...
7137 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
7138 * testsuite/libgomp.c/taskgroup-1.c: Move ...
7139 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
7140 * testsuite/libgomp.c/taskloop-1.c: Move ...
7141 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
7142 * testsuite/libgomp.c/taskloop-2.c: Move ...
7143 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
7144 * testsuite/libgomp.c/taskloop-3.c: Move ...
7145 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
7146 * testsuite/libgomp.c/taskloop-4.c: Move ...
7147 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
7148 * testsuite/libgomp.c/udr-1.c: Move ...
7149 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
7150 * testsuite/libgomp.c/for-1.c: Move ...
7151 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
7152 * testsuite/libgomp.c/for-1.h: Move ...
7153 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
7154 * testsuite/libgomp.c/for-2.c: Move ...
7155 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
7156 * testsuite/libgomp.c/for-2.h: Move ...
7157 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
7158 * testsuite/libgomp.c/for-3.c: Move ...
7159 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
7160 * testsuite/libgomp.c/for-4.c: Move ...
7161 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
7162 * testsuite/libgomp.c/for-5.c: Move ...
7163 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
7164 * testsuite/libgomp.c/for-6.c: Move ...
7165 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
7167 2018-05-02 Tom de Vries <tom@codesourcery.com>
7170 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
7171 __builtin_goacc_parlevel_{id,size}.
7172 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
7173 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
7174 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
7175 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
7176 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
7177 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
7178 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
7179 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
7180 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
7181 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
7182 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
7183 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
7184 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
7185 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
7186 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
7187 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
7188 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
7189 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
7190 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
7191 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
7192 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
7193 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
7194 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
7196 2018-05-02 Tom de Vries <tom@codesourcery.com>
7199 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
7201 2018-05-02 Tom de Vries <tom@codesourcery.com>
7204 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
7206 2018-04-29 Julian Brown <julian@codesourcery.com>
7207 Tom de Vries <tom@codesourcery.com>
7210 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
7211 arbitrary order for iterations of atomic subtract check.
7213 2018-04-28 Tom de Vries <tom@codesourcery.com>
7216 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
7217 atomic capture results obtained in parallel loop to an array, instead of
7220 2018-04-26 Tom de Vries <tom@codesourcery.com>
7223 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
7224 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
7225 (process_GOMP_NVPTX_JIT): New function.
7226 (link_ptx): Use process_GOMP_NVPTX_JIT.
7228 2018-04-26 Richard Biener <rguenther@suse.de>
7229 Tom de Vries <tom@codesourcery.com>
7232 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
7234 2018-04-26 Tom de Vries <tom@codesourcery.com>
7237 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
7238 recursion depth from 25 to 23.
7239 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
7241 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
7243 * configure: Regenerated.
7245 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
7246 Tom de Vries <tom@codesourcery.com>
7249 * testsuite/libgomp.oacc-c++/ref-1.C: New.
7251 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
7254 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
7255 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7256 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7257 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
7258 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
7259 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
7262 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
7264 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
7266 2018-04-19 Jakub Jelinek <jakub@redhat.com>
7268 * configure: Regenerated.
7270 2018-04-18 David Malcolm <dmalcolm@redhat.com>
7273 * configure: Regenerate.
7275 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
7276 Tom de Vries <tom@codesourcery.com>
7279 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
7280 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
7282 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
7286 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
7287 test from gfortran.dg to here.
7289 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
7291 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
7292 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
7294 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
7297 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
7298 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
7300 2018-04-05 Tom de Vries <tom@codesourcery.com>
7303 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
7305 2018-03-26 Tom de Vries <tom@codesourcery.com>
7307 PR tree-optimization/85063
7308 * testsuite/libgomp.c/switch-conversion-2.c: New test.
7309 * testsuite/libgomp.c/switch-conversion.c: New test.
7310 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
7311 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
7313 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
7316 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
7317 call abort by STOP n.
7318 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
7319 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
7320 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
7321 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
7322 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
7323 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
7324 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
7325 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
7326 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
7327 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
7328 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
7329 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
7330 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
7331 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
7332 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
7333 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
7334 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
7335 * testsuite/libgomp.fortran/associate1.f90: Likewise.
7336 * testsuite/libgomp.fortran/associate2.f90: Likewise.
7337 * testsuite/libgomp.fortran/associate3.f90: Likewise.
7338 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
7339 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
7340 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
7341 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
7342 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
7343 * testsuite/libgomp.fortran/character1.f90: Likewise.
7344 * testsuite/libgomp.fortran/character2.f90: Likewise.
7345 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
7346 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
7347 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
7348 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
7349 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
7350 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
7351 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
7352 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
7353 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
7354 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
7355 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
7356 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
7357 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
7358 * testsuite/libgomp.fortran/do1.f90: Likewise.
7359 * testsuite/libgomp.fortran/do2.f90: Likewise.
7360 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
7361 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
7362 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
7363 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
7364 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
7365 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
7366 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
7367 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
7368 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
7369 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
7370 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
7371 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
7372 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
7373 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
7374 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
7375 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
7376 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
7377 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
7378 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
7379 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
7380 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
7381 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
7382 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
7383 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
7384 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
7385 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
7386 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
7387 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
7388 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
7389 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
7390 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
7391 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
7392 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
7393 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
7394 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
7395 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
7396 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
7397 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
7398 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
7399 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
7400 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
7401 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
7402 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
7403 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
7404 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
7405 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
7406 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
7407 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
7408 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
7409 * testsuite/libgomp.fortran/lib1.f90: Likewise.
7410 * testsuite/libgomp.fortran/lib2.f: Likewise.
7411 * testsuite/libgomp.fortran/lib3.f: Likewise.
7412 * testsuite/libgomp.fortran/lib4.f90: Likewise.
7413 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
7414 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
7415 * testsuite/libgomp.fortran/nested1.f90: Likewise.
7416 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
7417 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
7418 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
7419 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
7420 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
7421 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
7422 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
7423 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
7424 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
7425 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
7426 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
7427 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
7428 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
7429 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
7430 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
7431 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
7432 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
7433 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
7434 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
7435 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7436 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
7437 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
7438 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
7439 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
7440 * testsuite/libgomp.fortran/pr25162.f: Likewise.
7441 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
7442 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
7443 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
7444 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
7445 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
7446 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
7447 * testsuite/libgomp.fortran/pr28390.f: Likewise.
7448 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
7449 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
7450 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
7451 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
7452 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
7453 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
7454 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
7455 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
7456 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
7457 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
7458 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
7459 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
7460 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
7461 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
7462 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
7463 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
7464 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
7465 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
7466 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
7467 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
7468 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
7469 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
7470 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
7471 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
7472 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
7473 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
7474 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
7475 * testsuite/libgomp.fortran/reference1.f90: Likewise.
7476 * testsuite/libgomp.fortran/reference2.f90: Likewise.
7477 * testsuite/libgomp.fortran/retval1.f90: Likewise.
7478 * testsuite/libgomp.fortran/retval2.f90: Likewise.
7479 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
7480 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
7481 * testsuite/libgomp.fortran/simd1.f90: Likewise.
7482 * testsuite/libgomp.fortran/simd2.f90: Likewise.
7483 * testsuite/libgomp.fortran/simd3.f90: Likewise.
7484 * testsuite/libgomp.fortran/simd4.f90: Likewise.
7485 * testsuite/libgomp.fortran/simd5.f90: Likewise.
7486 * testsuite/libgomp.fortran/simd6.f90: Likewise.
7487 * testsuite/libgomp.fortran/simd7.f90: Likewise.
7488 * testsuite/libgomp.fortran/stack.f90: Likewise.
7489 * testsuite/libgomp.fortran/strassen.f90: Likewise.
7490 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
7491 * testsuite/libgomp.fortran/tabs2.f: Likewise.
7492 * testsuite/libgomp.fortran/target1.f90: Likewise.
7493 * testsuite/libgomp.fortran/target2.f90: Likewise.
7494 * testsuite/libgomp.fortran/target3.f90: Likewise.
7495 * testsuite/libgomp.fortran/target4.f90: Likewise.
7496 * testsuite/libgomp.fortran/target5.f90: Likewise.
7497 * testsuite/libgomp.fortran/target6.f90: Likewise.
7498 * testsuite/libgomp.fortran/target7.f90: Likewise.
7499 * testsuite/libgomp.fortran/target8.f90: Likewise.
7500 * testsuite/libgomp.fortran/task1.f90: Likewise.
7501 * testsuite/libgomp.fortran/task2.f90: Likewise.
7502 * testsuite/libgomp.fortran/task3.f90: Likewise.
7503 * testsuite/libgomp.fortran/task4.f90: Likewise.
7504 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
7505 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
7506 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
7507 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
7508 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
7509 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
7510 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
7511 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
7512 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
7513 * testsuite/libgomp.fortran/udr1.f90: Likewise.
7514 * testsuite/libgomp.fortran/udr10.f90: Likewise.
7515 * testsuite/libgomp.fortran/udr11.f90: Likewise.
7516 * testsuite/libgomp.fortran/udr12.f90: Likewise.
7517 * testsuite/libgomp.fortran/udr13.f90: Likewise.
7518 * testsuite/libgomp.fortran/udr14.f90: Likewise.
7519 * testsuite/libgomp.fortran/udr15.f90: Likewise.
7520 * testsuite/libgomp.fortran/udr2.f90: Likewise.
7521 * testsuite/libgomp.fortran/udr3.f90: Likewise.
7522 * testsuite/libgomp.fortran/udr4.f90: Likewise.
7523 * testsuite/libgomp.fortran/udr5.f90: Likewise.
7524 * testsuite/libgomp.fortran/udr6.f90: Likewise.
7525 * testsuite/libgomp.fortran/udr7.f90: Likewise.
7526 * testsuite/libgomp.fortran/udr8.f90: Likewise.
7527 * testsuite/libgomp.fortran/udr9.f90: Likewise.
7528 * testsuite/libgomp.fortran/vla1.f90: Likewise.
7529 * testsuite/libgomp.fortran/vla2.f90: Likewise.
7530 * testsuite/libgomp.fortran/vla3.f90: Likewise.
7531 * testsuite/libgomp.fortran/vla4.f90: Likewise.
7532 * testsuite/libgomp.fortran/vla5.f90: Likewise.
7533 * testsuite/libgomp.fortran/vla6.f90: Likewise.
7534 * testsuite/libgomp.fortran/vla7.f90: Likewise.
7535 * testsuite/libgomp.fortran/vla8.f90: Likewise.
7536 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
7537 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
7538 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7539 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
7540 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7541 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7542 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7543 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
7544 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
7545 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
7546 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
7547 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
7548 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
7549 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
7550 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
7551 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
7552 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7553 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
7554 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
7555 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
7556 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
7557 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
7558 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
7559 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
7560 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
7561 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
7562 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
7563 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
7564 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7565 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
7566 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
7567 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7568 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7569 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7570 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7571 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7572 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
7573 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
7574 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
7575 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
7576 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
7577 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
7578 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
7579 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
7580 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
7581 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
7582 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
7583 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
7584 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
7585 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
7586 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
7587 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
7588 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
7589 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7590 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
7591 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
7592 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
7593 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
7594 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
7595 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
7596 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
7597 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
7598 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
7599 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
7600 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
7601 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7602 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
7603 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7604 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
7605 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
7606 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
7607 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
7608 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
7609 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
7610 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
7611 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
7612 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
7613 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7614 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7615 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7616 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
7617 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7618 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
7619 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
7620 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
7621 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
7622 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
7623 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
7624 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
7625 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
7626 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
7627 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
7628 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
7629 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
7631 2018-03-20 Richard Biener <rguenther@suse.de>
7633 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
7634 parallelizable loop.
7636 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
7639 * configure: Regenerate.
7641 2018-02-16 Jakub Jelinek <jakub@redhat.com>
7644 * libgomp.fortran/pr84418-1.f90: New test.
7645 * libgomp.fortran/pr84418-2.f90: New test.
7647 2018-02-14 Jakub Jelinek <jakub@redhat.com>
7650 * testsuite/libgomp.fortran/threadprivate4.f90: Add
7651 -std=f2003 -fall-intrinsics into dg-additional-options.
7653 2018-02-08 Martin Jambor <mjambor@suse.cz>
7655 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
7658 2018-02-08 Martin Jambor <mjambor@suse.cz>
7660 * testsuite/libgomp.hsa.c/staticvar.c: New test.
7662 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7664 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
7665 [__cplusplus]: Declare extern "C".
7667 2018-02-07 Tom de Vries <tom@codesourcery.com>
7670 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
7672 2018-01-29 Christoph Spiel <cspiel@freenet.de>
7673 Jakub Jelinek <jakub@redhat.com>
7676 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
7677 instead of omp_lock_t.
7679 2018-01-25 Tom de Vries <tom@codesourcery.com>
7682 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
7684 2018-01-24 Tom de Vries <tom@codesourcery.com>
7687 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
7689 2018-01-24 Tom de Vries <tom@codesourcery.com>
7692 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
7694 2018-01-19 Tom de Vries <tom@codesourcery.com>
7695 Cesar Philippidis <cesar@codesourcery.com>
7698 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
7699 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
7701 2018-01-03 Jakub Jelinek <jakub@redhat.com>
7703 Update copyright years.
7705 * libgomp.texi: Bump @copying's copyright year.
7707 2017-12-30 Tom de Vries <tom@codesourcery.com>
7710 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
7711 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
7713 2017-12-27 Tom de Vries <tom@codesourcery.com>
7716 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
7717 (test_nonstatic): Fix return type to workaround PR83046.
7719 2017-12-05 Jakub Jelinek <jakub@redhat.com>
7722 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
7723 j suffix instead of i.
7724 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
7727 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
7729 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
7730 call to acc_wait (1).
7732 2017-11-24 Jakub Jelinek <jakub@redhat.com>
7735 * testsuite/libgomp.fortran/pr81304.f90: New test.
7737 2017-11-23 Jakub Jelinek <jakub@redhat.com>
7740 * libgomp.fortran/pr81841.f90: New test.
7742 2017-11-22 Jakub Jelinek <jakub@redhat.com>
7745 * target.c (gomp_target_init): Compute lengths just once and
7746 use them in both malloc size and subsequent copying.
7748 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
7750 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
7751 * acinclude.m4: Add cet.m4.
7752 * configure: Regenerate.
7753 * Makefile.in: Likewise.
7754 * testsuite/Makefile.in: Likewise.
7756 2017-11-15 Tom de Vries <tom@codesourcery.com>
7758 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
7759 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
7760 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
7761 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
7762 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
7763 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
7765 2017-11-14 Tom de Vries <tom@codesourcery.com>
7767 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
7770 2017-11-07 Jakub Jelinek <jakub@redhat.com>
7773 * testsuite/libgomp.c++/pr82835.C: New test.
7775 2017-11-06 Martin Liska <mliska@suse.cz>
7777 * testsuite/libgomp.c++/loop-2.C: Return a value
7778 for functions with non-void return type, or change type to void,
7779 or add -Wno-return-type for test.
7780 * testsuite/libgomp.c++/loop-4.C: Likewise.
7781 * testsuite/libgomp.c++/parallel-1.C: Likewise.
7782 * testsuite/libgomp.c++/shared-1.C: Likewise.
7783 * testsuite/libgomp.c++/single-1.C: Likewise.
7784 * testsuite/libgomp.c++/single-2.C: Likewise.
7786 2017-10-31 Tom de Vries <tom@codesourcery.com>
7788 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
7789 "do {} while (false)".
7790 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
7791 after HSA_DEBUG call.
7793 2017-10-28 Jakub Jelinek <jakub@redhat.com>
7795 * target.c (struct gomp_coalesce_buf): New type.
7796 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
7797 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
7798 (gomp_copy_host2dev): Add CBUF argument, if copying into
7799 the cached ranges, memcpy into buffer instead of copying
7801 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
7802 Add CBUF argument, pass it through to other calls.
7803 (gomp_map_vars): Aggregate copies from host to device if small enough
7804 and with small enough gaps in between into memcpy into a buffer and
7805 fewer host to device copies from the buffer.
7806 (gomp_update): Adjust gomp_copy_host2dev caller.
7808 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
7810 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
7812 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7813 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7814 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7815 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7817 2017-10-16 Tom de Vries <tom@codesourcery.com>
7819 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
7820 openacc_nvidia_accel_selected.
7821 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
7822 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
7823 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
7824 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
7825 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
7826 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
7827 openacc_nvidia_accel_selected. Skip for shared memory device.
7828 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
7829 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
7831 2017-10-09 Martin Jambor <mjambor@suse.cz>
7834 * testsuite/libgomp.hsa.c/pr82416.c: New test.
7836 2017-10-07 Tom de Vries <tom@codesourcery.com>
7838 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
7839 Remove acc_device_nvidia references.
7840 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
7843 2017-10-05 Tom de Vries <tom@codesourcery.com>
7845 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
7846 vector_length(32) clause from acc parallel directive.
7847 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
7849 2017-10-04 Tom de Vries <tom@codesourcery.com>
7851 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
7852 (main): Reduce sum of arr elements. Assert that hres is exactly
7853 representable in 32-bit floating point.
7854 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
7855 (main): Reduce sum of arr elements. Assert that hres and hmres are
7856 exactly representable in 32-bit floating point.
7857 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
7859 2017-09-28 Tom de Vries <tom@codesourcery.com>
7861 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
7863 * testsuite/libgomp.c++/pr69393.C: Same.
7864 * testsuite/libgomp.c++/taskloop-1.C: Same.
7865 * testsuite/libgomp.c++/taskloop-3.C: Same.
7866 * testsuite/libgomp.c++/taskloop-4.C: Same.
7867 * testsuite/libgomp.c/for-4.c: Same.
7868 * testsuite/libgomp.c/pr66199-3.c: Same.
7869 * testsuite/libgomp.c/pr66199-4.c: Same.
7870 * testsuite/libgomp.c/pr66199-6.c: Same.
7871 * testsuite/libgomp.c/taskloop-1.c: Same.
7872 * testsuite/libgomp.c/taskloop-3.c: Same.
7873 * testsuite/libgomp.c/taskloop-4.c: Same.
7874 * testsuite/libgomp.fortran/aligned1.f03: Same.
7875 * testsuite/libgomp.fortran/condinc1.f: Same.
7876 * testsuite/libgomp.fortran/condinc3.f90: Same.
7877 * testsuite/libgomp.fortran/crayptr1.f90: Same.
7878 * testsuite/libgomp.fortran/crayptr2.f90: Same.
7879 * testsuite/libgomp.fortran/crayptr3.f90: Same.
7880 * testsuite/libgomp.fortran/omp_cond1.f: Same.
7881 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
7882 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
7883 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
7884 * testsuite/libgomp.fortran/recursion1.f90: Same.
7885 * testsuite/libgomp.fortran/target2.f90: Same.
7886 * testsuite/libgomp.fortran/target5.f90: Same.
7887 * testsuite/libgomp.fortran/task3.f90: Same.
7889 2017-09-28 Tom de Vries <tom@codesourcery.com>
7891 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
7892 vector_length(32) clause from acc parallel directive.
7893 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
7895 2017-09-27 Tom de Vries <tom@codesourcery.com>
7897 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
7898 Remove acc_device_nvidia references.
7900 2017-09-16 Tom de Vries <tom@codesourcery.com>
7903 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
7905 2017-09-14 Tom de Vries <tom@codesourcery.com>
7907 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
7908 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
7909 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
7910 * testsuite/libgomp.c/c.exp: Include test-cases from
7911 libgomp.c-c++-common.
7912 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
7915 2017-09-14 Jakub Jelinek <jakub@redhat.com>
7918 * testsuite/libgomp.c++/pr81314.C: New test.
7920 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
7922 * libgomp.texi (Top): www.openacc.org now uses https.
7923 (Enabling OpenACC): Ditto.
7924 (acc_get_num_devices): Ditto.
7925 (acc_set_device_type): Ditto.
7926 (acc_get_device_type): Ditto.
7927 (acc_set_device_num): Ditto.
7928 (acc_get_device_num): Ditto.
7929 (acc_async_test): Ditto.
7930 (acc_async_test_all): Ditto.
7932 (acc_wait_all): Ditto.
7933 (acc_wait_all_async): Ditto.
7934 (acc_wait_async): Ditto.
7936 (acc_shutdown): Ditto.
7937 (acc_on_device): Ditto.
7938 (acc_malloc): Ditto.
7940 (acc_copyin): Ditto.
7941 (acc_present_or_copyin): Ditto.
7942 (acc_create): Ditto.
7943 (acc_present_or_create): Ditto.
7944 (acc_copyout): Ditto.
7945 (acc_delete): Ditto.
7946 (acc_update_device): Ditto.
7947 (acc_update_self): Ditto.
7948 (acc_map_data): Ditto.
7949 (acc_unmap_data): Ditto.
7950 (acc_deviceptr): Ditto.
7951 (acc_hostptr): Ditto.
7952 (acc_is_present): Ditto.
7953 (acc_memcpy_to_device): Ditto.
7954 (acc_memcpy_from_device): Ditto.
7955 (acc_get_current_cuda_device): Ditto.
7956 (acc_get_current_cuda_context): Ditto.
7957 (acc_get_cuda_stream): Ditto.
7958 (acc_set_cuda_stream): Ditto.
7959 (ACC_DEVICE_TYPE): Ditto.
7960 (ACC_DEVICE_NUM): Ditto.
7961 (OpenACC Library Interoperability): Ditto.
7963 2017-08-09 Jakub Jelinek <jakub@redhat.com>
7966 * testsuite/libgomp.c/pr81687-1.c: New test.
7967 * testsuite/libgomp.c/pr81687-2.c: New test.
7969 2017-08-07 Jakub Jelinek <jakub@redhat.com>
7972 * testsuite/libgomp.c/pr69389.c: New test.
7973 * testsuite/libgomp.c++/pr69389.C: New test.
7975 2017-08-07 Tom de Vries <tom@codesourcery.com>
7978 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
7979 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
7981 2017-07-27 Jakub Jelinek <jakub@redhat.com>
7984 * testsuite/libgomp.c/pr45784.c: New test.
7985 * testsuite/libgomp.c++/pr45784.C: New test.
7987 2017-07-19 Tom de Vries <tom@codesourcery.com>
7989 * testsuite/libgomp.oacc-c/vec.c: New test.
7991 2017-07-03 Tom de Vries <tom@codesourcery.com>
7993 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
7995 2017-06-27 Tom de Vries <tom@codesourcery.com>
7997 * plugin/plugin-nvptx.c (notify_var): New function.
7998 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
8000 2017-06-27 Tom de Vries <tom@codesourcery.com>
8002 * env.c (parse_unsigned_long_1): Factor out of ...
8003 (parse_unsigned_long): ... here.
8004 (parse_int_1): Factor out of ...
8005 (parse_int): ... here.
8006 (parse_int_secure): New function.
8007 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
8008 * secure_getenv.h: Factor out of ...
8009 * plugin/plugin-hsa.c: ... here.
8010 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
8012 2017-06-21 Jakub Jelinek <jakub@redhat.com>
8015 * testsuite/libgomp.c++/pr81130.C: New test.
8017 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8019 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
8021 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
8022 dg-xfail-run-if default args.
8024 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
8026 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
8027 * testsuite/libgomp.c/pr39591-3.c: Likewise.
8029 2017-05-30 Jakub Jelinek <jakub@redhat.com>
8032 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
8033 (gomp_affinity_init_level): Use it. Always analyze the core and thread
8034 sibling lists, depending on level just pick up what CPUs to put
8035 together into a place vs. whether add multiple ordered places.
8037 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
8039 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
8040 * libgomp.map (OACC_2.0.1): Add these.
8041 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
8042 for "acc_wait", and "acc_wait_all", respectively.
8043 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
8044 for "acc_wait", and "acc_wait_all", respectively.
8045 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
8046 * libgomp.texi (acc_wait, acc_wait_all): Update.
8047 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
8048 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
8049 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
8051 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
8052 acc_present_or_copyin and acc_present_or_create procedures,
8054 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
8055 generally different variants of OpenACC Runtime Library functions.
8056 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
8058 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
8059 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
8061 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
8062 of preprocessor definitions.
8063 * libgomp.h (strong_alias): Guard by "#ifdef
8064 HAVE_ATTRIBUTE_ALIAS".
8065 * oacc-mem.c: Provide "acc_pcreate" as alias for
8066 "acc_present_or_create", and "acc_pcopyin" as alias for
8067 "acc_present_or_copyin".
8068 * libgomp.map: New version "OACC_2.0.1".
8069 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
8070 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
8072 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
8075 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
8076 when disabling nvptx offloading.
8078 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
8080 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
8081 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
8082 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
8084 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
8085 * testsuite/lib/libgomp.exp
8086 (check_effective_target_openacc_nvidia_accel_configured): New
8088 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
8089 (check_effective_target_c++): New procs.
8090 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
8091 (check_effective_target_c++): Likewise.
8093 2017-05-22 Jakub Jelinek <jakub@redhat.com>
8096 * testsuite/libgomp.c/pr80809-2.c: New test.
8097 * testsuite/libgomp.c/pr80809-3.c: New test.
8100 * testsuite/libgomp.c/pr80809-1.c: New test.
8103 * testsuite/libgomp.c/pr80853.c: New test.
8105 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
8107 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
8108 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
8109 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8110 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
8111 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
8113 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
8114 Debug output for failure.
8116 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8118 * testsuite/lib/libgomp.exp: Load scanlang.exp.
8120 2017-04-27 Jakub Jelinek <jakub@redhat.com>
8123 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
8124 bootstrap compare failures.
8126 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
8128 * testsuite/libgomp.c/target-36.c: New testcase.
8130 2017-04-13 Jakub Jelinek <jakub@redhat.com>
8132 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
8135 2017-04-11 Jakub Jelinek <jakub@redhat.com>
8138 * testsuite/libgomp.c/pr80394.c: New test.
8140 2017-04-04 Jakub Jelinek <jakub@redhat.com>
8143 * config/posix/thread-stacksize.h: New file.
8144 * config/darwin/thread-stacksize.h: New file.
8145 * config/nvptx/thread-stacksize.h: New file.
8146 * env.c: Include thread-stacksize.h.
8147 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
8148 instead of 0. Call pthread_attr_setstacksize even if
8149 GOMP_DEFAULT_STACKSIZE is non-zero.
8151 2017-03-30 Jakub Jelinek <jakub@redhat.com>
8153 * env.c (initialize_env): Initialize stacksize to 0.
8155 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
8158 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
8160 2017-03-08 Jakub Jelinek <jakub@redhat.com>
8163 * testsuite/libgomp.c/pr79940.c: New test.
8165 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8167 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
8169 Add __float128 options.
8171 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
8173 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
8174 hppa*-*-* dg-skip-if directive.
8176 2017-02-09 Jakub Jelinek <jakub@redhat.com>
8178 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
8179 dg-skip-if directive into a comment.
8181 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
8182 Chung-Lin Tang <cltang@codesourcery.com>
8184 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
8185 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
8186 add additional case.
8187 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
8188 "openacc_nvidia_accel_selected".
8189 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
8190 Add num_workers(8) clause.
8192 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
8194 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
8196 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
8197 include complex.h on hppa*-*-hpux*.
8198 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
8200 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
8202 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
8204 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
8205 GOMP_OFFLOAD_openacc_exec. Adjust all users.
8206 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
8207 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
8208 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
8209 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
8210 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
8211 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
8212 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
8213 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
8215 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
8217 * libgomp-plugin.h: #include <stdbool.h>.
8218 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
8219 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
8220 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
8221 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
8222 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
8223 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
8224 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
8225 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
8226 (GOMP_OFFLOAD_openacc_register_async_cleanup)
8227 (GOMP_OFFLOAD_openacc_async_test)
8228 (GOMP_OFFLOAD_openacc_async_test_all)
8229 (GOMP_OFFLOAD_openacc_async_wait)
8230 (GOMP_OFFLOAD_openacc_async_wait_async)
8231 (GOMP_OFFLOAD_openacc_async_wait_all)
8232 (GOMP_OFFLOAD_openacc_async_wait_all_async)
8233 (GOMP_OFFLOAD_openacc_async_set_async)
8234 (GOMP_OFFLOAD_openacc_create_thread_data)
8235 (GOMP_OFFLOAD_openacc_destroy_thread_data)
8236 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
8237 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
8238 (GOMP_OFFLOAD_openacc_get_cuda_stream)
8239 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
8240 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
8242 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
8243 (GOMP_OFFLOAD_unload_image): Fix argument types.
8245 2017-01-26 Jakub Jelinek <jakub@redhat.com>
8247 * testsuite/lib/libgomp.exp
8248 (check_effective_target_hsa_offloading_selected_nocache): Fix up
8249 check_compile invocation. Fix up removal of executable. Drop
8250 bogus "2>&1" argument.
8252 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
8255 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
8256 Martin Jambor <mjambor@suse.cz>
8258 * plugin/hsa.h: Moved to top level include.
8259 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
8261 2017-01-21 Jakub Jelinek <jakub@redhat.com>
8264 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
8265 of cat to get version from BASE-VER file.
8266 * testsuite/Makefile.in: Regenerated.
8268 2017-01-19 Jakub Jelinek <jakub@redhat.com>
8270 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
8273 2017-01-17 Jakub Jelinek <jakub@redhat.com>
8275 * plugin/hsa.h: Add GCC runtime library exception.
8276 * plugin/hsa_ext_finalize.h: Likewise.
8278 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
8279 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
8280 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
8281 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
8282 plugin/include/cuda as include dir and -ldl instead of -lcuda as
8283 library to link ptx plugin against.
8284 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
8285 (CUDA_CALLS): Define.
8286 (cuda_lib, cuda_lib_inited): New variables.
8287 (init_cuda_lib): New function.
8288 (CUDA_CALL_PREFIX): Define.
8289 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
8290 (CUDA_CALL): Use FN instead of (FN).
8291 (CUDA_CALL_NOCHECK): Define.
8292 (cuda_error, fini_streams_for_device, select_stream_for_async,
8293 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
8294 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
8295 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
8296 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
8298 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
8300 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
8301 Use CUDA_CALL_NOCHECK.
8302 * plugin/cuda/cuda.h: New file.
8303 * config.h.in: Regenerated.
8304 * configure: Regenerated.
8307 * configure.ac: Add GCC_BASE_VER.
8308 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
8309 get version from BASE-VER file.
8310 * testsuite/Makefile.in: Regenerated.
8311 * configure: Regenerated.
8312 * Makefile.in: Regenerated.
8314 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8317 * Makefile.am: Make fincludedir multilib-aware.
8318 * Makefile.in: Regenerate.
8320 2017-01-01 Jakub Jelinek <jakub@redhat.com>
8322 Update copyright years.
8324 * libgomp.texi: Bump @copying's copyright year.
8326 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
8328 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
8329 pthread_spinlock_t instead of gomp_mutex_t lock.
8330 (gomp_get_thread_pool): Likewise.
8331 (gomp_release_thread_pool): Likewise.
8332 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
8335 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
8337 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
8338 thread pool in case nthreads == 1.
8340 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
8342 * config/nvptx/env.c: Delete.
8343 * icv.c: Move definitions of ICV variables back ...
8344 * env.c: ...here. Do not compile environment-related functionality if
8345 LIBGOMP_OFFLOADED_ONLY is set.
8347 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
8349 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
8350 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
8351 * configure: Regenerate.
8352 * config.h.in: Likewise.
8354 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
8356 * Makefile.in: Regenerate with automake-1.11.6.
8357 * aclocal.m4: Likewise.
8358 * configure: Likewise.
8359 * testsuite/Makefile.in: Likewise.
8361 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
8363 * config/nvptx/critical.c: Delete to use generic implementation.
8365 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
8367 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
8368 ../../affinity.c as fallback.
8369 * config/nvptx/affinity.c: Delete to use fallback implementation.
8371 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
8372 Jakub Jelinek <jakub@redhat.com>
8373 Dmitry Melnik <dm@ispras.ru>
8375 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
8376 * Makefile.in. Regenerate.
8377 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
8378 (LIBGOMP_USE_PTHREADS): ...here; new define.
8379 * configure: Regenerate.
8380 * config.h.in: Likewise.
8381 * config/posix/affinity.c: Move to...
8382 * affinity.c: ...here (new file). Guard use of Pthreads-specific
8383 interface by LIBGOMP_USE_PTHREADS.
8384 * critical.c: Split out GOMP_atomic_{start,end} into...
8385 * atomic.c: ...here (new file).
8386 * env.c: Split out ICV definitions into...
8387 * icv.c: ...here (new file) and...
8388 * icv-device.c: ...here. New file.
8389 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
8390 (gomp_destroy_lock_30): Ditto.
8391 (gomp_set_lock_30): Ditto.
8392 (gomp_unset_lock_30): Ditto.
8393 (gomp_test_lock_30): Ditto.
8394 (gomp_init_nest_lock_30): Ditto.
8395 (gomp_destroy_nest_lock_30): Ditto.
8396 (gomp_set_nest_lock_30): Ditto.
8397 (gomp_unset_nest_lock_30): Ditto.
8398 (gomp_test_nest_lock_30): Ditto.
8400 * config/nvptx/lock.c: New.
8401 * config/nvptx/bar.c: New.
8402 * config/nvptx/bar.h: New.
8403 * config/nvptx/doacross.h: New.
8404 * config/nvptx/error.c: New.
8405 * config/nvptx/icv-device.c: New.
8406 * config/nvptx/mutex.h: New.
8407 * config/nvptx/pool.h: New.
8408 * config/nvptx/proc.c: New.
8409 * config/nvptx/ptrlock.h: New.
8410 * config/nvptx/sem.h: New.
8411 * config/nvptx/simple-bar.h: New.
8412 * config/nvptx/target.c: New.
8413 * config/nvptx/task.c: New.
8414 * config/nvptx/team.c: New.
8415 * config/nvptx/time.c: New.
8416 * config/posix/simple-bar.h: New.
8417 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
8418 (gomp_num_teams_var): Declare.
8419 (struct gomp_thread_pool): Change threads_dock member to
8420 gomp_simple_barrier_t.
8421 [__nvptx__] (gomp_thread): New implementation.
8422 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
8423 (gomp_thread_destructor): Ditto.
8424 (gomp_init_thread_affinity): Ditto.
8425 * team.c: Guard uses of Pthreads-specific interfaces by
8426 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
8427 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
8428 * config/nvptx/alloc.c: Delete.
8429 * config/nvptx/barrier.c: Ditto.
8430 * config/nvptx/fortran.c: Ditto.
8431 * config/nvptx/iter.c: Ditto.
8432 * config/nvptx/iter_ull.c: Ditto.
8433 * config/nvptx/loop.c: Ditto.
8434 * config/nvptx/loop_ull.c: Ditto.
8435 * config/nvptx/ordered.c: Ditto.
8436 * config/nvptx/parallel.c: Ditto.
8437 * config/nvptx/priority_queue.c: Ditto.
8438 * config/nvptx/sections.c: Ditto.
8439 * config/nvptx/single.c: Ditto.
8440 * config/nvptx/splay-tree.c: Ditto.
8441 * config/nvptx/work.c: Ditto.
8442 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
8443 -foffload=-lgfortran in addition to -lgfortran.
8444 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
8445 * plugin/plugin-nvptx.c: Include <limits.h>.
8446 (struct targ_fn_descriptor): Add new fields.
8447 (struct ptx_device): Ditto. Set them...
8448 (nvptx_open_device): ...here.
8449 (nvptx_adjust_launch_bounds): New.
8450 (nvptx_host2dev): Allow NULL 'nvthd'.
8451 (nvptx_dev2host): Ditto.
8452 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
8453 (link_ptx): Adjust log sizes.
8454 (nvptx_host2dev): Allow NULL 'nvthd'.
8455 (nvptx_dev2host): Ditto.
8456 (nvptx_set_clocktick): New. Use it...
8457 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
8459 (GOMP_OFFLOAD_dev2dev): New.
8460 (nvptx_adjust_launch_bounds): New.
8461 (nvptx_stacks_size): New.
8462 (nvptx_stacks_alloc): New.
8463 (nvptx_stacks_free): New.
8464 (GOMP_OFFLOAD_run): New.
8465 (GOMP_OFFLOAD_async_run): New (stub).
8467 2016-11-23 Martin Jambor <mjambor@suse.cz>
8469 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
8470 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
8471 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8473 2016-11-23 Martin Liska <mliska@suse.cz>
8474 Martin Jambor <mjambor@suse.cz>
8476 * plugin/hsa.h: New file.
8477 * plugin/hsa_ext_finalize.h: New file.
8478 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
8479 header file unistd.h, and functions secure_getenv, __secure_getenv,
8480 getuid, geteuid, getgid and getegid.
8481 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
8483 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
8484 Handle various cases of secure_getenv presence, add an implementation
8485 when we can test effective UID and GID.
8486 (struct hsa_runtime_fn_info): New structure.
8487 (hsa_runtime_fn_info hsa_fns): New variable.
8488 (hsa_runtime_lib): Likewise.
8489 (support_cpu_devices): Likewise.
8490 (init_enviroment_variables): Load newly introduced ENV
8492 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
8493 (hsa_fatal): Likewise.
8494 (DLSYM_FN): New macro.
8495 (init_hsa_runtime_functions): New function.
8496 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
8497 structure. Depending on environment, also allow CPU devices.
8498 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
8499 (get_kernarg_memory_region): Likewise.
8500 (GOMP_OFFLOAD_init_device): Likewise.
8501 (destroy_hsa_program): Likewise.
8502 (init_basic_kernel_info): New function.
8503 (GOMP_OFFLOAD_load_image): Use it.
8504 (create_and_finalize_hsa_program): Call hsa run-time functions via
8506 (create_single_kernel_dispatch): Likewise.
8507 (release_kernel_dispatch): Likewise.
8508 (init_single_kernel): Likewise.
8509 (parse_target_attributes): Allow up multiple HSA grid dimensions.
8510 (get_group_size): New function.
8511 (run_kernel): Likewise.
8512 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
8513 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
8515 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
8516 * testsuite/libgomp-test-support.exp.in: Likewise.
8517 * Makefile.in: Regenerated.
8518 * aclocal.m4: Likewise.
8519 * config.h.in: Likewise.
8520 * configure: Likewise.
8521 * testsuite/Makefile.in: Likewise.
8523 2016-11-15 Martin Jambor <mjambor@suse.cz>
8524 Alexander Monakov <amonakov@ispras.ru>
8526 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
8527 mapping clauses to target constructs.
8528 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
8530 2016-11-15 Matthias Klose <doko@ubuntu.com>
8532 * configure: Regenerate.
8534 2016-11-10 Jakub Jelinek <jakub@redhat.com>
8536 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
8537 * omp_lib.h.in (openmp_version): Likewise.
8538 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
8540 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8542 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
8543 (fib_wrapper): Add map(from: x) clause.
8544 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
8546 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
8547 (accum): Add map(tmp) clause.
8548 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
8549 (accum): Add map(tofrom: tmp) clause.
8550 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
8551 (gramSchmidt): Likewise.
8552 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
8553 map(tofrom: sum) clause.
8554 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
8555 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
8556 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
8557 only allowed on the loop iterator.
8558 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
8559 * testsuite/libgomp.fortran/taskloop2.f90: New test.
8560 * testsuite/libgomp.fortran/taskloop4.f90: New test.
8561 * testsuite/libgomp.fortran/doacross1.f90: New test.
8562 * testsuite/libgomp.fortran/doacross3.f90: New test.
8563 * testsuite/libgomp.fortran/taskloop1.f90: New test.
8564 * testsuite/libgomp.fortran/taskloop3.f90: New test.
8565 * testsuite/libgomp.fortran/doacross2.f90: New test.
8566 * testsuite/libgomp.c/doacross-1.c (main): Add missing
8567 #pragma omp atomic read.
8568 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
8569 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
8571 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
8572 Nathan Sidwell <nathan@acm.org>
8574 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
8575 to determine default geometry.
8576 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
8579 2016-11-01 Jakub Jelinek <jakub@redhat.com>
8581 * hashtab.h: Use standard GPLv3 with runtime exception
8584 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
8586 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
8587 size when allocating new thread.
8589 2016-09-14 Marek Polacek <polacek@redhat.com>
8591 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
8593 2016-08-19 Jakub Jelinek <jakub@redhat.com>
8596 * testsuite/libgomp.fortran/pr71014.f90: New test.
8598 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
8601 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
8602 firstprivate clauses.
8603 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
8605 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
8606 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
8607 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
8608 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8609 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
8610 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8611 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
8612 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
8613 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
8614 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
8615 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
8616 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
8618 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
8621 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
8623 2016-08-08 Jakub Jelinek <jakub@redhat.com>
8626 * testsuite/libgomp.c++/pr58706.C: New test.
8628 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
8630 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
8631 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
8632 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
8634 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
8635 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
8637 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
8639 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
8640 test, and don't hardcode -O0.
8642 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
8644 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
8646 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
8648 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
8651 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
8654 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
8655 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
8657 2016-07-01 Jakub Jelinek <jakub@redhat.com>
8660 * testsuite/libgomp.fortran/associate3.f90: New test.
8662 2016-06-17 Jakub Jelinek <jakub@redhat.com>
8664 * testsuite/libgomp.c++/target-21.C: New test.
8666 2016-06-16 Jakub Jelinek <jakub@redhat.com>
8668 * testsuite/libgomp.c++/target-20.C: New test.
8670 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
8671 Cesar Philippidis <cesar@codesourcery.com>
8674 * libgomp.oacc-c/nested-function-1.c: New file.
8675 * libgomp.oacc-c/nested-function-2.c: Likewise.
8676 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
8677 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
8678 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
8680 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
8683 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
8684 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
8685 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
8687 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
8689 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
8690 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
8692 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
8695 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
8697 2016-05-26 Jakub Jelinek <jakub@redhat.com>
8699 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
8700 instead of invalid schedule(static, 0).
8701 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
8703 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
8705 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
8706 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
8707 parameter, use to set async stream around call to gomp_unmap_vars,
8708 call gomp_unmap_vars() with 'do_copyfrom' set to true.
8709 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
8710 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
8711 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
8712 (event_add): Add int parameter, initialize 'val' field when
8713 adding new ptx_event struct.
8714 (nvptx_evec): Adjust event_add() call arguments.
8715 (nvptx_host2dev): Likewise.
8716 (nvptx_dev2host): Likewise.
8717 (nvptx_wait_async): Likewise.
8718 (nvptx_wait_all_async): Likewise.
8719 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
8720 pass to event_add() call.
8721 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
8723 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
8724 call openacc.register_async_cleanup_func() hook.
8725 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
8726 * target.c (gomp_copy_from_async): Delete function.
8727 (gomp_map_vars): Remove async_refcount.
8728 (gomp_unmap_vars): Likewise.
8729 (gomp_load_image_to_device): Likewise.
8730 (omp_target_associate_ptr): Likewise.
8731 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
8732 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
8733 (gomp_copy_from_async): Remove.
8735 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
8737 * target.c (gomp_device_copy): New function.
8738 (gomp_copy_host2dev): Likewise.
8739 (gomp_copy_dev2host): Likewise.
8740 (gomp_free_device_memory): Likewise.
8741 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
8742 (gomp_map_pointer): Likewise.
8743 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
8744 NULL value from alloc_func plugin hook.
8745 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
8746 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
8747 (gomp_unmap_vars): Likewise.
8748 (gomp_update): Adjust to call gomp_copy_dev2host and
8749 gomp_copy_host2dev functions.
8750 (gomp_unload_image_from_device): Handle false value from
8751 unload_image_func plugin hook.
8752 (gomp_init_device): Handle false value from init_device_func
8754 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
8755 (omp_target_free): Adjust to call gomp_free_device_memory.
8756 (omp_target_memcpy): Handle return values from host2dev_func,
8757 dev2host_func, and dev2dev_func plugin hooks.
8758 (omp_target_memcpy_rect_worker): Likewise.
8759 (gomp_target_fini): Handle false value from fini_device_func
8761 * libgomp.h (struct gomp_device_descr): Adjust return type of
8762 init_device_func, fini_device_func, unload_image_func, free_func,
8763 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
8764 * oacc-init.c (acc_shutdown_1): Handle false value from
8765 fini_device_func plugin hook.
8766 * oacc-host.c (host_init_device): Change return type to bool.
8767 (host_fini_device): Likewise.
8768 (host_unload_image): Likewise.
8769 (host_free): Likewise.
8770 (host_dev2host): Likewise.
8771 (host_host2dev): Likewise.
8772 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
8773 (acc_memcpy_to_device): Likewise.
8774 (acc_memcpy_from_device): Likewise.
8775 (delete_copyout): Add libfnname parameter, handle free_func
8776 hook fatal error case.
8777 (acc_delete): Adjust delete_copyout call.
8778 (acc_copyout): Likewise.
8779 (update_dev_host): Move gomp_mutex_unlock to after
8780 host2dev/dev2host hook calls.
8782 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
8783 to 'hsa_error_msg', for clarity.
8784 (hsa_fatal): Likewise.
8785 (hsa_error): New function.
8786 (init_hsa_context): Change return type to bool, adjust to return
8788 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
8790 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
8791 return false on error.
8792 (get_agent_info): Adjust to return NULL on error.
8793 (destroy_hsa_program): Change return type to bool, adjust to
8794 return false on error.
8795 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
8796 (destroy_module): Change return type to bool, adjust to
8797 return false on error.
8798 (GOMP_OFFLOAD_unload_image): Likewise.
8799 (GOMP_OFFLOAD_fini_device): Likewise.
8800 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
8801 (GOMP_OFFLOAD_free): Change to return false when called.
8802 (GOMP_OFFLOAD_dev2host): Likewise.
8803 (GOMP_OFFLOAD_host2dev): Likewise.
8804 (GOMP_OFFLOAD_dev2dev): Likewise.
8806 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
8807 (CUDA_CALL): Likewise.
8808 (CUDA_CALL_ASSERT): Likewise.
8809 (map_init): Change return type to bool, use CUDA_CALL* macros.
8810 (map_fini): Likewise.
8811 (init_streams_for_device): Change return type to bool, adjust
8813 (fini_streams_for_device): Change return type to bool, adjust
8815 (select_stream_for_async): Release stream_lock before calls to
8816 GOMP_PLUGIN_fatal, adjust call to map_init.
8817 (nvptx_init): Use CUDA_CALL* macros.
8818 (nvptx_attach_host_thread_to_device): Change return type to bool,
8819 use CUDA_CALL* macros.
8820 (nvptx_open_device): Use CUDA_CALL* macros.
8821 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
8823 (nvptx_get_num_devices): Use CUDA_CALL* macros.
8824 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
8825 (nvptx_exec): Use CUDA_CALL* macros.
8826 (nvptx_alloc): Use CUDA_CALL* macros.
8827 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
8828 (nvptx_host2dev): Likewise.
8829 (nvptx_dev2host): Likewise.
8830 (nvptx_wait): Use CUDA_CALL* macros.
8831 (nvptx_wait_async): Likewise.
8832 (nvptx_wait_all): Likewise.
8833 (nvptx_wait_all_async): Likewise.
8834 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
8835 use CUDA_CALL* macros, adjust call to map_fini.
8836 (GOMP_OFFLOAD_init_device): Change return type to bool,
8837 adjust code accordingly.
8838 (GOMP_OFFLOAD_fini_device): Likewise.
8839 (GOMP_OFFLOAD_load_image): Adjust calls to
8840 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
8841 use CUDA_CALL* macros.
8842 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
8844 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
8845 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
8846 handle error return.
8847 (GOMP_OFFLOAD_dev2host): Likewise.
8848 (GOMP_OFFLOAD_host2dev): Likewise.
8849 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
8850 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
8852 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
8854 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
8855 (acc_free): Likewise.
8856 (acc_memcpy_to_device): Likewise.
8857 (acc_memcpy_from_device): Likewise.
8858 (acc_deviceptr): Likewise.
8859 (acc_hostptr): Likewise.
8860 (acc_is_present): Likewise.
8861 (acc_map_data): Likewise.
8862 (acc_unmap_data): Likewise.
8863 (present_create_copy): Likewise.
8864 (delete_copyout): Likewise.
8865 (update_dev_host): Likewise.
8866 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
8867 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
8868 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
8869 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8870 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
8871 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
8872 it only runs on nvptx targets.
8873 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8874 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8875 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8876 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8877 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8878 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8879 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8880 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8881 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8882 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8883 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8884 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8885 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8886 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8887 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8888 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8889 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8890 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8891 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8892 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8893 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8894 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8895 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8897 2016-05-23 Martin Jambor <mjambor@suse.cz>
8899 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
8901 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
8903 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
8904 to gomp_init_targets_once.
8905 (acc_set_device_type): Remove !cached_base_dev condition on call to
8906 gomp_init_targets_once, move call to before acc_device_lock acquire,
8908 (acc_get_device_num): Remove !cached_base_dev condition on call to
8909 gomp_init_targets_once.
8910 (acc_set_device_num): Likewise.
8912 2016-05-16 Martin Jambor <mjambor@suse.cz>
8914 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
8916 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
8918 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
8919 expected partitioning.
8921 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
8924 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
8925 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
8926 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
8928 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
8930 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
8933 2016-04-19 Jakub Jelinek <jakub@redhat.com>
8936 * testsuite/libgomp.c/pr70680-1.c: New test.
8937 * testsuite/libgomp.c/pr70680-2.c: New test.
8939 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
8941 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
8942 pass parameter variables to subroutines.
8944 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
8947 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
8949 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
8952 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
8953 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8955 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
8957 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
8958 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
8959 GOACC_declare prototype.
8961 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
8962 Merge this file, and...
8963 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
8964 ... this file, and...
8965 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
8966 ... this file, and...
8967 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
8968 ... this file, and...
8969 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
8970 ... this file, and...
8971 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
8972 ... this file, and...
8973 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
8974 ... this file, and...
8975 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
8976 ... this file, and...
8977 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
8978 ... this file, and...
8979 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
8980 ... this file, and...
8981 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
8982 ... this file, and...
8983 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
8984 ... this file, and...
8985 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
8986 ... this file into...
8987 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
8990 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8991 Make failure observable.
8993 2016-04-12 Jakub Jelinek <jakub@redhat.com>
8995 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
8997 * target.c (gomp_target_fallback_firstprivate,
8998 gomp_target_unshare_firstprivate): Removed.
8999 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
9000 before waiting for dependencies.
9001 (gomp_target_task_fn): Don't copy firstprivate vars here.
9002 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
9003 firstprivate_copies here.
9004 (gomp_create_target_task): Don't initialize firstprivate_copies field.
9005 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
9006 explicit/implicit firstprivate.
9008 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
9012 PR tree-optimization/70373
9016 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
9018 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
9020 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
9022 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
9024 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
9026 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
9028 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
9030 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
9032 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
9034 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
9035 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
9036 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
9037 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
9039 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
9041 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
9043 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
9045 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
9047 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
9048 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
9049 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
9050 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
9051 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
9052 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
9054 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
9055 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9056 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9057 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
9058 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
9059 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
9060 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
9061 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
9062 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
9063 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9064 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9065 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9066 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
9067 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9068 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
9070 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
9071 James Norris <jnorris@codesourcery.com>
9072 Nathan Sidwell <nathan@codesourcery.com>
9073 Julian Brown <julian@codesourcery.com>
9074 Cesar Philippidis <cesar@codesourcery.com>
9075 Chung-Lin Tang <cltang@codesourcery.com>
9076 Tom de Vries <tom@codesourcery.com>
9078 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
9079 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
9080 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
9081 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
9082 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
9083 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
9084 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
9085 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
9086 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
9088 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
9090 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
9092 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
9093 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
9094 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
9095 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
9097 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
9099 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
9100 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
9101 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
9102 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
9103 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
9104 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
9105 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
9106 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
9107 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
9108 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
9110 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
9111 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
9112 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
9114 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
9116 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
9118 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
9120 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
9122 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
9123 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
9124 ... this new file. Update.
9125 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
9126 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
9127 ... this new file. Update.
9128 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
9129 file. Incorporate...
9130 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
9132 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
9134 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
9136 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
9138 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
9140 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
9141 set-torture-options.
9143 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
9145 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
9147 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9148 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
9149 -fno-builtin-acc_on_device instead of -O0.
9150 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
9152 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
9153 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
9155 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
9156 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
9157 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
9158 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
9159 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
9160 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
9161 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
9162 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
9163 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
9164 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
9165 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
9166 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
9167 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
9168 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
9169 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
9170 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
9171 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
9172 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
9174 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
9176 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
9179 2016-03-24 Martin Liska <mliska@suse.cz>
9181 * plugin/plugin-hsa.c (packet_store_release): New function
9182 that is taken from the HSA runtime manual.
9183 (GOMP_OFFLOAD_run): Use the function.
9185 2016-03-23 Jakub Jelinek <jakub@redhat.com>
9188 * testsuite/libgomp.c++/pr70376.C: New test.
9190 2016-03-23 Tom de Vries <tom@codesourcery.com>
9192 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
9193 initialization of lresult and lvresult.
9194 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
9196 2016-03-23 James Norris <jnorris@codesourcery.com>
9197 Daichi Fukuoka <dc-fukuoka@sgi.com>
9200 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
9201 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
9202 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
9203 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
9205 2016-03-23 Martin Liska <mliska@suse.cz>
9208 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
9209 argument just in case a dispatched kernel uses that argument.
9211 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
9213 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
9214 -ftree-parallelize-loops/-fopenacc changes.
9215 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
9217 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
9219 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
9221 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
9223 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
9224 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
9226 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
9228 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
9229 always_ld_library_path the path to libgcc_s.
9231 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
9234 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
9236 2016-03-09 Tom de Vries <tom@codesourcery.com>
9238 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
9239 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
9240 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
9242 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
9243 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
9244 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
9245 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
9247 2016-03-07 Martin Jambor <mjambor@suse.cz>
9249 * testsuite/lib/libgomp.exp
9250 (check_effective_target_hsa_offloading_selected_nocache): New.
9251 (check_effective_target_hsa_offloading_selected): Likewise.
9252 * testsuite/libgomp.hsa.c/c.exp: Likewise.
9253 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
9254 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
9255 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
9256 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
9257 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
9258 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
9259 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
9260 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
9261 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
9262 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
9263 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
9264 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
9265 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
9266 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
9267 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
9268 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
9270 2016-03-07 Martin Jambor <mjambor@suse.cz>
9272 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
9273 non-shared memory accelerators.
9274 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
9275 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
9276 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
9277 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
9278 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
9279 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
9280 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
9281 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
9282 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
9284 2016-03-07 Martin Jambor <mjambor@suse.cz>
9286 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
9289 2016-03-02 Jakub Jelinek <jakub@redhat.com>
9292 * testsuite/libgomp.c++/pr69555-1.C: New test.
9293 * testsuite/libgomp.c++/pr69555-2.C: New test.
9295 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
9296 Martin Jambor <mjambor@suse.cz>
9298 * testsuite/lib/libgomp.exp
9299 (check_effective_target_offload_device_shared_as): New proc.
9300 * testsuite/libgomp.c++/declare_target-1.C: New test.
9302 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
9305 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
9307 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
9309 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
9310 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
9312 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
9313 -ftree-parallelize-loops/-fopenacc changes.
9314 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
9315 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
9317 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
9319 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
9321 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
9323 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
9325 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
9327 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
9329 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
9330 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
9332 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
9333 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
9335 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
9336 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
9339 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
9341 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
9343 2016-02-19 Jakub Jelinek <jakub@redhat.com>
9346 * testsuite/libgomp.c/pr69805.c: New test.
9348 2016-02-16 Tom de Vries <tom@codesourcery.com>
9351 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
9353 2016-02-09 Tom de Vries <tom@codesourcery.com>
9355 PR tree-optimization/69599
9356 * testsuite/libgomp.c/omp-nested-3.c: New test.
9357 * testsuite/libgomp.c/pr46032-2.c: New test.
9358 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
9359 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
9361 2016-02-09 Tom de Vries <tom@codesourcery.com>
9364 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
9366 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
9368 * testsuite/libgomp.c/target-31.c: Fix testcase.
9370 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
9372 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
9374 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
9375 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
9376 reduction and map clauses.
9377 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
9379 2016-02-02 James Norris <jnorris@codesourcery.com>
9381 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
9383 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
9385 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
9386 * oacc-parallel.c (GOACC_host_data): Remove function definition.
9388 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
9391 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
9393 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
9394 (hsa_kmt_lib): Set variables.
9395 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
9396 always_ld_library_path.
9397 * Makefile.in: Regenerate.
9398 * configure: Likewise.
9399 * testsuite/Makefile.in: Likewise.
9401 * plugin/configfrag.ac (offload_additional_options)
9402 (offload_additional_lib_paths): Don't amend for hsa offloading.
9403 * configure: Regenerate.
9405 * plugin/configfrag.ac: Don't configure for offloading target if
9406 we don't build the corresponding plugin.
9407 * configure: Regenerate.
9409 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
9411 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
9412 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
9414 2016-01-26 Tom de Vries <tom@codesourcery.com>
9416 PR tree-optimization/69110
9417 * testsuite/libgomp.c/pr69110.c: New test.
9419 2016-01-25 Richard Biener <rguenther@suse.de>
9422 * testsuite/libgomp.c++/pr69393.C: New testcase.
9424 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
9426 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
9427 function wasn't mapped to the device with non-shared memory.
9429 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
9431 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
9433 2016-01-19 Martin Jambor <mjambor@suse.cz>
9434 Martin Liska <mliska@suse.cz>
9436 * plugin/Makefrag.am: Add HSA plugin requirements.
9437 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
9438 (HSA_RUNTIME_LIB): Likewise.
9439 (HSA_RUNTIME_CPPFLAGS): Likewise.
9440 (HSA_RUNTIME_INCLUDE): New substitution.
9441 (HSA_RUNTIME_LIB): Likewise.
9442 (HSA_RUNTIME_LDFLAGS): Likewise.
9443 (hsa-runtime): New configure option.
9444 (hsa-runtime-include): Likewise.
9445 (hsa-runtime-lib): Likewise.
9446 (PLUGIN_HSA): New substitution variable.
9447 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
9449 (PLUGIN_HSA_CPPFLAGS): Likewise.
9450 (PLUGIN_HSA_LDFLAGS): Likewise.
9451 (PLUGIN_HSA_LIBS): Likewise.
9452 Check that we have access to HSA run-time.
9453 * libgomp-plugin.h (offload_target_type): New element
9454 OFFLOAD_TARGET_TYPE_HSA.
9455 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
9457 (bool gomp_create_target_task): Updated.
9458 (gomp_device_descr): Extra parameter of run_func and async_run_func,
9459 new field can_run_func.
9460 * libgomp_g.h (GOMP_target_ext): Update prototype.
9461 * oacc-host.c (host_run): Added a new parameter args.
9462 * target.c (calculate_firstprivate_requirements): New function.
9463 (copy_firstprivate_data): Likewise.
9464 (gomp_target_fallback_firstprivate): Use them.
9465 (gomp_target_unshare_firstprivate): New function.
9466 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
9468 (GOMP_target): Do host fallback for all shared memory devices. Do not
9469 pass any args to plugins.
9470 (GOMP_target_ext): Introduce device-specific argument parameter args.
9471 Allow host fallback if device shares memory. Do not remap data if
9472 device has shared memory.
9473 (gomp_target_task_fn): Likewise. Also treat shared memory devices
9474 like host fallback for mappings.
9475 (GOMP_target_data): Treat shared memory devices like host fallback.
9476 (GOMP_target_data_ext): Likewise.
9477 (GOMP_target_update): Likewise.
9478 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
9479 gomp_create_target_task.
9480 (GOMP_target_enter_exit_data): Likewise.
9481 (omp_target_alloc): Treat shared memory devices like host fallback.
9482 (omp_target_free): Likewise.
9483 (omp_target_is_present): Likewise.
9484 (omp_target_memcpy): Likewise.
9485 (omp_target_memcpy_rect): Likewise.
9486 (omp_target_associate_ptr): Likewise.
9487 (gomp_load_plugin_for_device): Also load can_run.
9488 * task.c (GOMP_PLUGIN_target_task_completion): Free
9489 firstprivate_copies.
9490 (gomp_create_target_task): Accept new argument args and store it to
9492 * plugin/plugin-hsa.c: New file.
9494 2016-01-18 Tom de Vries <tom@codesourcery.com>
9496 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
9497 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
9498 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
9499 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
9500 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
9501 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
9502 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
9503 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
9504 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
9505 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
9506 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
9508 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
9510 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
9511 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
9512 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
9513 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
9514 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
9515 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
9516 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
9517 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
9519 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
9521 2016-01-15 Jakub Jelinek <jakub@redhat.com>
9523 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
9525 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
9527 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
9529 2016-01-12 James Norris <jnorris@codesourcery.com>
9531 * libgomp.texi: Updates for OpenACC.
9533 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
9535 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
9537 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
9540 * testsuite/libgomp.fortran/pr66680.f90: New test.
9542 2016-01-07 Jakub Jelinek <jakub@redhat.com>
9545 * testsuite/libgomp.c/pr68960.c: New test.
9547 2016-01-06 Nathan Sidwell <nathan@acm.org>
9549 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
9550 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
9552 2016-01-04 Jakub Jelinek <jakub@redhat.com>
9554 Update copyright years.
9556 * libgomp.texi: Bump @copying's copyright year.
9558 2015-12-31 Nathan Sidwell <nathan@acm.org>
9560 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
9561 dg-additional-options syntax.
9562 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
9563 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
9564 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
9565 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
9566 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
9567 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
9568 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
9569 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
9570 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
9571 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
9572 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
9573 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
9574 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
9575 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
9576 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
9577 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
9578 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
9579 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
9581 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
9583 * libgomp.h (REFCOUNT_LINK): Define.
9584 (struct splay_tree_key_s): Add link_key.
9585 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
9586 Replace target address of the pointer with target address of newly
9587 mapped object in the splay tree. Set link pointer on target to the
9588 device address of the mapped object.
9589 (gomp_unmap_vars): Restore target address of the pointer in the splay
9590 tree for REFCOUNT_LINK objects after unmapping.
9591 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
9592 declare target link" objects.
9593 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
9594 "omp declare target link" objects, which were mapped for the image.
9595 (gomp_exit_data): Restore target address of the pointer in the splay
9596 tree for REFCOUNT_LINK objects after unmapping.
9597 * testsuite/libgomp.c/target-link-1.c: New file.
9599 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
9601 * libgomp.h (gomp_device_state): New enum.
9602 (struct gomp_device_descr): Replace is_initialized with state.
9603 (gomp_fini_device): Remove declaration.
9604 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
9605 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
9606 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
9607 (acc_set_device_type): Use state instead of is_initialized.
9608 (acc_set_device_num): Likewise.
9609 * target.c (resolve_device): Use state instead of is_initialized.
9610 Do not initialize finalized device.
9611 (gomp_map_vars): Do nothing if device is finalized.
9612 (gomp_unmap_vars): Likewise.
9613 (gomp_update): Likewise.
9614 (GOMP_offload_register_ver): Use state instead of is_initialized.
9615 (GOMP_offload_unregister_ver): Likewise.
9616 (gomp_init_device): Likewise.
9617 (gomp_unload_device): Likewise.
9618 (gomp_fini_device): Remove.
9619 (gomp_get_target_fn_addr): Do nothing if device is finalized.
9620 (GOMP_target): Go to host fallback if device is finalized.
9621 (GOMP_target_ext): Likewise.
9622 (gomp_exit_data): Do nothing if device is finalized.
9623 (gomp_target_task_fn): Go to host fallback if device is finalized.
9624 (gomp_target_fini): New static function.
9625 (gomp_target_init): Use state instead of is_initialized.
9626 Call gomp_target_fini at exit.
9628 2015-12-09 Tom de Vries <tom@codesourcery.com>
9630 PR tree-optimization/68716
9631 * testsuite/libgomp.c/omp-nested-2.c: New test.
9633 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
9635 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
9636 target openacc_nvidia_accel_selected.
9637 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
9638 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
9639 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
9640 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
9642 2015-12-01 Julian Brown <julian@codesourcery.com>
9643 James Norris <James_Norris@mentor.com>
9645 * oacc-parallel.c (GOACC_host_data): New function.
9646 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
9647 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
9648 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
9649 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
9650 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
9651 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
9652 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
9654 2015-11-30 James Norris <jnorris@codesourcery.com>
9655 Cesar Philippidis <cesar@codesourcery.com>
9658 * libgomp.oacc-fortran/routine-5.f90: New test.
9659 * libgomp.oacc-fortran/routine-7.f90: New test.
9660 * libgomp.oacc-fortran/routine-9.f90: New test.
9662 2015-11-30 Tom de Vries <tom@codesourcery.com>
9664 PR tree-optimization/46032
9665 * testsuite/libgomp.c/pr46032.c: New test.
9667 2015-11-27 Jakub Jelinek <jakub@redhat.com>
9670 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
9671 (gomp_create_target_task): Call it before freeing
9672 GOMP_TARGET_TASK_DATA tasks.
9675 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
9676 in between case label and OpenMP standalone directives.
9677 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
9679 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
9681 * configure: Regenerate.
9683 2015-11-26 Jakub Jelinek <jakub@redhat.com>
9685 * testsuite/libgomp.c/target-35.c: New test.
9687 2015-11-22 James Norris <jnorris@codesourcery.com>
9688 Cesar Philippidis <cesar@codesourcery.com>
9690 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
9691 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
9692 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
9693 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
9694 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
9696 2015-11-20 Jakub Jelinek <jakub@redhat.com>
9699 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
9700 * testsuite/libgomp.c/reduction-12.c: Likewise.
9701 * testsuite/libgomp.c++/reduction-11.C: Likewise.
9702 * testsuite/libgomp.c++/reduction-12.C: Likewise.
9704 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
9706 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
9707 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
9708 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
9709 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
9710 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
9712 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9713 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9715 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
9717 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
9718 worker & gang cases.
9719 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
9721 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
9723 * config/nvptx/priority_queue.c: New file.
9725 2015-11-14 Jakub Jelinek <jakub@redhat.com>
9727 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
9730 2015-11-14 Jakub Jelinek <jakub@redhat.com>
9731 Aldy Hernandez <aldyh@redhat.com>
9732 Ilya Verbin <ilya.verbin@intel.com>
9734 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
9735 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
9736 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
9737 iterators or IV by chunk size.
9738 * parallel.c (gomp_resolve_num_threads): Don't assume that
9739 if thr->ts.team is non-NULL, then pool must be non-NULL.
9740 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
9741 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
9742 GOMP_PLUGIN_target_task_completion.
9743 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
9744 * Makefile.in: Regenerate.
9745 * libgomp.h: Shuffle prototypes and forward definitions around so
9746 priority queues can be defined.
9747 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
9748 (enum gomp_target_task_state): New enum.
9749 (struct gomp_target_task): Add state, tgt, task and team fields.
9750 (gomp_create_target_task): Change return type to bool, add
9752 (gomp_target_task_fn): Change return type to bool.
9753 (struct gomp_device_descr): Add async_run_func.
9754 (struct gomp_task): Remove children, next_child, prev_child,
9755 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
9757 (struct gomp_taskgroup): Remove children.
9758 Add taskgroup_queue.
9759 (struct gomp_team): Change task_queue type to a priority queue.
9760 (splay_compare): Define inline.
9761 (priority_queue_offset): New.
9762 (priority_node_to_task): New.
9763 (task_to_priority_node): New.
9764 * oacc-mem.c: Do not include splay-tree.h.
9765 * priority_queue.c: New file.
9766 * priority_queue.h: New file.
9767 * splay-tree.c: Do not include splay-tree.h.
9768 (splay_tree_foreach_internal): New.
9769 (splay_tree_foreach): New.
9770 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
9771 (splay_tree_callback): Define typedef.
9772 * target.c (splay_compare): Move to libgomp.h.
9773 (GOMP_target): Don't adjust *thr in any way around running offloaded
9775 (GOMP_target_ext): Likewise. Handle target nowait.
9776 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
9777 return value from gomp_create_target_task, if false, fallthrough
9778 as if no dependencies exist.
9779 (gomp_target_task_fn): Change return type to bool, return true
9780 if the task should have another part scheduled later. Handle
9782 (gomp_load_plugin_for_device): Initialize async_run.
9783 * task.c (gomp_init_task): Initialize children_queue.
9784 (gomp_clear_parent_in_list): New.
9785 (gomp_clear_parent_in_tree): New.
9786 (gomp_clear_parent): Handle priorities.
9787 (GOMP_task): Likewise.
9788 (priority_queue_move_task_first,
9789 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
9791 (gomp_create_target_task): Use priority queues. Change return type
9792 to bool, add state argument, return false if for async
9793 {{enter,exit} data,update} constructs no dependencies need to be
9794 waited for, handle target nowait. Set task->fn to NULL instead of
9795 gomp_target_task_fn.
9796 (verify_children_queue): Remove.
9797 (priority_list_upgrade_task): New.
9798 (priority_queue_upgrade_task): New.
9799 (verify_task_queue): Remove.
9800 (priority_list_downgrade_task): New.
9801 (priority_queue_downgrade_task): New.
9802 (gomp_task_run_pre): Use priority queues.
9803 Abstract code out to priority_queue_downgrade_task.
9804 (gomp_task_run_post_handle_dependers): Use priority queues.
9805 (gomp_task_run_post_remove_parent): Likewise.
9806 (gomp_task_run_post_remove_taskgroup): Likewise.
9807 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
9809 (GOMP_taskwait): Likewise.
9810 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
9811 priority-queue_upgrade_task.
9812 (GOMP_taskgroup_start): Use priority queues.
9813 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
9814 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
9816 * taskloop.c (GOMP_taskloop): Handle priorities.
9817 * team.c (gomp_new_team): Call priority_queue_init.
9818 (free_team): Call priority_queue_free.
9819 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
9820 team created for target nowait in implicit parallel region.
9821 (gomp_team_start): For nested check, test thr->ts.level instead of
9822 thr->ts.team != NULL.
9823 * testsuite/libgomp.c/doacross-3.c: New test.
9824 * testsuite/libgomp.c/ordered-5.c: New test.
9825 * testsuite/libgomp.c/priority.c: New test.
9826 * testsuite/libgomp.c/target-31.c: New test.
9827 * testsuite/libgomp.c/target-32.c: New test.
9828 * testsuite/libgomp.c/target-33.c: New test.
9829 * testsuite/libgomp.c/target-34.c: New test.
9831 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
9833 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
9835 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
9838 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
9840 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
9841 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
9843 2015-11-12 James Norris <jnorris@codesourcery.com>
9844 Joseph Myers <joseph@codesourcery.com>
9846 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
9847 * oacc-parallel.c (GOACC_declare): New function.
9848 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
9849 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
9850 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
9851 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
9852 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
9854 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
9856 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
9858 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
9860 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
9861 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
9863 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
9865 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
9868 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
9870 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
9871 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
9872 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
9873 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
9874 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
9876 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
9878 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
9879 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
9881 2015-11-05 Jakub Jelinek <jakub@redhat.com>
9882 Ilya Verbin <ilya.verbin@intel.com>
9884 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
9885 GOMP_loop_nonmonotonic_dynamic_start,
9886 GOMP_loop_nonmonotonic_guided_next,
9887 GOMP_loop_nonmonotonic_guided_start,
9888 GOMP_loop_ull_nonmonotonic_dynamic_next,
9889 GOMP_loop_ull_nonmonotonic_dynamic_start,
9890 GOMP_loop_ull_nonmonotonic_guided_next,
9891 GOMP_loop_ull_nonmonotonic_guided_start,
9892 GOMP_parallel_loop_nonmonotonic_dynamic,
9893 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
9894 (GOMP_target_41): Renamed to ...
9895 (GOMP_target_ext): ... this. Add num_teams and thread_limit
9897 (GOMP_target_data_41): Renamed to ...
9898 (GOMP_target_data_ext): ... this.
9899 (GOMP_target_update_41): Renamed to ...
9900 (GOMP_target_update_ext): ... this.
9901 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
9902 GOMP_target_data_ext and GOMP_target_update_ext instead of
9903 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
9904 Export GOMP_loop_nonmonotonic_dynamic_next,
9905 GOMP_loop_nonmonotonic_dynamic_start,
9906 GOMP_loop_nonmonotonic_guided_next,
9907 GOMP_loop_nonmonotonic_guided_start,
9908 GOMP_loop_ull_nonmonotonic_dynamic_next,
9909 GOMP_loop_ull_nonmonotonic_dynamic_start,
9910 GOMP_loop_ull_nonmonotonic_guided_next,
9911 GOMP_loop_ull_nonmonotonic_guided_start,
9912 GOMP_parallel_loop_nonmonotonic_dynamic and
9913 GOMP_parallel_loop_nonmonotonic_guided.
9914 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
9915 GOMP_parallel_loop_nonmonotonic_guided,
9916 GOMP_loop_nonmonotonic_dynamic_start,
9917 GOMP_loop_nonmonotonic_guided_start,
9918 GOMP_loop_nonmonotonic_dynamic_next,
9919 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
9920 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
9921 GOMP_loop_ull_nonmonotonic_guided_start,
9922 GOMP_loop_ull_nonmonotonic_dynamic_next,
9923 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
9924 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
9926 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
9927 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
9928 Use gomp_map_val function.
9929 (gomp_target_fallback_firstprivate): New static function.
9930 (GOMP_target_41): Renamed to ...
9931 (GOMP_target_ext): ... this. Add num_teams and thread_limit
9932 arguments. Move firstprivate fallback handling into a new
9934 (GOMP_target_data_41): Renamed to ...
9935 (GOMP_target_data_ext): ... this.
9936 (GOMP_target_update_41): Renamed to ...
9937 (GOMP_target_update_ext): ... this.
9938 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
9939 gomp_map_0len_lookup instead of gomp_map_lookup.
9940 (omp_target_is_present): Use gomp_map_0len_lookup instead of
9942 * testsuite/libgomp.c/target-28.c: Likewise.
9943 * testsuite/libgomp.c/monotonic-1.c: New test.
9944 * testsuite/libgomp.c/monotonic-2.c: New test.
9945 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
9946 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
9947 * testsuite/libgomp.c/pr66199-5.c: New test.
9948 * testsuite/libgomp.c/pr66199-6.c: New test.
9949 * testsuite/libgomp.c/pr66199-7.c: New test.
9950 * testsuite/libgomp.c/pr66199-8.c: New test.
9951 * testsuite/libgomp.c/pr66199-9.c: New test.
9952 * testsuite/libgomp.c/reduction-11.c: New test.
9953 * testsuite/libgomp.c/reduction-12.c: New test.
9954 * testsuite/libgomp.c/reduction-13.c: New test.
9955 * testsuite/libgomp.c/reduction-14.c: New test.
9956 * testsuite/libgomp.c/reduction-15.c: New test.
9957 * testsuite/libgomp.c/target-12.c (main): Adjust for
9958 omp_target_is_present change for one-past-last element.
9959 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
9960 the same var is both mapped and privatized.
9961 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
9962 handling of zero-length array sections.
9963 * testsuite/libgomp.c/target-28.c: New test.
9964 * testsuite/libgomp.c/target-29.c: New test.
9965 * testsuite/libgomp.c/target-30.c: New test.
9966 * testsuite/libgomp.c/target-teams-1.c: New test.
9967 * testsuite/libgomp.c++/member-6.C: New test.
9968 * testsuite/libgomp.c++/member-7.C: New test.
9969 * testsuite/libgomp.c++/monotonic-1.C: New test.
9970 * testsuite/libgomp.c++/monotonic-2.C: New test.
9971 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
9972 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
9973 * testsuite/libgomp.c++/pr66199-3.C: New test.
9974 * testsuite/libgomp.c++/pr66199-4.C: New test.
9975 * testsuite/libgomp.c++/pr66199-5.C: New test.
9976 * testsuite/libgomp.c++/pr66199-6.C: New test.
9977 * testsuite/libgomp.c++/pr66199-7.C: New test.
9978 * testsuite/libgomp.c++/pr66199-8.C: New test.
9979 * testsuite/libgomp.c++/pr66199-9.C: New test.
9980 * testsuite/libgomp.c++/reduction-11.C: New test.
9981 * testsuite/libgomp.c++/reduction-12.C: New test.
9982 * testsuite/libgomp.c++/target-13.C: New test.
9983 * testsuite/libgomp.c++/target-14.C: New test.
9984 * testsuite/libgomp.c++/target-15.C: New test.
9985 * testsuite/libgomp.c++/target-16.C: New test.
9986 * testsuite/libgomp.c++/target-17.C: New test.
9987 * testsuite/libgomp.c++/target-18.C: New test.
9988 * testsuite/libgomp.c++/target-19.C: New test.
9990 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
9992 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
9994 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9995 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9996 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9997 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9998 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
9999 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
10000 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
10001 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
10002 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
10003 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
10004 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
10005 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
10006 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
10007 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
10009 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
10011 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
10012 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
10013 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
10014 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
10015 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
10016 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
10017 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
10018 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
10020 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
10022 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
10023 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
10024 (GOMP_OFFLOAD_openacc_parallel): Likewise.
10025 * oacc-host.c (host_openacc_exec): Likewise.
10026 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
10028 2015-11-03 Julian Brown <julian@codesourcery.com>
10029 Thomas Schwinge <thomas@codesourcery.com>
10031 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
10032 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
10033 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
10035 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
10036 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
10038 2015-11-03 James Norris <jnorris@codesourcery.com>
10040 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
10042 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
10044 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
10045 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
10046 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
10047 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
10048 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
10050 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
10052 * openacc.h (enum acc_device_t): Reformat. Ensure layout
10054 (enum acc_async_t): Reformat.
10055 (acc_on_device): Declare compatible with builtin and provide C++
10057 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
10059 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
10060 Cesar Philippidis <cesar@codesourcery.com>
10062 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
10063 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
10064 ... this. Add a description of the test at the top of the file.
10065 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
10066 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
10067 ... this. Add a description of the test at the top of the file.
10069 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
10071 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
10072 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
10073 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
10074 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
10075 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
10076 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
10078 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
10080 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
10083 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
10086 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
10088 2015-10-27 James Norris <jnorris@codesourcery.com>
10090 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
10091 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
10093 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
10095 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
10096 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
10098 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
10099 acc_device_nvidia usage.
10100 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
10101 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
10102 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
10104 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
10105 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
10108 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
10112 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
10113 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
10115 2015-10-23 Tom de Vries <tom@codesourcery.com>
10118 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
10120 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
10122 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
10124 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
10126 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
10127 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
10129 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
10130 to 0 when mapnum is 0.
10132 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
10134 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
10135 Cast to int from int32_t.
10137 2015-10-13 Jakub Jelinek <jakub@redhat.com>
10138 Aldy Hernandez <aldyh@redhat.com>
10139 Ilya Verbin <ilya.verbin@intel.com>
10141 * config/linux/affinity.c (omp_get_place_num_procs,
10142 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
10143 * config/linux/doacross.h: New file.
10144 * config/posix/affinity.c (omp_get_place_num_procs,
10145 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
10146 * config/posix/doacross.h: New file.
10147 * env.c: Include gomp-constants.h.
10148 (struct gomp_task_icv): Rename run_sched_modifier to
10149 run_sched_chunk_size.
10150 (gomp_max_task_priority_var): New variable.
10151 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
10152 (handle_omp_display_env): Change _OPENMP value from 201307 to
10153 201511. Print OMP_MAX_TASK_PRIORITY.
10154 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
10155 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
10156 chunk_size and run_sched_modifier to run_sched_chunk_size.
10157 (omp_get_max_task_priority, omp_get_initial_device,
10158 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
10159 omp_get_partition_place_nums): New functions.
10160 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
10161 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
10163 (omp_get_num_places_, omp_get_place_num_procs_,
10164 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
10165 omp_get_place_proc_ids_8_, omp_get_place_num_,
10166 omp_get_partition_num_places_, omp_get_partition_place_nums_,
10167 omp_get_partition_place_nums_8_, omp_get_initial_device_,
10168 omp_get_max_task_priority_): New functions.
10169 * libgomp_g.h (GOMP_loop_doacross_static_start,
10170 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
10171 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
10172 GOMP_loop_ull_doacross_dynamic_start,
10173 GOMP_loop_ull_doacross_guided_start,
10174 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
10175 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
10176 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
10177 GOMP_target_data_41, GOMP_target_update_41,
10178 GOMP_target_enter_exit_data): New prototypes.
10179 (GOMP_task): Add prototype argument.
10180 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
10181 (struct gomp_doacross_work_share): New type.
10182 (struct gomp_work_share): Add doacross field.
10183 (struct gomp_task_icv): Rename run_sched_modifier to
10184 run_sched_chunk_size.
10185 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
10186 GOMP_TASK_UNDEFERRED. Add comments.
10187 (struct gomp_task_depend_entry): Add comments.
10188 (struct gomp_task): Likewise.
10189 (struct gomp_taskgroup): Likewise.
10190 (struct gomp_target_task): New type.
10191 (struct gomp_team): Add comment.
10192 (gomp_get_place_proc_ids_8, gomp_doacross_init,
10193 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
10194 gomp_create_target_task, gomp_target_task_fn): New prototypes.
10195 (struct target_var_desc): New type.
10196 (struct target_mem_desc): Adjust comment. Use struct
10197 target_var_desc instead of splay_tree_key for list.
10198 (REFCOUNT_INFINITY): Define.
10199 (struct splay_tree_key_s): Remove copy_from field.
10200 (struct gomp_device_descr): Add dev2dev_func field.
10201 (enum gomp_map_vars_kind): New enum.
10202 (gomp_map_vars): Add one argument.
10203 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
10204 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
10205 omp_get_place_num_procs, omp_get_place_num_procs_,
10206 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
10207 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
10208 omp_get_place_num_, omp_get_partition_num_places,
10209 omp_get_partition_num_places_, omp_get_partition_place_nums,
10210 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
10211 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
10212 omp_target_free, omp_target_is_present, omp_target_memcpy,
10213 omp_target_memcpy_rect, omp_target_associate_ptr and
10214 omp_target_disassociate_ptr.
10215 (GOMP_4.0.2): Renamed to ...
10216 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
10217 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
10218 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
10219 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
10220 GOMP_loop_doacross_static_start, GOMP_doacross_post,
10221 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
10222 GOMP_loop_ull_doacross_guided_start,
10223 GOMP_loop_ull_doacross_runtime_start,
10224 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
10225 GOMP_doacross_ull_wait.
10226 * libgomp.texi: Document omp_get_max_task_priority.
10227 Rename modifier argument to chunk_size for omp_set_schedule and
10228 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
10229 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
10230 to run_sched_chunk_size renaming.
10231 (GOMP_loop_ordered_runtime_start): Likewise.
10232 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
10233 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
10234 GOMP_parallel_loop_runtime_start): New functions.
10235 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
10236 to run_sched_chunk_size renaming.
10237 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
10238 GOMP_loop_doacross_guided_start): New functions or aliases.
10239 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
10240 run_sched_modifier to run_sched_chunk_size renaming.
10241 (GOMP_loop_ull_ordered_runtime_start): Likewise.
10242 (gomp_loop_ull_doacross_static_start,
10243 gomp_loop_ull_doacross_dynamic_start,
10244 gomp_loop_ull_doacross_guided_start,
10245 GOMP_loop_ull_doacross_runtime_start): New functions.
10246 (GOMP_loop_ull_doacross_static_start,
10247 GOMP_loop_ull_doacross_dynamic_start,
10248 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
10249 * oacc-mem.c (acc_map_data, present_create_copy,
10250 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
10252 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
10253 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
10254 instead of false to gomp_map_vars.
10255 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
10256 * omp.h.in (omp_lock_hint_t): New type.
10257 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
10258 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
10259 omp_get_place_num, omp_get_partition_num_places,
10260 omp_get_partition_place_nums, omp_get_initial_device,
10261 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
10262 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
10263 omp_target_associate_ptr, omp_target_disassociate_ptr): New
10265 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
10266 (omp_lock_hint_none, omp_lock_hint_uncontended,
10267 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
10268 omp_lock_hint_speculative): New parameters.
10269 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
10270 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
10271 omp_get_place_num, omp_get_partition_num_places,
10272 omp_get_partition_place_nums, omp_get_initial_device,
10273 omp_get_max_task_priority): New interfaces.
10274 (omp_set_schedule, omp_get_schedule): Rename modifier argument
10276 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
10277 (omp_lock_hint_none, omp_lock_hint_uncontended,
10278 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
10279 omp_lock_hint_speculative): New parameters.
10280 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
10281 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
10282 omp_get_place_num, omp_get_partition_num_places,
10283 omp_get_partition_place_nums, omp_get_initial_device,
10284 omp_get_max_task_priority): New functions and subroutines.
10285 * ordered.c: Include stdarg.h and string.h.
10286 (MAX_COLLAPSED_BITS): Define.
10287 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
10288 gomp_doacross_ull_init, GOMP_doacross_ull_post,
10289 GOMP_doacross_ull_wait): New functions.
10290 * target.c: Include errno.h.
10291 (resolve_device): If device is not initialized, call
10292 gomp_init_device on it.
10293 (gomp_map_lookup): New function.
10294 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
10295 Don't bump refcount if REFCOUNT_INFINITY. Handle
10296 GOMP_MAP_ALWAYS_TO_P.
10297 (get_kind): Rename is_openacc argument to short_mapkind.
10298 (gomp_map_pointer): Use gomp_map_lookup.
10299 (gomp_map_fields_existing): New function.
10300 (gomp_map_vars): Rename is_openacc argument to short_mapkind
10301 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
10302 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
10303 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
10304 Adjust for tgt->list changed type and copy_from living in there.
10305 (gomp_copy_from_async): Adjust for tgt->list changed type and
10306 copy_from living in there.
10307 (gomp_unmap_vars): Likewise.
10308 (gomp_update): Likewise. Rename is_openacc argument to
10309 short_mapkind. Don't fail if object is not mapped.
10310 (gomp_load_image_to_device): Initialize refcount to
10312 (gomp_target_fallback): New function.
10313 (gomp_get_target_fn_addr): Likewise.
10314 (GOMP_target): Adjust gomp_map_vars caller, use
10315 gomp_get_target_fn_addr and gomp_target_fallback.
10316 (GOMP_target_41): New function.
10317 (gomp_target_data_fallback): New function.
10318 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
10319 (GOMP_target_data_41): New function.
10320 (GOMP_target_update): Adjust gomp_update caller.
10321 (GOMP_target_update_41): New function.
10322 (gomp_exit_data, GOMP_target_enter_exit_data,
10323 gomp_target_task_fn, omp_target_alloc, omp_target_free,
10324 omp_target_is_present, omp_target_memcpy,
10325 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
10326 omp_target_associate_ptr, omp_target_disassociate_ptr,
10327 gomp_load_plugin_for_device): New functions.
10328 * task.c: Include gomp-constants.h. Include taskloop.c
10329 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
10330 (gomp_task_handle_depend): New function.
10331 (GOMP_task): Use it. Add priority argument. Use
10332 gomp-constant.h constants instead of hardcoded numbers.
10333 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
10334 (gomp_create_target_task): New function.
10335 (verify_children_queue, verify_taskgroup_queue,
10336 verify_task_queue): New functions.
10337 (gomp_task_run_pre): Call verify_*_queue functions.
10338 If an upcoming tied task is about to leave the sibling or
10339 taskgroup queues in an invalid state, adjust appropriately.
10340 Remove taskgroup argument. Add comments.
10341 (gomp_task_run_post_handle_dependers): Add comments.
10342 (gomp_task_run_post_remove_parent): Likewise.
10343 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
10344 (GOMP_taskwait): Likewise. Add comments.
10345 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
10346 problem such that the first non parent_depends_on task does not
10347 end up at the end of the children queue.
10348 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
10349 GOMP_TASK_UNDEFERRED.
10350 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
10351 * taskloop.c: New file.
10352 * testsuite/lib/libgomp.exp
10353 (check_effective_target_offload_device_nonshared_as): New proc.
10354 * testsuite/libgomp.c/affinity-2.c: New test.
10355 * testsuite/libgomp.c/doacross-1.c: New test.
10356 * testsuite/libgomp.c/doacross-2.c: New test.
10357 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
10358 Add map clause to target.
10359 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
10360 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
10361 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
10362 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
10363 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
10365 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
10366 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
10367 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
10368 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
10369 not defined. Use those where needed.
10370 * testsuite/libgomp.c/for-4.c: New test.
10371 * testsuite/libgomp.c/for-5.c: New test.
10372 * testsuite/libgomp.c/for-6.c: New test.
10373 * testsuite/libgomp.c/linear-1.c: New test.
10374 * testsuite/libgomp.c/ordered-4.c: New test.
10375 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
10376 only allowed on the loop iterator.
10377 * testsuite/libgomp.c/pr66199-3.c: New test.
10378 * testsuite/libgomp.c/pr66199-4.c: New test.
10379 * testsuite/libgomp.c/reduction-7.c: New test.
10380 * testsuite/libgomp.c/reduction-8.c: New test.
10381 * testsuite/libgomp.c/reduction-9.c: New test.
10382 * testsuite/libgomp.c/reduction-10.c: New test.
10383 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
10385 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
10386 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
10387 * testsuite/libgomp.c/target-11.c: New test.
10388 * testsuite/libgomp.c/target-12.c: New test.
10389 * testsuite/libgomp.c/target-13.c: New test.
10390 * testsuite/libgomp.c/target-14.c: New test.
10391 * testsuite/libgomp.c/target-15.c: New test.
10392 * testsuite/libgomp.c/target-16.c: New test.
10393 * testsuite/libgomp.c/target-17.c: New test.
10394 * testsuite/libgomp.c/target-18.c: New test.
10395 * testsuite/libgomp.c/target-19.c: New test.
10396 * testsuite/libgomp.c/target-20.c: New test.
10397 * testsuite/libgomp.c/target-21.c: New test.
10398 * testsuite/libgomp.c/target-22.c: New test.
10399 * testsuite/libgomp.c/target-23.c: New test.
10400 * testsuite/libgomp.c/target-24.c: New test.
10401 * testsuite/libgomp.c/target-25.c: New test.
10402 * testsuite/libgomp.c/target-26.c: New test.
10403 * testsuite/libgomp.c/target-27.c: New test.
10404 * testsuite/libgomp.c/taskloop-1.c: New test.
10405 * testsuite/libgomp.c/taskloop-2.c: New test.
10406 * testsuite/libgomp.c/taskloop-3.c: New test.
10407 * testsuite/libgomp.c/taskloop-4.c: New test.
10408 * testsuite/libgomp.c++/ctor-13.C: New test.
10409 * testsuite/libgomp.c++/doacross-1.C: New test.
10410 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
10411 Replace offload_device with offload_device_nonshared_as.
10412 * testsuite/libgomp.c++/for-12.C: New test.
10413 * testsuite/libgomp.c++/for-13.C: New test.
10414 * testsuite/libgomp.c++/for-14.C: New test.
10415 * testsuite/libgomp.c++/linear-1.C: New test.
10416 * testsuite/libgomp.c++/member-1.C: New test.
10417 * testsuite/libgomp.c++/member-2.C: New test.
10418 * testsuite/libgomp.c++/member-3.C: New test.
10419 * testsuite/libgomp.c++/member-4.C: New test.
10420 * testsuite/libgomp.c++/member-5.C: New test.
10421 * testsuite/libgomp.c++/ordered-1.C: New test.
10422 * testsuite/libgomp.c++/reduction-5.C: New test.
10423 * testsuite/libgomp.c++/reduction-6.C: New test.
10424 * testsuite/libgomp.c++/reduction-7.C: New test.
10425 * testsuite/libgomp.c++/reduction-8.C: New test.
10426 * testsuite/libgomp.c++/reduction-9.C: New test.
10427 * testsuite/libgomp.c++/reduction-10.C: New test.
10428 * testsuite/libgomp.c++/reference-1.C: New test.
10429 * testsuite/libgomp.c++/simd14.C: New test.
10430 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
10431 * testsuite/libgomp.c++/target-5.C: New test.
10432 * testsuite/libgomp.c++/target-6.C: New test.
10433 * testsuite/libgomp.c++/target-7.C: New test.
10434 * testsuite/libgomp.c++/target-8.C: New test.
10435 * testsuite/libgomp.c++/target-9.C: New test.
10436 * testsuite/libgomp.c++/target-10.C: New test.
10437 * testsuite/libgomp.c++/target-11.C: New test.
10438 * testsuite/libgomp.c++/target-12.C: New test.
10439 * testsuite/libgomp.c++/taskloop-1.C: New test.
10440 * testsuite/libgomp.c++/taskloop-2.C: New test.
10441 * testsuite/libgomp.c++/taskloop-3.C: New test.
10442 * testsuite/libgomp.c++/taskloop-4.C: New test.
10443 * testsuite/libgomp.c++/taskloop-5.C: New test.
10444 * testsuite/libgomp.c++/taskloop-6.C: New test.
10445 * testsuite/libgomp.c++/taskloop-7.C: New test.
10446 * testsuite/libgomp.c++/taskloop-8.C: New test.
10447 * testsuite/libgomp.c++/taskloop-9.C: New test.
10448 * testsuite/libgomp.fortran/affinity1.f90: New test.
10449 * testsuite/libgomp.fortran/affinity2.f90: New test.
10451 2015-10-13 Tom de Vries <tom@codesourcery.com>
10453 PR tree-optimization/67476
10454 * testsuite/libgomp.c/autopar-3.c: New test.
10455 * testsuite/libgomp.c/autopar-4.c: New test.
10456 * testsuite/libgomp.c/autopar-5.c: New test.
10457 * testsuite/libgomp.c/autopar-6.c: New test.
10458 * testsuite/libgomp.c/autopar-7.c: New test.
10459 * testsuite/libgomp.c/autopar-8.c: New test.
10461 2015-10-12 James Norris <jnorris@codesourcery.com>
10463 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
10466 2015-10-09 David Malcolm <dmalcolm@redhat.com>
10468 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
10469 using load_gcc_lib.
10471 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
10473 * oacc-ptx.h: Remove file, moving its content into...
10474 * config/nvptx/fortran.c: ... here...
10475 * config/nvptx/oacc-init.c: ..., here...
10476 * config/nvptx/oacc-parallel.c: ..., and here.
10477 * config/nvptx/openacc.f90: New file.
10478 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
10479 (link_ptx): Don't link in predefined bits of PTX code.
10481 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
10482 Bernd Schmidt <bernds@codesourcery.com>
10484 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
10485 (struct targ_ptx_obj): New.
10486 (nvptx_tdata): Move earlier, change data format.
10487 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
10489 (GOMP_OFFLOAD_load_image): Adjust.
10491 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10493 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
10494 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
10495 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
10496 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
10497 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10498 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10499 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10500 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10501 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10502 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10503 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10504 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
10505 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
10506 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10507 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10508 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10509 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
10510 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10511 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10512 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10513 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10514 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10515 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
10516 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
10517 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10518 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10519 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
10520 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10521 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10522 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
10523 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
10524 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
10525 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
10526 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
10527 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10528 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10529 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10530 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10531 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10532 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10533 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10534 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10535 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
10536 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
10537 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
10538 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
10539 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
10540 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
10541 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
10542 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
10543 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
10544 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
10545 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
10546 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
10547 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
10548 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10549 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10550 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10551 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10552 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10553 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10554 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10555 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10557 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
10559 * oacc-init.c (acc_on_device): Force optimization level.
10561 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
10563 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
10564 (cuda_errlist): Delete.
10565 (cuda_error): Reimplement.
10567 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
10569 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
10571 * libgomp.map (GOACC_parallel_keyed): New.
10572 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
10574 (GOACC_parallel_keyed): New interface. Lose geometry arguments
10575 and take keyed varargs list. Adjust call to exec_func.
10576 (GOACC_parallel): Force host fallback.
10577 * libgomp_g.h (GOACC_parallel): Remove.
10578 (GOACC_parallel_keyed): Declare.
10579 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
10580 (struct targ_gn_descriptor): Replace name field with launch field.
10581 (nvptx_exec): Lose separate geometry args, take array. Process
10582 dynamic dimensions and adjust.
10583 (struct nvptx_tdata): Replace fn_names field with fn_descs.
10584 (GOMP_OFFLOAD_load_image): Adjust for change in function table
10586 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
10588 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
10591 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
10594 * oacc-int.h (goacc_host_init): Add declaration.
10595 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
10596 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
10598 2015-09-08 Aditya Kumar <hiraditya@msn.com>
10599 Sebastian Pop <s.pop@samsung.com>
10601 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
10603 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
10604 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
10605 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
10606 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
10607 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
10609 2015-09-03 Jakub Jelinek <jakub@redhat.com>
10611 * configure.tgt: Add missing ;; in between nvptx and rtems
10614 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
10616 * config/posix/pool.h (gomp_adjust_thread_attr): New.
10617 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
10618 (gomp_thread_pool_reservoir): Add priority member.
10619 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
10621 (parse_thread_pools): Likewise.
10622 * team.c (gomp_team_start): Call configuration provided
10623 gomp_adjust_thread_attr(). Destroy thread attributes if
10625 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
10627 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
10629 * config/posix/pool.h: New.
10630 * config/rtems/pool.h: Likewise.
10631 * config/rtems/proc.c: Likewise.
10632 * libgomp.h (gomp_thread_destructor): Declare.
10633 * team.c: Include configuration provided "pool.h".
10634 (gomp_get_thread_pool): Define in configuration.
10635 (gomp_team_end): Call configuration defined
10636 gomp_release_thread_pool().
10638 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
10640 * config/rtems/bar.c: New.
10641 * config/rtems/bar.h: Likewise.
10642 * config/rtems/mutex.c: Likewise.
10643 * config/rtems/mutex.h: Likewise.
10644 * config/rtems/sem.c: Likewise.
10645 * config/rtems/sem.h: Likewise.
10646 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
10647 <sys/lock.h> header file.
10648 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
10649 supported by Newlib.
10650 * configure: Regenerate.
10652 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
10654 * team.c (gomp_new_thread_pool): Delete and move content to ...
10655 (gomp_get_thread_pool): ... new function. Allocate and
10656 initialize thread pool on demand.
10657 (get_last_team): Use gomp_get_thread_pool().
10658 (gomp_team_start): Delete thread pool initialization.
10660 2015-09-03 Tom de Vries <tom@codesourcery.com>
10662 PR tree-optimization/65637
10663 * testsuite/libgomp.c/autopar-2.c: New test.
10665 2015-08-29 Tom de Vries <tom@codesourcery.com>
10667 PR tree-optimization/46193
10668 * testsuite/libgomp.c/pr46193.c: New test.
10670 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
10673 * libgomp.map: Add 4.0.2 version.
10674 * target.c (offload_image_descr): Add version field.
10675 (gomp_load_image_to_device): Add version argument. Adjust plugin
10676 call. Improve load mismatch diagnostic.
10677 (gomp_unload_image_from_device): Add version argument. Adjust plugin
10679 (GOMP_offload_regster): Make stub function, move bulk to ...
10680 (GOMP_offload_register_ver): ... here. Process version argument.
10681 (GOMP_offload_unregister): Make stub function, move bulk to ...
10682 (GOMP_offload_unregister_ver): ... here. Process version argument.
10683 (gomp_init_device): Process version field.
10684 (gomp_unload_device): Process version field.
10685 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
10686 macros. Check plugin version.
10687 * libgomp.h (gomp_device_descr): Add version function field. Adjust
10688 loader and unloader types.
10689 * oacc-host.c: Include gomp-constants.h.
10690 (host_version): New.
10691 (host_load_image, host_unload_image): Adjust.
10692 (host_dispatch): Add host_version.
10693 * plugin/plugin-nvptx.c: Include gomp-constants.h.
10694 (GOMP_OFFLOAD_version): New.
10695 (GOMP_OFFLOAD_load_image): Add version arg and check it.
10696 (GOMP_OFFLOAD_unload_image): Likewise.
10697 * plugin/plugin-host.c: Include gomp-constants.h.
10698 (GOMP_OFFLOAD_version): New.
10699 (GOMP_OFFLOAD_load_image): Add version arg.
10700 (GOMP_OFFLOAD_unload_image): Likewise.
10702 2015-08-24 Tom de Vries <tom@codesourcery.com>
10704 PR tree-optimization/65468
10705 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
10707 2015-08-24 Tom de Vries <tom@codesourcery.com>
10709 PR tree-optimization/65468
10710 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
10712 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
10716 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
10717 (gomp_iter_guided_next): Idem.
10718 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
10719 (gomp_iter_ull_guided_next): Idem.
10720 * config/linux/wait.h (do_spin): Idem.
10722 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10724 * libgomp-plugin.h (enum offload_target_type): Remove
10725 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
10726 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
10727 * openacc.h (enum acc_device_t): Likewise.
10728 * openacc_lib.h: Likewise.
10729 * oacc-init.c (name_of_acc_device_t): Don't handle it.
10730 (acc_on_device): Just use __builtin_acc_on_device.
10731 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
10732 of acc_on_device builtin.
10733 * plugin/plugin-host.h: Remove file.
10734 * plugin/plugin-host.c: Likewise, but salvage some content into...
10735 * oacc-host.c: ... this file.
10736 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
10737 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
10738 * Makefile.in: Regenerate.
10739 * configure: Likewise.
10740 * testsuite/lib/libgomp.exp
10741 (check_effective_target_openacc_host_nonshm_selected): Remove.
10742 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
10743 ACC_DEVICE_TYPE=host_nonshm.
10744 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10745 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10746 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
10747 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
10748 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
10749 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
10751 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10752 Jakub Jelinek <jakub@redhat.com>
10754 * config/nvptx/affinity.c: New file.
10755 * config/nvptx/alloc.c: Likewise.
10756 * config/nvptx/bar.c: Likewise.
10757 * config/nvptx/barrier.c: Likewise.
10758 * config/nvptx/critical.c: Likewise.
10759 * config/nvptx/env.c: Likewise.
10760 * config/nvptx/error.c: Likewise.
10761 * config/nvptx/fortran.c: Likewise.
10762 * config/nvptx/iter.c: Likewise.
10763 * config/nvptx/iter_ull.c: Likewise.
10764 * config/nvptx/libgomp-plugin.c: Likewise.
10765 * config/nvptx/lock.c: Likewise.
10766 * config/nvptx/loop.c: Likewise.
10767 * config/nvptx/loop_ull.c: Likewise.
10768 * config/nvptx/mutex.c: Likewise.
10769 * config/nvptx/oacc-async.c: Likewise.
10770 * config/nvptx/oacc-cuda.c: Likewise.
10771 * config/nvptx/oacc-host.c: Likewise.
10772 * config/nvptx/oacc-init.c: Likewise.
10773 * config/nvptx/oacc-mem.c: Likewise.
10774 * config/nvptx/oacc-parallel.c: Likewise.
10775 * config/nvptx/oacc-plugin.c: Likewise.
10776 * config/nvptx/omp-lock.h: Likewise.
10777 * config/nvptx/ordered.c: Likewise.
10778 * config/nvptx/parallel.c: Likewise.
10779 * config/nvptx/proc.c: Likewise.
10780 * config/nvptx/ptrlock.c: Likewise.
10781 * config/nvptx/sections.c: Likewise.
10782 * config/nvptx/sem.c: Likewise.
10783 * config/nvptx/single.c: Likewise.
10784 * config/nvptx/splay-tree.c: Likewise.
10785 * config/nvptx/target.c: Likewise.
10786 * config/nvptx/task.c: Likewise.
10787 * config/nvptx/team.c: Likewise.
10788 * config/nvptx/time.c: Likewise.
10789 * config/nvptx/work.c: Likewise.
10790 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
10791 * configure: Regenerate.
10792 * configure.tgt (config_path): Set to "nvptx" for target
10795 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10797 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
10799 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
10801 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
10802 (cuda_errlist): Constify.
10803 (errmsg): Move into ...
10804 (cuda_error): ... here. Make smaller.
10805 (_XSTR, _STR): Delete.
10806 (cuda_synames): Delete.
10807 (verify_device_library): Delete.
10808 (nvptx_init): Don't call it.
10810 2015-07-28 Tom de Vries <tom@codesourcery.com>
10812 * testsuite/libgomp.c/uns-outer-4.c: New test.
10814 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
10816 * testsuite/libgomp.c/pr66714.c: New test.
10818 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
10821 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
10822 (fib_ref): New function.
10823 (fib): Correct corner cases in the recursion.
10824 (main): Replace the non-simd loop with fib_ref call.
10825 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
10827 (fibonacci): Lower the parameter N to 30. Correct accordingly check
10828 for the last array element value. Replace the non-simd loop with
10829 fib_ref call. Remove redundant b_ref array. Remove the comparison
10830 of the last array element with according Fibonacci sequence element.
10831 (fib): Correct corner cases in the recursion.
10833 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
10835 * target.c (gomp_offload_image_to_device): Rename to ...
10836 (gomp_load_image_to_device): ... here.
10837 (GOMP_offload_register): Adjust call.
10838 (gomp_init_device): Likewise.
10839 (gomp_unload_image_from_device): New. Broken out of ...
10840 (GOMP_offload_unregister): ... here. Call it.
10841 (gomp_unload_device): New.
10842 * libgomp.h (gomp_unload_device): Declare.
10843 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
10846 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
10848 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
10850 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
10852 (goacc_waits): Move !num_waits handling to ...
10853 (GOACC_wait): ... here, the only caller that might have zero waits.
10855 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
10856 (struct ptx_image_data): Move earlier, add fns field.
10857 (struct ptx_device): Add images and image_lock fields.
10858 (ptx_images, ptx_image_lock): Delete.
10859 (nvptx_open_device): Initialize images and image_lock fields.
10860 (nvptx_close_device): Destroy image_lock.
10861 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
10862 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
10865 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
10867 * target.c (GOMP_offload_register): Use int for device type arg.
10868 (GOMP_offload_unregister): Likewise.
10870 * target.c (struct_offload_image_descr): Constify host_table.
10871 (gomp_offload_image_to_device): Likewise.
10872 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
10874 * libgomp.h (gomp_device_descr): Constify target data arguments.
10875 * target.c (struct offload_image_descr): Constify target_data.
10876 (gomp_offload_image_to_device): Likewise.
10877 (GOMP_offload_register): Likewise.
10878 (GOMP_offload_unregister): Likewise.
10879 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
10880 GOMP_OFFLOAD_unload_image): Constify target data.
10881 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
10882 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
10884 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
10886 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
10887 Workaround driver library const error.
10888 (struct nvptx_tdata, nvptx_tdata_t): New.
10889 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
10892 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
10894 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
10895 of EPS parameter from integer to real.
10896 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
10897 type of EPS parameter from integer to real.
10899 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
10901 * team.c (get_last_team): New.
10902 (gomp_new_team): Recycle last non-nested team if possible.
10903 (gomp_team_end): Move team work share list free lock destruction
10905 (free_team): ... here.
10907 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
10909 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
10910 and ref from int to double. Replaced their comparison with
10911 an inequality of their difference and EPS.
10912 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
10913 comparison of pri and a reference number with an inequality of their
10914 difference and EPS.
10915 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
10916 the comparison of sum and sum_ref with an inequality of their
10917 difference and EPS.
10918 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
10919 the comparison of pri and a reference number with an inequality of
10920 their difference and EPS.
10922 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
10924 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
10925 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
10926 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
10927 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
10928 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
10929 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
10930 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
10931 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
10932 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
10933 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
10934 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
10935 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
10936 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
10938 (vec_mult): Likewise. Add #pragma omp taskwait.
10939 (main): Adjust caller.
10940 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
10941 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
10942 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
10943 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
10944 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
10945 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
10946 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
10947 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
10948 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
10949 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
10950 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
10951 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
10952 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
10953 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
10954 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
10955 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
10956 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
10957 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
10958 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
10959 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
10960 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
10961 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
10962 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
10963 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
10964 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
10965 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
10966 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
10967 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
10968 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
10969 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
10970 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
10971 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
10972 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
10973 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
10974 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
10975 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
10976 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
10977 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
10978 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
10979 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
10980 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
10981 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
10982 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
10983 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
10984 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
10985 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
10986 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
10987 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
10988 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
10989 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
10990 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
10991 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
10992 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
10993 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
10994 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
10995 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
10996 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
10997 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
10998 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
10999 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
11000 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
11001 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
11002 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
11003 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
11004 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
11005 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
11006 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
11007 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
11008 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
11009 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
11010 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
11011 (vec_mult): Add !$omp taskwait.
11012 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
11013 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
11014 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
11015 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
11016 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
11017 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
11018 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
11019 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
11020 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
11021 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
11022 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
11023 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
11024 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
11025 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
11026 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
11027 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
11028 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
11029 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
11030 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
11031 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
11032 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
11033 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
11034 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
11035 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
11036 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
11037 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
11038 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
11039 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
11040 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
11041 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
11042 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
11043 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
11044 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
11045 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
11046 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
11047 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
11048 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
11049 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
11050 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
11051 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
11052 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
11053 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
11054 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
11055 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
11056 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
11057 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
11058 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
11059 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
11060 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
11061 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
11062 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
11063 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
11064 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
11065 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
11066 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
11067 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
11068 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
11069 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
11070 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
11071 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
11072 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
11073 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
11074 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
11075 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
11076 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
11077 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
11078 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
11080 2015-07-10 Tom de Vries <tom@codesourcery.com>
11082 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
11083 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
11085 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
11088 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
11089 in a 64-bit configuration.
11090 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
11091 offloading testing if no such device is available.
11092 * testsuite/libgomp.oacc-c/c.exp: Likewise.
11093 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
11095 2015-07-08 Tom de Vries <tom@codesourcery.com>
11097 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
11099 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
11101 2015-07-07 Tom de Vries <tom@codesourcery.com>
11103 PR tree-optimization/66642
11104 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
11105 iteration count case.
11106 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
11107 function, factor out of ...
11108 (main): ... here. Test low iteration count case.
11110 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
11112 * libgomp.h (gomp_thread_pool): Comment last_team field.
11114 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
11116 * testsuite/libgomp.c++/pr66702-1.C: Require
11117 vect_simd_clones effective target.
11118 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
11120 2015-06-30 Tom de Vries <tom@codesourcery.com>
11122 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
11123 already set. Use DEFAULT_CFLAGS in dg-runtest.
11124 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
11127 2015-06-30 Tom de Vries <tom@codesourcery.com>
11129 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
11130 already set. Use DEFAULT_CFLAGS in dg-runtest.
11131 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
11132 * testsuite/libgomp.c++/pr64824.C: Same.
11133 * testsuite/libgomp.c++/pr64868.C: Same.
11134 * testsuite/libgomp.c++/pr66199-1.C: Same.
11135 * testsuite/libgomp.c++/pr66199-2.C: Same.
11136 * testsuite/libgomp.c++/target-2.C: Same.
11137 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
11138 -std=<standard> option.
11139 * testsuite/libgomp.c++/udr-11.C: Same.
11140 * testsuite/libgomp.c++/udr-12.C: Same.
11141 * testsuite/libgomp.c++/udr-13.C: Same.
11142 * testsuite/libgomp.c++/udr-14.C: Same.
11143 * testsuite/libgomp.c++/udr-15.C: Same.
11144 * testsuite/libgomp.c++/udr-16.C: Same.
11145 * testsuite/libgomp.c++/udr-17.C: Same.
11146 * testsuite/libgomp.c++/udr-18.C: Same.
11147 * testsuite/libgomp.c++/udr-19.C: Same.
11148 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
11149 * testsuite/libgomp.c++/simd-1.C: Same.
11150 * testsuite/libgomp.c++/simd-2.C: Same.
11151 * testsuite/libgomp.c++/simd-3.C: Same.
11152 * testsuite/libgomp.c++/simd-4.C: Same.
11153 * testsuite/libgomp.c++/simd-5.C: Same.
11154 * testsuite/libgomp.c++/simd-6.C: Same.
11155 * testsuite/libgomp.c++/simd-7.C: Same.
11156 * testsuite/libgomp.c++/simd-8.C: Same.
11157 * testsuite/libgomp.c++/simd-9.C: Same.
11158 * testsuite/libgomp.c++/simd10.C: Same.
11159 * testsuite/libgomp.c++/simd11.C: Same.
11160 * testsuite/libgomp.c++/simd12.C: Same.
11161 * testsuite/libgomp.c++/simd13.C: Same.
11163 2015-06-30 Jakub Jelinek <jakub@redhat.com>
11165 PR middle-end/66702
11166 * testsuite/libgomp.c++/pr66702-1.C: New test.
11167 * testsuite/libgomp.c++/pr66702-2.C: New test.
11169 2015-06-30 Tom de Vries <tom@codesourcery.com>
11171 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
11172 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
11173 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
11174 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
11176 2015-06-30 Tom de Vries <tom@codesourcery.com>
11178 PR tree-optimization/66652
11179 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
11180 using restrict pointers.
11181 (main): Add arguments to calls to f.
11182 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
11184 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
11186 * configure.ac: Fix check for header <sys/sysctl.h>.
11187 * configure: Regenerate.
11188 * config.h.in: Likewise.
11190 2015-06-23 Tom de Vries <tom@codesourcery.com>
11192 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
11194 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
11196 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
11198 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
11202 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
11203 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11205 2015-06-15 Tom de Vries <tom@codesourcery.com>
11207 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
11208 dg-additional-options for any remaining options.
11209 * testsuite/libgomp.c/atomic-2.c: Same.
11210 * testsuite/libgomp.c/atomic-4.c: Same.
11211 * testsuite/libgomp.c/atomic-5.c: Same.
11212 * testsuite/libgomp.c/atomic-6.c: Same.
11213 * testsuite/libgomp.c/autopar-1.c: Same.
11214 * testsuite/libgomp.c/copyin-1.c: Same.
11215 * testsuite/libgomp.c/copyin-2.c: Same.
11216 * testsuite/libgomp.c/copyin-3.c: Same.
11217 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
11218 * testsuite/libgomp.c/nestedfn-5.c: Same.
11219 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
11220 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
11221 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
11222 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
11223 * testsuite/libgomp.c/pr32362-1.c: Same.
11224 * testsuite/libgomp.c/pr32362-2.c: Same.
11225 * testsuite/libgomp.c/pr32362-3.c: Same.
11226 * testsuite/libgomp.c/pr39591-1.c: Same.
11227 * testsuite/libgomp.c/pr39591-2.c: Same.
11228 * testsuite/libgomp.c/pr39591-3.c: Same.
11229 * testsuite/libgomp.c/pr58392.c: Same.
11230 * testsuite/libgomp.c/pr58756.c: Same.
11231 * testsuite/libgomp.c/simd-1.c: Same.
11232 * testsuite/libgomp.c/simd-10.c: Same.
11233 * testsuite/libgomp.c/simd-11.c: Same.
11234 * testsuite/libgomp.c/simd-12.c: Same.
11235 * testsuite/libgomp.c/simd-13.c: Same.
11236 * testsuite/libgomp.c/simd-14.c: Same.
11237 * testsuite/libgomp.c/simd-15.c: Same.
11238 * testsuite/libgomp.c/simd-2.c: Same.
11239 * testsuite/libgomp.c/simd-3.c: Same.
11240 * testsuite/libgomp.c/simd-4.c: Same.
11241 * testsuite/libgomp.c/simd-5.c: Same.
11242 * testsuite/libgomp.c/simd-6.c: Same.
11243 * testsuite/libgomp.c/simd-7.c: Same.
11244 * testsuite/libgomp.c/simd-8.c: Same.
11245 * testsuite/libgomp.c/simd-9.c: Same.
11247 2015-06-15 Tom de Vries <tom@codesourcery.com>
11249 * testsuite/libgomp.c/pr35625.c: Fix typo.
11251 2015-06-15 Tom de Vries <tom@codesourcery.com>
11253 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
11255 * testsuite/libgomp.c/atomic-3.c: Same.
11256 * testsuite/libgomp.c/debug-1.c: Same.
11257 * testsuite/libgomp.c/nqueens-1.c: Same.
11258 * testsuite/libgomp.c/pr26171.c: Same.
11259 * testsuite/libgomp.c/pr48591.c: Same.
11260 * testsuite/libgomp.c/pr64824.c: Same.
11261 * testsuite/libgomp.c/pr64868.c: Same.
11262 * testsuite/libgomp.c/pr66133.c: Same.
11263 * testsuite/libgomp.c/pr66199-1.c: Same.
11264 * testsuite/libgomp.c/pr66199-2.c: Same.
11265 * testsuite/libgomp.c/target-8.c: Same.
11267 2015-06-15 Tom de Vries <tom@codesourcery.com>
11269 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
11271 * testsuite/libgomp.c/for-1.c: Same.
11272 * testsuite/libgomp.c/for-2.c: Same.
11273 * testsuite/libgomp.c/for-3.c: Same.
11274 * testsuite/libgomp.c/pr35625.c: Same.
11275 * testsuite/libgomp.c/pr39154.c: Same.
11276 * testsuite/libgomp.c/simd-16.c: Same.
11277 * testsuite/libgomp.c/simd-17.c: Same.
11279 2015-06-13 Tom de Vries <tom@codesourcery.com>
11281 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
11283 2015-06-13 Tom de Vries <tom@codesourcery.com>
11285 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
11286 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
11287 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
11289 (main): Use N instead of hardcoded constants.
11291 2015-06-05 Tom de Vries <tom@codesourcery.com>
11293 merge from gomp4 branch:
11294 2015-05-28 Tom de Vries <tom@codesourcery.com>
11296 PR tree-optimization/65443
11297 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
11298 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
11299 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
11301 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11303 * testsuite/libgomp.graphite/bounds.c: Adjust for
11304 cleanup-tree-dump removal.
11305 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
11306 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
11307 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
11308 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
11309 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
11310 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
11311 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
11312 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
11313 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
11314 * testsuite/libgomp.graphite/pr41118.c: Likewise.
11316 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
11318 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
11319 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
11320 (futex_wake) [!__x86_64__]: Ditto.
11322 2015-05-28 Julian Brown <julian@codesourcery.com>
11324 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
11325 function comment. Only call gomp_fatal if new argument is true.
11326 (acc_dev_num_out_of_range): New function.
11327 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
11328 acc_dev_num_out_of_range as appropriate.
11329 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
11330 (acc_get_device_num, acc_set_device_num): Update calls to
11332 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
11335 2015-05-28 Julian Brown <julian@codesourcery.com>
11338 * oacc-init.c (plugin/plugin-host.h): Include.
11339 (acc_on_device): Check whether we're in an offloaded region for
11341 plugin. Don't use __builtin_acc_on_device.
11342 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
11343 nonshm_exec flag in thread-local data.
11344 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
11345 data for host_nonshm plugin.
11346 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
11347 for host_nonshm plugin.
11348 * plugin/plugin-host.h: New.
11350 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
11352 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
11354 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
11356 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
11358 (FUTEX_PRIVATE_FLAG): Remove L suffix.
11359 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
11362 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
11364 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
11366 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
11368 * target.c (gomp_map_pointer): New function abstracting out
11369 GOMP_MAP_POINTER handling.
11370 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
11371 gomp_map_pointer().
11373 2015-05-19 Jakub Jelinek <jakub@redhat.com>
11375 PR middle-end/66199
11376 * testsuite/libgomp.c/pr66199-1.c: New test.
11377 * testsuite/libgomp.c/pr66199-2.c: New test.
11378 * testsuite/libgomp.c++/pr66199-1.C: New test.
11379 * testsuite/libgomp.c++/pr66199-2.C: New test.
11380 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
11381 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
11383 2015-05-19 Julian Brown <julian@codesourcery.com>
11385 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
11388 2015-05-13 Jakub Jelinek <jakub@redhat.com>
11390 PR middle-end/66133
11391 * testsuite/libgomp.c/pr66133.c: New test.
11393 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
11395 * Makefile.in: Regenerated with automake-1.11.6.
11396 * aclocal.m4: Likewise.
11397 * config.h.in: Likewise.
11398 * configure: Likewise.
11399 * testsuite/Makefile.in: Likewise.
11401 2015-05-08 Jason Merrill <jason@redhat.com>
11403 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
11406 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
11408 2015-05-06 Julian Brown <julian@codesourcery.com>
11410 * oacc-init.c (acc_device_lock): Add explanatory comment.
11411 (resolve_device): Add comment about locking requirement.
11412 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
11413 gomp_init_device and gomp_fini_device calls.
11414 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
11415 (acc_get_device_num, acc_set_device_num): Add locking around
11416 resolve_device and gomp_init_device calls.
11418 2015-05-06 Julian Brown <julian@codesourcery.com>
11420 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
11421 goacc_thread_lock on error paths.
11422 * oacc-mem.c (lookup_host): Remove locking from function. Note
11423 locking requirement for caller in function comment.
11424 (lookup_dev): Likewise.
11425 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
11426 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
11427 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
11430 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
11434 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
11435 don't expect "0x" prefix for "%p" format specifier, don't expect
11436 "(nil)" for NULL pointer.
11437 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11438 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11439 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11440 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11441 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11442 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11443 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11444 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11445 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11446 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11447 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11448 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11449 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11450 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11451 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11452 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11453 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11454 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11455 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11456 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11457 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11458 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11459 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11460 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11461 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11462 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11463 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11464 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11465 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
11466 accurately specify what we're looking for.
11467 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11468 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11469 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11470 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11471 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11473 2015-04-30 James Norris <jnorris@codesourcery.com>
11476 * testsuite/lib/libgomp.exp
11477 (check_effective_target_openacc_host_selected)
11478 (check_effective_target_openacc_host_nonshm_selected): New
11480 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
11482 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11483 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11484 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11485 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11486 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11487 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11488 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11489 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11490 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11491 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11492 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11493 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11494 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11495 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11496 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11497 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11498 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11499 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11500 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11501 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11502 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11503 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11504 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11505 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11506 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11507 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11508 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11509 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11510 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11511 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11512 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11513 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11514 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11515 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11516 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11517 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11518 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11519 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11520 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11521 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11522 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11523 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11524 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11526 2015-04-08 Julian Brown <julian@codesourcery.com>
11528 * libgomp.h (target_mem_desc: Remove mem_map field.
11529 (acc_dispatch_t): Remove open_device_func, close_device_func,
11530 get_device_num_func, set_device_num_func, target_data members.
11531 Change create_thread_data_func argument to device number instead of
11533 * oacc-async.c (assert.h): Include.
11534 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
11535 (acc_wait_all, acc_wait_all_async): Use current host thread's
11536 active device, not base_dev.
11537 * oacc-cuda.c (acc_get_current_cuda_device)
11538 (acc_get_current_cuda_context, acc_get_cuda_stream)
11539 (acc_set_cuda_stream): Likewise.
11540 * oacc-host.c (host_dispatch): Don't set open_device_func,
11541 close_device_func, get_device_num_func or set_device_num_func.
11542 * oacc-init.c (base_dev, init_key): Remove.
11543 (cached_base_dev): New.
11544 (name_of_acc_device_t): New.
11545 (acc_init_1): Initialise default-numbered device, not zeroth.
11546 (acc_shutdown_1): Close all devices of a given type.
11547 (goacc_destroy_thread): Don't use base_dev.
11548 (lazy_open, lazy_init, lazy_init_and_open): Remove.
11549 (goacc_attach_host_thread_to_device): New.
11550 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
11551 (acc_get_num_devices): Don't use base_dev.
11552 (acc_set_device_type): Reimplement.
11553 (acc_get_device_type): Don't use base_dev.
11554 (acc_get_device_num): Tweak logic.
11555 (acc_set_device_num): Likewise.
11556 (acc_on_device): Use acc_get_device_type.
11557 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
11558 (goacc_lazy_initialize): Reimplement with acc_init and
11559 goacc_attach_host_thread_to_device.
11560 * oacc-int.h (goacc_thread): Add base_dev field.
11561 (base_dev): Remove extern declaration.
11562 (goacc_attach_host_thread_to_device): Add prototype.
11563 * oacc-mem.c (acc_malloc): Use current thread's device instead of
11565 (acc_free): Likewise.
11566 (acc_memcpy_to_device): Likewise.
11567 (acc_memcpy_from_device): Likewise.
11568 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
11569 goacc_lazy_initialize (throughout).
11570 (GOACC_parallel): Use tgt_offset to locate target functions.
11571 * target.c (gomp_map_vars): Don't set tgt->mem_map.
11572 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
11573 (gomp_load_plugin_for_device): Remove open_device, close_device,
11574 get_device_num, set_device_num openacc hook initialisation. Don't set
11575 openacc.target_data.
11576 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
11577 (GOMP_OFFLOAD_openacc_close_device)
11578 (GOMP_OFFLOAD_openacc_get_device_num)
11579 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
11580 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
11582 * plugin/plugin-nvptx.c (ptx_inited): Remove.
11583 (instantiated_devices, ptx_dev_lock): New.
11584 (struct ptx_image_data): New.
11585 (ptx_devices, ptx_images, ptx_image_lock): New.
11586 (fini_streams_for_device): Reorder cuStreamDestroy call.
11587 (nvptx_get_num_devices): Remove forward declaration.
11588 (nvptx_init): Change return type to bool.
11589 (nvptx_fini): Remove.
11590 (nvptx_attach_host_thread_to_device): New.
11591 (nvptx_open_device): Return struct ptx_device* instead of void*.
11592 (nvptx_close_device): Change argument type to struct ptx_device*,
11593 return type to void.
11594 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
11595 (kernel_target_data, kernel_host_table): Remove static globals.
11596 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
11597 (GOMP_OFFLOAD_init_device): Reimplement.
11598 (GOMP_OFFLOAD_fini_device): Likewise.
11599 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
11600 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
11601 (GOMP_OFFLOAD_host2dev): Use ORD argument.
11602 (GOMP_OFFLOAD_openacc_open_device)
11603 (GOMP_OFFLOAD_openacc_close_device)
11604 (GOMP_OFFLOAD_openacc_set_device_num)
11605 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
11606 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
11610 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
11612 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
11614 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
11615 * libgomp.h (struct gomp_memory_mapping): Remove.
11616 (struct target_mem_desc): Change type of mem_map from
11617 gomp_memory_mapping * to splay_tree_s *.
11618 (struct gomp_device_descr): Remove register_image_func, get_table_func.
11619 Add load_image_func, unload_image_func.
11620 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
11621 Remove offload_regions_registered.
11622 (gomp_init_tables): Remove.
11623 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
11625 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
11626 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
11627 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
11628 offload_regions_registered.
11629 Initialize load_image_func, unload_image_func, mem_map.root.
11630 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
11631 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
11632 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
11633 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
11634 gomp_memory_mapping *. Use dev's lock and splay_tree.
11635 (lookup_dev): Use dev's lock.
11636 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
11637 (acc_is_present): Likewise.
11638 (acc_map_data): Likewise.
11639 (acc_unmap_data): Likewise. Use dev's lock.
11640 (present_create_copy): Likewise.
11641 (delete_copyout): Pass dev to lookup_host instead of mem_map.
11642 (update_dev_host): Likewise.
11643 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
11644 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
11645 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
11646 (GOMP_OFFLOAD_get_table): Remove
11647 (GOMP_OFFLOAD_load_image): New function.
11648 (GOMP_OFFLOAD_unload_image): New function.
11649 * target.c (register_lock): New mutex for offload image registration.
11650 (num_devices): Do not guard with PLUGIN_SUPPORT.
11651 (gomp_realloc_unlock): New static function.
11652 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
11654 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
11655 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
11656 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
11658 (gomp_unmap_vars): Likewise.
11659 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
11660 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
11661 (gomp_offload_image_to_device): New static function.
11662 (GOMP_offload_register): Add mutex lock.
11663 Call gomp_offload_image_to_device for all initialized devices.
11664 Replace gomp_realloc with gomp_realloc_unlock.
11665 (GOMP_offload_unregister): New function.
11666 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
11667 get_table_func from the plugin with calls to init_device_func and
11668 gomp_offload_image_to_device.
11669 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
11671 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
11672 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
11673 (GOMP_target_data): Do not call gomp_init_tables.
11674 (GOMP_target_update): Likewise. Remove argument from gomp_update.
11675 (gomp_load_plugin_for_device): Replace register_image and get_table
11676 with load_image and unload_image in DLSYM ().
11677 (gomp_register_images_for_device): Remove function.
11678 (gomp_target_init): Do not initialize current_device.mem_map.*,
11679 current_device.offload_regions_registered.
11680 Remove call to gomp_register_images_for_device.
11681 Do not free offload_images and num_offload_images.
11683 2015-03-30 Jakub Jelinek <jakub@redhat.com>
11686 * testsuite/libgomp.fortran/pr65597.f90: New test.
11688 2015-03-27 Tom de Vries <tom@codesourcery.com>
11691 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
11692 (init, check): New function.
11693 (foo): Change return type to void.
11694 (main): Call init and check.
11696 2015-03-27 Tom de Vries <tom@codesourcery.com>
11699 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
11700 (foo): Use M for non-inner loops to scale down test-case.
11702 2015-03-25 Kai Tietz <ktietz@redhat.com>
11705 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
11706 (GOACC_data_start): Likewise.
11707 * target.c (gomp_map_vars): Likewise.
11709 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
11711 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
11714 2015-03-19 Jakub Jelinek <jakub@redhat.com>
11716 * testsuite/libgomp.c/target-10.c: New test.
11717 * testsuite/libgomp.c++/target-4.C: New test.
11719 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
11721 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
11722 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
11724 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
11726 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
11727 * configure.ac (*-*-rtems*): Assume Pthread is supported.
11728 (pthread.h): Check for this header file.
11729 * configure: Regenerate.
11731 2015-02-25 Tom de Vries <tom@codesourcery.com>
11733 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
11734 (check_reduction_op, check_reduction_macro, max, min):
11736 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
11738 (main): Use new functions.
11740 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
11742 * target.c (gomp_load_plugin_for_device): Use const char * instead of
11743 char * for variables holding dlerror return values.
11744 (DLSYM_OPT): Ditto.
11746 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
11748 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
11750 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
11751 Cesar Philippidis <cesar@codesourcery.com>
11753 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
11754 GOACC_ctaid, and GOACC_nctaid routines.
11756 2015-02-11 Jakub Jelinek <jakub@redhat.com>
11759 * testsuite/libgomp.c/atomic-18.c: New test.
11760 * testsuite/libgomp.c++/atomic-16.C: New test.
11762 2015-02-04 Jakub Jelinek <jakub@redhat.com>
11766 * testsuite/libgomp.c/pr64824.c: New test.
11767 * testsuite/libgomp.c/pr64868.c: New test.
11768 * testsuite/libgomp.c++/pr64824.C: New test.
11769 * testsuite/libgomp.c++/pr64868.C: New test.
11771 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
11774 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
11775 Link with -lpthread.
11776 * config/aix/plugin-suffix.h: Delete.
11778 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
11781 * configure.tgt (*-*-aix*): Use config_path "aix posix".
11782 (*-*-darwin*): Use config_path "bsd darwin posix".
11783 (*-*-hpux*): Use config_path "hpux posix".
11784 * target.c: Add include of plugin-suffix.h and use
11785 SONAME_SUFFIX macro.
11786 * config/aix/plugin-suffix.h: New file.
11787 * config/darwin/plugin-suffix.h: New file.
11788 * config/hpux/plugin-suffix.h: New file.
11789 * config/posix/plugin-suffix.h: New file.
11791 2015-01-23 Jakub Jelinek <jakub@redhat.com>
11793 PR middle-end/64734
11794 * libgomp.c/pr64734.c: New test.
11796 2015-01-23 Tom de Vries <tom@codesourcery.com>
11799 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
11801 2015-01-23 Tom de Vries <tom@codesourcery.com>
11804 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
11807 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
11810 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
11811 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
11812 formal parameter. Update all users.
11813 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
11814 Document unused formal parameter.
11816 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
11818 * oacc-parallel.c: Don't include <alloca.h>.
11819 (GOACC_parallel): Use gomp_alloca instead of alloca.
11821 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
11823 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
11825 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
11826 James Norris <jnorris@codesourcery.com>
11827 Tom de Vries <tom@codesourcery.com>
11828 Julian Brown <julian@codesourcery.com>
11829 Cesar Philippidis <cesar@codesourcery.com>
11830 Nathan Sidwell <nathan@codesourcery.com>
11831 Tobias Burnus <burnus@net-b.de>
11833 * Makefile.am (search_path): Add $(top_srcdir)/../include.
11834 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
11835 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
11836 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
11837 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
11838 Include $(top_srcdir)/plugin/Makefrag.am.
11839 (nodist_libsubinclude_HEADERS): Add openacc.h.
11840 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
11841 openacc.f90, openacc.mod, openacc_kinds.mod.
11842 (omp_lib.mod): Generalize into...
11843 (%.mod): ... this new rule.
11844 (openacc_kinds.mod, openacc.mod): New rules.
11845 * plugin/configfrag.ac: New file.
11846 * configure.ac: Move plugin/offloading support into it. Include
11847 it. Instantiate testsuite/libgomp-test-support.pt.exp.
11848 * plugin/Makefrag.am: New file.
11849 * testsuite/Makefile.am (OFFLOAD_TARGETS)
11850 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
11852 (libgomp-test-support.exp): New rule.
11853 (all-local): Depend on it.
11854 * Makefile.in: Regenerate.
11855 * testsuite/Makefile.in: Regenerate.
11856 * config.h.in: Likewise.
11857 * configure: Likewise.
11858 * configure.tgt: Harden shell syntax.
11859 * env.c: Include "oacc-int.h".
11860 (parse_acc_device_type): New function.
11861 (gomp_debug_var, goacc_device_type, goacc_device_num): New
11863 (initialize_env): Initialize those. Call
11864 goacc_runtime_initialize.
11865 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
11866 (gomp_fatal): Call gomp_vfatal.
11867 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
11868 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
11869 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
11870 (splay_tree_node, splay_tree, splay_tree_key)
11871 (struct target_mem_desc, struct splay_tree_key_s)
11872 (struct gomp_memory_mapping, struct acc_dispatch_t)
11873 (struct gomp_device_descr, gomp_acc_insert_pointer)
11874 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
11875 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
11876 (gomp_free_memmap, gomp_fini_device): New declarations.
11877 (gomp_vdebug, gomp_debug): New macros.
11878 Include "splay-tree.h".
11879 * libgomp.map (OACC_2.0): New symbol version. Use for
11880 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
11881 acc_set_device_type_h_, acc_get_device_type,
11882 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
11883 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
11884 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
11885 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
11886 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
11887 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
11888 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
11889 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
11890 acc_copyin_array_h_, acc_present_or_copyin,
11891 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
11892 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
11893 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
11894 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
11895 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
11896 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
11897 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
11898 acc_update_device, acc_update_device_32_h_,
11899 acc_update_device_64_h_, acc_update_device_array_h_,
11900 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
11901 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
11902 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
11903 acc_is_present_64_h_, acc_is_present_array_h_,
11904 acc_memcpy_to_device, acc_memcpy_from_device,
11905 acc_get_current_cuda_device, acc_get_current_cuda_context,
11906 acc_get_cuda_stream, acc_set_cuda_stream.
11907 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
11908 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
11909 GOACC_update, GOACC_wait, GOACC_get_thread_num,
11910 GOACC_get_num_threads.
11911 (GOMP_PLUGIN_1.0): New symbol version. Use for
11912 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
11913 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
11914 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
11915 GOMP_PLUGIN_acc_thread.
11916 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
11917 environment variable.
11918 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
11919 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
11920 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
11921 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
11922 (splay_tree_remove): New declarations.
11923 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
11924 (splay_tree_remove, splay_tree_lookup): Move into...
11925 * splay-tree.c: ... this new file.
11926 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
11927 (splay_tree_node, splay_tree, splay_tree_key)
11928 (struct target_mem_desc, struct splay_tree_key_s)
11929 (struct gomp_device_descr): Don't declare.
11930 (num_devices_openmp): New variable.
11931 (gomp_get_num_devices ): Use it.
11932 (gomp_init_targets_once): New function.
11933 (gomp_get_num_devices ): Use it.
11934 (get_kind, gomp_copy_from_async, gomp_free_memmap)
11935 (gomp_fini_device, gomp_register_image_for_device): New functions.
11936 (gomp_map_vars): Add devaddrs parameter.
11937 (gomp_update): Add mm parameter.
11938 (gomp_init_device): Move most of it into...
11939 (gomp_init_tables): ... this new function.
11940 (gomp_register_images_for_device): Remove function.
11941 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
11942 Make them hidden instead of static.
11943 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
11944 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
11945 (GOMP_target_end_data, GOMP_target_update)
11946 (gomp_load_plugin_for_device, gomp_target_init): Update for
11948 * oacc-async.c: New file.
11949 * oacc-cuda.c: Likewise.
11950 * oacc-host.c: Likewise.
11951 * oacc-init.c: Likewise.
11952 * oacc-int.h: Likewise.
11953 * oacc-mem.c: Likewise.
11954 * oacc-parallel.c: Likewise.
11955 * oacc-plugin.c: Likewise.
11956 * oacc-plugin.h: Likewise.
11957 * oacc-ptx.h: Likewise.
11958 * openacc.f90: Likewise.
11959 * openacc.h: Likewise.
11960 * openacc_lib.h: Likewise.
11961 * plugin/plugin-host.c: Likewise.
11962 * plugin/plugin-nvptx.c: Likewise.
11963 * libgomp-plugin.c: Likewise.
11964 * libgomp-plugin.h: Likewise.
11965 * libgomp_target.h: Remove file after merging content into the
11966 former file. Update all users.
11967 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
11968 (offload_targets_s, offload_targets_s_openacc): New variables.
11969 (check_effective_target_openacc_nvidia_accel_present)
11970 (check_effective_target_openacc_nvidia_accel_selected): New
11972 (libgomp_init): Update for OpenACC changes.
11973 * testsuite/libgomp-test-support.exp.in: New file.
11974 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
11975 * testsuite/libgomp.oacc-c/c.exp: Likewise.
11976 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
11977 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
11978 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
11979 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
11980 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
11981 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
11982 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
11983 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
11984 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
11985 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
11986 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
11987 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11988 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
11989 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
11990 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
11991 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
11992 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
11993 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
11994 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
11995 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
11996 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
11997 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
11998 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11999 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
12000 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
12001 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
12002 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
12003 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
12004 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
12005 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
12006 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
12007 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
12008 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
12009 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
12010 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
12011 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
12012 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
12013 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
12014 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
12015 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
12016 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12017 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12018 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12019 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
12020 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
12021 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12022 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12023 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12024 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12025 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
12026 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12027 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
12028 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
12029 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12030 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12031 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
12032 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12033 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
12034 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
12035 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
12036 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12037 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
12038 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
12039 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
12040 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
12041 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
12042 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
12043 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
12044 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
12045 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12046 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12047 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12048 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
12049 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
12050 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12051 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12052 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
12053 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
12054 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
12055 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
12056 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12057 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12058 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12059 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
12060 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
12061 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
12062 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
12063 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
12064 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
12065 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
12066 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
12067 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
12068 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
12069 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
12070 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
12071 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
12072 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
12073 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
12074 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
12075 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
12076 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
12077 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
12078 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
12079 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
12080 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
12081 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
12082 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
12083 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
12084 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
12085 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
12086 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
12087 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
12088 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
12089 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
12090 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
12091 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
12092 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
12093 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
12094 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
12095 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
12096 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
12097 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
12098 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
12099 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
12100 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
12101 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
12102 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
12103 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
12104 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
12105 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
12106 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
12107 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
12108 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
12109 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12110 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12111 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12112 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12113 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
12115 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
12116 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
12117 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
12118 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
12119 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
12120 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
12121 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
12122 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
12123 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
12124 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
12125 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
12126 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
12127 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
12128 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
12129 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
12130 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
12131 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
12132 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
12133 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
12134 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
12135 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
12136 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
12137 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
12138 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
12139 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12140 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
12141 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
12142 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
12143 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
12144 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
12145 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
12146 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
12147 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
12148 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
12149 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
12150 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
12151 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
12152 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
12153 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
12154 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
12155 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
12156 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
12157 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
12158 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
12159 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
12160 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
12161 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
12162 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
12163 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
12164 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12165 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12166 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12167 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
12168 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12169 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
12170 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
12171 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
12172 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
12173 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
12174 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
12176 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
12177 Julian Brown <julian@codesourcery.com>
12178 David Malcolm <dmalcolm@redhat.com>
12180 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
12181 to "GNU Offloading and Multi Processing Runtime Library". Change
12183 * configure: Regenerate.
12184 * libgomp.texi: Update.
12186 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
12188 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
12190 * configure: Regenerate.
12192 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
12193 "intelmic" in $offload_targets.
12195 2015-01-05 Jakub Jelinek <jakub@redhat.com>
12197 Update copyright years.
12199 * libgomp.texi: Bump @copying's copyright year.
12201 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12203 * testsuite/lib/libgomp.exp: Load target-utils.exp.
12204 Move load of target-supports.exp earlier.
12206 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
12208 * testsuite/libgomp.c/target-9.c: New test.
12210 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
12212 * config.h.in: Regenerate.
12213 * configure: Regenerate.
12214 * configure.ac: Add GCC_CHECK_EMUTLS.
12215 * libgomp.h: Add check for USE_EMUTLS: this case
12216 is equal to HAVE_TLS.
12217 * team.c: Likewise.
12219 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
12221 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
12223 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
12224 Ilya Verbin <ilya.verbin@intel.com>
12226 * testsuite/libgomp.c/target-critical-1.c: New test.
12228 2014-11-26 Jakub Jelinek <jakub@redhat.com>
12230 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
12231 to dg-options unless expensive testing is on.
12232 (TESTITERS): Define to N if not defined.
12233 (main): Use TESTITERS instead of N.
12234 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
12235 dg-additional-options depending on whether expensive testing is on.
12236 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
12237 Decrease N to 100000 and CHUNKSZ to 10000.
12239 2014-11-24 Jakub Jelinek <jakub@redhat.com>
12242 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
12243 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
12245 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
12247 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
12249 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
12252 * configure: Regenerated.
12254 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
12256 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
12257 vect_simd_clones effective target.
12258 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
12260 2014-11-14 Jakub Jelinek <jakub@redhat.com>
12262 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
12263 of 32 as block_size.
12264 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
12265 instead of 32 as block_size.
12267 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
12268 Ilya Verbin <ilya.verbin@intel.com>
12270 * Makefile.in: Regenerate.
12271 * configure: Regenerate.
12272 * configure.ac: Set up offload_additional_options,
12273 offload_additional_lib_paths and offload_targets.
12274 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
12275 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
12276 * testsuite/Makefile.in: Regenerate.
12277 * testsuite/lib/libgomp.exp (libgomp_init): Append
12278 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
12279 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
12280 build directory to LD_LIBRARY_PATH for intelmic offload targets.
12282 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
12283 Ilya Verbin <ilya.verbin@intel.com>
12284 Kirill Yukhin <kirill.yukhin@intel.com>
12285 Ilya Tocar <ilya.tocar@intel.com>
12287 * testsuite/lib/libgomp.exp
12288 (check_effective_target_offload_device): New.
12289 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
12290 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
12291 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
12292 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
12293 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
12294 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
12295 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
12296 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
12297 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
12298 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
12299 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
12300 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
12301 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
12302 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
12303 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
12304 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
12305 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
12306 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
12307 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
12308 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
12309 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
12310 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
12311 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
12312 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
12313 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
12314 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
12315 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
12316 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
12317 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
12318 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
12319 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
12320 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
12321 * testsuite/libgomp.c/target-7.c: Fix test.
12322 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
12323 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
12324 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
12325 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
12326 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
12327 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
12328 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
12329 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
12330 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
12331 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
12332 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
12333 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
12334 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
12335 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
12336 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
12337 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
12338 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
12339 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
12340 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
12341 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
12342 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
12343 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
12344 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
12345 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
12346 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
12347 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
12348 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
12349 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
12350 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
12351 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
12352 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
12354 2014-11-13 Jakub Jelinek <jakub@redhat.com>
12355 Ilya Verbin <ilya.verbin@intel.com>
12356 Thomas Schwinge <thomas@codesourcery.com>
12357 Andrey Turetskiy <andrey.turetskiy@intel.com>
12359 * libgomp.map (GOMP_4.0.1): New symbol version.
12360 Add GOMP_offload_register.
12361 * libgomp_target.h: New file.
12362 * splay-tree.h: New file.
12363 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
12364 (gomp_target_init): New forward declaration.
12365 (gomp_is_initialized): New static variable.
12366 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
12367 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
12369 (offload_images, num_offload_images, devices, num_devices): New static
12371 (splay_compare): New static function.
12372 (struct gomp_device_descr): New structure.
12373 (gomp_get_num_devices): Call gomp_target_init.
12374 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
12375 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
12376 (GOMP_offload_register): New function.
12377 (GOMP_target): Arrange for host callback to be performed in a separate
12378 initial thread and contention group, inheriting ICVs from
12379 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
12380 Add device initialization and lookup for target function in splay tree.
12381 (GOMP_target_data): Add device initialization and call gomp_map_vars.
12382 (GOMP_target_end_data): Call gomp_unmap_vars.
12383 (GOMP_target_update): Add device initialization and call gomp_update.
12384 (gomp_load_plugin_for_device, gomp_register_images_for_device)
12385 (gomp_target_init): New static functions.
12387 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
12388 Thomas Schwinge <thomas@codesourcery.com>
12389 Ilya Verbin <ilya.verbin@intel.com>
12390 Andrey Turetskiy <andrey.turetskiy@intel.com>
12392 * config.h.in: Regenerate.
12393 * configure: Regenerate.
12394 * configure.ac: Check for libdl, required for plugin support.
12395 (PLUGIN_SUPPORT): Define if plugins are supported.
12396 (enable_offload_targets): Support Intel MIC targets.
12397 (OFFLOAD_TARGETS): List of target names suitable for offloading.
12399 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12402 * configure: Regenerate.
12404 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12406 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
12408 2014-10-06 Marek Polacek <polacek@redhat.com>
12410 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
12411 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
12412 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
12413 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
12415 2014-10-06 Marek Polacek <polacek@redhat.com>
12417 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
12418 * testsuite/libgomp.c/nqueens-1.c: Likewise.
12419 * testsuite/libgomp.c/pr26943-3.c: Likewise.
12420 * testsuite/libgomp.c/pr26943-4.c: Likewise.
12421 * testsuite/libgomp.c/pr36802-2.c: Likewise.
12422 * testsuite/libgomp.c/pr36802-3.c: Likewise.
12423 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
12424 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
12425 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
12426 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
12427 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
12428 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
12429 * testsuite/libgomp.c/omp-single-1.c: Likewise.
12430 * testsuite/libgomp.c/omp-single-2.c: Likewise.
12431 * testsuite/libgomp.c/omp_matvec.c: Likewise.
12432 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
12433 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
12434 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
12437 2014-10-03 Jakub Jelinek <jakub@redhat.com>
12440 * testsuite/libgomp.c/pr61200.c: New test.
12442 2014-09-18 Jakub Jelinek <jakub@redhat.com>
12445 * testsuite/libgomp.c++/pr63248.C: New test.
12447 2014-08-04 Jakub Jelinek <jakub@redhat.com>
12449 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
12450 is not zero, but taskgroup->children is NULL and there are
12451 any task->children, schedule those instead of waiting.
12452 * testsuite/libgomp.c/depend-6.c: New test.
12453 * testsuite/libgomp.c/depend-7.c: New test.
12454 * testsuite/libgomp.c/depend-8.c: New test.
12455 * testsuite/libgomp.c/depend-9.c: New test.
12456 * testsuite/libgomp.c/depend-10.c: New test.
12458 2014-08-01 Jakub Jelinek <jakub@redhat.com>
12460 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
12461 (struct gomp_taskwait): New type.
12462 (struct gomp_task): Add taskwait and parent_depends_on, remove
12463 in_taskwait and taskwait_sem fields.
12464 (gomp_finish_task): Don't destroy taskwait_sem.
12465 * task.c (gomp_init_task): Don't init in_taskwait, instead init
12466 taskwait and parent_depends_on.
12467 (GOMP_task): For if (0) tasks with depend clause that depend on
12468 earlier tasks don't defer them, instead call
12469 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
12470 Initialize redundant_out field, for redundant out entries just
12471 move them at the end of linked list instead of removing them
12472 completely, and set redundant_out flag instead of redundant.
12473 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
12475 (gomp_task_run_post_handle_dependers): If parent is in
12476 gomp_task_maybe_wait_for_dependencies and newly runnable task
12477 is not parent_depends_on, queue it in parent->children linked
12478 list after all runnable tasks with parent_depends_on set.
12479 Adjust for addition of taskwait indirection.
12480 (gomp_task_run_post_remove_parent): If parent is in
12481 gomp_task_maybe_wait_for_dependencies and task to be removed
12482 is parent_depends_on, decrement n_depend and if needed awake
12483 parent. Adjust for addition of taskwait indirection.
12484 (GOMP_taskwait): Adjust for addition of taskwait indirection.
12485 (gomp_task_maybe_wait_for_dependencies): New function.
12486 * testsuite/libgomp.c/depend-5.c: New test.
12488 2014-07-13 Tobias Burnus <burnus@net-b.de>
12490 * testsuite/libgomp.fortran/pr34020.f90: Make compile
12491 with TS 18508/Fortran 2015.
12493 2014-07-06 Marek Polacek <polacek@redhat.com>
12496 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
12498 2014-07-03 Jakub Jelinek <jakub@redhat.com>
12500 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
12501 matches regex $lang_source_re, add $lang_include_flags to options.
12502 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
12503 * testsuite/libgomp.c++/c++.exp: Likewise.
12504 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
12505 and lang_include_flags instead of adding -fintrinsic-modules-path= to
12507 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
12509 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
12511 * testsuite/libgomp.fortran/fortran.exp: Explain
12512 gfortran-dg-runtest usage.
12514 2014-06-25 Jakub Jelinek <jakub@redhat.com>
12516 * testsuite/libgomp.fortran/simd5.f90: New test.
12517 * testsuite/libgomp.fortran/simd6.f90: New test.
12518 * testsuite/libgomp.fortran/simd7.f90: New test.
12520 2014-06-24 Jakub Jelinek <jakub@redhat.com>
12522 * testsuite/libgomp.c/for-2.c: Define SC to static for
12523 #pragma omp for simd testing.
12524 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
12525 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
12527 * testsuite/libgomp.c/simd-14.c: New test.
12528 * testsuite/libgomp.c/simd-15.c: New test.
12529 * testsuite/libgomp.c/simd-16.c: New test.
12530 * testsuite/libgomp.c/simd-17.c: New test.
12531 * testsuite/libgomp.c++/for-10.C: Define SC to static for
12532 #pragma omp for simd testing.
12533 * testsuite/libgomp.c++/simd10.C: New test.
12534 * testsuite/libgomp.c++/simd11.C: New test.
12535 * testsuite/libgomp.c++/simd12.C: New test.
12536 * testsuite/libgomp.c++/simd13.C: New test.
12538 * testsuite/libgomp.fortran/aligned1.f03: New test.
12539 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
12540 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
12541 tasks with !$omp parallel !$omp single.
12542 * testsuite/libgomp.fortran/target8.f90: New test.
12543 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
12544 not to use trim in the combiner, instead call elemental function.
12545 (fn): New elemental function.
12546 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
12548 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
12550 * testsuite/libgomp.fortran/udr12.f90: New test.
12551 * testsuite/libgomp.fortran/udr13.f90: New test.
12552 * testsuite/libgomp.fortran/udr14.f90: New test.
12553 * testsuite/libgomp.fortran/udr15.f90: New test.
12555 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12557 * omp_lib.f90.in (openmp_version): Set to 201307.
12558 * omp_lib.h.in (openmp_version): Likewise.
12559 * testsuite/libgomp.c/target-8.c: New test.
12560 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
12561 and inbranch clauses.
12562 * testsuite/libgomp.fortran/depend-3.f90: New test.
12563 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
12565 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12566 * testsuite/libgomp.fortran/target1.f90: New test.
12567 * testsuite/libgomp.fortran/target2.f90: New test.
12568 * testsuite/libgomp.fortran/target3.f90: New test.
12569 * testsuite/libgomp.fortran/target4.f90: New test.
12570 * testsuite/libgomp.fortran/target5.f90: New test.
12571 * testsuite/libgomp.fortran/target6.f90: New test.
12572 * testsuite/libgomp.fortran/target7.f90: New test.
12574 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12577 * testsuite/libgomp.fortran/allocatable9.f90: New test.
12578 * testsuite/libgomp.fortran/allocatable10.f90: New test.
12579 * testsuite/libgomp.fortran/allocatable11.f90: New test.
12580 * testsuite/libgomp.fortran/allocatable12.f90: New test.
12581 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
12582 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
12583 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
12584 * testsuite/libgomp.fortran/associate1.f90: New test.
12585 * testsuite/libgomp.fortran/associate2.f90: New test.
12586 * testsuite/libgomp.fortran/procptr1.f90: New test.
12588 2014-06-06 Jakub Jelinek <jakub@redhat.com>
12590 * testsuite/libgomp.fortran/simd1.f90: New test.
12591 * testsuite/libgomp.fortran/udr1.f90: New test.
12592 * testsuite/libgomp.fortran/udr2.f90: New test.
12593 * testsuite/libgomp.fortran/udr3.f90: New test.
12594 * testsuite/libgomp.fortran/udr4.f90: New test.
12595 * testsuite/libgomp.fortran/udr5.f90: New test.
12596 * testsuite/libgomp.fortran/udr6.f90: New test.
12597 * testsuite/libgomp.fortran/udr7.f90: New test.
12598 * testsuite/libgomp.fortran/udr8.f90: New test.
12599 * testsuite/libgomp.fortran/udr9.f90: New test.
12600 * testsuite/libgomp.fortran/udr10.f90: New test.
12601 * testsuite/libgomp.fortran/udr11.f90: New test.
12603 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
12605 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
12606 vect_simd_clones effective target.
12607 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
12609 2014-05-21 Jakub Jelinek <jakub@redhat.com>
12611 PR middle-end/61252
12612 * testsuite/libgomp.c++/simd-9.C: New test.
12614 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
12616 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
12617 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
12618 texts according to their @menu entry positions.
12620 2014-05-11 Jakub Jelinek <jakub@redhat.com>
12622 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
12623 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
12624 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
12625 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
12626 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
12627 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
12628 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
12629 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
12630 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
12631 * testsuite/libgomp.fortran/depend-1.f90: New test.
12632 * testsuite/libgomp.fortran/depend-2.f90: New test.
12633 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
12634 * testsuite/libgomp.fortran/simd1.f90: New test.
12635 * testsuite/libgomp.fortran/simd2.f90: New test.
12636 * testsuite/libgomp.fortran/simd3.f90: New test.
12637 * testsuite/libgomp.fortran/simd4.f90: New test.
12638 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
12640 2014-05-02 Jakub Jelinek <jakub@redhat.com>
12642 * testsuite/libgomp.c/simd-10.c: New test.
12643 * testsuite/libgomp.c/simd-11.c: New test.
12644 * testsuite/libgomp.c/simd-12.c: New test.
12645 * testsuite/libgomp.c/simd-13.c: New test.
12647 2014-04-24 Jakub Jelinek <jakub@redhat.com>
12649 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
12650 atomic type clauses in any order and optional comma in between.
12651 * testsuite/libgomp.c++/atomic-15.C: Likewise.
12652 * testsuite/libgomp.c/atomic-17.c: Likewise.
12654 * testsuite/libgomp.c/simd-7.c: New test.
12655 * testsuite/libgomp.c/simd-8.c: New test.
12656 * testsuite/libgomp.c/simd-9.c: New test.
12657 * testsuite/libgomp.c/loop-16.c: New test.
12659 2014-04-02 Richard Henderson <rth@redhat.com>
12661 * config/linux/futex.h (futex_wait): Get error value from errno.
12662 (futex_wake): Likewise.
12664 2014-03-25 Jakub Jelinek <jakub@redhat.com>
12667 * testsuite/libgomp.c++/udr-11.C: New test.
12668 * testsuite/libgomp.c++/udr-12.C: New test.
12669 * testsuite/libgomp.c++/udr-13.C: New test.
12670 * testsuite/libgomp.c++/udr-14.C: New test.
12671 * testsuite/libgomp.c++/udr-15.C: New test.
12672 * testsuite/libgomp.c++/udr-16.C: New test.
12673 * testsuite/libgomp.c++/udr-17.C: New test.
12674 * testsuite/libgomp.c++/udr-18.C: New test.
12675 * testsuite/libgomp.c++/udr-19.C: New test.
12677 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12679 Update copyright years
12681 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12683 * hashtab.h: Use the standard form for the copyright notice.
12685 2014-01-02 Tobias Burnus <burnus@net-b.de>
12687 * libgomp.texi: Bump @copying's copyright year.
12689 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
12691 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
12692 alloca () with __builtin_alloca ().
12693 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
12694 * testsuite/libgomp.c/lock-3.c: Likewise.
12695 * testsuite/libgomp.c/pr48591.c: Likewise.
12697 2013-12-17 Jakub Jelinek <jakub@redhat.com>
12700 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
12703 2013-12-16 Jakub Jelinek <jakub@redhat.com>
12706 * testsuite/libgomp.c/pr58756.c: New test.
12708 2013-12-12 Jakub Jelinek <jakub@redhat.com>
12711 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
12714 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
12716 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
12718 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
12719 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
12720 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
12721 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
12724 * libgomp_g.h: Include <stddef.h> for size_t.
12726 * libgomp.spec.in: Update comment about libgomp's dependencies.
12727 * configure.ac: Likewise.
12728 * configure: Regenerate.
12730 2013-10-16 Tobias Burnus <burnus@net-b.de>
12732 * libgomp.texi: (Runtime Library Routines): Update references for
12733 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
12734 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
12735 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
12736 (Environment Variables): Update references for OpenMP 4.0. Add
12737 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
12738 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
12741 2013-10-14 Jakub Jelinek <jakub@redhat.com>
12743 * env.c (parse_bind_var): Initialize value to avoid
12744 (false positive) warning.
12746 2013-10-12 Jakub Jelinek <jakub@redhat.com>
12749 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
12751 (gomp_init_num_threads): Move i variable declaration into
12752 #ifdef CPU_ALLOC_SIZE block.
12753 * config/linux/affinity.c (gomp_affinity_init_level): Test
12754 gomp_places_list_len == 0 rather than gomp_places_list == 0
12755 when checking for topology reading error.
12756 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
12757 * env.c (parse_affinity): Add ignore argument, if true, don't populate
12758 gomp_places_list, only parse env var and always return false.
12759 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
12760 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
12761 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
12762 and either of these variables were parsed correctly into a places
12765 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
12766 Jakub Jelinek <jakub@redhat.com>
12768 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
12769 of 5 loopfn matches.
12770 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
12771 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
12772 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
12773 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
12774 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
12775 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12776 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12777 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
12779 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
12781 * Makefile.am (omp_lib.mod): Streamline rule.
12782 * Makefile.in: Regenerate.
12784 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
12787 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
12788 * testsuite/libgomp.fortran/lib1.f90: Likewise.
12789 * testsuite/libgomp.fortran/lib2.f: Likewise.
12790 * testsuite/libgomp.fortran/lib3.f: Likewise.
12792 * configure.ac: Typo fix.
12793 * configure: Regenerate.
12795 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
12796 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12798 * omp.h.in: Don't touch the user's namespace.
12800 2013-10-11 Jakub Jelinek <jakub@redhat.com>
12801 Tobias Burnus <burnus@net-b.de>
12802 Richard Henderson <rth@redhat.com>
12804 * target.c: New file.
12805 * Makefile.am (libgomp_la_SOURCES): Add target.c.
12806 * Makefile.in: Regenerated.
12807 * libgomp_g.h (GOMP_task): Add depend argument.
12808 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12809 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12810 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
12811 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12812 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12813 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
12814 GOMP_taskgroup_start, GOMP_taskgroup_end,
12815 GOMP_parallel_sections): New prototypes.
12816 * fortran.c (omp_is_initial_device): Add ialias_redirect.
12817 (omp_is_initial_device_): New function.
12818 (ULP, STR1, STR2, ialias_redirect): Removed.
12819 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
12820 omp_set_default_device_8_, omp_get_default_device_,
12821 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
12823 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12824 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12825 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
12827 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
12828 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
12829 omp_set_default_device, omp_set_default_device_,
12830 omp_set_default_device_8_, omp_get_default_device,
12831 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
12832 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
12833 omp_get_team_num_): Export @@OMP_4.0.
12834 * team.c (struct gomp_thread_start_data): Add place field.
12835 (gomp_thread_start): Clear thr->thread_pool and
12836 thr->task before returning. Use gomp_team_barrier_wait_final
12837 instead of gomp_team_barrier_wait. Initialize thr->place.
12838 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
12839 team_cancelled and task_queued_count fields.
12840 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
12841 before calling pthread_exit.
12842 (gomp_free_thread): No longer static. Use
12843 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
12844 (gomp_team_start): Add flags argument. Set
12845 thr->thread_pool->threads_busy to nthreads immediately after creating
12846 new pool. Use gomp_managed_threads_lock instead of
12847 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
12848 (gomp_team_end): Use gomp_managed_threads_lock instead of
12849 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
12850 of gomp_team_barrier_wait. If team->team_cancelled, call
12851 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
12852 rather than thr->ts.work_share.
12853 (initialize_team): Don't call gomp_sem_init here.
12854 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
12856 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
12857 * env.c (gomp_global_icv): Add default_device_var, target_data and
12858 bind_var initializers.
12859 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12860 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12861 gomp_places_list_len): New variables.
12862 (parse_bind_var, parse_one_place, parse_places_var): New functions.
12863 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
12865 (gomp_cancel_var): New global variable.
12866 (parse_int): New function.
12867 (handle_omp_display_env): New function.
12868 (initialize_env): Use it. Initialize default_device_var.
12869 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
12870 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
12871 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
12872 been successfully parsed (and call gomp_init_affinity in that case).
12873 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12874 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12875 omp_get_team_num, omp_is_initial_device): New functions.
12876 * libgomp.h: Include stdlib.h.
12877 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
12879 (struct target_mem_desc): Forward declare.
12880 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
12881 and thread_limit_var fields.
12882 (gomp_get_num_devices): New prototype.
12883 (gomp_cancel_var): New extern decl.
12884 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
12885 team_cancelled and task_queued_count fields. Add comments about
12886 task_{,queued_,running_}count.
12887 (gomp_cancel_kind): New enum.
12888 (gomp_work_share_end_cancel): New prototype.
12889 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
12890 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
12892 (struct gomp_taskgroup): New type.
12893 (struct gomp_task_depend_entry,
12894 struct gomp_dependers_vec): New types.
12895 (gomp_finish_task): Free depend_hash if non-NULL.
12896 (struct gomp_team_state): Add place_partition_off
12897 and place_partition_len fields.
12898 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12899 gomp_places_list_len): New extern decls.
12900 (struct gomp_thread): Add place field.
12901 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12902 (gomp_init_thread_affinity): Add place argument.
12903 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12904 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12905 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12906 gomp_affinity_init_level, gomp_affinity_print_place): New
12908 (gomp_team_start): Add flags argument.
12909 (gomp_thread_limit_var, gomp_remaining_threads_count,
12910 gomp_remaining_threads_lock): Remove.
12911 (gomp_managed_threads_lock): New variable.
12912 (struct gomp_thread_pool): Add threads_busy field.
12913 (gomp_free_thread): New prototype.
12914 * task.c: Include hashtab.h.
12915 (hash_entry_type): New typedef.
12916 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
12917 (gomp_init_task): Clear dependers, depend_hash, depend_count,
12918 copy_ctors_done and taskgroup fields.
12919 (GOMP_task): Add depend argument, handle depend clauses. If
12920 gomp_team_barrier_cancelled or if it's taskgroup has been
12921 cancelled, don't queue or start new tasks. Set copy_ctors_done
12922 field if needed. Initialize taskgroup field. If copy_ctors_done
12923 and already cancelled, don't discard the task. If taskgroup is
12924 non-NULL, enqueue the task into taskgroup queue. Increment
12925 num_children field in taskgroup. Increment task_queued_count.
12926 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
12927 gomp_task_run_post_remove_taskgroup): New inline functions.
12928 (gomp_task_run_post_handle_depend_hash,
12929 gomp_task_run_post_handle_dependers,
12930 gomp_task_run_post_handle_depend): New functions.
12931 (GOMP_taskwait): Use them. If more than one new tasks
12932 have been queued, wake other threads if needed.
12933 (gomp_barrier_handle_tasks): Likewise. If
12934 gomp_team_barrier_cancelled, don't start any new tasks, just free
12936 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
12938 (omp_proc_bind_kind, omp_proc_bind_false,
12939 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
12940 omp_proc_bind_spread): New params.
12941 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12942 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12943 omp_get_team_num, omp_is_initial_device): New interfaces.
12944 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
12945 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
12946 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
12947 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
12948 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
12949 useless use omp_lib_kinds.
12950 * omp.h.in (omp_proc_bind_t): New typedef.
12951 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12952 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12953 omp_get_team_num, omp_is_initial_device): New prototypes.
12954 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
12955 through to gomp_team_start.
12956 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
12957 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
12958 Adjust gomp_parallel_loop_start callers.
12959 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12960 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12961 GOMP_loop_end_cancel): New functions.
12962 (GOMP_parallel_end): Add ialias_redirect.
12963 * hashtab.h: New file.
12964 * libgomp.texi (Environment Variables): Minor cleanup,
12965 update section refs to OpenMP 4.0rc2.
12966 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
12967 environment variables.
12968 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
12969 team->work_shares_to_free to thr->ts.work_share before calling
12971 (gomp_work_share_end_cancel): New function.
12972 * config/linux/proc.c: Include errno.h.
12973 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
12974 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
12975 sizeof (cpu_set_t) to determine number of iterations. Fix up check
12976 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
12977 gomp_cpuset_size is sizeof (cpu_set_t).
12978 (gomp_init_num_threads): Initialize gomp_cpuset_size,
12979 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
12980 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
12981 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
12982 contain any logical CPUs.
12983 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
12984 is NULL. Use gomp_cpusetp instead of &cpuset and pass
12985 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
12986 pthread_getaffinity_np. Check gomp_places_list instead of
12987 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
12988 * config/linux/bar.c (gomp_barrier_wait_end,
12989 gomp_barrier_wait_last): Use BAR_* defines.
12990 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
12991 from state where needed. Set work_share_cancelled to 0 on last
12993 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
12994 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
12996 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
12997 Add cpusetsize argument.
12998 (gomp_cpuset_size, gomp_cpusetp): Declare.
12999 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
13000 (affinity_counter): Remove.
13001 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
13002 if CPU_ALLOC_SIZE isn't defined.
13003 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
13004 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
13005 bind current thread to the first place.
13006 (gomp_init_thread_affinity): Rewritten. Add place argument, just
13007 pthread_setaffinity_np to gomp_places_list[place].
13008 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
13009 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
13010 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
13011 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
13012 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
13013 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
13014 (gomp_barrier_t): Add awaited_final field.
13015 (gomp_barrier_init): Initialize awaited_final field.
13016 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
13017 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
13019 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
13021 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
13022 gomp_team_barrier_cancelled): New inline functions.
13023 (gomp_barrier_last_thread,
13024 gomp_team_barrier_set_task_pending,
13025 gomp_team_barrier_clear_task_pending,
13026 gomp_team_barrier_set_waiting_for_tasks,
13027 gomp_team_barrier_waiting_for_tasks,
13028 gomp_team_barrier_done): Use BAR_* defines.
13029 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
13030 (gomp_barrier_wait_end): Use BAR_* defines.
13031 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
13032 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
13034 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
13035 gomp_team_barrier_cancel): New functions.
13036 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
13038 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
13039 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
13040 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
13041 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
13042 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
13043 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
13044 (gomp_barrier_t): Add cancellable field.
13045 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
13046 gomp_team_barrier_cancel): New prototypes.
13047 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
13048 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
13049 gomp_team_barrier_cancelled): New inline functions.
13050 (gomp_barrier_wait_start, gomp_barrier_last_thread,
13051 gomp_team_barrier_set_task_pending,
13052 gomp_team_barrier_clear_task_pending,
13053 gomp_team_barrier_set_waiting_for_tasks,
13054 gomp_team_barrier_waiting_for_tasks,
13055 gomp_team_barrier_done): Use BAR_* defines.
13056 * barrier.c (GOMP_barrier_cancel): New function.
13057 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
13058 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
13059 omp_proc_bind_spread): New params.
13060 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
13061 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
13062 omp_get_team_num, omp_is_initial_device): New externals.
13063 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
13065 (gomp_resolve_num_threads): Adjust for thread_limit now being in
13066 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
13067 infinity. If not nested, just return minimum of max_num_threads
13068 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
13069 to the returned value. Otherwise, don't update atomically
13070 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
13071 (GOMP_parallel_end): Adjust for thread_limit now being in
13072 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
13073 infinity. Adjust threads_busy in the pool rather than
13074 gomp_remaining_threads_count. Remember team->nthreads and call
13075 gomp_team_end before adjusting threads_busy, if not nested
13076 afterwards, just set it to 1 non-atomically. Add ialias.
13077 (GOMP_parallel_start): Adjust gomp_team_start caller.
13078 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
13079 * testsuite/libgomp.c/affinity-1.c: New test.
13080 * testsuite/libgomp.c/atomic-15.c: New test.
13081 * testsuite/libgomp.c/atomic-16.c: New test.
13082 * testsuite/libgomp.c/atomic-17.c: New test.
13083 * testsuite/libgomp.c/cancel-for-1.c: New test.
13084 * testsuite/libgomp.c/cancel-for-2.c: New test.
13085 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
13086 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
13087 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
13088 * testsuite/libgomp.c/cancel-sections-1.c: New test.
13089 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
13090 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
13091 * testsuite/libgomp.c/depend-1.c: New test.
13092 * testsuite/libgomp.c/depend-2.c: New test.
13093 * testsuite/libgomp.c/depend-3.c: New test.
13094 * testsuite/libgomp.c/depend-4.c: New test.
13095 * testsuite/libgomp.c/for-1.c: New test.
13096 * testsuite/libgomp.c/for-1.h: New file.
13097 * testsuite/libgomp.c/for-2.c: New test.
13098 * testsuite/libgomp.c/for-2.h: New file.
13099 * testsuite/libgomp.c/for-3.c: New test.
13100 * testsuite/libgomp.c/pr58392.c: New test.
13101 * testsuite/libgomp.c/simd-1.c: New test.
13102 * testsuite/libgomp.c/simd-2.c: New test.
13103 * testsuite/libgomp.c/simd-3.c: New test.
13104 * testsuite/libgomp.c/simd-4.c: New test.
13105 * testsuite/libgomp.c/simd-5.c: New test.
13106 * testsuite/libgomp.c/simd-6.c: New test.
13107 * testsuite/libgomp.c/target-1.c: New test.
13108 * testsuite/libgomp.c/target-2.c: New test.
13109 * testsuite/libgomp.c/target-3.c: New test.
13110 * testsuite/libgomp.c/target-4.c: New test.
13111 * testsuite/libgomp.c/target-5.c: New test.
13112 * testsuite/libgomp.c/target-6.c: New test.
13113 * testsuite/libgomp.c/target-7.c: New test.
13114 * testsuite/libgomp.c/taskgroup-1.c: New test.
13115 * testsuite/libgomp.c/thread-limit-1.c: New test.
13116 * testsuite/libgomp.c/thread-limit-2.c: New test.
13117 * testsuite/libgomp.c/thread-limit-3.c: New test.
13118 * testsuite/libgomp.c/udr-1.c: New test.
13119 * testsuite/libgomp.c/udr-2.c: New test.
13120 * testsuite/libgomp.c/udr-3.c: New test.
13121 * testsuite/libgomp.c++/affinity-1.C: New test.
13122 * testsuite/libgomp.c++/atomic-10.C: New test.
13123 * testsuite/libgomp.c++/atomic-11.C: New test.
13124 * testsuite/libgomp.c++/atomic-12.C: New test.
13125 * testsuite/libgomp.c++/atomic-13.C: New test.
13126 * testsuite/libgomp.c++/atomic-14.C: New test.
13127 * testsuite/libgomp.c++/atomic-15.C: New test.
13128 * testsuite/libgomp.c++/cancel-for-1.C: New test.
13129 * testsuite/libgomp.c++/cancel-for-2.C: New test.
13130 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
13131 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
13132 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
13133 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
13134 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
13135 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
13136 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
13137 * testsuite/libgomp.c++/cancel-test.h: New file.
13138 * testsuite/libgomp.c++/for-9.C: New test.
13139 * testsuite/libgomp.c++/for-10.C: New test.
13140 * testsuite/libgomp.c++/for-11.C: New test.
13141 * testsuite/libgomp.c++/simd-1.C: New test.
13142 * testsuite/libgomp.c++/simd-2.C: New test.
13143 * testsuite/libgomp.c++/simd-3.C: New test.
13144 * testsuite/libgomp.c++/simd-4.C: New test.
13145 * testsuite/libgomp.c++/simd-5.C: New test.
13146 * testsuite/libgomp.c++/simd-6.C: New test.
13147 * testsuite/libgomp.c++/simd-7.C: New test.
13148 * testsuite/libgomp.c++/simd-8.C: New test.
13149 * testsuite/libgomp.c++/target-1.C: New test.
13150 * testsuite/libgomp.c++/target-2.C: New test.
13151 * testsuite/libgomp.c++/target-2-aux.cc: New file.
13152 * testsuite/libgomp.c++/target-3.C: New test.
13153 * testsuite/libgomp.c++/taskgroup-1.C: New test.
13154 * testsuite/libgomp.c++/udr-1.C: New test.
13155 * testsuite/libgomp.c++/udr-2.C: New test.
13156 * testsuite/libgomp.c++/udr-3.C: New test.
13157 * testsuite/libgomp.c++/udr-4.C: New test.
13158 * testsuite/libgomp.c++/udr-5.C: New test.
13159 * testsuite/libgomp.c++/udr-6.C: New test.
13160 * testsuite/libgomp.c++/udr-7.C: New test.
13161 * testsuite/libgomp.c++/udr-8.C: New test.
13162 * testsuite/libgomp.c++/udr-9.C: New test.
13164 2013-09-20 Jakub Jelinek <jakub@redhat.com>
13167 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
13170 2013-09-20 Alan Modra <amodra@gmail.com>
13172 * configure: Regenerate.
13174 2013-09-19 Jakub Jelinek <jakub@redhat.com>
13176 * testsuite/libgomp.c/sections-2.c: New test.
13178 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
13180 * testsuite/libgomp.fortran/strassen.f90:
13181 Add dg-skip-if aarch64_tiny.
13183 2013-06-20 Iain Sandoe <iain@codesourcery.com>
13184 Cesar Philippidis <cesar@codesourcery.com>
13186 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
13187 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
13188 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
13189 * testsuite/libgomp.fortran/fortran.exp: Likewise.
13190 * testsuite/libgomp.graphite/graphite.exp: Likewise.
13191 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
13192 Use dg-runtest rather than gfortran-dg-runtest.
13194 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
13196 * testsuite/libgomp.c/icv-2.c: Extend current handling of
13197 Linux-based x86 systems to cover all GNU systems.
13198 * testsuite/libgomp.c/lock-3.c: Likewise.
13199 * testsuite/libgomp.c/pr48591.c: Likewise.
13201 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
13203 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
13204 GNU/Hurd, as done for Linux-based systems.
13206 * config/posix/ptrlock.h: Fix comment.
13208 2013-05-27 Tobias Burnus <burnus@net-b.de>
13211 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
13212 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
13213 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
13214 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
13215 omp_destroy_nest_lock): Correct arguments to match the one in
13217 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
13218 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
13219 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
13220 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
13222 2013-05-16 Jakub Jelinek <jakub@redhat.com>
13224 * testsuite/libgomp.c/loop-13.c: New test.
13225 * testsuite/libgomp.c/loop-14.c: New test.
13226 * testsuite/libgomp.c/loop-15.c: New test.
13227 * testsuite/libgomp.c++/loop-13.C: New test.
13228 * testsuite/libgomp.c++/loop-14.C: New test.
13229 * testsuite/libgomp.c++/loop-15.C: New test.
13231 2013-02-06 Jakub Jelinek <jakub@redhat.com>
13233 PR middle-end/56217
13234 * testsuite/libgomp.c++/pr56217.C: New test.
13236 2013-02-01 Alan Modra <amodra@gmail.com>
13238 * task.c (GOMP_task, GOMP_taskwait): Comment.
13240 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
13241 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
13244 * config/linux/wait.h (do_spin): Use atomic load for addr.
13245 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
13246 for intptr and ptrlock.
13247 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
13250 2013-01-22 Alan Modra <amodra@gmail.com>
13254 * task.c (GOMP_task): Revert 2011-12-09 change.
13255 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
13256 barrier to read task->children..
13257 (gomp_barrier_handle_tasks): ..and matching atomic store with
13258 release barrier here when setting parent->children to NULL.
13260 2013-01-16 Jakub Jelinek <jakub@redhat.com>
13261 Tobias Burnus <burnus@net-b.de>
13264 * testsuite/libgomp.fortran/fortran.exp: Use
13265 -fintrinsic-modules-path= instead of
13266 -fintrinsic-modules-path.
13268 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
13270 Update copyright years.
13272 2012-12-19 Tobias Burnus <burnus@net-b.de>
13274 * testsuite/libgomp.fortran/fortran.exp: Set
13275 -fintrinsic-modules-path.
13277 2012-12-19 Tobias Burnus <burnus@net-b.de>
13279 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
13280 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
13282 2012-11-21 Jakub Jelinek <jakub@redhat.com>
13285 * team.c (gomp_free_thread): Decrease gomp_managed_threads
13286 if pool had any threads_used.
13288 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
13290 * testsuite/libgomp.c++/pr24455.C: Use
13291 -Wl,-undefined,dynamic_lookup on darwin.
13293 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
13295 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
13297 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
13299 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
13301 2012-10-23 Ian Bolton <ian.bolton@arm.com>
13302 Jim MacArthur <jim.macarthur@arm.com>
13303 Marcus Shawcroft <marcus.shawcroft@arm.com>
13304 Nigel Stephens <nigel.stephens@arm.com>
13305 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13306 Richard Earnshaw <rearnsha@arm.com>
13307 Sofiane Naci <sofiane.naci@arm.com>
13308 Stephen Thomas <stephen.thomas@arm.com>
13309 Tejas Belagod <tejas.belagod@arm.com>
13310 Yufeng Zhang <yufeng.zhang@arm.com>
13312 * configure.tgt: Add AArch64.
13314 2012-10-04 Jason Merrill <jason@redhat.com>
13316 * testsuite/libgomp.c++/tls-init1.C: New.
13318 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
13320 * configure: Regenerated.
13322 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
13324 * config/linux/mips/futex.h (sys_futex0): Change to static
13325 function with noinline, nomips16 attributes under MIPS16. Adjust
13326 asm statement to place 'li v0,SYS_futex' immediately before
13329 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
13331 * libgomp.texi (Library Index): Renamed from "Index" to prevent
13332 conflict with index.html on case-insensitive file systems.
13334 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
13336 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
13337 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
13339 2012-07-02 Richard Guenther <rguenther@suse.de>
13340 Michael Matz <matz@suse.de>
13341 Tobias Grosser <tobias@grosser.es>
13342 Sebastian Pop <sebpop@gmail.com>
13344 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
13345 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
13346 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
13347 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
13349 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
13351 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
13353 2012-06-22 Richard Guenther <rguenther@suse.de>
13355 Merge from graphite branch
13356 2012-01-13 Tobias Grosser <tobias@grosser.es>
13358 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13359 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
13361 2012-06-07 Jakub Jelinek <jakub@redhat.com>
13363 PR middle-end/53580
13364 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
13365 use GOMP_barrier () call instead.
13366 * testsuite/libgomp.c/pr26943-3.c: Likewise.
13367 * testsuite/libgomp.c/pr26943-4.c: Likewise.
13368 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
13369 call GOMP_barrier instead.
13370 * testsuite/libgomp.fortran/vla5.f90: Likewise.
13372 2012-06-06 Jakub Jelinek <jakub@redhat.com>
13375 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
13376 argument to memset call.
13378 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
13380 * configure: Regenerated.
13382 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
13384 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
13386 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
13389 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
13391 2012-03-22 Jakub Jelinek <jakub@redhat.com>
13393 PR middle-end/52547
13394 * testsuite/libgomp.c/pr52547.c: New test.
13396 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13398 * testsuite/lib/libgomp.exp: load fortran-modules.exp
13400 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13402 * configure.tgt (mips-sgi-irix6*): Remove.
13404 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13406 * configure.tgt (alpha*-dec-osf*): Remove.
13408 * config/osf/sem.h: Remove.
13409 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
13411 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
13413 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
13415 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13418 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
13419 Remove ENABLE_SYMVERS_SOL2.
13420 * configure: Regenerate.
13421 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
13422 (PREPROCESS): New variable.
13423 (libgomp.ver): New target.
13424 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
13425 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
13426 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
13428 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
13429 * Makefile.in: Regenerate.
13431 2012-02-14 Walter Lee <walt@tilera.com>
13433 * configure.tgt: Handle tilegx and tilepro.
13434 * config/linux/tile/futex.h: New file.
13436 2012-02-08 Richard Guenther <rguenther@suse.de>
13438 PR tree-optimization/46886
13439 * testsuite/libgomp.c/pr46886.c: New testcase.
13441 2012-01-25 Matthias Klose <doko@ubuntu.com>
13443 * config/linux/arm: Remove empty directory.
13444 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
13446 2011-12-09 Alan Modra <amodra@gmail.com>
13449 * task.c (GOMP_taskwait): Don't access task->children outside of
13450 task_lock mutex region.
13451 (GOMP_task): Likewise.
13453 2011-12-06 Jakub Jelinek <jakub@redhat.com>
13456 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
13458 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
13459 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
13460 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
13461 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
13462 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
13464 2011-12-02 Alan Modra <amodra@gmail.com>
13466 * config/linux/affinity.c: Use atomic rather than sync builtin.
13467 * config/linux/lock.c: Likewise.
13468 * config/linux/ptrlock.h: Likewise.
13469 * config/linux/ptrlock.c: Likewise.
13470 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
13471 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
13472 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
13473 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
13474 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
13475 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
13476 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
13477 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
13478 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
13479 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
13481 2011-11-30 Alan Modra <amodra@gmail.com>
13484 * config/linux/bar.h: Use atomic rather than sync builtins.
13485 * config/linux/bar.c: Likewise. Add missing acquire
13486 synchronisation on generation field.
13487 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
13490 2011-11-30 Alan Modra <amodra@gmail.com>
13492 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
13493 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
13494 * config/linux/mutex.h: Use atomic rather than sync builtins.
13495 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
13496 * config/linux/omp-lock.h: Comment fix.
13497 * config/linux/arm/mutex.h: Delete.
13498 * config/linux/powerpc/mutex.h: Delete.
13499 * config/linux/ia64/mutex.h: Delete.
13500 * config/linux/mips/mutex.h: Delete.
13502 2011-11-30 Alan Modra <amodra@gmail.com>
13505 * config/linux/sem.h: Rewrite.
13506 * config/linux/sem.c: Rewrite.
13508 2011-11-28 Richard Henderson <rth@redhat.com>
13510 * libgomp.h (enum memmodel): New.
13512 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
13514 * configure: Regenerate.
13516 2011-10-10 Matthias Klose <doko@ubuntu.com>
13518 * config/posix95: Remove empty directory.
13520 2011-08-26 Jakub Jelinek <jakub@redhat.com>
13522 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
13524 2011-08-19 Jakub Jelinek <jakub@redhat.com>
13527 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
13528 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
13530 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13532 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
13534 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13537 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
13539 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
13541 * config/linux/proc.h: New.
13542 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
13543 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
13544 (gomp_init_num_threads): Update call to cpuset_popcount.
13545 (get_num_procs): Ditto.
13546 * config/linux/affinity.c (gomp_init_affinity): Call
13547 gomp_cpuset_popcount.
13549 2011-08-02 Jakub Jelinek <jakub@redhat.com>
13553 * omp.h.in (omp_in_final): New prototype.
13554 * omp_lib.f90.in (omp_in_final): New interface.
13555 (omp_integer_kind, omp_logical_kind): Remove
13556 and replace all its uses in the module with 4.
13557 (openmp_version): Change to 201107.
13558 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
13559 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
13560 kind for the parameters.
13561 (omp_in_final): New external.
13562 (openmp_version): Change to 201107.
13563 * task.c (omp_in_final): New function.
13564 (gomp_init_task): Initialize final_task.
13565 (GOMP_task): Remove unused attribute from flags. Handle final
13567 (GOMP_taskyield): New function.
13568 (omp_in_final): Return true if if (false) or final (true) task
13569 or descendant of final (true).
13570 * fortran.c (omp_in_final_): New function.
13571 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
13572 (GOMP_3.0): Export GOMP_taskyield.
13573 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
13575 (parse_unsigned_long_list): New function.
13576 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
13577 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
13578 even if parse_affinity returned false.
13579 * config/linux/affinity.c (gomp_init_affinity): Handle
13580 gomp_cpu_affinity_len == 0.
13581 * libgomp_g.h (GOMP_taskyield): New prototype.
13582 * libgomp.h (struct gomp_task): Add final_task field.
13583 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
13584 * team.c (gomp_team_start): Override new task's nthreads_var icv
13585 if list form OMP_NUM_THREADS has been used and it has value for
13586 the new nesting level.
13588 * testsuite/libgomp.c/atomic-11.c: New test.
13589 * testsuite/libgomp.c/atomic-12.c: New test.
13590 * testsuite/libgomp.c/atomic-13.c: New test.
13591 * testsuite/libgomp.c/atomic-14.c: New test.
13592 * testsuite/libgomp.c/reduction-6.c: New test.
13593 * testsuite/libgomp.c/task-5.c: New test.
13594 * testsuite/libgomp.c++/atomic-2.C: New test.
13595 * testsuite/libgomp.c++/atomic-3.C: New test.
13596 * testsuite/libgomp.c++/atomic-4.C: New test.
13597 * testsuite/libgomp.c++/atomic-5.C: New test.
13598 * testsuite/libgomp.c++/atomic-6.C: New test.
13599 * testsuite/libgomp.c++/atomic-7.C: New test.
13600 * testsuite/libgomp.c++/atomic-8.C: New test.
13601 * testsuite/libgomp.c++/atomic-9.C: New test.
13602 * testsuite/libgomp.c++/task-8.C: New test.
13603 * testsuite/libgomp.c++/reduction-4.C: New test.
13604 * testsuite/libgomp.fortran/allocatable7.f90: New test.
13605 * testsuite/libgomp.fortran/allocatable8.f90: New test.
13606 * testsuite/libgomp.fortran/crayptr3.f90: New test.
13607 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
13608 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
13609 * testsuite/libgomp.fortran/pointer1.f90: New test.
13610 * testsuite/libgomp.fortran/pointer2.f90: New test.
13611 * testsuite/libgomp.fortran/task4.f90: New test.
13613 2011-08-02 Tobias Burnus <burnus@net-b.de>
13615 * libgomp.texi: Update OpenMP spec references to 3.1.
13616 (omp_in_final,OMP_PROC_BIND): New sections.
13617 (OMP_NUM_THREADS): Document that the value can be now a list.
13618 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
13620 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
13622 * config/linux/x86/futex.h: Check __x86_64__ instead of
13625 2011-07-29 Jakub Jelinek <jakub@redhat.com>
13627 PR middle-end/49897
13628 PR middle-end/49898
13629 * testsuite/libgomp.c/pr49897-1.c: New test.
13630 * testsuite/libgomp.c/pr49897-2.c: New test.
13631 * testsuite/libgomp.c/pr49898-1.c: New test.
13632 * testsuite/libgomp.c/pr49898-2.c: New test.
13634 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
13636 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
13637 for ia32 instead of ilp32.
13639 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
13640 * testsuite/libgomp.c/atomic-6.c: Likewise.
13642 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
13644 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
13645 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
13647 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13650 * config/osf/sem.h: New file.
13651 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
13653 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13656 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
13659 2011-07-15 Jakub Jelinek <jakub@redhat.com>
13661 * config/linux/wait.h (do_spin): New inline, largely copied
13662 from do_wait, just don't do futex_wait here, instead return true if
13664 (do_wait): Implement using do_spin.
13665 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
13667 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
13668 __sync_bool_compare_and_swap, pass the oldval to
13669 gomp_mutex_lock_slow.
13670 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
13671 If all mutex contenders are just spinning and not sleeping, don't
13672 change state to 2 unnecessarily. Optimize the loop when state has
13673 already become 2 to use just one atomic operation per loop instead
13675 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
13677 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
13678 __sync_bool_compare_and_swap, pass the oldval to
13679 gomp_mutex_lock_slow.
13681 2011-06-22 Jakub Jelinek <jakub@redhat.com>
13684 * iter.c (gomp_iter_static_next): For chunk size 0
13685 only use n ceil/ nthreads size for the first
13686 n % nthreads threads in the team instead of
13687 all threads except for the last few ones which
13688 get less work or none at all.
13689 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
13690 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
13691 chunk argument, set run_sched_modifier to 0 for static
13692 resp. 1 for other kinds. If chunk argument is 0
13693 and not static, set value to 1.
13695 2011-05-19 Jakub Jelinek <jakub@redhat.com>
13698 * testsuite/libgomp.c++/pr49043.C: New test.
13701 * testsuite/libgomp.c++/pr48869.C: New test.
13703 2011-05-06 Jakub Jelinek <jakub@redhat.com>
13706 * fortran.c: Include limits.h.
13708 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
13710 (omp_set_num_threads_8_, omp_set_schedule_8_,
13711 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
13712 omp_get_team_size_8_): Use TO_INT macro.
13713 * testsuite/libgomp.fortran/pr48894.f90: New test.
13715 2011-04-13 Jakub Jelinek <jakub@redhat.com>
13717 PR middle-end/48591
13718 * testsuite/libgomp.c/pr48591.c: New test.
13720 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13723 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
13724 * configure: Regenerate.
13726 2011-02-27 Jakub Jelinek <jakub@redhat.com>
13729 * testsuite/libgomp.fortran/task3.f90: New test.
13731 2011-02-24 Tobias Burnus <burnus@net-b.de>
13733 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
13735 2011-02-23 Jakub Jelinek <jakub@redhat.com>
13738 * libgomp.texi (omp_get_wtime): Don't say time in the past
13739 must be Unix Epoch.
13741 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13744 * testsuite/libgomp.fortran/fortran.exp: Check for both
13745 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
13746 but $blddir != "", still append ${blddir}/${lang_library_path}
13747 to ld_library_path.
13749 2011-02-16 Tobias Burnus <burnus@net-b.de>
13752 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
13753 of libquadmath.a before adding its libpath to ldflags.
13755 2011-02-14 Jakub Jelinek <jakub@redhat.com>
13758 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
13759 to FUTEX_WAIT futex syscall.
13760 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
13762 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13764 * configure: Regenerate.
13766 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
13769 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
13771 2011-01-16 Gerald Pfeifer
13773 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
13775 2010-12-14 Jakub Jelinek <jakub@redhat.com>
13778 * libgomp.fortran/allocatable6.f90: New test.
13780 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13782 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
13783 * configure: Regenerate.
13785 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
13789 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
13790 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
13791 * aclocal.m4: Regenerate.
13792 * configure: Regenerate.
13793 * Makefile.in: Regenerate.
13794 * testsuite/Makefile.in: Regenerate.
13796 2010-12-02 Jakub Jelinek <jakub@redhat.com>
13799 * libgomp.fortran/pr46753.f90: New test.
13802 * env.c (initialize_env): Default to spin count 300000
13803 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
13807 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
13808 at the end if sync builtins aren't supported.
13810 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13812 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
13814 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13816 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
13818 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
13820 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
13822 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13823 Tobias Burnus <burnus@net-b.de>
13827 * configure: Regenerate.
13829 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
13831 * config/linux/futex.h: New.
13832 * config/linux/arm/mutex.h: New.
13833 * configure.tgt (arm*-*-linux*): Add config path.
13835 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
13837 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13839 2010-09-23 Tobias Burnus <burnus@net-b.de>
13841 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
13842 Change Fortran datatype to LOGICAL.
13843 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
13844 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
13846 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13848 * configure: Regenerate.
13850 2010-07-26 Jakub Jelinek <jakub@redhat.com>
13852 * libgomp.texi: Add function keyword to a couple of Fortran
13853 interfaces, use integer instead of int for Fortran.
13855 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
13857 * libgomp.texi: Fix spelling and pasto problems throughout.
13858 Adjust prototypes to match code.
13860 2010-07-24 Tobias Burnus <burnus@net-b.de>
13862 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
13863 silence -fwhole-file warning.
13865 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13867 * configure.tgt (*-*-solaris2.[56]*): Removed.
13869 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13871 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
13872 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
13873 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
13874 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
13875 targetting solaris2*.
13876 * configure: Regenerate.
13877 * config.h.in: Regenerate.
13879 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
13880 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
13881 Add libgomp_version_dep.
13882 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
13884 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
13885 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
13886 * Makefile.in: Regenerate.
13888 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
13889 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13890 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
13891 to common block, protected by
13892 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13894 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
13896 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
13898 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
13901 * configure: Regenerate.
13903 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13906 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
13907 * configure: Regenerate.
13908 * Makefile.in: Regenerate.
13909 * testsuite/Makefile.in: Regenerate.
13911 2010-04-26 Jakub Jelinek <jakub@redhat.com>
13914 * testsuite/libgomp.c/pr43893.c: New test.
13915 * testsuite/libgomp.c++/pr43893.C: New test.
13917 2010-04-21 Jakub Jelinek <jakub@redhat.com>
13919 PR middle-end/43570
13920 * testsuite/libgomp.fortran/vla8.f90: New test.
13922 2010-04-20 Jakub Jelinek <jakub@redhat.com>
13925 * config/linux/affinity.c (gomp_init_affinity): Decrease
13926 gomp_available_cpus if affinity mask confines the process to fewer
13928 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
13929 non-NULL, just return gomp_available_cpus.
13932 * sections.c (gomp_sections_init): Initialize ws->mode.
13934 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13936 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
13937 not unused bar variable.
13938 * configure: Regenerate.
13940 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13942 * Makefile.in: Regenerate.
13943 * aclocal.m4: Regenerate.
13944 * testsuite/Makefile.in: Regenerate.
13946 2010-03-22 Jakub Jelinek <jakub@redhat.com>
13949 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
13950 (initialize_env): Adjust callers.
13951 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
13952 when the argument is 0.
13954 * testsuite/libgomp.c/pr42942.c: New test.
13956 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
13958 PR middle-end/42644
13959 PR middle-end/42130
13960 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13961 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
13963 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13965 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
13966 * testsuite/libgomp.c++/task-6.C: Likewise.
13968 2010-01-28 Steve Ellcey <sje@cup.hp.com>
13970 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
13972 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
13974 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
13975 * configure: Regenerate.
13977 2010-01-26 Jakub Jelinek <jakub@redhat.com>
13980 * testsuite/libgomp.fortran/allocatable5.f90: New test.
13982 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
13984 * configure.ac: Test for executability of GFORTRAN.
13985 * configure: Regenerate.
13987 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13989 * configure: Regenerate.
13991 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
13994 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
13996 2010-01-03 Richard Guenther <rguenther@suse.de>
13998 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
14000 2009-12-23 Sebastian Pop <sebpop@gmail.com>
14002 * testsuite/libgomp.graphite/pr4118.c: New.
14004 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
14006 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
14007 for darwin, protect the test with require-effective-target tls_runtime.
14008 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
14010 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
14013 * testsuite/lib/libgomp.exp: Provide -B options to allow for
14014 link spec %s substitutions for static libraries.
14016 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
14019 * libgomp.graphite/force-parallel-2.c: Reduce array size.
14021 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14023 * Makefile.in: Regenerate.
14024 * configure: Regenerate.
14025 * testsuite/Makefile.in: Regenerate.
14027 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
14029 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
14030 settings for LC_ALL and LANG.
14032 2009-11-25 Jakub Jelinek <jakub@redhat.com>
14035 * testsuite/libgomp.fortran/pr42162.f90: New test.
14037 2009-11-13 Jakub Jelinek <jakub@redhat.com>
14039 PR middle-end/42029
14040 * testsuite/libgomp.c/pr42029.c: New test.
14042 2009-10-26 Jakub Jelinek <jakub@redhat.com>
14044 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
14045 *s. Accept ld version without text in ()s.
14046 * configure: Regenerated.
14048 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
14050 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
14052 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14055 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
14056 or a hyphen (happens with fortran language disabled).
14057 * configure: Regenerate.
14059 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14061 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
14062 use sed script portable to Solaris /bin/sed for extracting ld
14064 * configure: Regenerate.
14066 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
14068 * testsuite/libgomp.graphite/bounds.c: New test.
14070 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14072 * Makefile.am (libgomp_la_LINK): New.
14073 * Makefile.in: Regenerate.
14075 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14077 * configure.ac (AC_PREREQ): Bump to 2.64.
14079 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14081 * Makefile.am (install-html, install-pdf): Remove.
14082 * Makefile.in: Regenerate.
14084 * Makefile.in: Regenerate.
14085 * aclocal.m4: Regenerate.
14086 * config.h.in: Regenerate.
14087 * configure: Regenerate.
14088 * testsuite/Makefile.in: Regenerate.
14090 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14092 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
14093 * Makefile.in: Regenerate.
14095 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
14097 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
14098 * Makefile.in: Regenerate.
14100 2009-08-19 Tobias Burnus <burnus@net-b.de>
14103 omp_lib.h.in: Fix -std=f95 errors.
14105 2009-08-14 David Edelsohn <edelsohn@gnu.org>
14107 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
14108 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
14109 * testsuite/libgomp.graphite/graphite.exp: New.
14111 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
14113 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
14116 2009-08-04 David Daney <ddaney@caviumnetworks.com>
14118 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
14119 needed memory barrier semantics.
14120 * config/linux/mips/mutex.h: New file.
14122 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14124 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
14126 2009-07-16 Joseph Myers <joseph@codesourcery.com>
14128 * configure: Regenerate.
14130 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
14135 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
14136 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
14137 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
14139 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14141 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
14142 options when choosing a multilib.
14144 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
14146 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
14147 ld_library_path. Use add_path. Add just find_libgcc_s to
14148 ld_library_path, not every libgcc multilib directory.
14149 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
14150 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
14151 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
14153 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
14155 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
14157 * Makefile.am (LTLDFLAGS): Define.
14159 * Makefile.in: Regenerate.
14161 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
14164 * testsuite/libgomp.fortran/fortran.exp: Don't link with
14165 libgfortranbegin, check existence of libgfortran.a instead of
14166 libgfortranbegin.a.
14168 2009-05-20 Jakub Jelinek <jakub@redhat.com>
14171 * team.c (gomp_thread_start): Destroy thr->release semaphore.
14172 (gomp_free_pool_helper): Likewise.
14174 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
14175 Jakub Jelinek <jakub@redhat.com>
14178 * testsuite/libgomp.fortran/workshare2.f90: New test.
14180 2009-04-09 Nick Clifton <nickc@redhat.com>
14182 * iter.c: Change copyright header to refer to version 3 of the
14183 GNU General Public License with version 3.1 of the GCC Runtime
14184 Library Exception and to point readers at the COPYING3 and
14185 COPYING3.RUNTIME files and the FSF's license web page.
14186 * alloc.c: Likewise.
14187 * barrier.c: Likewise.
14188 * config/bsd/proc.c: Likewise.
14189 * config/linux/affinity.c: Likewise.
14190 * config/linux/alpha/futex.h: Likewise.
14191 * config/linux/bar.c: Likewise.
14192 * config/linux/bar.h: Likewise.
14193 * config/linux/ia64/futex.h: Likewise.
14194 * config/linux/ia64/mutex.h: Likewise.
14195 * config/linux/lock.c: Likewise.
14196 * config/linux/mips/futex.h: Likewise.
14197 * config/linux/mutex.c: Likewise.
14198 * config/linux/mutex.h: Likewise.
14199 * config/linux/powerpc/futex.h: Likewise.
14200 * config/linux/proc.c: Likewise.
14201 * config/linux/ptrlock.c: Likewise.
14202 * config/linux/ptrlock.h: Likewise.
14203 * config/linux/s390/futex.h: Likewise.
14204 * config/linux/sem.c: Likewise.
14205 * config/linux/sem.h: Likewise.
14206 * config/linux/sparc/futex.h: Likewise.
14207 * config/linux/wait.h: Likewise.
14208 * config/linux/x86/futex.h: Likewise.
14209 * config/mingw32/proc.c: Likewise.
14210 * config/mingw32/time.c: Likewise.
14211 * config/posix/affinity.c: Likewise.
14212 * config/posix/bar.c: Likewise.
14213 * config/posix/bar.h: Likewise.
14214 * config/posix/lock.c: Likewise.
14215 * config/posix/mutex.h: Likewise.
14216 * config/posix/proc.c: Likewise.
14217 * config/posix/ptrlock.h: Likewise.
14218 * config/posix/sem.c: Likewise.
14219 * config/posix/sem.h: Likewise.
14220 * config/posix/time.c: Likewise.
14221 * config/posix95/lock.c: Likewise.
14222 * critical.c: Likewise.
14224 * error.c: Likewise.
14225 * fortran.c: Likewise.
14226 * iter_ull.c: Likewise.
14227 * libgomp.h: Likewise.
14228 * libgomp_f.h.in: Likewise.
14229 * libgomp_g.h: Likewise.
14230 * loop.c: Likewise.
14231 * loop_ull.c: Likewise.
14232 * omp.h.in: Likewise.
14233 * omp_lib.f90.in: Likewise.
14234 * omp_lib.h.in: Likewise.
14235 * ordered.c: Likewise.
14236 * parallel.c: Likewise.
14237 * sections.c: Likewise.
14238 * single.c: Likewise.
14239 * task.c: Likewise.
14240 * team.c: Likewise.
14241 * work.c: Likewise.
14243 2009-04-09 Jakub Jelinek <jakub@redhat.com>
14245 * testsuite/config/default.exp: Change copyright header to refer to
14246 version 3 of the GNU General Public License and to point readers
14247 at the COPYING3 file and the FSF's license web page.
14249 2009-04-08 Jakub Jelinek <jakub@redhat.com>
14251 PR middle-end/39573
14252 * libgomp.c++/pr39573.C: New test.
14254 2009-04-01 Jakub Jelinek <jakub@redhat.com>
14257 * testsuite/libgomp.c/pr39591-1.c: New test.
14258 * testsuite/libgomp.c/pr39591-2.c: New test.
14259 * testsuite/libgomp.c/pr39591-3.c: New test.
14261 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
14263 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
14264 * testsuite/libgomp.c/atomic-6.c: Ditto.
14266 2009-03-23 Jakub Jelinek <jakub@redhat.com>
14269 * testsuite/libgomp.c/loop-12.c: New test.
14270 * testsuite/libgomp.c/loop-11.c: New test.
14271 * testsuite/libgomp.c++/loop-11.C: New test.
14272 * testsuite/libgomp.c++/loop-12.C: New test.
14273 * testsuite/libgomp.c++/for-8.C: New test.
14275 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14277 * configure: Regenerate.
14279 2009-02-11 Jakub Jelinek <jakub@redhat.com>
14281 PR middle-end/39154
14282 * testsuite/libgomp.c/pr39154.c: New test.
14284 2009-01-30 Ian Lance Taylor <iant@google.com>
14286 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
14287 libgomp_ld_is_gold. Get gold version number.
14288 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
14289 * configure: Rebuild.
14291 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
14293 * testsuite/lib/libgomp.exp: Add -B option for targets that
14294 use libgfortran.a%s in their specs.
14296 2009-01-07 Jakub Jelinek <jakub@redhat.com>
14299 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
14300 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
14301 HAVE_AS_SYMVER_DIRECTIVE is not defined.
14302 * configure: Regenerated.
14303 * config.h.in: Likewise.
14305 2008-12-28 Jakub Jelinek <jakub@redhat.com>
14308 * testsuite/libgomp.c/pr38650.c: New test.
14309 * testsuite/libgomp.c++/pr38650.C: New test.
14311 2008-12-27 Jakub Jelinek <jakub@redhat.com>
14313 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
14315 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
14317 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
14319 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14321 * configure: Regenerate.
14323 2008-12-08 Jakub Jelinek <jakub@redhat.com>
14325 PR middle-end/36802
14326 * testsuite/libgomp.c/pr36802-1.c: New test.
14327 * testsuite/libgomp.c/pr36802-2.c: New test.
14328 * testsuite/libgomp.c/pr36802-3.c: New test.
14330 2008-12-01 Janis Johnson <janis187@us.ibm.com>
14333 * config/linux/powerpc/mutex.h: New.
14335 2008-12-01 Jakub Jelinek <jakub@redhat.com>
14338 * testsuite/libgomp.c++/for-7.C: New test.
14341 * testsuite/libgomp.c++/for-6.C: New test.
14343 2008-11-26 Janis Johnson <janis187@us.ibm.com>
14346 * testsuite/lib/libgomp.exp: Include new timeout library files.
14347 (libgomp_target_compile): Set timeout value from new proc.
14349 2008-11-13 Steve Ellcey <sje@cup.hp.com>
14352 * config/linux/ia64/mutex.h: New.
14354 2008-11-04 Tobias Burnus <burnus@net-b.de>
14357 * libgomp.texi (Runtime library routines, environment variables):
14358 Update for OpenMP version 3.0.
14360 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
14361 Steve Ellcey <sje@cup.hp.com>
14363 * configure: Regenerate for new libtool.
14364 * Makefile.in: Ditto.
14365 * testsuite/Makefile.in: Ditto.
14367 2008-09-19 Jakub Jelinek <jakub@redhat.com>
14368 Andreas Tobler <a.tobler@schweiz.org>
14370 * config/bsd/proc.c: New file.
14371 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
14372 * configure.ac: Check for header <sys/sysctl.h>
14373 * configure: Regenerate.
14374 * config.h.in: Likewise.
14376 2008-09-05 Janis Johnson <janis187@us.ibm.com>
14378 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
14380 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
14382 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
14383 * Makefile.in: Regenerated.
14384 * testsuite/Makefile.in: Regenerated.
14386 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
14388 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
14389 depend on blddir if blddir exists.
14390 (libgomp_target_compile): Likewise.
14391 * testsuite/libgomp.c++/c++.exp: Likewise.
14392 * testsuite/libgomp.fortran/fortran.exp: Likewise.
14394 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14396 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
14397 Do not list GPL as Invariant Section.
14399 2008-07-28 Ilie Garbacea <ilie@mips.com>
14400 Chao-ying Fu <fu@mips.com>
14402 * configure.tgt: Enable futex for MIPS.
14403 * config/linux/mips/futex.h: New file.
14405 2008-07-16 Jakub Jelinek <jakub@redhat.com>
14407 * team.c (gomp_team_end): Free team immediately if it has
14410 2008-07-08 David Edelsohn <edelsohn@gnu.org>
14412 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
14413 * testsuite/libgomp.fortran/fortran.exp: Same.
14414 * testsuite/libgomp.c/c.exp: Same.
14415 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
14416 directory to library path first.
14418 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
14420 * env.c (parse_stacksize): Add cast to avoid warning.
14421 (parse_spincount): Likewise.
14423 2008-06-27 Jakub Jelinek <jakub@redhat.com>
14425 * testsuite/libgomp.c/loop-10.c: New test.
14426 * libgomp.c/loop-3.c (main): Add lastprivate clause.
14427 * libgomp.c++/loop-6.C (main): Likewise.
14430 * testsuite/libgomp.c/debug-1.c: New test.
14432 2008-06-19 Jakub Jelinek <jakub@redhat.com>
14434 * testsuite/libgomp.c/nqueens-1.c: New test.
14437 * testsuite/libgomp.c++/task-7.C: New function.
14439 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14441 * configure: Regenerate.
14443 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14445 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
14446 mutex when HAVE_SYNC_BUILTINS isn't defined.
14448 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14450 * libgomp.texi (omp_test_lock): Fix typo.
14452 2008-06-12 Tobias Burnus <burnus@net-b.de>
14454 * omp_lib.f90.in: Add "implicit none".
14456 2008-06-12 Jakub Jelinek <jakub@redhat.com>
14458 PR middle-end/36506
14459 * testsuite/libgomp.c/reduction-5.c: New test.
14461 2008-06-11 Jakub Jelinek <jakub@redhat.com>
14463 * libgomp.h (struct gomp_task): Add in_tied_task field.
14464 * task.c (gomp_init_task): Initialize it.
14465 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
14466 unconditionally. Don't call gomp_team_barrier_wake if
14467 current task is implicit or if(0) from implicit and number of
14468 running tasks is equal to nthreads - 1.
14471 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
14472 omp_get_team_size_8): Fix pastos.
14475 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
14476 * configure: Regenerated.
14477 * config.h.in: Regenerated.
14478 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
14481 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
14484 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
14485 (GOMP_loop_ull_dynamic_start): Likewise.
14486 (GOMP_loop_ull_guided_start): Likewise.
14487 (GOMP_loop_ull_ordered_static_start): Likewise.
14488 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
14489 (GOMP_loop_ull_ordered_guided_start): Likewise.
14491 2008-06-06 Jakub Jelinek <jakub@redhat.com>
14492 Richard Henderson <rth@redhat.com>
14493 Ulrich Drepper <drepper@redhat.com>
14494 Jakob Blomer <jakob.blomer@ira.uka.de>
14496 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
14497 Substitute also OMP_*LOCK_25*.
14498 * configure: Regenerated.
14499 * config.h.in: Regenerated.
14500 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
14501 ptrlock.c and task.c.
14502 * Makefile.in: Regenerated.
14503 * testsuite/Makefile.in: Regenerated.
14504 * task.c: New file.
14505 * loop_ull.c: New file.
14506 * iter_ull.c: New file.
14507 * libgomp.h: Include ptrlock.h.
14508 (enum gomp_task_kind): New type.
14509 (struct gomp_team): Add task_lock, task_queue, task_count,
14510 task_running_count, single_count fields. Add
14511 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
14512 Remove work_share_lock, generation_mask,
14513 oldest_live_gen, num_live_gen and init_work_shares fields, add
14514 work work_share_list_alloc, work_share_list_free and work_share_chunk
14515 fields. Change work_shares from pointer to pointers into an array.
14516 Change ordered_release field into gomp_sem_t ** from flexible array
14517 member. Add implicit_task and initial_work_shares fields.
14518 Move close to the end of the struct.
14519 (struct gomp_team_state): Add single_count, last_work_share,
14520 active_level and level fields, remove work_share_generation.
14521 (gomp_barrier_handle_tasks): New prototype.
14522 (gomp_finish_task): New inline function.
14523 (struct gomp_work_share): Move chunk_size, end, incr into
14524 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
14525 next_ll fields. Reshuffle fields. Add next_alloc,
14526 next_ws, next_free and inline_ordered_team_ids fields, change
14527 ordered_team_ids into pointer from flexible array member.
14528 Add mode field. Put lock and next into a different cache line
14529 from most of the write-once fields.
14530 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
14531 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
14532 gomp_iter_ull_guided_next): New prototypes.
14533 (gomp_new_icv): New prototype.
14534 (struct gomp_thread): Add thread_pool and task fields.
14535 (struct gomp_thread_pool): New type.
14536 (gomp_new_team): New prototype.
14537 (gomp_team_start): Change type of last argument.
14538 (gomp_new_work_share): Removed.
14539 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
14540 (gomp_work_share_init_done): New static inline.
14541 (gomp_throttled_spin_count_var, gomp_available_cpus,
14542 gomp_managed_threads): New extern decls.
14543 (gomp_init_task): New prototype.
14544 (gomp_spin_count_var): New extern var decl.
14545 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
14546 or no alias support, or if not PIC.
14547 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
14548 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
14549 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
14550 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
14551 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
14552 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
14553 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
14554 gomp_test_nest_lock_25): New prototypes.
14555 (omp_lock_symver, strong_alias): Define.
14556 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
14558 (gomp_end_task): New.
14559 (struct gomp_task_icv, gomp_global_icv): New.
14560 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
14561 (struct gomp_task): New.
14562 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
14563 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
14565 (gomp_schedule_type): Reorder enum to match
14567 * team.c (struct gomp_thread_start_data): Add thread_pool and task
14569 (gomp_thread_start): Add gomp_team_barrier_wait call.
14570 For non-nested case remove clearing of docked thread thr fields.
14571 Use pool fields instead of global gomp_* variables. Use
14572 gomp_barrier_wait_last when needed. Initialize ts.active_level.
14573 Create tasks for each member thread.
14574 (free_team): Only destroy team barrier, task_lock here and free it.
14575 (gomp_free_thread): Free last_team if non-NULL.
14576 (gomp_team_end): Call gomp_team_barrier_wait instead of
14577 gomp_barrier_wait. For nested case call one extra
14578 gomp_barrier_wait. Move here some destruction from free_team.
14579 Call free_team on pool->last_team if any, rather than freeing
14580 current team. Destroy work_share_list_free_lock ifndef
14581 HAVE_SYNC_BUILTINS.
14582 (gomp_new_icv): New function.
14583 (gomp_threads, gomp_threads_size, gomp_threads_used,
14584 gomp_threads_dock): Removed.
14585 (gomp_thread_destructor): New variable.
14586 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
14588 (gomp_team_start): Create new pool if current thread doesn't have
14589 one. Use pool fields instead of global gomp_* variables.
14590 Initialize thread_pool field for new threads. Clear single_count.
14591 Change last argument from ws to team, don't create
14592 new team, set ts.work_share to &team->work_shares[0] and clear
14593 ts.last_work_share. Don't clear ts.work_share_generation.
14594 If number of threads changed, adjust atomically gomp_managed_threads.
14595 Use gomp_init_task instead of gomp_new_task,
14596 set thr->task to the corresponding implicit_task array entry.
14597 Create tasks for each member thread. Initialize ts.level.
14598 (initialize_team): Call pthread_key_create on
14599 gomp_thread_destructor.
14600 (team_destructor): New function.
14601 (new_team): Removed.
14602 (gomp_new_team): New function.
14603 (free_team): Free gomp_work_share blocks chained through next_alloc,
14604 instead of freeing work_shares and destroying work_share_lock.
14605 (gomp_team_end): Call gomp_fini_work_share. If number of threads
14606 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
14607 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
14608 of gomp_barrier_wait.
14609 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
14610 instead of gomp_barrier_wait. Call gomp_work_share_init_done
14611 if gomp_work_share_start returned true. Don't unlock ws->lock.
14612 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
14613 of gomp_barrier_wait.
14614 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
14615 gomp_work_share_init_done if gomp_work_share_start returned true.
14616 Don't unlock ws->lock.
14617 * work.c: Include stddef.h.
14618 (free_work_share): Use work_share_list_free_lock instead
14619 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
14620 Call gomp_fini_work_share and then either free ws if orphaned, or
14621 put it into work_share_list_free list of the current team.
14622 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
14624 (gomp_work_share_start, gomp_work_share_end,
14625 gomp_work_share_end_nowait): Rewritten.
14626 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
14627 (openmp_version): Set to 200805.
14628 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
14629 omp_sched_guided, omp_sched_auto): New parameters.
14630 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14631 omp_set_max_active_levels, omp_get_max_active_levels,
14632 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14633 omp_get_active_level): New interfaces.
14634 * omp_lib.h.in (openmp_version): Set to 200805.
14635 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
14636 omp_sched_guided, omp_sched_auto): New parameters.
14637 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14638 omp_set_max_active_levels, omp_get_max_active_levels,
14639 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14640 omp_get_active_level): New externals.
14641 * loop.c: Include limits.h.
14642 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
14644 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
14645 Likewise. Use gomp_icv.
14646 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
14647 ts.static_trip here.
14648 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
14649 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
14650 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
14651 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
14652 don't unlock ws->lock, otherwise lock it.
14653 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
14654 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
14655 (gomp_parallel_loop_start): Call gomp_new_team instead of
14656 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
14657 Adjust gomp_team_start caller. Pass 0 as second argument to
14658 gomp_resolve_num_threads.
14659 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
14660 If adding ws->chunk_size nthreads + 1 times after end won't
14661 overflow, set ws->mode to 1.
14662 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
14663 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
14664 GOMP_loop_ull_ordered_static_start,
14665 GOMP_loop_ull_ordered_dynamic_start,
14666 GOMP_loop_ull_ordered_guided_start,
14667 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
14668 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
14669 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
14670 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
14671 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
14673 * libgomp.map: Export lock routines also @@OMP_2.0.
14674 (GOMP_loop_ordered_dynamic_first,
14675 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
14676 GOMP_loop_ordered_static_first): Remove.
14677 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
14678 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
14679 GOMP_loop_ull_ordered_dynamic_next,
14680 GOMP_loop_ull_ordered_dynamic_start,
14681 GOMP_loop_ull_ordered_guided_next,
14682 GOMP_loop_ull_ordered_guided_start,
14683 GOMP_loop_ull_ordered_runtime_next,
14684 GOMP_loop_ull_ordered_runtime_start,
14685 GOMP_loop_ull_ordered_static_next,
14686 GOMP_loop_ull_ordered_static_start,
14687 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
14688 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
14689 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
14690 (omp_set_schedule, omp_get_schedule,
14691 omp_get_thread_limit, omp_set_max_active_levels,
14692 omp_get_max_active_levels, omp_get_level,
14693 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
14694 omp_set_schedule_, omp_set_schedule_8_,
14695 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
14696 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
14697 omp_get_max_active_levels_, omp_get_level_,
14698 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
14699 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
14700 New exports @@OMP_3.0.
14701 * omp.h.in (omp_sched_t): New type.
14702 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14703 omp_set_max_active_levels, omp_get_max_active_levels,
14704 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14705 omp_get_active_level): New prototypes.
14706 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
14707 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
14708 gomp_thread_limit_var, gomp_remaining_threads_count,
14709 gomp_remaining_threads_lock): New variables.
14710 (parse_spincount): New function.
14711 (initialize_env): Call gomp_init_num_threads unconditionally.
14712 Initialize gomp_available_cpus. Call parse_spincount,
14713 initialize gomp_{,throttled_}spin_count_var
14714 depending on presence and value of OMP_WAIT_POLICY and
14715 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
14716 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
14717 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
14718 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
14719 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
14720 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
14721 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
14722 (gomp_global_icv): New.
14723 (parse_schedule): Use it. Parse "auto".
14724 (omp_set_num_threads): Use gomp_icv.
14725 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
14727 (omp_get_max_threads): Move from parallel.c.
14728 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14729 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
14731 (parse_stacksize, parse_wait_policy): New functions.
14732 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
14733 both wrappers for compatibility and new locks.
14734 (omp_set_schedule, omp_get_schedule,
14735 omp_get_thread_limit, omp_set_max_active_levels,
14736 omp_get_max_active_levels, omp_get_level,
14737 omp_get_ancestor_thread_num, omp_get_team_size,
14738 omp_get_active_level): New ialias_redirect.
14739 (omp_set_schedule_, omp_set_schedule_8_,
14740 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
14741 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
14742 omp_get_max_active_levels_, omp_get_level_,
14743 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
14744 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
14746 * parallel.c: Include limits.h.
14747 (gomp_resolve_num_threads): Add count argument. Rewritten.
14748 (GOMP_parallel_start): Call gomp_new_team and pass that as last
14749 argument to gomp_team_start. Pass 0 as second argument to
14750 gomp_resolve_num_threads.
14751 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
14752 if gomp_thread_limit_var != ULONG_MAX.
14753 (omp_in_parallel): Implement using ts.active_level.
14754 (omp_get_max_threads): Move to env.c.
14755 (omp_get_level, omp_get_ancestor_thread_num,
14756 omp_get_team_size, omp_get_active_level): New functions,
14758 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
14759 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
14760 gomp_iter_dynamic_next instead of the _locked variant and don't take
14761 lock around it, otherwise acquire it before calling
14762 gomp_iter_dynamic_next_locked.
14763 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
14764 gomp_iter_dynamic_next instead of the _locked variant and don't take
14766 (GOMP_parallel_sections_start): Call gomp_new_team instead of
14767 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
14768 Adjust gomp_team_start caller. Pass count as second argument to
14769 gomp_resolve_num_threads, don't adjust num_threads after the call.
14771 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
14772 ws->chunk_size by incr.
14773 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
14775 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
14777 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
14778 (omp_check_defines): Check even the compat defines.
14779 * config/linux/ptrlock.c: New file.
14780 * config/linux/ptrlock.h: New file.
14781 * config/linux/wait.h: New file.
14782 * config/posix/ptrlock.c: New file.
14783 * config/posix/ptrlock.h: New file.
14784 * config/linux/bar.h (gomp_team_barrier_wait,
14785 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14786 (gomp_team_barrier_set_task_pending,
14787 gomp_team_barrier_clear_task_pending,
14788 gomp_team_barrier_set_waiting_for_tasks,
14789 gomp_team_barrier_waiting_for_tasks,
14790 gomp_team_barrier_done): New inlines.
14791 (gomp_barrier_t): Rewritten.
14792 (gomp_barrier_state_t): New typedef.
14793 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
14794 gomp_barrier_wait_start): Rewritten.
14795 (gomp_barrier_wait_end): Change second argument to
14796 gomp_barrier_state_t.
14797 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14799 * config/linux/bar.c: Include wait.h instead of libgomp.h and
14801 (gomp_barrier_wait_end): Rewritten.
14802 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14803 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
14804 * config/posix/bar.h (gomp_barrier_t): Add generation field.
14805 (gomp_barrier_state_t): New typedef.
14806 (gomp_team_barrier_wait,
14807 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14808 (gomp_barrier_wait_start): Or all but low 2 bits from generation
14809 into the return value. Return gomp_barrier_state_t.
14810 (gomp_team_barrier_set_task_pending,
14811 gomp_team_barrier_clear_task_pending,
14812 gomp_team_barrier_set_waiting_for_tasks,
14813 gomp_team_barrier_waiting_for_tasks,
14814 gomp_team_barrier_done): New inlines.
14815 (gomp_barrier_wait_end): Change second argument to
14816 gomp_barrier_state_t.
14817 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14819 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
14820 (gomp_barrier_wait_end): Change second argument to
14821 gomp_barrier_state_t.
14822 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14823 gomp_team_barrier_wake): New functions.
14824 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
14826 (gomp_futex_wake, gomp_futex_wait): New variables.
14827 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
14828 * config/linux/lock.c: Rewrite to make locks task owned,
14829 for backwards compatibility provide the old entrypoints
14830 if symbol versioning. Include wait.h instead of libgomp.h and
14832 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
14833 * config/posix95/lock.c: Rewrite to make locks task owned,
14834 for backwards compatibility provide the old entrypoints
14835 if symbol versioning.
14836 * config/posix/lock.c: Rewrite to make locks task owned,
14837 for backwards compatibility provide the old entrypoints
14838 if symbol versioning.
14839 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
14840 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
14841 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
14842 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14843 (sys_futex0): Return error code.
14844 (futex_wake, futex_wait): If ENOSYS was returned, clear
14845 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14846 (cpu_relax, atomic_write_barrier): New static inlines.
14847 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14848 (futex_wake, futex_wait): If ENOSYS was returned, clear
14849 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14850 (cpu_relax, atomic_write_barrier): New static inlines.
14851 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14852 (sys_futex0): Return error code.
14853 (futex_wake, futex_wait): If ENOSYS was returned, clear
14854 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14855 (cpu_relax, atomic_write_barrier): New static inlines.
14856 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14857 (sys_futex0): Return error code.
14858 (futex_wake, futex_wait): If ENOSYS was returned, clear
14859 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14860 (cpu_relax, atomic_write_barrier): New static inlines.
14861 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14862 (sys_futex0): Return error code.
14863 (futex_wake, futex_wait): If ENOSYS was returned, clear
14864 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14865 (cpu_relax, atomic_write_barrier): New static inlines.
14866 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14867 (sys_futex0): Return error code.
14868 (futex_wake, futex_wait): If ENOSYS was returned, clear
14869 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14870 (cpu_relax, atomic_write_barrier): New static inlines.
14871 * config/linux/sem.c: Include wait.h instead of libgomp.h and
14873 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
14874 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
14875 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
14877 (omp_nest_lock_t): Change owner into void *, add lock field.
14878 * config/posix95/omp-lock.h: Include semaphore.h.
14879 (omp_lock_25_t, omp_nest_lock_25_t): New types.
14880 (omp_lock_t): Use sem_t instead of mutex if semaphores
14882 (omp_nest_lock_t): Likewise. Change owner to void *.
14883 * config/posix/omp-lock.h: Include semaphore.h.
14884 (omp_lock_25_t, omp_nest_lock_25_t): New types.
14885 (omp_lock_t): Use sem_t instead of mutex if semaphores
14887 (omp_nest_lock_t): Likewise. Add owner field.
14889 2008-06-06 Jakub Jelinek <jakub@redhat.com>
14891 * testsuite/libgomp.c/collapse-1.c: New test.
14892 * testsuite/libgomp.c/collapse-2.c: New test.
14893 * testsuite/libgomp.c/collapse-3.c: New test.
14894 * testsuite/libgomp.c/icv-1.c: New test.
14895 * testsuite/libgomp.c/icv-2.c: New test.
14896 * testsuite/libgomp.c/lib-2.c: New test.
14897 * testsuite/libgomp.c/lock-1.c: New test.
14898 * testsuite/libgomp.c/lock-2.c: New test.
14899 * testsuite/libgomp.c/lock-3.c: New test.
14900 * testsuite/libgomp.c/loop-4.c: New test.
14901 * testsuite/libgomp.c/loop-5.c: New test.
14902 * testsuite/libgomp.c/loop-6.c: New test.
14903 * testsuite/libgomp.c/loop-7.c: New test.
14904 * testsuite/libgomp.c/loop-8.c: New test.
14905 * testsuite/libgomp.c/loop-9.c: New test.
14906 * testsuite/libgomp.c/nested-3.c: New test.
14907 * testsuite/libgomp.c/nestedfn-6.c: New test.
14908 * testsuite/libgomp.c/sort-1.c: New test.
14909 * testsuite/libgomp.c/task-1.c: New test.
14910 * testsuite/libgomp.c/task-2.c: New test.
14911 * testsuite/libgomp.c/task-3.c: New test.
14912 * testsuite/libgomp.c/task-4.c: New test.
14913 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
14914 to C++ testsuite default compiler options.
14915 * testsuite/libgomp.c++/collapse-1.C: New test.
14916 * testsuite/libgomp.c++/collapse-2.C: New test.
14917 * testsuite/libgomp.c++/ctor-10.C: New test.
14918 * testsuite/libgomp.c++/for-1.C: New test.
14919 * testsuite/libgomp.c++/for-2.C: New test.
14920 * testsuite/libgomp.c++/for-3.C: New test.
14921 * testsuite/libgomp.c++/for-4.C: New test.
14922 * testsuite/libgomp.c++/for-5.C: New test.
14923 * testsuite/libgomp.c++/loop-8.C: New test.
14924 * testsuite/libgomp.c++/loop-9.C: New test.
14925 * testsuite/libgomp.c++/loop-10.C: New test.
14926 * testsuite/libgomp.c++/task-1.C: New test.
14927 * testsuite/libgomp.c++/task-2.C: New test.
14928 * testsuite/libgomp.c++/task-3.C: New test.
14929 * testsuite/libgomp.c++/task-4.C: New test.
14930 * testsuite/libgomp.c++/task-5.C: New test.
14931 * testsuite/libgomp.c++/task-6.C: New test.
14932 * testsuite/libgomp.fortran/allocatable1.f90: New test.
14933 * testsuite/libgomp.fortran/allocatable2.f90: New test.
14934 * testsuite/libgomp.fortran/allocatable3.f90: New test.
14935 * testsuite/libgomp.fortran/allocatable4.f90: New test.
14936 * testsuite/libgomp.fortran/collapse1.f90: New test.
14937 * testsuite/libgomp.fortran/collapse2.f90: New test.
14938 * testsuite/libgomp.fortran/collapse3.f90: New test.
14939 * testsuite/libgomp.fortran/collapse4.f90: New test.
14940 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
14941 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
14942 * testsuite/libgomp.fortran/lib4.f90: New test.
14943 * testsuite/libgomp.fortran/lock-1.f90: New test.
14944 * testsuite/libgomp.fortran/lock-2.f90: New test.
14945 * testsuite/libgomp.fortran/nested1.f90: New test.
14946 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
14947 * testsuite/libgomp.fortran/strassen.f90: New test.
14948 * testsuite/libgomp.fortran/tabs1.f90: New test.
14949 * testsuite/libgomp.fortran/tabs2.f: New test.
14950 * testsuite/libgomp.fortran/task1.f90: New test.
14951 * testsuite/libgomp.fortran/task2.f90: New test.
14952 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
14953 * testsuite/libgomp.fortran/vla5.f90: Likewise.
14954 * testsuite/libgomp.c/pr26943-2.c: Likewise.
14955 * testsuite/libgomp.c/pr26943-3.c: Likewise.
14956 * testsuite/libgomp.c/pr26943-4.c: Likewise.
14958 2008-05-23 Jakub Jelinek <jakub@redhat.com>
14961 * testsuite/libgomp.c++/ctor-11.C: New test.
14962 * testsuite/libgomp.c++/ctor-12.C: New test.
14964 2008-05-15 Janis Johnson <janis187@us.ibm.com>
14966 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
14968 2008-05-07 Jakub Jelinek <jakub@redhat.com>
14970 PR middle-end/36106
14971 * testsuite/libgomp.c/atomic-5.c: New test.
14972 * testsuite/libgomp.c/atomic-6.c: New test.
14973 * testsuite/libgomp.c/autopar-1.c: New test.
14975 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14977 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
14978 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
14979 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
14980 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
14981 * configure: Regenerate.
14982 * Makefile.in, testsuite/Makefile.in: Likewise.
14984 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
14987 * aclocal.m4: Regenerate.
14988 * configure: Regenerate.
14990 2008-03-18 Jakub Jelinek <jakub@redhat.com>
14992 PR middle-end/35611
14993 * testsuite/libgomp.c/atomic-4.c: New test.
14996 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
14997 (gomp_iter_guided_next): Likewise.
14998 * testsuite/libgomp.c/pr35625.c: New test.
15000 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15002 * aclocal.m4: Regenerate.
15003 * configure: Likewise.
15004 * Makefile.in: Likewise.
15005 * testsuite/Makefile.in: Likewise.
15007 2008-03-13 Jakub Jelinek <jakub@redhat.com>
15009 PR middle-end/35185
15010 * testsuite/libgomp.c++/pr35185.C: New test.
15012 2008-03-12 Jakub Jelinek <jakub@redhat.com>
15014 PR middle-end/35549
15015 * testsuite/libgomp.c/pr35549.c: New test.
15017 2008-03-06 Jakub Jelinek <jakub@redhat.com>
15019 * testsuite/libgomp.c/atomic-3.c: New test.
15021 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15024 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
15025 .F08 file suffixes.
15027 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
15030 * configure.ac: Add ACX_HEADER_STRING.
15031 * env.c: Include strings.h.
15032 * aclocal.m4: Regenerate.
15033 * config.h.in: Regenerate.
15034 * configure: Regenerate.
15035 * Makefile.in: Regenerate.
15036 * testsuite/Makefile.in: Regenerate.
15038 2008-02-15 Jakub Jelinek <jakub@redhat.com>
15040 PR middle-end/35196
15041 * testsuite/libgomp.c/pr35196.c: New test.
15043 PR middle-end/35130
15044 * testsuite/libgomp.fortran/pr35130.f90: New test.
15045 * testsuite/libgomp.c/pr35130.c: New test.
15047 2008-01-25 Jakub Jelinek <jakub@redhat.com>
15049 PR middle-end/33880
15050 * testsuite/libgomp.c/pr33880.c: New test.
15051 * testsuite/libgomp.fortran/pr33880.f90: New test.
15053 2008-01-24 David Edelsohn <edelsohn@gnu.org>
15055 * configure: Regenerate.
15057 2008-01-08 Jakub Jelinek <jakub@redhat.com>
15059 * configure.ac: Move futex checking into ../config/futex.m4.
15060 * configure: Rebuilt.
15061 * aclocal.m4: Rebuilt.
15062 * Makefile.in: Rebuilt.
15064 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
15065 2007-10-15 ../config/tls.m4 change.
15067 2007-12-19 Jakub Jelinek <jakub@redhat.com>
15070 * testsuite/libgomp.c/pr34513.c: New test.
15071 * testsuite/libgomp.c++/pr34513.C: New test.
15073 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
15076 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
15078 2007-12-04 Jakub Jelinek <jakub@redhat.com>
15080 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
15082 2007-12-03 Jakub Jelinek <jakub@redhat.com>
15084 * testsuite/libgomp.c/private-1.c: New test.
15086 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
15087 Paolo Bonzini <bonzini@gnu.org>
15089 * Makefile.am: Use space as vpath separator. Use 'vpath %'
15090 instead of 'VPATH ='.
15091 * Makefile.in: Regenerate.
15093 2007-11-23 Matthias Klose <doko@ubuntu.com>
15095 * configure.ac: Adjust makeinfo version check.
15096 * configure: Regenerate.
15098 2007-11-10 Jakub Jelinek <jakub@redhat.com>
15101 * testsuite/libgomp.fortran/pr34020.f90: New test.
15103 2007-11-06 Jakub Jelinek <jakub@redhat.com>
15106 * testsuite/libgomp.c++/atomic-1.C: New test.
15108 2007-10-25 Jakub Jelinek <jakub@redhat.com>
15111 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
15112 Make x and y integers rather than (implicit) reals. Add private (j)
15113 clause to the last omp parallel.
15115 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
15117 * configure: Regenerate following changes to ../config/tls.m4.
15119 2007-09-28 Jakub Jelinek <jakub@redhat.com>
15121 * testsuite/libgomp.fortran/stack.f90: New test.
15123 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
15125 * config/mingw32/proc.c: New file.
15127 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
15129 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
15130 (main): Use __get_cpuid to get i386 target fetaures.
15131 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
15132 (main): Use __get_cpuid to get x86_64 target fetaures.
15134 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
15137 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
15138 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
15140 2007-07-12 Jakub Jelinek <jakub@redhat.com>
15143 * testsuite/libgomp.fortran/pr32550.f90: New test.
15144 * testsuite/libgomp.fortran/crayptr2.f90: New test.
15146 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
15148 * aclocal.m4: Regenerated.
15150 2007-07-05 Tobias Burnus <burnus@net-b.de>
15153 * testsuite/libgomp.fortran/pr32359.f90: New.
15155 2007-07-02 Jakub Jelinek <jakub@redhat.com>
15158 * sections.c (GOMP_parallel_sections_start): Only decrease
15159 number of threads to COUNT if dyn_var is true.
15160 * testsuite/libgomp.c/pr32468.c: New test.
15162 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15165 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
15167 2007-06-21 Jakub Jelinek <jakub@redhat.com>
15169 PR middle-end/32362
15170 * testsuite/libgomp.c/pr32362-1.c: New test.
15171 * testsuite/libgomp.c/pr32362-2.c: New test.
15172 * testsuite/libgomp.c/pr32362-3.c: New test.
15174 2007-06-07 Jakub Jelinek <jakub@redhat.com>
15176 * team.c (gomp_team_start): Fix setting up thread_attr
15179 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
15181 * configure: Regenerate.
15183 2007-05-23 Steve Ellcey <sje@cup.hp.com>
15185 * Makefile.in: Regenerate.
15186 * configure: Regenerate.
15187 * aclocal.m4: Regenerate.
15188 * testsuite/Makefile.in: Regenerate.
15190 2007-05-04 Jakub Jelinek <jakub@redhat.com>
15192 * config/linux/proc.c: New file.
15195 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
15197 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
15199 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
15201 2007-04-16 Matthias Klose <doko@debian.org>
15203 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
15204 flags if not building with -m64.
15205 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
15206 flag for i?86-*-* targets, if current target matches -m64.
15208 2007-04-14 Steve Ellcey <sje@cup.hp.com>
15210 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
15211 * Makefile.in: Regenerate.
15213 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15216 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
15218 * testsuite/libgomp.fortran/fortran.exp: Likewise.
15220 2007-04-04 Jakub Jelinek <jakub@redhat.com>
15222 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
15224 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
15225 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
15226 (parse_affinity): New function.
15227 (initialize_env): Call it and gomp_init_affinity.
15228 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
15229 create new pthread_attr_t and call gomp_init_thread_affinity
15230 on it for each thread before passing the attribute to pthread_create.
15231 * config/linux/affinity.c: New file.
15232 * config/posix/affinity.c: New file.
15233 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
15234 * configure: Rebuilt.
15235 * config.h.in: Rebuilt.
15236 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
15237 * Makefile.in: Rebuilt.
15239 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
15241 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
15243 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
15244 and use it if found.
15246 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
15248 * testsuite/config/default.exp: New file.
15249 * testsuite/lib/libgomp.exp: New file.
15250 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
15251 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
15252 load_lib *, load_gcc_lib *): Move to libgomp.exp.
15253 (libgomp_load): Remove.
15254 * testsuite/lib/libgomp.exp (libgomp_init): Compute
15255 always_ld_library_path, not ld_library_path. Set additional_flags
15256 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
15257 (target_compile): Do not call libgomp_init. Append lang_library_path
15258 and lang_link_flags to options.
15259 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
15260 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
15262 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
15263 always_ld_library_path. Set LD_LIBRARY_PATH here.
15264 * testsuite/libgomp.fortran/fortran.exp: Ditto.
15265 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
15266 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
15268 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
15269 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
15270 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
15271 * testsuite/libgomp.c/pr29947-1.c: Ditto.
15272 * testsuite/libgomp.c/atomic-10.c: Ditto.
15274 2007-03-21 Jakub Jelinek <jakub@redhat.com>
15276 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
15277 dg-final cleanup-modules line.
15278 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
15279 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
15280 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
15281 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
15282 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
15283 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
15284 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
15286 2007-03-18 Andreas Schwab <schwab@suse.de>
15288 * acinclude.m4: Adjust regular expression for ld version
15290 * configure: Regenerate.
15292 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
15294 * Makefile.am: Add install-pdf target as copied from
15295 automake v1.10 rules.
15296 * Makefile.in: Regenerate
15298 2007-02-07 Jakub Jelinek <jakub@redhat.com>
15301 * configure: Regenerate.
15304 * testsuite/libgomp.c++/pr30703.C: New test.
15306 2007-02-02 Jakub Jelinek <jakub@redhat.com>
15309 2006-07-05 Eric Christopher <echristo@apple.com>
15310 * configure.ac: Depend addition of -pthread on host OS.
15311 * configure: Regenerate.
15313 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15315 * libgomp.texi: Fix spacing after abbreviations.
15317 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
15320 * configure.ac: Add check for makeinfo
15321 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
15322 if an appropriate version of makeinfo is found.
15323 * aclocal.m4: Regenerated.
15324 * configure: Regenerated.
15325 * Makefile.in: Regenerated.
15326 * testsuite/Makefile.in: Regenerated.
15328 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
15331 * libgomp.texi: More about implementation-dependent settings.
15333 2007-01-26 Tobias Burnus <burnus@net-b.de>
15335 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
15337 2007-01-24 Jakub Jelinek <jakub@redhat.com>
15339 PR middle-end/30494
15340 * testsuite/libgomp.c/pr30494.c: New test.
15342 2007-01-15 Tom Tromey <tromey@redhat.com>
15344 * configure: Rebuilt.
15345 * configure.ac: Fixed comment.
15347 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
15349 * libgomp.texi: Document implementation specific default values of
15350 environment variables.
15352 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
15355 * libgomp.texi: New file.
15356 * configure.ac: Add --enable-generated-files-in-srcdir option.
15357 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
15359 * Makefile.in: Regenerated.
15360 * config.h.in: Regenerated.
15361 * testsuite/Makefile.in: Regenerated.
15364 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
15367 * env.c (omp_set_num_threads): Set illegal thread count to 1.
15369 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
15371 * configure: Regenerate.
15373 2006-12-04 Jakub Jelinek <jakub@redhat.com>
15376 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
15377 start if there shouldn't be any loop iterations.
15378 (gomp_loop_ordered_static_start): Remove start == end test.
15379 * testsuite/libgomp.c/pr29947-1.c: New test.
15380 * testsuite/libgomp.c/pr29947-2.c: New test.
15382 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
15384 * configure.tgt: Force initial-exec TLS model on Linux only.
15386 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
15388 * configure: Regenerated.
15390 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
15392 * env.c (parse_schedule): Reject out of range values.
15393 (parse_unsigned_long): Reject out of range, negative or zero values.
15395 2006-10-29 Jakub Jelinek <jakub@redhat.com>
15398 * testsuite/libgomp.fortran/pr29629.f90: New test.
15400 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
15403 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
15404 * config/posix95: New directory.
15405 * config/posix95/omp-lock.h: New file.
15406 * config/posix95/lock.c: Likewise.
15408 2006-10-14 Geoffrey Keating <geoffk@apple.com>
15410 * aclocal.m4: Regenerate.
15411 * configure: Regenerate.
15413 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
15415 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
15418 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
15420 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
15422 * configure: Regenerate.
15423 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
15425 2006-09-26 Jakub Jelinek <jakub@redhat.com>
15427 PR middle-end/25261
15428 PR middle-end/28790
15429 * testsuite/libgomp.c/nestedfn-4.c: New test.
15430 * testsuite/libgomp.c/nestedfn-5.c: New test.
15431 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
15434 * testsuite/libgomp.fortran/condinc1.f: New test.
15435 * testsuite/libgomp.fortran/condinc2.f: New test.
15436 * testsuite/libgomp.fortran/condinc3.f90: New test.
15437 * testsuite/libgomp.fortran/condinc4.f90: New test.
15438 * testsuite/libgomp.fortran/condinc1.inc: New file.
15440 2006-09-18 Tom Tromey <tromey@redhat.com>
15442 * configure: Rebuilt.
15444 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
15447 PR preprocessor/14634
15448 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
15450 * configure: Regenerate.
15452 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
15454 * testsuite/libgomp.fortran/reduction3.f90: Change
15455 -2147483648 to -huge(i)-1 to avoid overflow.
15456 * testsuite/libgomp.fortran/reduction4.f90: Change
15457 Z'ffffffff' to not(0) to avoid overflow.
15459 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
15462 * Makefile.am (libsubincludedir): New.
15463 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
15464 * Makefile.in: Regenerate.
15466 2006-08-17 Jakub Jelinek <jakub@redhat.com>
15469 * env.c: Include ctype.h.
15470 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
15471 leading and/or trailing whitespace and compare strings case
15474 2006-07-16 Jakub Jelinek <jakub@redhat.com>
15477 * testsuite/libgomp.fortran/pr28390.f: New test.
15479 2006-07-05 Eric Christopher <echristo@apple.com>
15481 * configure.ac: Depend addition of -pthread on host OS.
15482 * configure: Regenerate.
15484 2006-06-21 Jakub Jelinek <jakub@redhat.com>
15486 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
15487 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
15490 2006-06-20 Jakub Jelinek <jakub@redhat.com>
15494 * configure.ac: If neither --enable-linux-futex nor
15495 --disable-linux-futex is passed, determine the default by checking
15496 for compiling and/or running against NPTL. With --enable-linux-futex,
15497 check if SYS_gettid and SYS_futex are defined.
15498 * configure: Rebuilt.
15500 2006-06-14 Richard Henderson <rth@redhat.com>
15503 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
15504 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
15506 2006-06-09 Richard Henderson <rth@redhat.com>
15508 * env.c (gomp_nthreads_var): Change to unsigned long.
15509 (gomp_run_sched_chunk): Likewise.
15510 (parse_unsigned_long): Rename from parse_num_threads and generalize.
15511 (initialize_env): Initialize gomp_thread_attr.
15512 * libgomp.h (gomp_nthreads_var): Update decl.
15513 (gomp_run_sched_chunk): Likewise.
15514 (gomp_thread_attr): Declare.
15515 * team.c (gomp_thread_attr): Export.
15516 (initialize_team): Don't initialize it.
15518 2006-06-09 Jakub Jelinek <jakub@redhat.com>
15521 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
15522 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
15524 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
15526 * config/mingw32/time.c: New file.
15527 * configure.tgt: Use it.
15529 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
15531 * Makefile.am: Add install-html target. Add install-html to .PHONY
15532 * Makefile.in: Regenerate.
15534 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15537 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
15538 * testsuite/libgomp.c/critical-1.c: Likewise.
15539 * testsuite/libgomp.c/loop-1.c: Likewise.
15540 * testsuite/libgomp.c/loop-2.c: Likewise.
15541 * testsuite/libgomp.c/single-1.c: Likewise.
15542 * testsuite/libgomp.c/ordered-1.c: Likewise.
15543 * testsuite/libgomp.c/ordered-2.c: Likewise.
15545 2006-05-15 Jakub Jelinek <jakub@redhat.com>
15547 PR middle-end/27416
15548 * libgomp.fortran/pr27416-1.f90: New test.
15550 2006-05-03 Jakub Jelinek <jakub@redhat.com>
15553 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
15554 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
15556 2006-05-02 Jakub Jelinek <jakub@redhat.com>
15559 * testsuite/libgomp.c/pr26943-1.c: New test.
15560 * testsuite/libgomp.c/pr26943-2.c: New test.
15561 * testsuite/libgomp.c/pr26943-3.c: New test.
15562 * testsuite/libgomp.c/pr26943-4.c: New test.
15563 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
15564 * testsuite/libgomp.c++/pr26943.C: New test.
15566 2006-05-02 Jakub Jelinek <jakub@redhat.com>
15568 PR middle-end/27337
15569 * testsuite/libgomp.c++/pr27337.C: New test.
15571 2006-04-26 Jakub Jelinek <jakub@redhat.com>
15574 * testsuite/libgomp.c/pr26171.c: New test.
15576 2006-04-25 Richard Henderson <rth@redhat.com>
15579 * configure.ac: Use GCC_CHECK_TLS.
15580 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
15581 * Makefile.in, aclocal.m4, configure: Regenerate.
15583 2006-04-10 Matthias Klose <doko@debian.org>
15585 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
15586 directory names containing underscores.
15588 2006-03-21 Jakub Jelinek <jakub@redhat.com>
15591 * testsuite/libgomp.c++/pr26691.C: New test.
15593 2006-03-13 Jakub Jelinek <jakub@redhat.com>
15595 * testsuite/libgomp.fortran/retval2.f90: New test.
15597 2006-03-09 Diego Novillo <dnovillo@redhat.com>
15599 * testsuite/libgomp.c++: New directory.
15601 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
15603 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
15604 * config/posix/sem.c: Implement the above.
15606 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
15608 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
15609 define HAVE_BROKEN_POSIX_SEMAPHORES.
15610 * configure: Rebuilt.
15611 * config.h.in: Rebuilt.
15613 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
15616 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
15617 for the other pthread check.
15618 * configure: Regenerate.
15619 * config.h.in: Regenerate.
15621 2006-02-15 Jakub Jelinek <jakub@redhat.com>
15625 * Makefile.am (fincludedir): New variable.
15626 (nodist_include_HEADERS): Remove Fortran files.
15627 (nodist_finclude_HEADERS): New variable.
15628 * Makefile.in: Regenerated.
15630 2006-02-13 Jakub Jelinek <jakub@redhat.com>
15632 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
15633 Remove tests for returning assumed character length arrays.
15635 2006-02-12 Roger Sayle <roger@eyesopen.com>
15636 John David Anglin <dave@hiauly1.hia.nrc.ca>
15639 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
15641 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
15643 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
15645 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
15647 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
15648 part of LD_LIBRARY_PATH manually.
15650 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
15653 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
15656 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
15659 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
15660 * configure.ac (PERL): Don't set.
15661 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
15662 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
15663 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
15664 * omp.h.in: Wrap the new configure substitutions with @ characters.
15665 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
15666 * aclocal.m4, configure, Makefile.in: Regenerate.
15667 * mkomp_h.pl: Delete.
15669 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
15672 * configure.ac: Use GCC_HEADER_STDINT.
15673 * libgomp.h: Include gstdint.h.
15674 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
15675 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
15677 2006-01-24 Richard Henderson <rth@redhat.com>
15680 * configure.ac: Add AM_MAINTAINER_MODE.
15681 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
15683 2006-01-24 Diego Novillo <dnovillo@redhat.com>
15685 * Makefile.in: Regenerate.
15686 * testsuite/Makefile.in: Regenerate.
15687 * aclocal.m4: Regenerate.
15689 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
15691 * config/posix/proc.c: Conditional include of sys/loadavg.h for
15693 * configure.ac: Add check for loadavg.h.
15694 (link_gomp): Adjust comment.
15695 * configure: Regenerate.
15696 * config.h.in: Regenerate.
15698 2006-01-21 Steve Ellcey <sje@cup.hp.com>
15701 * configure.ac: Remove check for alloca.h.
15702 * configure: Regenerate.
15703 * config.h.in: Regenerate.
15704 * libgomp.h: define gomp_alloca to be __builtin_alloca.
15705 * team.c: Remove use of alloca.h.
15706 Call gomp_alloca instead of alloca.
15708 2006-01-20 Steve Ellcey <sje@cup.hp.com>
15711 * team.c: Add include of alloca.h.
15712 * configure.ac: Add check for alloca.h.
15713 * configure: Regenerate.
15714 * config.h.in: Regenerate.
15716 2006-01-17 Jakub Jelinek <jakub@redhat.com>
15719 * testsuite/libgomp.fortran/pr25219.f90: New test.
15721 2005-12-05 Uros Bizjak <uros@kss-loka.si>
15723 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
15724 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
15725 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
15726 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
15727 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
15728 testsuite/libgomp.fortran/threadprivate1.f90,
15729 testsuite/libgomp.fortran/threadprivate2.f90,
15730 testsuite/libgomp.fortran/threadprivate3.f90,
15731 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
15732 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
15733 testsuite/libgomp.fortran/omp_parse3.f90: Change required
15734 effective-target to TLS runtime.
15736 * testsuite/libgomp.fortran/pr25162.f: Require
15737 effective-target TLS runtime.
15739 2005-12-01 Jakub Jelinek <jakub@redhat.com>
15741 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
15742 * testsuite/libgomp.c/nestedfn-3.c: New test.
15744 2005-11-30 Jakub Jelinek <jakub@redhat.com>
15747 * testsuite/libgomp.fortran/pr25162.f: New test.
15749 2005-11-28 Jakub Jelinek <jakub@redhat.com>
15751 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
15752 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
15754 2005-11-25 Jakub Jelinek <jakub@redhat.com>
15756 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
15757 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
15758 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
15759 single.c, team.c, work.c, config/linux/alpha/futex.h,
15760 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
15761 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
15762 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
15763 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
15764 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
15765 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
15766 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
15769 2005-11-18 Jakub Jelinek <jakub@redhat.com>
15771 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
15772 to nodist_noinst_HEADERS.
15773 * Makefile.in: Rebuilt.
15775 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
15776 add integer count field.
15777 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
15778 omp_nest_lock_t type change.
15779 (omp_init_nest_lock): Likewise. Initialize count to 0.
15780 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
15782 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
15784 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
15785 Increment count if successful and return the new nesting level.
15786 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
15787 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
15788 * testsuite/libgomp.c/lib-1.c: New test.
15789 * testsuite/libgomp.fortran/lib1.f90: New test.
15790 * testsuite/libgomp.fortran/lib2.f: New test.
15791 * testsuite/libgomp.fortran/lib3.f: New test.
15793 2005-11-17 Richard Henderson <rth@redhat.com>
15796 * Makefile.am (nodist_toolexeclib_HEADERS): New.
15797 * configure.ac (link_gomp): New. Substitute it.
15798 (AC_CONFIG_FILES): Add libgomp.spec.
15799 * libgomp.spec.in: New file.
15800 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
15801 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
15803 2005-11-18 Jakub Jelinek <jakub@redhat.com>
15805 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
15806 reduction(-:var) behaving the same as reduction(+:var).
15807 * testsuite/libgomp.c/reduction-4.c: New test.
15809 2005-11-15 Uros Bizjak <uros@kss-loka.si>
15811 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
15812 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
15813 testsuite/libgomp.c/copyin-3.c,
15814 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
15815 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
15816 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
15817 testsuite/libgomp.c++/pr24455.C,
15818 testsuite/libgomp.fortran/threadprivate1.f90,
15819 testsuite/libgomp.fortran/threadprivate2.f90,
15820 testsuite/libgomp.fortran/threadprivate3.f90,
15821 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
15822 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
15823 testsuite/libgomp.fortran/omp_parse3.f90: Require
15824 effective-target TLS.
15826 2005-11-14 Diego Novillo <dnovillo@redhat.com>
15830 2005-11-13 Jakub Jelinek <jakub@redhat.com>
15833 * team.c (initialize_team): Pass NULL rather than free as
15834 pthread_key_create destructor. Initialize thread specific data
15835 pointer in initial thread to a static local variable rather than
15838 2005-11-11 Uros Bizjak <uros@kss-loka.si>
15840 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
15841 its location to ld_library_path.
15843 2005-11-10 Diego Novillo <dnovillo@redhat.com>
15845 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
15847 2005-11-10 Diego Novillo <dnovillo@redhat.com>
15849 * testsuite/libgomp.c: Rename from libgomp.dg.
15851 2005-11-09 Diego Novillo <dnovillo@redhat.com>
15853 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
15854 threadprivate variable 'i'.
15856 2005-11-09 Jakub Jelinek <jakub@redhat.com>
15858 * config/linux/s390/futex.h: New file.
15859 * configure.tgt: Use it.
15861 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
15862 before the parallel.
15864 2005-11-08 Jakub Jelinek <jakub@redhat.com>
15867 * testsuite/libgomp.c++/master-1.C: New test.
15869 2005-11-07 Jakub Jelinek <jakub@redhat.com>
15871 * testsuite/libgomp.dg/copyin-3.c: New test.
15873 2005-11-07 Jakub Jelinek <jakub@redhat.com>
15875 * testsuite/libgomp.fortran/retval1.f90: New test.
15876 * testsuite/libgomp.fortran/vla7.f90: New test.
15878 2005-11-06 Jakub Jelinek <jakub@redhat.com>
15880 * testsuite/libgomp.fortran/vla2.f90: New test.
15881 * testsuite/libgomp.fortran/vla3.f90: New test.
15882 * testsuite/libgomp.fortran/vla4.f90: New test.
15883 * testsuite/libgomp.fortran/vla5.f90: New test.
15884 * testsuite/libgomp.fortran/vla6.f90: New test.
15886 2005-11-01 Jakub Jelinek <jakub@redhat.com>
15888 * config/linux/sparc/futex.h: New file.
15889 * configure.tgt: Use it.
15890 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
15892 * critical.c: Include stdlib.h.
15893 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
15894 ignoring return value.
15895 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
15896 LIBGOMP_CHECK_SYNC_BUILTINS check.
15897 * configure: Rebuilt.
15899 2005-10-31 Jakub Jelinek <jakub@redhat.com>
15901 * testsuite/libgomp.fortran/vla1.f90: New test.
15903 2005-10-31 Richard Henderson <rth@redhat.com>
15905 * testsuite/libgomp.fortran/character2.f90: Fix race condition
15906 setting 's' in different threads.
15908 2005-10-31 Jakub Jelinek <jakub@redhat.com>
15910 * libgomp.h (attribute_hidden, ialias): Define.
15911 * config/posix/proc.c (omp_get_num_procs): Add ialias.
15912 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
15913 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
15914 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15915 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15916 omp_test_lock, omp_test_nest_lock): Likewise.
15917 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
15918 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15919 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15920 omp_test_lock, omp_test_nest_lock): Likewise.
15921 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
15922 omp_get_dynamic, omp_get_nested): Likewise.
15923 * parallel.c (omp_get_num_threads, omp_get_max_threads,
15924 omp_get_thread_num, omp_in_parallel): Likewise.
15925 * fortran.c (ialias_redirect): Define.
15926 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
15927 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
15928 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
15929 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
15930 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
15931 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
15932 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
15933 omp_get_wtime): Add ialias_redirect.
15935 2005-10-30 Jakub Jelinek <jakub@redhat.com>
15937 * fortran.c: Include stdlib.h.
15939 2005-10-29 Jakub Jelinek <jakub@redhat.com>
15941 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
15942 * Makefile.in: Regenerated.
15944 2005-10-28 Jakub Jelinek <jakub@redhat.com>
15946 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
15947 * libgomp_f.h.in (omp_check_defines): New function.
15948 * env.c: Include libgomp_f.h.
15949 (initialize_env): Call omp_check_defines.
15951 * testsuite/libgomp.dg/copyin-2.c: New test.
15952 * testsuite/libgomp.c++/copyin-2.C: New test.
15953 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
15955 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
15956 * testsuite/libgomp.fortran/sharing2.f90: New test.
15958 * testsuite/libgomp.dg/copyin-1.c: New test.
15959 * testsuite/libgomp.c++/copyin-1.C: New test.
15961 2005-10-26 Jakub Jelinek <jakub@redhat.com>
15963 * testsuite/libgomp.fortran/crayptr1.f90: New test.
15965 * testsuite/libgomp.fortran/workshare1.f90: New test.
15967 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
15969 * libgomp.fortran/sharing1.f90: New test.
15971 2005-10-24 Jakub Jelinek <jakub@redhat.com>
15974 * testsuite/libgomp.c++/loop-7.C: New test.
15976 * testsuite/libgomp.dg/nestedfn-2.c: New test.
15978 * testsuite/libgomp.dg/nestedfn-1.c: New test.
15979 * testsuite/libgomp.fortran/reduction6.f90: New test.
15980 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
15982 2005-10-23 Richard Henderson <rth@redhat.com>
15984 * testsuite/libgomp.c++/ctor-1.C: New.
15985 * testsuite/libgomp.c++/ctor-2.C: New.
15986 * testsuite/libgomp.c++/ctor-3.C: New.
15987 * testsuite/libgomp.c++/ctor-4.C: New.
15988 * testsuite/libgomp.c++/ctor-5.C: New.
15989 * testsuite/libgomp.c++/ctor-6.C: New.
15990 * testsuite/libgomp.c++/ctor-7.C: New.
15991 * testsuite/libgomp.c++/ctor-8.C: New.
15992 * testsuite/libgomp.c++/ctor-9.C: New.
15994 2005-10-21 Diego Novillo <dnovillo@redhat.com>
15997 * testsuite/libgomp.c++/pr24455-1.C: New test.
15998 * testsuite/libgomp.c++/pr24455.C: New test.
15999 * testsuite/libgomp.dg/pr24455-1.c: New test.
16000 * testsuite/libgomp.dg/pr24455.c: New test.
16002 2005-10-20 Richard Henderson <rth@redhat.com>
16004 * testsuite/libgomp.c++/loop-6.C: New.
16005 * testsuite/libgomp.dg/loop-3.c: New.
16007 2005-10-20 Jakub Jelinek <jakub@redhat.com>
16009 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
16010 explicitly private.
16011 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
16014 2005-10-19 Diego Novillo <dnovillo@redhat.com>
16016 * testsuite/libgomp.fortran/jacobi.f: New test.
16018 2005-10-19 Richard Henderson <rth@redhat.com>
16020 * configure.tgt (i?86-linux): Default to with_arch instead of
16021 CFLAGS. Add -mtune to match target_cpu.
16022 (x86_64-linux): Tune to i686.
16024 * fortran.c (omp_test_nest_lock_): Fix typo.
16026 2005-10-19 Jakub Jelinek <jakub@redhat.com>
16028 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
16029 gomp_ordered_sync): Do nothing if team->nthreads == 1.
16030 * testsuite/libgomp.dg/ordered-3.c: New test.
16032 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
16033 Remove volatile keyword.
16035 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
16036 in COMMON block to avoid warnings on 64-bit targets.
16038 2005-10-18 Diego Novillo <dnovillo@redhat.com>
16040 * testsuite/libgomp.dg/shared-3.c: New test.
16042 2005-10-18 Jakub Jelinek <jakub@redhat.com>
16044 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
16045 * testsuite/libgomp.fortran/reduction5.f90: New test.
16047 2005-10-18 Jakub Jelinek <jakub@redhat.com>
16049 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
16051 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
16052 flush loop now that __sync_synchronize has proper memory barrier.
16053 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
16054 Add -ffixed-form to dg-options.
16056 2005-10-17 Diego Novillo <dnovillo@redhat.com>
16058 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
16059 from subdirectories.
16060 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
16061 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
16062 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
16063 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
16064 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
16065 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
16066 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
16067 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
16068 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
16069 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
16070 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
16071 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
16072 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
16073 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
16074 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
16075 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
16076 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
16077 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
16078 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
16079 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
16080 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
16081 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
16082 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
16083 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
16084 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
16086 2005-10-17 Jakub Jelinek <jakub@redhat.com>
16088 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
16089 lang_library_path exists. Use find instead of glob to gather tests.
16090 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
16092 2005-10-17 Diego Novillo <dnovillo@redhat.com>
16094 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
16095 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
16096 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
16097 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
16098 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
16099 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
16100 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
16101 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
16102 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
16103 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
16104 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
16105 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
16106 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
16108 2005-10-15 Jakub Jelinek <jakub@redhat.com>
16110 * testsuite/libgomp.dg/vla-1.c: New test.
16112 * testsuite/libgomp.fortran/reference2.f90: New test.
16114 * testsuite/libgomp.fortran/character2.f90: Remove explicit
16115 declaration of omp_get_thread_num.
16116 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
16119 * testsuite/libgomp.fortran/reduction1.f90: New test.
16120 * testsuite/libgomp.fortran/reduction2.f90: New test.
16121 * testsuite/libgomp.fortran/reduction3.f90: New test.
16122 * testsuite/libgomp.fortran/reduction4.f90: New test.
16124 2005-10-13 Richard Henderson <rth@redhat.com>
16126 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
16127 * Makefile.in: Regenerate.
16128 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
16129 * libgomp.h: Include bar.h.
16130 (struct gomp_barrier): Remove.
16131 (struct gomp_team): Add barrier. Replace master_barrier with
16132 master_release. Replace threads with ordered_release.
16133 (struct gomp_thread): Replace barrier with release.
16134 * ordered.c (gomp_ordered_first): Update for ordered_release change.
16135 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
16136 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
16137 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
16138 (GOMP_single_copy_end): Likewise.
16139 * team.c (gomp_threads_dock): New.
16140 (gomp_barrier_init, gomp_barrier_destroy): Remove.
16141 (gomp_thread_start): Use gomp_barrier_wait.
16142 (new_team, free_team): Update for gomp_team changes.
16143 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
16144 (gomp_team_end): Use gomp_barrier_wait.
16145 (initialize_team): Update for gomp_thread changes.
16146 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
16147 (gomp_work_share_end_nowait): Use atomic ops when available.
16148 * config/linux/bar.c, config/linux/bar.h: New files.
16149 * config/posix/bar.c, config/posix/bar.h: New files.
16151 2005-10-13 Jakub Jelinek <jakub@redhat.com>
16153 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
16154 * testsuite/libgomp.dg/single-2.c: New test.
16156 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
16157 lang_link_flags): Unset, so that they aren't inherited from previously
16160 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
16162 2005-10-12 Richard Henderson <rth@redhat.com>
16164 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
16165 (libgomp_init): Use lang_test_file, lang_library_path, and
16166 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
16168 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
16169 (lang_test_file, lang_link_flags): New.
16170 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
16172 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
16173 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
16174 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
16175 testsuite/libgomp.c++/parallel-1.C,
16176 testsuite/libgomp.c++/reduction-1.C,
16177 testsuite/libgomp.c++/reduction-2.C,
16178 testsuite/libgomp.c++/reduction-3.C,
16179 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
16180 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
16181 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
16182 New files, largely cribbed from the C testsuite.
16184 2005-10-12 Jakub Jelinek <jakub@redhat.com>
16186 * testsuite/libgomp.fortran/character1.f90: New test.
16187 * testsuite/libgomp.fortran/character2.f90: New test.
16189 * testsuite/libgomp.dg/nested-1.c: New test.
16190 * testsuite/libgomp.dg/nested-2.c: New test.
16191 * testsuite/libgomp.fortran/do1.f90: New test.
16192 * testsuite/libgomp.fortran/do2.f90: New test.
16194 * testsuite/libgomp.fortran/reference1.f90: New test.
16196 2005-10-11 Jakub Jelinek <jakub@redhat.com>
16198 * testsuite/libgomp.dg/reduction-1.c: New test.
16199 * testsuite/libgomp.dg/reduction-2.c: New test.
16200 * testsuite/libgomp.dg/reduction-3.c: New test.
16202 2005-10-10 Jakub Jelinek <jakub@redhat.com>
16204 * testsuite/libgomp.dg/atomic-1.c: New test.
16205 * testsuite/libgomp.dg/atomic-2.c: New test.
16207 2005-10-09 Richard Henderson <rth@redhat.com>
16209 * critical.c (atomic_lock): New.
16210 (initialize_critical): Initialize it.
16211 (GOMP_atomic_start, GOMP_atomic_end): New.
16212 * libgomp.map: Export them.
16213 * libgomp_g.h: Declare them.
16215 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
16217 2005-10-02 Richard Henderson <rth@redhat.com>
16219 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
16220 to XCFLAGS instead of CFLAGS.
16222 2005-09-30 Richard Henderson <rth@redhat.com>
16224 * configure.ac: Determine whether -pthread or -lpthread is needed.
16225 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
16226 * Makefile.in, configure: Rebuild.
16228 2005-09-28 Richard Henderson <rth@redhat.com>
16230 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
16231 * testsuite/libgomp.dg/omp-single-3.c: New test.
16233 2005-09-28 Diego Novillo <dnovillo@redhat.com>
16235 * testsuite/libgomp.dg/omp-single-2.c: New test.
16236 * testsuite/libgomp.dg/shared-2.c: Fix return code.
16238 2005-09-27 Richard Henderson <rth@redhat.com>
16240 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
16241 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
16243 2005-09-27 Jakub Jelinek <jakub@redhat.com>
16245 * testsuite/libgomp.dg/omp-loop03.c: New test.
16247 2005-09-27 Diego Novillo <dnovillo@redhat.com>
16249 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
16251 2005-09-27 Diego Novillo <dnovillo@redhat.com>
16253 * testsuite/libgomp.dg/omp-single-1.c: New test.
16254 * testsuite/libgomp.dg/shared-1.c: Return 0.
16255 Add prototype for abort.
16256 * testsuite/libgomp.dg/shared-2.c: Likewise.
16258 2005-09-26 Jakub Jelinek <jakub@redhat.com>
16260 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
16263 2005-09-26 Diego Novillo <dnovillo@redhat.com>
16265 * testsuite/libgomp.dg/shared-1.c: New test.
16266 * testsuite/libgomp.dg/shared-2.c: New test.
16268 2005-09-24 Richard Henderson <rth@redhat.com>
16270 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
16272 2005-09-24 Richard Henderson <rth@redhat.com>
16274 * iter.c (gomp_iter_static_next): Round up when computing number
16275 of iterations. Don't bother distributing a remainder equally.
16277 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
16278 Don't call srand. Zero b before testing.
16281 2005-09-24 Jakub Jelinek <jakub@redhat.com>
16283 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
16284 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
16286 2005-09-23 Jakub Jelinek <jakub@redhat.com>
16288 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
16289 without !$omp end do, followed immediately by subroutine end.
16291 2005-09-23 Diego Novillo <dnovillo@redhat.com>
16293 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
16295 2005-09-22 Richard Henderson <rth@redhat.com>
16297 * critical.c (GOMP_critical_name_start): Change argument to void**.
16298 Reuse the pointer space if the mutex fits.
16299 (GOMP_critical_name_end): Likewise.
16300 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
16301 * libgomp_g.h (GOMP_critical_name_start): Update decl.
16302 (GOMP_critical_name_end): Likewise.
16303 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
16304 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
16306 2005-09-20 Richard Henderson <rth@redhat.com>
16308 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
16309 (create_lock_lock): New.
16310 (initialize_critical): Initialize it.
16311 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
16312 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
16314 2005-09-20 Diego Novillo <dnovillo@redhat.com>
16316 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
16318 2005-09-20 Diego Novillo <dnovillo@redhat.com>
16320 * testsuite/libgomp.dg/omp-loop01.c: New test.
16321 * testsuite/libgomp.dg/omp-loop02.c: New test.
16323 2005-09-20 Jakub Jelinek <jakub@redhat.com>
16325 * configure.ac (AC_PROG_FC): Add.
16326 (USE_FORTRAN): New automake conditional.
16327 * configure: Rebuilt.
16328 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
16329 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
16330 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
16331 Add rules to build them.
16332 * Makefile.in: Rebuilt.
16333 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
16334 OMP_NEST_LOCK_KIND.
16335 * libgomp.map: Add Fortran wrappers.
16336 * libgomp_f.h.in: New file.
16337 * omp_lib.h.in: New file.
16338 * omp_lib.f90.in: New file.
16339 * fortran.c: New file.
16340 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
16341 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
16342 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
16343 libgfortran has been built.
16344 * testsuite/libgomp.fortran/fortran.exp: New file.
16345 * testsuite/libgomp.fortran/omp_cond1.f: New test.
16346 * testsuite/libgomp.fortran/omp_cond2.f: New test.
16347 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
16348 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
16349 * testsuite/libgomp.fortran/omp_hello.f: New test.
16350 * testsuite/libgomp.fortran/omp_orphan.f: New test.
16351 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
16352 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
16353 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
16354 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
16355 * testsuite/libgomp.fortran/omp_reduction.f: New test.
16356 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
16357 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
16359 2005-08-30 Richard Henderson <rth@redhat.com>
16361 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
16362 function for when aliases are not usable.
16363 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
16364 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
16365 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
16366 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
16367 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
16368 GOMP_loop_ordered_guided_next): Likewise.
16369 * ordered.c (GOMP_ordered_start): Likewise.
16371 2005-08-01 Diego Novillo <dnovillo@redhat.com>
16373 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
16374 * testsuite/libgomp.dg/omp_hello.c: Fix return code
16375 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
16376 * testsuite/libgomp.dg/omp_orphan.c: Likewise
16377 * testsuite/libgomp.dg/omp_reduction.c: Likewise
16378 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
16379 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
16380 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
16381 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
16383 2005-07-07 Eric Christopher <echristo@redhat.com>
16384 Diego Novillo <dnovillo@redhat.com>
16386 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
16387 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
16389 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
16390 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
16391 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
16392 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
16393 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
16394 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
16395 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
16397 2005-06-13 Diego Novillo <dnovillo@redhat.com>
16399 * TOPLEVEL.patch: Remove.
16401 2005-05-16 Richard Henderson <rth@redhat.com>
16403 * configure.ac: Test for clock_gettime.
16404 * config.h.in, configure: Rebuild.
16405 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
16406 (omp_get_wtime): Use clock_gettime if available.
16407 (omp_get_wtick): Use clock_getres if available.
16409 2005-05-11 Richard Henderson <rth@redhat.com>
16411 * config/linux/ia64/futex.h: New file.
16412 * configure.tgt: Use it.
16414 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
16416 2005-05-07 Richard Henderson <rth@redhat.com>
16418 * config/linux/powerpc/futex.h: New file.
16419 * configure.tgt: Use it.
16421 * config/linux/i486/futex.h: Merge ...
16422 * config/linux/x86_64/futex.h: ... into ...
16423 * config/linux/x86/futex.h: ... here.
16424 * configure.tgt: Update to match.
16426 2005-05-06 Richard Henderson <rth@redhat.com>
16428 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
16429 * config/linux/i486/futex.h: Likewise.
16430 * config/linux/x86_64/futex.h: Likewise.
16432 * config/linux/lock.c: New file.
16433 * config/linux/omp-lock.h: New file.
16435 * critical.c, env.h: Don't include omp.h
16436 * config/posix/lock.c: Include libgomp.h instead of omp.h.
16437 * config/posix/time.c: Likewise.
16438 * config/posix/omp-lock.h: New file.
16439 * libgomp.h: Include omp-lock.h and omp.h.
16440 * Makefile.am (nodist_include_HEADERS): New.
16442 * configure.ac (PERL): New.
16443 * mkomp_h.pl: New file.
16444 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
16446 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
16448 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
16449 build directory. Re-add -march=i486 hack.
16451 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
16452 (libgomp_link_flags): Remove.
16453 (libgomp_initialized): Remove.
16454 (libgomp_init): Don't protect from reinitialization. Copy code
16455 from libstdc++ for getting the multilib set correctly.
16457 2005-05-05 Richard Henderson <rth@redhat.com>
16459 * config/linux/alpha/futex.h: New file.
16460 * configure.tgt (alpha*-*-linux*): Use it.
16462 * config/posix/mutex.c: New file.
16463 * config/posix/sem.c: Use libgomp.h.
16465 * configure.tgt (x86_64-linux): Also test CC for -m32.
16466 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
16468 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
16471 * Makefile.am (SUBDIRS): New.
16472 (libgomp_la_LDFLAGS): Add -lpthread.
16473 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
16474 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
16476 * libgomp_g.h: New file.
16477 * libgomp.h: Split out all public declarations to libgomp_g.h.
16478 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
16479 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
16480 * config/linux/sem.h: Likewise.
16481 * config/posix/sem.h: Likewise.
16483 * Makefile.am (AM_LDFLAGS): New.
16484 (libgomp_version_script): Split out from ...
16485 (libgomp_la_LDFLAGS): ... here.
16486 (libgomp_version_info): New.
16487 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
16488 (LIBGOMP_ENABLE): New.
16489 (LIBGOMP_CHECK_LINKER_FEATURES): New.
16490 (LIBGOMP_ENABLE_SYMVERS): New.
16491 * configure.ac (AC_INIT): Version 1.0.
16492 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
16493 (enable-linux-futex): Likewise. Rename from enable-futex.
16494 (libtool_VERSION): New.
16495 (LIBGOMP_ENABLE_SYMVERS): Use it.
16496 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
16497 * Makefile.in, aclocal.m4, configure: Rebuild.
16499 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
16500 (gomp_mutex_unlock_slow): Fix typo.
16501 * config/linux/sem.c: Similarly.
16502 (gomp_sem_post_slow): Fix typo.
16503 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
16504 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
16505 [__PIC__] (sys_futex0): Don't use tmp output in asm.
16507 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
16508 (libgomp_la_LDFLAGS): Add top_srcdir to path.
16509 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
16510 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
16511 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
16512 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
16513 LDFLAGS. Pull enable_futex check to top-level.
16514 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
16515 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
16517 First attempt at real configury.
16518 * Makefile, config.h: Remove file.
16519 * Makefile.am, Makefile.in: New file.
16520 * acinclude.m4 aclocal.m4: New file.
16521 * configure.ac, configure.tgt, configure: New file.
16523 * config/posix/lock.c: Rename from sys-lock.c.
16524 * config/posix/mutex.h: Rename from sys-mutex.h.
16525 * config/posix/sem.c: Rename from sys-sem.c.
16526 * config/posix/sem.h: Rename from sys-sem.h.
16527 * config/posix/proc.c: Rename from sys-proc.c.
16528 * config/posix/time.c: Rename from sys-proc.c.
16530 * config/linux/mutex.c: New file.
16531 * config/linux/mutex.h: New file.
16532 * config/linux/sem.c: New file.
16533 * config/linux/sem.h: New file.
16534 * config/linux/i486/futex.h: New file.
16535 * config/linux/x86_64/futex.h: New file.
16537 2005-05-04 Richard Henderson <rth@redhat.com>
16539 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
16540 * libgomp.h: Declare them.
16541 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
16542 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
16544 2005-05-04 Richard Henderson <rth@redhat.com>
16546 * libgomp-1 code drop
16548 2005-05-04 Richard Henderson <rth@redhat.com>
16550 * iter.c (gomp_iter_static_next): Return tri-state on 0.
16551 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
16552 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
16553 (gomp_iter_static_next): Update.
16554 (gomp_ordered_static_next): Update.
16555 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
16556 (gomp_loop_ordered_static_start): Likewise. Exit early for a
16557 totally empty range.
16558 (gomp_loop_ordered_static_next): Refine test for calling
16559 gomp_ordered_static_next.
16560 * testsuite/ordered-1.c: Add case for more threads than iterations.
16562 * iter.c (gomp_iter_runtime_next_locked): Remove.
16563 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
16564 gomp_loop_guided_start, gomp_loop_ordered_static_start,
16565 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
16566 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
16567 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
16568 gomp_loop_ordered_guided_next): Downcase name, make static, add
16569 an external alias with the old name.
16570 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
16571 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
16572 switch and call one of the above static functions.
16573 * libgomp.h: Update.
16575 * work.c (gomp_work_share_start): Lock the mutex for !first too.
16576 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
16577 GOMP_loop_guided_start, GOMP_loop_runtime_start,
16578 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
16579 GOMP_loop_ordered_guided_start): Update to match.
16580 * sections.c (GOMP_sections_start): Likewise.
16581 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
16583 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
16584 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
16585 Use bounds check instead of modulus.
16586 (gomp_ordered_sync): Split out of GOMP_ordered_start.
16587 (gomp_ordered_last): Don't sync with ordered_owner here.
16588 (gomp_ordered_next): Likewise.
16589 (gomp_ordered_static_loop_next): Likewise.
16590 * loop.c, libgomp.h: Update to match.
16592 * libgomp.h (GOMP_barrier): Declare.
16594 * testsuite/barrier-1.c: New file.
16595 * testsuite/critical-1.c: New file.
16596 * testsuite/ordered-2.c: New file.
16597 * testsuite/ordered-1.c: New file.
16598 * testsuite/sections-1.c: New file.
16599 * testsuite/single-1.c: New file.
16600 * testsuite/Makefile (TESTS): Add them.
16602 2005-05-04 Richard Henderson <rth@redhat.com>
16604 * libgomp.h (struct gomp_work_share): Add ordered_owner.
16605 * loop.c (GOMP_loop_static_start): If not the startup thread,
16606 acquire the mutex to wait for initialization complete.
16607 (GOMP_loop_ordered_static_start): Likewise.
16608 (GOMP_loop_ordered_runtime_start): Likewise.
16609 (GOMP_loop_ordered_static_first): Remove.
16610 (GOMP_loop_ordered_dynamic_first): Remove.
16611 (GOMP_loop_ordered_guided_first): Remove.
16612 (GOMP_loop_ordered_runtime_first): Remove.
16613 * ordered.c (gomp_ordered_loop_first): Post to own release when
16614 we're the first thread.
16615 (gomp_ordered_loop_last): Wait on release if not owner.
16616 (gomp_ordered_loop_next): Likewise.
16617 (gomp_ordered_static_loop_init): New.
16618 (gomp_ordered_static_loop_next): Use ordered_owner.
16619 (GOMP_ordered_start): Likewise.
16620 * work.c (gomp_new_work_share): Initialize ordered_owner.
16622 2005-05-03 Richard Henderson <rth@redhat.com>
16624 * Makefile (OPT): New.
16627 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
16628 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
16629 * libgomp.h, libgomp.map, NOTES: Update to match.
16631 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
16632 Add initialized and thr members.
16633 (gomp_thread_start): Pause when initially spawned to wait for
16634 the whole team to be created.
16635 (gomp_team_start): Release team members at the end.
16637 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
16638 (f_foo_1): Use GOMP_loop_end.
16639 (f_foo_2): Use GOMP_loop_end_nowait.
16641 * testsuite/loop-2.c: New file.
16642 * testsuite/Makefile (TESTS): Add it.
16644 2005-05-03 Richard Henderson <rth@redhat.com>
16646 * iter.c (gomp_iter_static_next): Fix overflow check typo.
16647 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
16648 * team.c (new_team): Initialize oldest_live_gen to 1 if no
16649 initial work_share.
16651 * testsuite/Makefile: New file.
16652 * testsuite/loop-1.c: New file.
16654 2005-05-03 Richard Henderson <rth@redhat.com>
16656 Initial implementation and checkin.
16658 Copyright (C) 2005-2022 Free Software Foundation, Inc.
16660 Copying and distribution of this file, with or without modification,
16661 are permitted in any medium without royalty provided the copyright
16662 notice and this notice are preserved.