1 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
3 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
4 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
6 2021-10-27 Jakub Jelinek <jakub@redhat.com>
8 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
9 aren't implemented for Fortran yet.
11 2021-10-27 Jakub Jelinek <jakub@redhat.com>
13 * testsuite/libgomp.c/loop-26.c: New test.
14 * testsuite/libgomp.c/loop-27.c: New test.
16 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
19 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
20 instead of #include <alloca.h> + alloca.
22 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
24 * libgomp.texi (Support of strictly structured blocks in Fortran):
26 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
28 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
30 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
31 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
33 2021-10-20 Jakub Jelinek <jakub@redhat.com>
36 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
37 (struct gomp_work_share): Only use aligned(64) attribute if
38 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
39 add padding before lock to ensure lock is at offset 64 bytes
41 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
42 New poor man's static assertions.
43 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
44 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
46 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
47 Richard Biener <rguenther@suse.de>
49 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
51 2021-10-18 Jakub Jelinek <jakub@redhat.com>
53 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
54 && gomp_places_list_len < count after nfirst <= nlast loop condition.
56 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
65 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
67 2021-10-15 Jakub Jelinek <jakub@redhat.com>
69 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
70 type from char [50] to const char *.
71 (places_array): Add a testcase for simplified syntax place followed
72 by length or length and stride.
74 2021-10-15 Jakub Jelinek <jakub@redhat.com>
76 * env.c (parse_one_place): Handle non-negative-number the same
77 as { non-negative-number }. Reject even !number:1 and
78 !number:1:stride or !place:1 or !place:1:stride instead of just
80 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
81 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
82 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
84 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
87 2021-10-15 Jakub Jelinek <jakub@redhat.com>
89 * env.c (parse_schedule): For strtoul or strtoull calls which don't
90 clearly reject return value 0 as invalid handle the case where end
91 pointer is the same as first argument as invalid.
92 (parse_unsigned_long_1): Likewise.
93 (parse_one_place): Likewise.
94 (parse_places_var): Likewise.
95 (parse_stacksize): Likewise.
96 (parse_spincount): Likewise.
97 (parse_affinity): Likewise.
98 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
100 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
101 For strtoul calls which don't clearly reject return value 0 as
102 invalid handle the case where end pointer is the same as first
104 (gomp_affinity_init_level_1): Likewise.
105 (gomp_affinity_init_numa_domains): Likewise.
106 * config/rtems/proc.c (parse_thread_pools): Likewise.
108 2021-10-15 Jakub Jelinek <jakub@redhat.com>
110 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
111 after creating count places clean up and return immediately.
112 * testsuite/libgomp.c/places-6.c: New test.
113 * testsuite/libgomp.c/places-7.c: New test.
114 * testsuite/libgomp.c/places-8.c: New test.
115 * testsuite/libgomp.c/places-9.c: New test.
116 * testsuite/libgomp.c/places-10.c: New test.
118 2021-10-15 Jakub Jelinek <jakub@redhat.com>
120 * env.c (parse_places_var): Handle numa_domains as level 5.
121 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
123 (gomp_affinity_init_level): Use it instead of
124 gomp_affinity_init_level_1 for level == 5.
125 * testsuite/libgomp.c/places-5.c: New test.
127 2021-10-15 Jakub Jelinek <jakub@redhat.com>
129 * env.c (parse_places_var): Handle ll_caches as level 4.
130 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
132 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
134 (gomp_affinity_init_level): Likewise.
135 * testsuite/libgomp.c/places-1.c: New test.
136 * testsuite/libgomp.c/places-2.c: New test.
137 * testsuite/libgomp.c/places-3.c: New test.
138 * testsuite/libgomp.c/places-4.c: New test.
140 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
142 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
145 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
147 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
149 2021-10-12 Julian Brown <julian@codesourcery.com>
151 * target.c (gomp_copy_host2dev): Release device lock on cbuf
154 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
156 * testsuite/libgomp.fortran/icv-3.f90: New.
157 * testsuite/libgomp.fortran/icv-4.f90: New.
159 2021-10-12 Jakub Jelinek <jakub@redhat.com>
161 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
162 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
163 OMP_TEAMS_THREAD_LIMIT): Document.
165 2021-10-12 Jakub Jelinek <jakub@redhat.com>
167 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
168 to avoid makeinfo warnings.
170 2021-10-12 Jakub Jelinek <jakub@redhat.com>
172 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
173 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
175 2021-10-12 Jakub Jelinek <jakub@redhat.com>
179 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
180 allocation sizes from 420 to 320 and from 768 to 568.
181 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
182 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
185 2021-10-12 Jakub Jelinek <jakub@redhat.com>
187 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
188 * testsuite/libgomp.c/scan-12.c: Likewise.
189 * testsuite/libgomp.c/scan-13.c: Likewise.
190 * testsuite/libgomp.c/scan-14.c: Likewise.
191 * testsuite/libgomp.c/scan-15.c: Likewise.
192 * testsuite/libgomp.c/scan-16.c: Likewise.
193 * testsuite/libgomp.c/scan-17.c: Likewise.
194 * testsuite/libgomp.c/scan-18.c: Likewise.
195 * testsuite/libgomp.c/scan-19.c: Likewise.
196 * testsuite/libgomp.c/scan-20.c: Likewise.
197 * testsuite/libgomp.c/scan-21.c: Likewise.
198 * testsuite/libgomp.c/scan-22.c: Likewise.
199 * testsuite/libgomp.c++/scan-9.C: Likewise.
200 * testsuite/libgomp.c++/scan-10.C: Likewise.
201 * testsuite/libgomp.c++/scan-11.C: Likewise.
202 * testsuite/libgomp.c++/scan-12.C: Likewise.
203 * testsuite/libgomp.c++/scan-13.C: Likewise.
204 * testsuite/libgomp.c++/scan-14.C: Likewise.
205 * testsuite/libgomp.c++/scan-15.C: Likewise.
206 * testsuite/libgomp.c++/scan-16.C: Likewise.
208 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
210 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
212 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
214 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
216 * omp.h.in: Add deprecated flag for omp_atv_sequential.
217 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
218 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
219 * testsuite/libgomp.fortran/alloc-12.f90: New test.
221 2021-10-11 Jakub Jelinek <jakub@redhat.com>
223 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
224 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
225 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
226 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
227 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
228 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
229 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
230 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
231 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
232 omp_set_teams_thread_limit{,_,_8_}.
233 * icv.c (omp_set_num_teams, omp_get_max_teams,
234 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
236 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
237 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
238 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
240 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
241 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
242 is not specified, use gomp_nteams_var.
243 * fortran.c (omp_set_num_teams, omp_get_max_teams,
244 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
246 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
247 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
248 omp_get_teams_thread_limit_): New functions.
250 2021-10-09 liuhongt <hongtao.liu@intel.com>
252 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
253 * testsuite/libgomp.c++/scan-11.C: Ditto.
254 * testsuite/libgomp.c++/scan-12.C: Ditto.
255 * testsuite/libgomp.c++/scan-13.C: Ditto.
256 * testsuite/libgomp.c++/scan-14.C: Ditto.
257 * testsuite/libgomp.c++/scan-15.C: Ditto.
258 * testsuite/libgomp.c++/scan-16.C: Ditto.
259 * testsuite/libgomp.c++/scan-9.C: Ditto.
260 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
261 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
262 * testsuite/libgomp.c/scan-11.c: Ditto.
263 * testsuite/libgomp.c/scan-12.c: Ditto.
264 * testsuite/libgomp.c/scan-13.c: Ditto.
265 * testsuite/libgomp.c/scan-14.c: Ditto.
266 * testsuite/libgomp.c/scan-15.c: Ditto.
267 * testsuite/libgomp.c/scan-16.c: Ditto.
268 * testsuite/libgomp.c/scan-17.c: Ditto.
269 * testsuite/libgomp.c/scan-18.c: Ditto.
270 * testsuite/libgomp.c/scan-19.c: Ditto.
271 * testsuite/libgomp.c/scan-20.c: Ditto.
272 * testsuite/libgomp.c/scan-21.c: Ditto.
273 * testsuite/libgomp.c/scan-22.c: Ditto.
275 2021-10-09 Jakub Jelinek <jakub@redhat.com>
277 * libgomp.texi (OpenMP 5.1): Mention implemented support for
278 structured block sequences in C/C++. Mention support for
279 unconstrained/reproducible modifiers on order clause.
280 Mention partial (C/C++ only) support of extentensions to atomics
281 construct. Mention partial (C/C++ on clause only) support of
282 align/allocator modifiers on allocate clause.
284 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
286 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
287 based on libgomp.c-c++-common/order-reproducible-1.c.
288 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
289 * testsuite/libgomp.fortran/my-usleep.c: New test.
291 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
293 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
294 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
295 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
296 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
297 based on libgomp.c-c++-common/alloc-9.c.
299 2021-10-01 Jakub Jelinek <jakub@redhat.com>
301 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
302 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
304 2021-10-01 Jakub Jelinek <jakub@redhat.com>
306 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
308 * env.c (handle_omp_display_env): Use ialias_call.
309 * icv-device.c: Move ialias right below each function.
310 (omp_get_device_num): Use ialias_call.
311 * fortran.c (omp_fulfill_event): Add ialias_redirect.
312 * icv.c (omp_get_active_level): Add ialias_redirect.
314 2021-10-01 Jakub Jelinek <jakub@redhat.com>
316 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
317 __alloc_align__ (1) attribute.
318 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
320 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
322 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
323 for -fintrinsic-modules-path= warning of the C compiler.
324 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
325 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
327 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
329 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
330 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
331 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
333 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
335 * testsuite/libgomp.fortran/alloc-10.f90: New test.
336 * testsuite/libgomp.fortran/alloc-6.f90: New test.
337 * testsuite/libgomp.fortran/alloc-7.c: New test.
338 * testsuite/libgomp.fortran/alloc-7.f90: New test.
339 * testsuite/libgomp.fortran/alloc-8.f90: New test.
340 * testsuite/libgomp.fortran/alloc-9.f90: New test.
342 2021-09-30 Jakub Jelinek <jakub@redhat.com>
344 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
345 omp_realloc): New prototypes.
346 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
348 * allocator.c: Include string.h.
349 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
350 variable and use it instead of alignment so that when retrying the old
351 alignment is used again. Don't retry if new alignment is the same
352 as old alignment, unless allocator had pool size.
353 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
354 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
355 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
356 omp_aligned_calloc and omp_realloc.
357 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
358 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
359 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
360 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
361 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
362 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
364 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
367 * configure.ac: Only check for int-type = 2*size_t support when
368 building with Fortran support.
369 * configure: Regenerate.
371 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
373 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
374 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
376 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
378 * team.c: Initialize start_data.
379 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
380 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
382 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
384 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
385 dg-message back to dg-note.
387 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
390 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
391 expected dg-note output.
393 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
396 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
397 r12-3722 by removing -Wno-missing-include-dirs.
398 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
400 2021-09-22 Jakub Jelinek <jakub@redhat.com>
402 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
403 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
405 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
408 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
410 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
412 2021-09-18 Jakub Jelinek <jakub@redhat.com>
414 * testsuite/libgomp.c++/default-1.C: New test.
415 * testsuite/libgomp.c-c++-common/default-1.c: New test.
416 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
417 to default clause in C and C++" as implemented.
419 2021-09-17 Julian Brown <julian@codesourcery.com>
421 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
423 2021-09-17 Julian Brown <julian@codesourcery.com>
425 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
427 2021-09-17 Jakub Jelinek <jakub@redhat.com>
429 * libgomp.texi (OpenMP 5.1): Spelling fix,
430 declare variante -> declare variant.
432 2021-09-17 Jakub Jelinek <jakub@redhat.com>
434 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
435 Use /* */ comments instead of //.
436 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
437 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
438 * testsuite/libgomp.c++/atomic-16.C: New test.
439 * testsuite/libgomp.c++/atomic-17.C: New test.
441 2021-09-10 Jakub Jelinek <jakub@redhat.com>
443 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
444 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
445 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
447 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
449 * libgomp.texi (OpenMP Implementation Status): Extend
451 (OpenACC Profiling Interface): Fix typo.
453 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
455 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
456 not to 4.5; link to new section.
457 (OpenMP Implementation Status): New.
459 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
461 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
463 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
465 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
467 * testsuite/libgomp.fortran/error-1.f90: Likewise.
469 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
470 Jakub Jelinek <jakub@redhat.com>
472 * testsuite/libgomp.c/address-space-1.c: New file.
474 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
476 * testsuite/lib/libgomp.exp
477 (check_effective_target_offload_target_intelmic): Remove 'proc'.
478 (check_effective_target_offload_device_intel_mic): New 'proc'.
479 * testsuite/libgomp.c-c++-common/on_device_arch.h
480 (device_arch_intel_mic, on_device_arch_intel_mic): New.
481 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
483 * testsuite/libgomp.fortran/target10.f90: Likewise.
485 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
487 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
488 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
489 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
490 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
492 2021-08-23 Jakub Jelinek <jakub@redhat.com>
494 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
495 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
496 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
498 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
500 * config/nvptx/error.c (fwrite, exit): Override, too.
501 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
502 of offloading testing.
503 * testsuite/libgomp.fortran/error-1.f90: Likewise.
505 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
507 * testsuite/libgomp.fortran/error-1.f90: New test.
509 2021-08-20 Jakub Jelinek <jakub@redhat.com>
511 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
512 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
513 * error.c (GOMP_warning, GOMP_error): New functions.
514 * testsuite/libgomp.c-c++-common/error-1.c: New test.
516 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
518 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
519 omp_target_free. omp_target_is_present, omp_target_memcpy,
520 omp_target_memcpy_rect, omp_target_associate_ptr,
521 omp_target_disassociate_ptr): Add interface.
522 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
523 omp_target_free. omp_target_is_present, omp_target_memcpy,
524 omp_target_memcpy_rect, omp_target_associate_ptr,
525 omp_target_disassociate_ptr): Add interface.
526 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
527 interface block for omp_alloc + omp_free.
528 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
529 * testsuite/libgomp.fortran/refcount-1.f90: New test.
530 * testsuite/libgomp.fortran/target-12.f90: New test.
532 2021-08-18 Jakub Jelinek <jakub@redhat.com>
534 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
536 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
538 * testsuite/libgomp.fortran/scope-1.f90: New test.
539 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
541 2021-08-17 Jakub Jelinek <jakub@redhat.com>
543 * Makefile.am (libgomp_la_SOURCES): Add scope.c
544 * Makefile.in: Regenerated.
545 * libgomp_g.h (GOMP_scope_start): Declare.
546 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
548 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
549 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
551 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
553 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
556 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
558 * testsuite/libgomp.fortran/masked-1.f90: New test.
560 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
562 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
564 2021-08-12 Jakub Jelinek <jakub@redhat.com>
566 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
568 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
570 * env.c (parse_bind_var): Accept 'primary' as alias for
572 (omp_display_env): Add TODO comment to
573 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
574 * libgomp.texi: Change 'master thread' to 'primary thread'
575 in line with OpenMP 5.1.
576 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
577 omp_proc_bind_master is an alias of it.
578 (OMP_PROC_BIND): Mention 'PRIMARY'.
579 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
580 (omp_proc_bind_primary): Add.
581 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
582 * omp_lib.f90.in (omp_proc_bind_primary): Add.
583 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
584 * omp_lib.h.in (omp_proc_bind_primary): Add.
585 * testsuite/libgomp.c/affinity-1.c: Check that
586 'primary' works and is identical to 'master'.
588 2021-08-09 Julian Brown <julian@codesourcery.com>
589 Kwok Cheung Yeung <kcy@codesourcery.com>
590 Thomas Schwinge <thomas@codesourcery.com>
592 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
594 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
595 [acc_device_radeon]: Update.
596 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
597 [ACC_DEVICE_TYPE_radeon]: Likewise.
598 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
599 [acc_device_radeon]: Likewise.
600 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
601 [ACC_DEVICE_TYPE_radeon]: Likewise.
602 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
603 'openacc_radeon_accel_selected' and '-O0'.
604 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
606 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
608 * icv-device.c (omp_get_device_num): New API function, host side.
609 * fortran.c (omp_get_device_num_): New interface function.
610 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
611 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
613 * libgomp.texi (omp_get_device_num): Add documentation for new API
615 * omp.h.in (omp_get_device_num): Add declaration.
616 * omp_lib.f90.in (omp_get_device_num): Likewise.
617 * omp_lib.h.in (omp_get_device_num): Likewise.
618 * target.c (gomp_load_image_to_device): If additional entry for device
619 number exists at end of returned entries from 'load_image_func' hook,
620 copy the assigned device number over to the device variable.
621 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
622 (omp_get_device_num): New API function, device side.
623 * plugin/plugin-gcn.c ("symcat.h"): Add include.
624 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
625 at end of returned 'target_table' entries.
626 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
627 (omp_get_device_num): New API function, device side.
628 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
629 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
630 at end of returned 'target_table' entries.
631 * testsuite/lib/libgomp.exp
632 (check_effective_target_offload_target_intelmic): New function for
633 testing for intelmic offloading.
634 * testsuite/libgomp.c-c++-common/target-45.c: New test.
635 * testsuite/libgomp.fortran/target10.f90: New test.
637 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
638 Ulrich Drepper <drepper@redhat.com>
640 * fortran.c (omp_display_env_, omp_display_env_8_): Only
641 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
643 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
644 Julian Brown <julian@codesourcery.com>
645 Kwok Cheung Yeung <kcy@codesourcery.com>
647 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
648 's%oaccdevlow%oaccloops%g'.
649 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
650 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
651 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
653 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
655 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
657 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
659 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
661 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
663 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
665 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
667 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
669 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
671 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
673 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
675 2021-07-27 Ulrich Drepper <drepper@gmail.com>
677 * env.c (wait_policy, stacksize): New static variables,
678 move out of handle_omp_display_env.
679 (omp_display_env): New function. The meat of the old
680 handle_omp_display_env function.
681 (handle_omp_display_env): Change to not take parameters
682 and instead use the global variables. Only perform
683 parsing, defer to omp_display_env for the implementation.
684 (initialize_env): Remove local variables wait_policy and
685 stacksize. Don't pass parameters to handle_omp_display_env.
686 * fortran.c: Add ialias_redirect for omp_display_env.
687 (omp_display_env_, omp_display_env_8_): New functions.
688 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
689 omp_display_env_, and omp_display_env_8_.
690 * omp.h.in: Declare omp_display_env.
691 * omp_lib.f90.in: Likewise.
692 * omp_lib.h.in: Likewise.
694 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
695 Julian Brown <julian@codesourcery.com>
697 * target.c (gomp_coalesce_buf_add): Update comment.
698 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
700 (gomp_map_vars_internal): Only 'if (!aq)', do
701 'gomp_coalesce_buf_add'.
702 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
705 2021-07-27 Julian Brown <julian@codesourcery.com>
706 Thomas Schwinge <thomas@codesourcery.com>
708 * libgomp.h (gomp_copy_host2dev): Update prototype.
709 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
710 argument to gomp_copy_host2dev (false).
711 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
712 (copy_data): Don't free src.
713 (queue_push_copy): Remove free_src handling.
714 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
715 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
717 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
719 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
720 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
721 data when true, and set up deferred freeing of temporary buffer.
722 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
723 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
724 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
725 calls to gomp_copy_host2dev with appropriate ephemeral argument.
726 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
729 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
730 Tom de Vries <tom@codesourcery.com>
732 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
733 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
735 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
737 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
738 sequencing of 'async' data copying vs. profiling events.
739 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
742 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
743 Julian Brown <julian@codesourcery.com>
745 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
746 'async'/'wait' issue.
747 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
748 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
749 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
751 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
752 Joseph Myers <joseph@codesourcery.com>
753 Cesar Philippidis <cesar@codesourcery.com>
755 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
757 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
759 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
761 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
763 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
766 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
767 '-Wno-error=array-bounds'.
768 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
769 * libgomp.h [__AMDGCN__]: Likewise.
771 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
774 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
775 * libgomp.h [__AMDGCN__]: Likewise.
777 2021-07-13 Jakub Jelinek <jakub@redhat.com>
778 Florian Weimer <fweimer@redhat.com>
780 * config/linux/sem.h: Don't include limits.h.
781 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
782 * config/linux/affinity.c: Include limits.h.
784 2021-07-01 Jakub Jelinek <jakub@redhat.com>
787 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
789 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
792 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
793 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
794 avoid disabling other offload targets.
795 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
796 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
797 * testsuite/libgomp.c/target-44.c: Likewise.
799 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
801 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
802 target has shared memory and disable some scalar pointer/allocatable
803 checks if not as firstprivate does not work.
805 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
808 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
809 Add "target offload_device_nonshared_as" condition for enabling test.
811 2021-06-24 Jakub Jelinek <jakub@redhat.com>
813 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
814 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
815 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
816 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
818 2021-06-23 Jakub Jelinek <jakub@redhat.com>
821 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
823 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
825 * hashtab.h (htab_clear): New function with initialization code
827 (htab_create): ...here, adjust to use htab_clear function.
828 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
829 special refcount values, add comments.
830 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
831 (REFCOUNT_LINK): Likewise.
832 (REFCOUNT_STRUCTELEM): New special refcount range for structure
834 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
836 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
837 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
838 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
839 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
840 (struct splay_tree_key_s): Add structelem_refcount and
841 structelem_refcount_ptr fields into a union with dynamic_refcount.
843 (gomp_map_vars): Delete declaration.
844 (gomp_map_vars_async): Likewise.
845 (gomp_unmap_vars): Likewise.
846 (gomp_unmap_vars_async): Likewise.
847 (goacc_map_vars): New declaration.
848 (goacc_unmap_vars): Likewise.
849 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
850 (goacc_enter_datum): Likewise.
851 (goacc_enter_data_internal): Likewise.
852 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
853 and goacc_unmap_vars.
854 (GOACC_data_start): Adjust to use goacc_map_vars.
855 (GOACC_data_end): Adjust to use goacc_unmap_vars.
856 * target.c (hash_entry_type): New typedef.
857 (htab_alloc): New function hook for hashtab.h.
858 (htab_free): Likewise.
859 (htab_hash): Likewise.
861 (hashtab.h): Add file include.
862 (gomp_increment_refcount): New function.
863 (gomp_decrement_refcount): Likewise.
864 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
865 gomp_increment_refcount.
866 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
867 to gomp_map_vars_existing.
868 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
869 variable to guard OpenMP specific paths, adjust calls to
870 gomp_map_vars_existing, add structure element sibling splay_tree_key
871 sequence creation code, adjust Fortran map case to avoid increment
873 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
874 local refcount_set if caller passed in NULL, adjust call to
875 gomp_map_vars_internal.
876 (gomp_map_vars_async): Adjust and rename into...
877 (goacc_map_vars): ...this new function, adjust call to
878 gomp_map_vars_internal.
879 (gomp_remove_splay_tree_key): New function with code factored out from
880 gomp_remove_var_internal.
881 (gomp_remove_var_internal): Add code to handle removing multiple
882 splay_tree_key sequence for structure elements, adjust code to use
883 gomp_remove_splay_tree_key for splay-tree key removal.
884 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
885 gomp_decrement_refcount.
886 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
887 local refcount_set if caller passed in NULL, adjust call to
888 gomp_unmap_vars_internal.
889 (gomp_unmap_vars_async): Adjust and rename into...
890 (goacc_unmap_vars): ...this new function, adjust call to
891 gomp_unmap_vars_internal.
892 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
894 (GOMP_target_ext): Likewise.
895 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
896 (GOMP_target_data): Likewise.
897 (GOMP_target_data_ext): Likewise.
898 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
899 (gomp_exit_data): Add refcount_set parameter, adjust to use
900 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
902 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
903 gomp_map_vars and gomp_exit_data.
904 (gomp_target_task_fn): Likewise.
905 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
906 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
907 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
908 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
909 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
910 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
912 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
915 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
917 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
918 Thomas Schwinge <thomas@codesourcery.com>
920 * libgomp.map (GOACC_2.0.2): New symbol version.
921 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
922 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
924 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
925 Andrew Stubbs <ams@codesourcery.com>
927 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
929 (GOACC_enter_exit_data): ... here.
930 (GOACC_declare): Use it.
932 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
934 * oacc-parallel.c (GOACC_declare): Move...
935 * oacc-mem.c: ... here.
936 * libgomp_g.h: Adjust.
938 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
939 Thomas Schwinge <thomas@codesourcery.com>
941 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
944 2021-06-10 Jakub Jelinek <jakub@redhat.com>
946 PR tree-optimization/100981
947 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
948 dsdotr and dsdoti to 0.
950 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
952 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
953 if atomic compare-and-swap is supported on 'int'.
955 2021-06-09 Richard Biener <rguenther@suse.de>
957 PR tree-optimization/100981
958 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
960 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
962 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
964 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
966 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
967 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
969 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
971 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
972 '-DACC_MEM_SHARED=0'.
973 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
974 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
975 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
976 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
977 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
978 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
979 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
980 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
981 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
982 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
983 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
984 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
985 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
986 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
987 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
988 'acc_device_radeon' testing.
989 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
990 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
991 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
992 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
993 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
994 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
995 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
996 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
997 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
998 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
999 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
1000 for non-'openacc_nvidia_accel_selected'.
1001 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1002 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
1003 all implement this checking".
1004 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1005 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1006 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1007 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1008 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1010 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1012 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
1013 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
1015 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1017 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
1018 for 'acc_device_radeon'.
1020 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1022 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
1023 for non-'acc_device_nvidia'.
1025 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1027 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
1028 'acc_device_radeon' testing.
1029 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1030 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1031 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1033 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1035 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
1036 require 'openacc_nvidia_accel_selected'. Fix up for
1037 'ACC_DEVICE_TYPE_radeon'.
1039 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1041 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
1042 'openacc_nvidia_accel_selected'.
1043 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
1045 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1047 * testsuite/lib/libgomp.exp
1048 (check_effective_target_openacc_radeon_accel_selected):
1051 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1053 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
1056 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1058 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
1059 <acc_device_nvidia>: Update comment.
1061 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
1063 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
1065 2021-05-27 Jakub Jelinek <jakub@redhat.com>
1067 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
1068 check_effective_target_openacc_cublas,
1069 check_effective_target_openacc_cudart): New.
1070 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
1071 target openacc_cublas.
1072 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
1073 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
1074 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
1075 target openacc_cuda.
1076 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
1077 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
1078 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
1079 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
1080 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
1081 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
1082 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
1083 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
1084 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
1085 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
1086 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
1087 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1088 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
1089 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
1090 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
1091 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
1092 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
1093 targets openacc_cublas and openacc_cudart.
1094 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
1095 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
1096 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
1097 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
1098 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
1099 Require effective target openacc_cudart.
1100 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
1101 for effective target openacc_cuda and add && defined USE_CUDA_H to
1102 preprocessor conditionals. Guard -lcuda also on openacc_cuda
1105 2021-05-26 Jakub Jelinek <jakub@redhat.com>
1108 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
1109 GOMP_target_end_data, GOMP_target_update_ext,
1110 GOMP_target_enter_exit_data): New dummy entrypoints.
1111 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
1112 GOMP_target_end_data, GOMP_target_update_ext,
1113 GOMP_target_enter_exit_data): Likewise.
1114 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
1115 OMPFROM, OMPTO): Define.
1116 (main): Remove #pragma omp target teams around all the tests.
1117 * testsuite/libgomp.c-c++-common/target-41.c: New test.
1118 * testsuite/libgomp.c-c++-common/target-42.c: New test.
1120 2021-05-25 Jakub Jelinek <jakub@redhat.com>
1123 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
1125 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
1128 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
1129 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
1130 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
1132 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
1135 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
1136 uninteresting/varying diagnostics.
1138 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1141 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
1142 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1144 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1147 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
1149 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
1150 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
1151 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1153 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1155 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1157 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1159 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1161 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1163 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1165 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1167 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1169 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1171 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1173 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1175 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1177 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1179 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1181 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1183 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1185 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1187 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1189 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1191 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1193 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
1194 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
1195 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
1196 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
1197 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
1198 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
1199 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
1200 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
1201 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1202 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1203 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
1204 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
1205 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1206 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
1207 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1209 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
1211 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
1213 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1215 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
1216 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
1218 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1219 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1220 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1221 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
1222 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
1223 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1224 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1226 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1228 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1230 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1232 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1234 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1236 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1238 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1240 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1242 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1244 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1246 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1248 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1250 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1251 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1252 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
1254 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
1256 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1257 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1258 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1260 2021-05-21 Julian Brown <julian@codesourcery.com>
1261 Chung-Lin Tang <cltang@codesourcery.com>
1262 Thomas Schwinge <thomas@codesourcery.com>
1265 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
1267 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
1269 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
1272 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1274 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
1275 for nvptx offloading.
1277 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
1279 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
1281 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
1284 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
1286 2021-05-19 Julian Brown <julian@codesourcery.com>
1288 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
1290 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
1292 * testsuite/lib/libgomp.exp
1293 (check_effective_target_offload_target_nvptx): Don't shadow global
1294 'offload_targets' variable.
1296 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
1298 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
1299 '-latomic' to nvptx offloading compilation.
1300 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1302 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
1304 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
1305 offloading compilation.
1307 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
1309 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
1310 if new tasks generated.
1311 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
1313 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
1315 * testsuite/libgomp.fortran/parallel-master.f90: New test.
1317 2021-05-13 Martin Liska <mliska@suse.cz>
1320 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
1321 * testsuite/libgomp.c/pr46032-2.c: Likewise.
1322 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
1323 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
1325 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
1327 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
1328 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
1330 2021-05-11 Jakub Jelinek <jakub@redhat.com>
1332 PR middle-end/100471
1333 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
1334 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
1336 * testsuite/libgomp.c/task-reduction-4.c: New test.
1338 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
1339 Tom de Vries <tdevries@suse.de>
1341 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
1342 complex/floating-point || + && reduction with 'omp target'.
1343 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1345 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
1347 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
1348 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
1349 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
1350 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
1352 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
1355 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
1356 declaration to scope of non-'depend'-guarded assignment to avoid races.
1358 2021-05-03 Tom de Vries <tdevries@suse.de>
1361 * testsuite/libgomp.c/target-44.c: New test.
1363 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
1365 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
1367 2021-04-29 Tom de Vries <tdevries@suse.de>
1369 * testsuite/libgomp.c/pr81778.c: New test.
1371 2021-04-29 Tom de Vries <tdevries@suse.de>
1374 * testsuite/libgomp.c/target-43.c: New file.
1376 2021-04-28 Jakub Jelinek <jakub@redhat.com>
1377 Tobias Burnus <tobias@codesourcery.com>
1379 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
1380 * target.c (gomp_load_plugin_for_device): If set and if a plugin
1381 can't be dlopened, silently assume it has no devices.
1382 * Makefile.in: Regenerate.
1383 * config.h.in: Regenerate.
1384 * configure: Regenerate.
1386 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
1388 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1389 Use [Ww]arning in dg-bogus as FE diagnostic and default
1390 diagnostic differ and the result depends on ENABLE_OFFLOAD.
1391 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1392 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1393 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1395 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
1397 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1398 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
1399 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1400 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1401 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1403 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
1404 Nathan Sidwell <nathan@codesourcery.com>
1405 Tom de Vries <vries@codesourcery.com>
1406 Julian Brown <julian@codesourcery.com>
1407 Kwok Cheung Yeung <kcy@codesourcery.com>
1409 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
1410 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
1411 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
1412 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1413 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1414 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1415 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
1417 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
1418 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1419 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1420 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1422 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
1423 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1425 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1426 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
1427 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
1428 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
1429 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
1430 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
1432 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1433 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
1434 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1435 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1436 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1437 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
1438 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1439 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1440 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1441 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1442 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1444 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
1446 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
1448 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1449 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1451 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1452 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
1453 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1454 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1455 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1456 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1457 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
1459 2021-04-22 Richard Biener <rguenther@suse.de>
1461 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
1464 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
1466 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
1467 omp_depend_kind instead of defining it as 16.
1469 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
1471 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
1472 New, based on check_effective_target_offload_target_nvptx.
1473 (check_effective_target_offload_target_nvptx): Call it.
1474 (check_effective_target_offload_target_amdgcn): New.
1475 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
1476 Require target offload_target_nvptx || offload_target_amdgcn.
1477 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
1478 * testsuite/libgomp.c/pr86416-1.c: Likewise.
1479 * testsuite/libgomp.c/pr86416-2.c: Likewise.
1481 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
1483 * testsuite/libgomp.fortran/depobj-1.f90: New test.
1485 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
1487 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1488 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
1489 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1491 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1493 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1495 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
1498 * testsuite/lib/libgomp.exp
1499 (check_effective_target_offload_device_nvptx): New.
1500 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
1501 resolved, make sure that we exit quickly, with error status,
1503 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
1504 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1506 2021-04-14 Jakub Jelinek <jakub@redhat.com>
1509 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
1510 cp = omp_alloc with cp, p arguments instead of cq, q and call
1511 c_f_pointer after last cq = omp_alloc with cq, q.
1513 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
1516 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
1517 for loop with GT/GE condition.
1518 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
1520 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
1525 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
1527 2021-04-09 Jakub Jelinek <jakub@redhat.com>
1530 * team.c (gomp_thread_start): Call pthread_setspecific for
1531 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
1532 has been initialized to avoid false positive warning.
1534 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
1537 * testsuite/lib/on_device_arch.c: Move to ...
1538 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
1539 * testsuite/libgomp.fortran/on_device_arch.c: New file;
1540 #include on_device_arch.h.
1541 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
1542 on_device_arch.h instead of using dg-additional-source.
1543 * testsuite/libgomp.c/pr99555-1.c: Likewise.
1544 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
1545 on_device_arch.c without relative paths.
1547 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
1549 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
1550 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
1551 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
1552 * config.h.in: Regenerate.
1553 * configure: Likewise.
1555 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
1558 * testsuite/lib/on_device_arch.c: New file.
1559 * testsuite/libgomp.c/pr99555-1.c: Likewise.
1560 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
1561 skip for nvptx offloading, with error status.
1562 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1564 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
1566 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
1567 OpenACC 'serial' construct diagnostic for nvptx offloading.
1569 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
1572 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
1574 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
1577 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
1579 2021-03-04 Jakub Jelinek <jakub@redhat.com>
1581 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
1582 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
1583 checking of -m32 or -mx32 options on the command line.
1584 * config.h.in: Regenerated.
1585 * configure: Regenerated.
1587 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
1589 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
1590 support from the target.
1592 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
1593 Jakub Jelinek <jakub@redhat.com>
1596 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
1597 (struct gomp_task): Replace detach and completion_sem fields with
1598 union containing completion_sem and detach_team. Add deferred_p
1600 (struct gomp_team): Remove task_detach_queue.
1601 * task.c: Include assert.h.
1602 (gomp_init_task): Initialize deferred_p and completion_sem fields.
1603 Rearrange initialization order of fields.
1604 (task_fulfilled_p): Delete.
1605 (GOMP_task): Use address of task as the event handle. Remove
1606 initialization of detach field. Initialize deferred_p field.
1607 Use automatic local for completion_sem. Initialize detach_team field
1609 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
1610 Set kind of suspended detach task to GOMP_TASK_DETACHED and
1611 decrement task_running_count. Move finish_cancelled block out of
1612 else branch. Relocate call to gomp_team_barrier_done.
1613 (GOMP_taskwait): Handle tasks with completion events that have not
1615 (GOMP_taskgroup_end): Likewise.
1616 (omp_fulfill_event): Use address of task as event handle. Post to
1617 completion_sem for undeferred tasks. Clear detach_team if task
1618 has not finished. For finished tasks, handle post-execution tasks,
1619 call gomp_team_barrier_wake if necessary, and free task.
1620 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
1621 (free_team): Remove free of task_detach_queue.
1622 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
1623 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
1624 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
1625 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
1626 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
1627 Change data-sharing of detach events on enclosing parallel to private.
1628 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
1630 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
1631 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
1632 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
1633 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
1634 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
1635 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
1636 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
1637 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
1638 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
1639 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
1640 Change data-sharing of detach events on enclosing parallel to private.
1641 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
1643 * testsuite/libgomp.fortran/task-detach-7.f90: New.
1644 * testsuite/libgomp.fortran/task-detach-8.f90: New.
1645 * testsuite/libgomp.fortran/task-detach-9.f90: New.
1646 * testsuite/libgomp.fortran/task-detach-10.f90: New.
1647 * testsuite/libgomp.fortran/task-detach-11.f90: New.
1649 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
1652 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
1654 2021-02-17 Julian Brown <julian@codesourcery.com>
1656 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
1659 2021-02-17 Julian Brown <julian@codesourcery.com>
1661 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
1662 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
1664 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
1666 * config/linux/x86/futex.h (__futex_wait):
1667 Revert output type back to long.
1668 (__futex_wake): Ditto.
1669 (futex_wait): Update for revert.
1670 (futex_wake): Ditto.
1672 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
1674 * config/linux/x86/futex.h (__futex_wait): New static inline
1675 wrapper function. Correct output type to int and
1676 timeout type to void *.
1677 (__futex_wake): New static inline wrapper function.
1678 Correct output type to int.
1679 (futex_wait): Use __futex_wait.
1680 (futex_wake): Use __futex_wake.
1682 2021-02-10 Julian Brown <julian@codesourcery.com>
1685 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
1688 2021-02-04 Julian Brown <julian@codesourcery.com>
1690 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
1692 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
1694 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
1695 EF_AMDGPU_MACH_AMDGCN_GFX908.
1696 (gcn_gfx908_s): New constant string.
1697 (isa_hsa_name): Add gfx908.
1698 (isa_code): Add gfx908.
1700 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
1702 * libgomp.texi (omp_fulfill_event): New entry.
1704 2021-01-20 Jakub Jelinek <jakub@redhat.com>
1706 * task.c (GOMP_task): Rename priority argument to priority_arg,
1707 add priority automatic variable and modify that variable. Instead of
1708 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
1709 check flags for that bit.
1711 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
1714 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
1716 2021-01-18 Andreas Schwab <schwab@suse.de>
1718 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
1720 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
1722 * config/rtems/sem.h (gomp_sem_getcount): New function.
1724 2021-01-18 Jakub Jelinek <jakub@redhat.com>
1726 * config/linux/sem.h (gomp_sem_getcount): New function.
1727 * config/posix/sem.h (gomp_sem_getcount): New function.
1728 * config/posix/sem.c (gomp_sem_getcount): New function.
1729 * config/accel/sem.h (gomp_sem_getcount): New function.
1730 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
1731 (omp_fulfill_event): Likewise.
1733 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
1735 * fortran.c (omp_fulfill_event_): New.
1736 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
1737 (struct gomp_team): Add task_detach_queue and task_detach_count
1739 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
1740 * libgomp_g.h (GOMP_task): Add extra argument.
1741 * omp.h.in (enum omp_event_handle_t): New.
1742 (omp_fulfill_event): New.
1743 * omp_lib.f90.in (omp_event_handle_kind): New.
1744 (omp_fulfill_event): New.
1745 * omp_lib.h.in (omp_event_handle_kind): New.
1746 (omp_fulfill_event): Declare.
1747 * priority_queue.c (priority_tree_find): New.
1748 (priority_list_find): New.
1749 (priority_queue_find): New.
1750 * priority_queue.h (priority_queue_predicate): New.
1751 (priority_queue_find): New.
1752 * task.c (gomp_init_task): Initialize detach field.
1753 (task_fulfilled_p): New.
1754 (GOMP_task): Add detach argument. Ignore detach argument if
1755 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
1756 field. Copy address of completion_sem into detach argument and
1757 into the start of the data record. Wait for detach event if task
1759 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
1760 Remove completed tasks and requeue dependent tasks.
1761 (omp_fulfill_event): New.
1762 * team.c (gomp_new_team): Initialize task_detach_queue and
1763 task_detach_count fields.
1764 (free_team): Free task_detach_queue field.
1765 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
1766 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
1767 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
1768 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
1769 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
1770 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
1771 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
1772 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
1773 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
1774 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
1775 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
1776 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
1778 2021-01-15 Jakub Jelinek <jakub@redhat.com>
1781 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
1782 be added through preprocessor check on
1783 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
1785 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
1788 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
1790 * configure: Regenerate.
1791 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
1794 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
1796 * configure: Re-generate.
1798 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
1800 * configure: Re-generate.
1802 2021-01-05 Julian Brown <julian@codesourcery.com>
1804 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
1805 (struct ptx_device): Add omp_stacks struct.
1806 (nvptx_open_device): Initialise cached-stacks housekeeping info.
1807 (nvptx_close_device): Free cached stacks block and mutex.
1808 (nvptx_stacks_free): New function.
1809 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
1810 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
1811 (nvptx_stacks_alloc): Rename to...
1812 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
1813 size or smaller is required.
1814 (nvptx_stacks_free): Remove.
1815 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
1816 during kernel execution.
1818 2021-01-01 Jakub Jelinek <jakub@redhat.com>
1820 * libgomp.texi: Bump @copying's copyright year.
1822 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
1824 * libgomp.texi (Top): Avoid bad "up" link.
1826 2020-12-18 Jakub Jelinek <jakub@redhat.com>
1828 * testsuite/libgomp.c/task-6.c: New test.
1830 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
1832 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
1833 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
1835 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
1837 * testsuite/libgomp.fortran/scan-1.f90: New test.
1839 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
1842 * configure: Regenerate.
1844 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
1846 * configure: Regenerate.
1848 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
1850 * testsuite/libgomp.oacc-c++/cache-1.C: New.
1851 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
1853 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
1855 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
1858 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
1860 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
1861 (reserved): Delete unused define.
1863 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
1865 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
1866 Tcl 8.5-specific behavior.
1867 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1869 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1871 * env.c (gomp_global_icv): Remove nest_var field. Add
1872 max_active_levels_var field.
1873 (gomp_max_active_levels_var): Remove.
1874 (parse_boolean): Return true on success.
1875 (handle_omp_display_env): Express OMP_NESTED in terms of
1876 max_active_levels_var. Change format specifier for
1877 max_active_levels_var.
1878 (initialize_env): Set max_active_levels_var from
1879 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
1881 * icv.c (omp_set_nested): Express in terms of
1882 max_active_levels_var.
1883 (omp_get_nested): Likewise.
1884 (omp_set_max_active_levels): Use max_active_levels_var field instead
1885 of gomp_max_active_levels_var.
1886 (omp_get_max_active_levels): Likewise.
1887 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
1888 max_active_levels_var field.
1889 (gomp_supported_active_levels): Set to UCHAR_MAX.
1890 (gomp_max_active_levels_var): Delete.
1891 * libgomp.texi (omp_get_nested): Update documentation.
1892 (omp_set_nested): Likewise.
1893 (OMP_MAX_ACTIVE_LEVELS): Likewise.
1894 (OMP_NESTED): Likewise.
1895 (OMP_NUM_THREADS): Likewise.
1896 (OMP_PROC_BIND): Likewise.
1897 * parallel.c (gomp_resolve_num_threads): Replace reference
1898 to nest_var with max_active_levels_var. Use max_active_levels_var
1899 field instead of gomp_max_active_levels_var.
1901 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
1903 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
1904 nvptx_usleep; use also for device={arch(gcn)}.
1906 2020-11-14 Jakub Jelinek <jakub@redhat.com>
1908 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
1909 (foo): Add tests for non-VLA private and firstprivate clauses on
1911 (bar): Likewise. Remove taking of address from private/firstprivate
1913 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
1914 (foo): Add p, q, px and s arguments. Add tests for array reductions
1915 and for non-VLA private and firstprivate clauses on omp task.
1917 (main): Adjust foo caller. Don't call bar.
1919 2020-11-13 Gergö Barany <gergo@codesourcery.com>
1920 Thomas Schwinge <thomas@codesourcery.com>
1922 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1924 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1926 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1928 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
1929 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1931 2020-11-13 Gergö Barany <gergo@codesourcery.com>
1932 Thomas Schwinge <thomas@codesourcery.com>
1935 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
1937 2020-11-13 Jakub Jelinek <jakub@redhat.com>
1939 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
1940 for array reductions.
1941 (main): Adjust foo callers.
1943 2020-11-12 Jakub Jelinek <jakub@redhat.com>
1945 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
1946 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
1947 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
1948 * allocator.c (omp_aligned_alloc): New for now static function,
1949 add alignment argument and handle it.
1950 (omp_alloc): Reimplement using omp_aligned_alloc.
1951 (GOMP_alloc, GOMP_free): New functions.
1952 (omp_free): Add ialias.
1953 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
1954 * testsuite/libgomp.c++/allocate-1.C: New test.
1956 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
1959 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
1961 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
1963 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
1965 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
1966 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
1967 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
1968 (goacc_enter_data_internal): Likewise.
1969 * target.c (gomp_map_vars_internal):
1970 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
1971 of gomp_attach_pointer for OpenMP cases.
1972 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
1973 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
1974 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
1976 2020-11-05 Ulrich Drepper <drepper@redhat.com>
1977 Kwok Cheung Yeung <kcy@codesourcery.com>
1979 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
1980 * Makefile.in: Regenerate.
1981 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
1982 pragmas to ignore -Wdeprecated-declarations warnings.
1984 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
1985 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
1986 and omp_get_nested with __GOMP_DEPRECATED_5_0.
1987 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
1989 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
1991 * testsuite/libgomp.c/affinity-1.c: Likewise.
1992 * testsuite/libgomp.c/affinity-2.c: Likewise.
1993 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
1994 * testsuite/libgomp.c/lib-1.c: Likewise.
1995 * testsuite/libgomp.c/nested-1.c: Likewise.
1996 * testsuite/libgomp.c/nested-2.c: Likewise.
1997 * testsuite/libgomp.c/nested-3.c: Likewise.
1998 * testsuite/libgomp.c/pr32362-1.c: Likewise.
1999 * testsuite/libgomp.c/pr32362-2.c: Likewise.
2000 * testsuite/libgomp.c/pr32362-3.c: Likewise.
2001 * testsuite/libgomp.c/pr35549.c: Likewise.
2002 * testsuite/libgomp.c/pr42942.c: Likewise.
2003 * testsuite/libgomp.c/pr61200.c: Likewise.
2004 * testsuite/libgomp.c/sort-1.c: Likewise.
2005 * testsuite/libgomp.c/target-5.c: Likewise.
2006 * testsuite/libgomp.c/target-6.c: Likewise.
2007 * testsuite/libgomp.c/teams-1.c: Likewise.
2008 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
2009 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
2010 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
2011 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
2012 * testsuite/libgomp.fortran/lib1.f90: Likewise.
2013 * testsuite/libgomp.fortran/lib2.f: Likewise.
2014 * testsuite/libgomp.fortran/nested1.f90: Likewise.
2015 * testsuite/libgomp.fortran/teams1.f90: Likewise.
2017 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
2020 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
2021 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
2022 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2024 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
2028 * testsuite/lib/libgomp.exp (libgomp_init): Set
2029 'gcc_warning_prefix', 'gcc_error_prefix'.
2031 2020-10-30 Jakub Jelinek <jakub@redhat.com>
2033 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
2034 even in field_tgt_clear initializer.
2036 2020-10-28 Jakub Jelinek <jakub@redhat.com>
2038 * testsuite/libgomp.c/target-42.c: New test.
2040 2020-10-28 Jakub Jelinek <jakub@redhat.com>
2041 Tom de Vries <tdevries@suse.de>
2044 * testsuite/libgomp.c/usleep.h: New file.
2045 * testsuite/libgomp.c/target-32.c: Include usleep.h.
2046 (main): Use tgt_usleep instead of usleep.
2047 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
2048 (main): Use tgt_usleep instead of usleep.
2050 2020-10-28 Jakub Jelinek <jakub@redhat.com>
2053 * testsuite/libgomp.c/declare-variant-1.c: New test.
2055 2020-10-22 Jakub Jelinek <jakub@redhat.com>
2057 * testsuite/libgomp.c/target-41.c: New test.
2059 2020-10-22 Jakub Jelinek <jakub@redhat.com>
2061 * icv.c (omp_get_initial_device): Remove including corresponding
2063 * icv-device.c (omp_get_initial_device): New function. Return
2064 gomp_get_num_devices (). Add ialias.
2065 * target.c (resolve_device): Don't fail with
2066 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
2067 gomp_get_num_devices ().
2068 (omp_target_alloc, omp_target_free, omp_target_is_present,
2069 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
2070 omp_target_disassociate_ptr, omp_pause_resource): Use
2071 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
2072 first use in the functions, in uses dominated by the
2073 gomp_get_num_devices call use num_devices_openmp instead.
2074 * libgomp.texi (omp_get_initial_device): Document.
2075 * config/gcn/icv-device.c (omp_get_initial_device): New function.
2077 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
2078 * testsuite/libgomp.c/target-40.c: New test.
2080 2020-10-21 Jakub Jelinek <jakub@redhat.com>
2082 * env.c (parse_target_offload): Change new_offload var type to int,
2083 preinitialize to -1, remove found var and test new_offload != -1
2086 2020-10-20 Jakub Jelinek <jakub@redhat.com>
2088 * target.c (gomp_target_init): Inside of the function, use automatic
2089 variables corresponding to num_devices, num_devices_openmp and devices
2090 global variables and update the globals only at the end of the
2093 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
2095 * env.c (gomp_target_offload_var): New.
2096 (parse_target_offload): New.
2097 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
2098 (initialize_env): Parse OMP_TARGET_OFFLOAD.
2099 * libgomp.h (gomp_target_offload_t): New.
2100 (gomp_target_offload_var): New.
2101 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
2102 * target.c (resolve_device): Generate error if device not found and
2103 offloading is mandatory.
2104 (gomp_target_fallback): Generate error if offloading is mandatory.
2105 (GOMP_target): Add argument in call to gomp_target_fallback.
2106 (GOMP_target_ext): Likewise.
2107 (gomp_target_data_fallback): Generate error if offloading is mandatory.
2108 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
2109 (GOMP_target_data_ext): Likewise.
2110 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
2111 (gomp_target_init): Return early if offloading is disabled.
2113 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2115 * libgomp.texi (omp_get_max_active_levels): Modify description.
2116 (omp_get_supported_active_levels): Make descriptions consistent.
2118 2020-10-14 Jakub Jelinek <jakub@redhat.com>
2120 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
2122 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
2124 * env.c (gomp_max_active_levels_var): Initialize to
2125 gomp_supported_active_levels.
2126 (initialize_env): Limit gomp_max_active_levels_var to be at most
2127 equal to gomp_supported_active_levels.
2128 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
2129 (omp_get_supported_active_levels_): New.
2130 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
2131 to at most equal to gomp_supported_active_levels.
2132 (omp_get_supported_active_levels): New.
2133 * libgomp.h (gomp_supported_active_levels): New.
2134 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
2135 omp_get_supported_active_levels_.
2136 * libgomp.texi (omp_get_supported_active_levels): New.
2137 (omp_set_max_active_levels): Update. Add reference to
2138 omp_get_supported_active_levels.
2139 * omp.h.in (omp_get_supported_active_levels): New.
2140 * omp_lib.f90.in (omp_get_supported_active_levels): New.
2141 * omp_lib.h.in (omp_get_supported_active_levels): New.
2142 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
2143 against omp_get_supported_active_levels.
2144 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
2146 2020-10-11 Clement Chigot <clement.chigot@atos.net>
2148 * config/t-aix: Delete and recreate libgomp before creating
2151 2020-10-08 Tom de Vries <tdevries@suse.de>
2154 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
2157 2020-10-06 Tom de Vries <tdevries@suse.de>
2159 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
2161 2020-10-06 Tom de Vries <tdevries@suse.de>
2164 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
2166 2020-10-05 Tom de Vries <tdevries@suse.de>
2169 * testsuite/libgomp.fortran/pr95654.f90: New test.
2171 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
2173 * Makefile.in: Regenerate with automake 1.15.1.
2174 * aclocal.m4: Likewise.
2175 * configure: Likewise.
2176 * testsuite/Makefile.in: Likewise.
2178 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
2180 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
2183 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
2185 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
2187 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
2189 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
2190 total number of threads is one.
2191 (gomp_team_barrier_wake): Likewise.
2192 (gomp_team_barrier_wait_end): Likewise.
2193 (gomp_team_barrier_wait_cancel_end): Likewise.
2194 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
2195 (gomp_team_barrier_wake): Likewise.
2196 (gomp_team_barrier_wait_end): Likewise.
2197 (gomp_team_barrier_wait_cancel_end): Likewise.
2198 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
2200 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
2203 * testsuite/libgomp.c++/pr96390.C: New test.
2204 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
2206 2020-09-27 Clement Chigot <clement.chigot@atos.net>
2208 * config/t-aix: Use $(AR) without -X32_64.
2210 2020-09-25 Jakub Jelinek <jakub@redhat.com>
2212 * testsuite/libgomp.c/loop-25.c: New test.
2214 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
2217 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
2219 2020-09-22 Tom de Vries <tdevries@suse.de>
2221 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
2224 2020-09-16 Nathan Sidwell <nathan@acm.org>
2226 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
2228 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
2231 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
2233 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
2236 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
2237 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
2238 (gomp_map_vars_existing): Update call to it.
2239 (gomp_map_fields_existing): Likewise
2240 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
2241 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
2243 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
2245 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
2246 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
2248 2020-09-14 Tom de Vries <tdevries@suse.de>
2250 * config/nvptx/atomic.c: New file. Add
2251 __sync_val_compare_and_swap_16.
2252 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
2253 target offload_target_nvptx.
2255 2020-09-08 Julian Brown <julian@codesourcery.com>
2257 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
2258 iteration-ordering assumptions.
2260 2020-09-08 Julian Brown <julian@codesourcery.com>
2262 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
2263 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2265 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
2267 * plugin/plugin-nvptx.c (nvptx_free):
2268 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
2269 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
2272 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
2274 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
2276 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
2278 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
2280 2020-08-13 Jakub Jelinek <jakub@redhat.com>
2282 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
2283 * testsuite/libgomp.c/loop-23.c (main): Likewise.
2284 * testsuite/libgomp.c/loop-24.c: New test.
2286 2020-08-08 Jakub Jelinek <jakub@redhat.com>
2287 Tobias Burnus <tobias@codesourcery.com>
2290 * testsuite/libgomp.fortran/pr93553.f90: New test.
2292 2020-08-05 Jakub Jelinek <jakub@redhat.com>
2294 * testsuite/libgomp.c/loop-22.c: New test.
2295 * testsuite/libgomp.c/loop-23.c: New test.
2297 2020-08-05 Jakub Jelinek <jakub@redhat.com>
2300 * testsuite/libgomp.c/teams-3.c: New test.
2301 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
2303 (N(test)): Use it before all N(f*) calls.
2304 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
2305 (main): Don't call all test_* functions from within
2306 #pragma omp teams reduction(|:err), call them directly.
2308 2020-08-04 Tom de Vries <tdevries@suse.de>
2311 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
2312 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
2314 2020-08-03 Julian Brown <julian@codesourcery.com>
2315 Thomas Schwinge <thomas@codesourcery.com>
2317 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
2318 shared-memory devices. Extend with further checking.
2320 2020-08-03 Martin Jambor <mjambor@suse.cz>
2322 * plugin/Makefrag.am: Remove configuration of HSA plugin.
2323 * aclocal.m4: Regenerated.
2324 * Makefile.in: Regenerated.
2325 * config.h.in: Regenerated.
2326 * configure: Regenerated.
2327 * plugin/configfrag.ac: Likewise.
2328 * plugin/hsa_ext_finalize.h: Removed.
2329 * plugin/plugin-hsa.c: Likewise.
2330 * testsuite/Makefile.in: Regenerated.
2331 * testsuite/lib/libgomp.exp
2332 (offload_target_to_openacc_device_type): Remove hsa case.
2333 (check_effective_target_hsa_offloading_selected_nocache): Removed
2334 (check_effective_target_hsa_offloading_selected): Likewise.
2335 (libgomp_init): Do not add -Wno-hsa to additional_flags.
2336 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
2337 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
2338 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
2339 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
2340 * testsuite/libgomp.hsa.c/c.exp: Likewise.
2341 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
2342 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
2343 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
2344 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
2345 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
2346 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
2347 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
2348 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
2349 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
2350 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
2351 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
2352 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
2353 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
2354 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
2355 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
2356 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
2357 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
2358 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
2359 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
2361 2020-07-27 Julian Brown <julian@codesourcery.com>
2362 Thomas Schwinge <thomas@codesourcery.com>
2364 * libgomp.h (struct target_var_desc): Rename do_detach field to
2366 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
2367 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
2368 (goacc_enter_data_internal): Don't affect reference counts
2369 for attach mappings.
2370 (goacc_exit_data_internal): Don't affect reference counts for detach
2372 * target.c (gomp_map_vars_existing): Don't affect reference counts for
2374 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
2375 mark attach mappings.
2376 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
2377 reference count for attach mappings.
2378 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
2379 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2380 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2381 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
2383 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
2384 gracefully in no-finalize mode.
2385 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
2387 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
2389 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
2391 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2392 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2394 2020-07-23 Julian Brown <julian@codesourcery.com>
2395 Thomas Schwinge <thomas@codesourcery.com>
2397 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
2398 finalization for detach operation.
2399 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
2402 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
2404 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
2405 * libgomp_f.h.in (omp_check_defines): Check whether
2406 sizeof of determined Fortran kind and C typedef match.
2407 * omp_lib.f90.in: Add omp_depened_kind.
2408 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
2409 * configure: Regenerate.
2410 * Makefile.in: Regenerate.
2411 * testsuite/Makefile.in: Regenerate.
2413 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
2415 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
2416 gcc/testsuite/c-c++-common/gomp/.
2417 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
2418 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
2419 from gcc/testsuite/gfortran.dg/gomp/.
2420 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
2422 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
2424 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
2425 * omp_lib.h.in: Likewise.
2427 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
2430 * testsuite/libgomp.c/pr95620.c: New test.
2432 2020-07-16 Julian Brown <julian@codesourcery.com>
2433 Thomas Schwinge <thomas@codesourcery.com>
2435 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
2436 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
2438 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
2440 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
2441 avoid conversion on 32bit systems from 32bit to 64bit due
2442 to -fdefault-integer-8.
2444 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
2446 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
2447 variables; add character(kind=4) tests; update TODO comment.
2449 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
2451 * allocator.c: Add ialias for omp_init_allocator and
2452 omp_destroy_allocator.
2453 * configure.ac: Set INTPTR_T_KIND.
2454 * configure: Regenerate.
2455 * Makefile.in: Regenerate.
2456 * testsuite/Makefile.in: Regenerate.
2457 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
2458 omp_set_default_allocator_, omp_get_default_allocator_): New
2459 functions and ialias_redirect.
2460 * icv.c: Add ialias for omp_set_default_allocator and
2461 omp_get_default_allocator.
2462 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
2463 omp_destroy_allocator_, omp_set_default_allocator_ and
2464 omp_get_default_allocator_.
2465 * omp_lib.f90.in: Add allocator traits parameters, declare
2466 allocator routines and add related kind parameters.
2467 * omp_lib.h.in: Likewise.
2468 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
2469 * testsuite/libgomp.fortran/alloc-1.F90: New test.
2470 * testsuite/libgomp.fortran/alloc-2.F90: New test.
2471 * testsuite/libgomp.fortran/alloc-3.F: New test.
2472 * testsuite/libgomp.fortran/alloc-4.f90: New test.
2473 * testsuite/libgomp.fortran/alloc-5.f90: New test.
2475 2020-07-14 Tom de Vries <tom@codesourcery.com>
2476 Cesar Philippidis <cesar@codesourcery.com>
2477 Thomas Schwinge <thomas@codesourcery.com>
2478 Kwok Cheung Yeung <kcy@codesourcery.com>
2480 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
2482 (acc_init_1): Set acc_init_thread to pthread_self (). Set
2483 acc_init_state to initializing at the start, and to initialized at the
2485 (self_initializing_p): New function.
2486 (acc_get_device_type): Return acc_device_none if called by thread that
2487 is currently executing acc_init_1.
2488 * libgomp.texi (acc_get_device_type): Update documentation.
2489 (Implementation Status and Implementation-Defined Behavior): Likewise.
2490 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
2492 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
2494 * config/t-aix: Set BITS from compiler cpp macro.
2496 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
2498 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
2500 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
2503 * testsuite/libgomp.fortran/target-map-1.f90: New test.
2505 2020-07-14 Jakub Jelinek <jakub@redhat.com>
2507 * testsuite/libgomp.c/loop-21.c: New test.
2509 2020-07-13 Julian Brown <julian@codesourcery.com>
2510 Thomas Schwinge <thomas@codesourcery.com>
2512 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
2514 2020-07-10 Julian Brown <julian@codesourcery.com>
2515 Thomas Schwinge <thomas@codesourcery.com>
2517 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
2519 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
2520 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
2522 (acc_unmap_data): Update comment.
2523 (goacc_map_var_existing, goacc_enter_datum): Adjust for
2524 dynamic_refcount semantics.
2525 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
2526 Adjust for dynamic_refcount semantics.
2527 (goacc_enter_data_internal): Implement "present" case of dynamic
2528 memory-map handling here. Update "non-present" case for
2529 dynamic_refcount semantics.
2530 (goacc_exit_data_internal): Use goacc_exit_datum_1.
2531 * target.c (gomp_map_vars_internal): Remove
2532 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
2534 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
2535 (gomp_load_image_to_device): Substitute dynamic_refcount for
2537 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
2538 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
2539 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
2540 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
2541 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
2543 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
2545 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
2547 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
2548 Remove stale comment.
2549 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
2550 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
2551 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2552 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2553 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2554 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
2556 2020-07-10 Julian Brown <julian@codesourcery.com>
2557 Thomas Schwinge <thomas@codesourcery.com>
2559 * oacc-mem.c (goacc_map_var_existing): New function.
2560 (goacc_enter_datum): Use above function.
2561 (goacc_exit_datum_1): New function.
2562 (goacc_exit_datum): Use above function.
2564 2020-07-09 Julian Brown <julian@codesourcery.com>
2565 Thomas Schwinge <thomas@codesourcery.com>
2568 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
2569 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
2571 2020-07-09 Julian Brown <julian@codesourcery.com>
2573 * oacc-mem.c (find_group_last): Group data-movement clauses
2574 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
2575 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
2577 2020-07-09 Jakub Jelinek <jakub@redhat.com>
2579 * testsuite/libgomp.c/loop-19.c: New test.
2580 * testsuite/libgomp.c/loop-20.c: New test.
2582 2020-07-09 Jakub Jelinek <jakub@redhat.com>
2584 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
2585 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
2586 it. Remove __omp_alloctrait_value_max__.
2587 * allocator.c (omp_init_allocator): Handle omp_atv_default for
2588 omp_atk_alignment and omp_atk_pool_size.
2590 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
2592 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
2593 behavior for 'GOMP_MAP_FORCE_FROM'.
2594 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
2596 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
2598 * oacc-mem.c (goacc_exit_data_internal): Remove
2599 'GOMP_MAP_ALWAYS_FROM' handling.
2601 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
2603 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
2604 'scan-assembler' with 'scan-offload-rtl'.
2605 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
2606 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
2607 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
2608 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
2610 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
2612 * target.c (gomp_map_vars_existing): Assert 'kind !=
2614 (gomp_map_vars_internal): Clean up.
2616 2020-06-27 Jakub Jelinek <jakub@redhat.com>
2618 * testsuite/libgomp.c/loop-17.c: New test.
2619 * testsuite/libgomp.c/loop-18.c: New test.
2621 2020-06-26 Marek Polacek <polacek@redhat.com>
2623 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
2625 2020-06-23 Alexandre Oliva <oliva@adacore.com>
2627 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
2628 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
2630 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
2632 * Makefile.am: Use -include.
2633 * Makefile.in: Regenerate.
2635 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
2637 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
2638 * Makefile.in: Regenerate
2639 * configure.ac (tmake_file): Substitute.
2640 * configure: Regenerate.
2641 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
2642 * config/t-aix: New file.
2644 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
2647 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
2650 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
2652 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
2653 variant for HSA_RUNTIME_LIB name.
2654 (find_executable_symbol_1): Delete.
2655 (find_executable_symbol): Delete.
2656 (init_kernel_properties): Add ".kd" suffix to symbol names.
2657 (find_load_offset): Delete.
2658 (create_and_finalize_hsa_program): Remove relocation handling.
2660 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
2662 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
2664 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
2668 * testsuite/libgomp.fortran/target-var.f90: New test.
2670 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
2671 Julian Brown <julian@codesourcery.com>
2673 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
2676 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
2677 Julian Brown <julian@codesourcery.com>
2679 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2682 2020-06-05 Julian Brown <julian@codesourcery.com>
2684 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
2685 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
2687 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2689 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2690 Evaluate 'copyfrom' individually for each entry.
2691 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
2693 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2695 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2696 Evaluate 'finalize' individually for each entry.
2697 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
2698 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
2701 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2703 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
2705 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
2707 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2708 Julian Brown <julian@codesourcery.com>
2710 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
2712 (acc_unmap_data, goacc_exit_data_internal): Restore
2713 'is_tgt_unmapped' checking.
2714 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
2716 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
2717 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
2718 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2719 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2720 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2721 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
2723 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2724 Julian Brown <julian@codesourcery.com>
2726 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
2728 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2731 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
2733 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2736 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
2739 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2740 Julian Brown <julian@codesourcery.com>
2742 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
2744 (acc_map_data): Clean up accordingly.
2746 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2748 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
2749 of over-eager 'finalize' clause.
2750 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
2752 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
2753 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
2754 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2755 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2756 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2757 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
2758 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
2759 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
2761 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2763 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
2765 2020-06-04 Julian Brown <julian@codesourcery.com>
2767 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
2769 (goacc_detach_internal): Likewise.
2771 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2773 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
2775 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
2776 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
2777 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
2778 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
2779 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
2781 2020-06-02 Jakub Jelinek <jakub@redhat.com>
2783 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
2786 2020-05-30 Jakub Jelinek <jakub@redhat.com>
2788 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
2790 2020-05-30 Jakub Jelinek <jakub@redhat.com>
2792 * allocator.c (omp_alloc): For size == 0, return NULL early.
2794 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
2797 * configure: Regenerated.
2799 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
2802 * testsuite/libgomp.fortran/async_io_9.f90: New test.
2804 2020-05-19 Jakub Jelinek <jakub@redhat.com>
2806 * omp.h.in (omp_uintptr_t): New typedef.
2807 (__GOMP_UINTPTR_T_ENUM): Define.
2808 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
2809 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
2810 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
2811 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
2812 omp_get_default_allocator, omp_alloc, omp_free): Declare.
2813 * libgomp.h (struct gomp_team_state): Add def_allocator field.
2814 (gomp_def_allocator): Declare.
2815 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
2816 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
2817 omp_alloc and omp_free.
2818 * team.c (gomp_team_start): Copy over ts.def_allocator.
2819 * env.c (gomp_def_allocator): New variable.
2820 (parse_wait_policy): Adjust function comment.
2821 (parse_allocator): New function.
2822 (handle_omp_display_env): Print OMP_ALLOCATOR.
2823 (initialize_env): Call parse_allocator.
2824 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
2825 * allocator.c: New file.
2826 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
2828 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
2829 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
2830 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
2831 * Makefile.in: Regenerated.
2833 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
2836 * configure: Regenerated.
2838 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
2841 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
2843 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
2845 * configure: Regenerated.
2847 2020-05-14 Jakub Jelinek <jakub@redhat.com>
2849 * testsuite/libgomp.c-c++-common/target-40.c: New test.
2851 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
2854 * testsuite/libgomp.fortran/pr66199-3.f90: New.
2855 * testsuite/libgomp.fortran/pr66199-4.f90: New.
2856 * testsuite/libgomp.fortran/pr66199-5.f90: New.
2857 * testsuite/libgomp.fortran/pr66199-6.f90: New.
2858 * testsuite/libgomp.fortran/pr66199-7.f90: New.
2859 * testsuite/libgomp.fortran/pr66199-8.f90: New.
2860 * testsuite/libgomp.fortran/pr66199-9.f90: New.
2862 2020-05-12 Jakub Jelinek <jakub@redhat.com>
2864 * testsuite/libgomp.c/target-39.c: New test.
2866 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
2868 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
2869 * openacc.f90 (acc_device_current): Likewise.
2870 * openacc.h (acc_device_current): Likewise.
2871 * openacc_lib.h (acc_device_current): Likewise.
2874 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
2875 'dg-allow-blank-lines-in-output'.
2877 * oacc-init.c (get_openacc_name): Handle 'gcn'.
2878 * testsuite/lib/libgomp.exp
2879 (offload_target_to_openacc_device_type) [amdgcn*]: Return
2880 'radeon'. Adjust all users.
2881 (check_effective_target_openacc_amdgcn_accel_present): Rename
2883 (check_effective_target_openacc_radeon_accel_present): ... this.
2885 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
2886 (check_effective_target_openacc_radeon_accel_selected): ... this.
2889 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
2892 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
2896 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
2898 (GOMP_OFFLOAD_init_device): Check return values from both calls to
2899 hsa_agent_iterate_regions.
2901 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
2904 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
2907 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
2910 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
2913 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
2916 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
2918 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
2921 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
2923 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
2925 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
2927 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
2929 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
2931 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
2933 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
2935 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
2937 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
2939 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
2941 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
2943 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
2945 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
2947 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
2949 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
2951 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
2953 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
2955 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
2957 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
2959 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
2961 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
2963 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
2965 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
2967 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
2969 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
2971 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
2973 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
2975 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
2977 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
2979 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
2981 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
2983 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
2986 2020-04-10 Julian Brown <julian@codesourcery.com>
2987 Thomas Schwinge <thomas@codesourcery.com>
2990 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
2992 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
2994 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
2996 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
2998 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
3000 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
3002 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
3004 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
3006 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
3008 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
3010 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
3012 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
3014 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
3016 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
3018 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
3020 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
3023 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
3025 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
3028 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
3031 * libgomp.oacc-c++/declare-pr94120.C: New.
3033 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
3035 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
3037 * configure: Regenerate.
3038 * testsuite/libgomp-site-extra.exp.in: New file.
3039 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
3041 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
3043 * testsuite/Makefile.in: Regenerate.
3045 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
3047 PR tree-optimization/89713
3049 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
3051 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
3053 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
3055 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
3056 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
3058 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
3061 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
3063 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
3066 * target.c (gomp_load_image_to_device): Fix link
3069 2020-03-19 Jakub Jelinek <jakub@redhat.com>
3072 * testsuite/libgomp.c++/pr93931.C: New test.
3074 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
3076 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
3077 dg-allow-blank-lines-in-output.
3079 2020-03-18 Julian Brown <julian@codesourcery.com>
3080 Tobias Burnus <tobias@codesourcery.com>
3082 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
3083 it work concurrently.
3085 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
3087 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
3088 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
3089 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
3091 2020-03-14 Jakub Jelinek <jakub@redhat.com>
3094 * testsuite/libgomp.c/pr93566.c: New test.
3096 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
3098 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
3099 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
3100 integer(acc_device_property) for the type of the return value of
3103 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
3105 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
3106 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
3107 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
3108 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
3109 (acc_set_device_num): Fix Fortran argument name, use same name for C.
3110 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
3111 corrections; add note about the previous interface and named constant.
3112 (OpenACC library and environment variables): Fix two typos.
3113 * openacc.f90: Use for all procedures the argument names from the spec
3114 as for …_h they are user visible.
3115 (openacc_kinds): Rename acc_device_property to
3116 acc_device_property_kinds and change value to int32 ; and update users.
3117 Re-add acc_device_property for for backward compatibility.
3118 (acc_get_property_string_h): Clean up as acc_device_property_kind
3120 (acc_get_property_h): Likewise and return c_size_t instead of
3121 acc_device_property.
3122 (openacc): Also export acc_device_property_kinds.
3123 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
3124 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
3125 handling; check against /= 0 instead of == 1 to match C.
3126 * openacc_lib.h: Use for all procedures the argument names from the spec
3127 as for …_h they are user visible. Place !GCC$ into the first column to
3128 be active also for fixed-form souce form.
3129 (acc_device_current, acc_device_property_kind, acc_device_property,
3130 acc_property_memory, acc_property_free_memory, acc_property_name,
3131 acc_property_vendor, acc_property_driver): New named constants.
3132 (acc_get_property, acc_get_property_string): New generic interface.
3134 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
3137 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
3138 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
3140 (gomp_target_task_fn): Assert "devicep->async_run_func".
3141 (clear_unsupported_flags): New function to remove unsupported flags
3142 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
3143 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
3144 * testsuite/libgomp.c/target-33.c:
3145 Remove xfail for offload_target_nvptx.
3146 * testsuite/libgomp.c/target-34.c: Likewise.
3148 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
3150 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
3151 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
3152 * testsuite/libgomp.c/target-34.c: Likewise.
3153 * testsuite/libgomp.c/target-link-1.c: Add xfail for
3154 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
3156 2020-02-09 Jakub Jelinek <jakub@redhat.com>
3158 * testsuite/libgomp.c/target-38.c: New test.
3160 2020-02-06 Jakub Jelinek <jakub@redhat.com>
3163 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
3165 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
3167 * testsuite/lib/libgomp.exp
3168 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
3169 and not as 'source' argument to libgomp_target_compile.
3171 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
3173 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
3174 (gcn_gfx801_s): Remove.
3175 (isa_hsa_name): Remove gfx801.
3176 (isa_gcc_name): Remove gfx801/carizzo.
3177 (isa_code): Remove gfx801.
3179 2020-02-03 Julian Brown <julian@codesourcery.com>
3180 Tobias Burnus <tobias@codesourcery.com>
3182 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
3183 and *_finalize variants; document acc_attach and acc_detach; update
3184 references from OpenACC 2.0 to 2.6.
3185 * openacc.f90 (openacc_version): Update to 201711.
3186 * openacc_lib.h (openacc_version): Update to 201711.
3187 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
3188 openacc_version to 201711.
3189 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3191 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
3193 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
3194 and vgpr_count fields.
3195 (struct kernel_info): Add a field for a hsa_kernel_description.
3196 (run_kernel): Reduce the number of threads/workers if the requested
3197 number would require too many VGPRs.
3198 (init_basic_kernel_info): Initialize description field with
3199 the hsa_kernel_description entry for the kernel.
3201 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
3204 * plugin/configfrag.ac (enable_offload_targets): Skip
3205 HSA and GCN plugin besides -m32 also for -mx32.
3206 * configure: Regenerate.
3208 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
3210 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
3212 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
3214 * plugin-gcn.c (struct agent_info): Add fields "name" and
3216 (GOMP_OFFLOAD_init_device): ... and init from here.
3217 (struct hsa_context_info): Add field "driver_version_s" ...
3218 (init_hsa_contest): ... and init from here.
3219 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
3221 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
3222 Enable test execution for amdgcn and host offloading targets.
3223 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
3224 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
3225 (expect_device_properties): Split function into ...
3226 (expect_device_string_properties): ... this new function ...
3227 (expect_device_memory): ... and this new function.
3228 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
3231 2020-01-28 Julian Brown <julian@codesourcery.com>
3233 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
3234 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
3235 component/non-component variable refs in a single directive.
3236 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
3238 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
3240 * configure.ac: Handle `--with-toolexeclibdir='.
3241 * Makefile.in: Regenerate.
3242 * aclocal.m4: Regenerate.
3243 * configure: Regenerate.
3244 * testsuite/Makefile.in: Regenerate.
3246 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
3248 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
3249 (expect_device_properties): Remove "expected_free_mem" argument,
3250 change "expected_total_mem" argument type to size_t;
3251 change types of acc_get_property results to size_t,
3252 adapt format strings.
3253 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
3254 Use %zu instead of %zd to print size_t values.
3255 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
3257 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
3258 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
3260 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
3262 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
3264 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
3267 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
3269 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
3270 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
3271 Adjust test dimensions for amdgcn.
3272 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
3273 gang/worker/vector expectations dynamically.
3274 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
3276 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
3277 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
3278 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
3279 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
3280 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
3281 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
3282 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
3283 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
3284 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
3285 (acc_gang): Recognise acc_device_radeon.
3286 (acc_worker): Likewise.
3287 (acc_vector): Likewise.
3288 (main): Set expectations for amdgcn.
3289 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
3290 (main): Adjust gang/worker/vector expectations dynamically.
3291 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
3292 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
3293 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
3294 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
3297 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
3299 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
3301 (openacc): Likewise.
3302 * openacc.f90 (openacc_kinds): Likewise.
3303 (openacc): Likewise.
3304 * openacc.h (acc_device_t): Likewise.
3305 * openacc_lib.h: Likewise.
3306 * testsuite/lib/libgomp.exp
3307 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
3308 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
3309 (cb_compute_construct_end): Likewise.
3310 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
3311 (cb_enqueue_launch_start): Likewise.
3312 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
3313 (cb_enter_data_end): Likewise.
3314 (cb_exit_data_start): Likewise.
3315 (cb_exit_data_end): Likewise.
3316 (cb_compute_construct_end): Likewise.
3317 (cb_enqueue_launch_start): Likewise.
3318 (cb_enqueue_launch_end): Likewise.
3319 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
3322 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
3324 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
3325 to use this instead of 'enum gomp_device_property'.
3326 (GOMP_OFFLOAD_get_property): Rename to...
3327 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
3328 * libgomp.h (struct gomp_device_descr): Move
3329 'GOMP_OFFLOAD_openacc_get_property'...
3330 (struct acc_dispatch_t): ... here. Adjust all users.
3331 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
3333 * target.c (gomp_map_vars_internal)
3334 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
3337 2020-01-10 Jakub Jelinek <jakub@redhat.com>
3340 * libgomp.h (gomp_print_string): Change return type from void to int.
3341 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
3342 not all characters have been written.
3344 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
3346 * libgomp.texi: Fix typos, use https.
3348 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
3350 * testsuite/libgomp.fortran/optional-map.f90: Add test for
3351 unallocated/disassociated actual arguments to nonallocatable/nonpointer
3352 dummy arguments; those are/shall be regarded as absent arguments.
3353 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
3354 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
3356 2020-01-01 Jakub Jelinek <jakub@redhat.com>
3358 Update copyright years.
3360 * libgomp.texi: Bump @copying's copyright year.
3362 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
3365 * oacc-init.c (goacc_runtime_deinitialize): New function.
3367 2019-12-28 Jakub Jelinek <jakub@redhat.com>
3370 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
3371 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
3373 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
3374 Frederik Harwath <frederik@codesourcery.com>
3375 Thomas Schwinge <tschwinge@codesourcery.com>
3377 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
3378 * libgomp-plugin.h (gomp_device_property_value): New union.
3379 (gomp_device_property_value): New prototype.
3380 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
3382 (acc_device_property_t): New enum.
3383 (acc_get_property, acc_get_property_string): New prototypes.
3384 * oacc-init.c (acc_get_device_type): Also assert that result
3385 is not `acc_device_current'.
3386 (get_property_any, acc_get_property, acc_get_property_string):
3388 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
3389 `acc_property_memory', `acc_property_free_memory',
3390 `acc_property_name', `acc_property_vendor' and
3391 `acc_property_driver' constants. Add `acc_device_property' data
3393 (openacc_internal): Add `acc_get_property' and
3394 `acc_get_property_string' interfaces. Add `acc_get_property_h',
3395 `acc_get_property_string_h', `acc_get_property_l' and
3396 `acc_get_property_string_l'.
3397 * oacc-host.c (host_get_property): New function.
3398 (host_dispatch): Wire it.
3399 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
3400 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
3401 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
3402 * libgomp.texi (OpenACC Runtime Library Routines): Add
3404 (acc_get_property): New node.
3405 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
3407 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
3408 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
3409 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
3411 (GOMP_OFFLOAD_get_property): New function.
3412 (struct ptx_device): Add new field "name".
3413 (cuda_driver_version_s): Add new static variable ...
3414 (nvptx_init): ... and init from here.
3416 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
3417 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
3418 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
3419 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
3420 with test helper functions.
3422 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
3424 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
3426 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
3429 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
3431 * target.c (gomp_map_vars_internal): Restore 'omp declare target
3434 2019-12-19 Julian Brown <julian@codesourcery.com>
3436 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
3437 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
3438 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
3440 2019-12-19 Julian Brown <julian@codesourcery.com>
3441 Cesar Philippidis <cesar@codesourcery.com>
3443 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
3444 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
3445 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
3446 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
3447 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
3448 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
3449 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
3450 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
3451 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
3452 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
3453 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
3454 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
3455 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
3457 2019-12-19 Julian Brown <julian@codesourcery.com>
3459 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
3460 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
3461 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
3462 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
3463 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
3464 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
3465 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
3466 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
3467 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
3468 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
3469 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
3470 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
3472 2019-12-19 Julian Brown <julian@codesourcery.com>
3474 * libgomp.h (struct target_var_desc): Add do_detach flag.
3475 * oacc-init.c (acc_shutdown_1): Free aux block if present.
3476 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
3477 struct components. Tidy up and add some new checks.
3478 (goacc_enter_data_internal): Update call to find_group_last.
3479 (goacc_exit_data_internal): Support detach operations and
3481 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
3482 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
3483 attach/detach in enter/exit data detection code.
3484 * target.c (gomp_map_vars_existing): Initialise do_detach field of
3486 (gomp_map_vars_internal): Support attach.
3487 (gomp_unmap_vars_internal): Support detach.
3489 2019-12-19 Julian Brown <julian@codesourcery.com>
3490 Thomas Schwinge <thomas@codesourcery.com>
3492 * libgomp.h (struct splay_tree_aux): Add attach_count field.
3493 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
3494 * libgomp.map (OACC_2.6): New section. Add acc_attach,
3495 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
3496 acc_detach_finalize_async.
3497 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
3498 acc_detach, acc_detach_async, acc_detach_finalize,
3499 acc_detach_finalize_async): New functions.
3500 * openacc.h (acc_attach, acc_attach_async, acc_detach,
3501 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
3503 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
3504 (gomp_remove_var_internal): Free attachment counts if present.
3505 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
3506 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
3508 2019-12-19 Julian Brown <julian@codesourcery.com>
3509 Cesar Philippidis <cesar@codesourcery.com>
3511 * libgomp.h (gomp_map_val): Add prototype.
3512 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
3513 open-coding device-address calculation.
3514 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
3517 2019-12-19 Julian Brown <julian@codesourcery.com>
3519 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
3520 field for virtual_refcount.
3521 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
3522 (gomp_free_memmap): Remove prototype.
3523 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
3524 instead of calling gomp_free_memmap.
3525 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
3527 (acc_unmap_data): Open code instead of forcing target_mem_desc's
3528 to_free field to NULL then calling gomp_unmap_vars. Handle
3529 REFCOUNT_INFINITY on target blocks.
3530 (goacc_enter_data): Rename to...
3531 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
3532 handling for mapping groups. Use virtual_refcount instead of
3533 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
3534 map_map_vars_async call. Re-do lookup for target pointer return value.
3535 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
3536 renamed goacc_enter_datum function.
3537 (goacc_exit_data): Rename to...
3538 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
3539 (acc_delete, acc_delete_async, acc_delete_finalize,
3540 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
3541 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
3542 goacc_exit_datum function.
3543 (gomp_acc_remove_pointer, find_pointer): Remove functions.
3544 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
3546 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
3547 goacc_exit_data_internal helper functions.
3548 * target.c (gomp_map_vars_internal): Handle
3549 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
3551 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
3552 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
3553 virtual_refcount field instead of dynamic_refcount.
3554 (gomp_free_memmap): Remove function.
3555 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
3556 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
3557 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
3559 2019-12-19 Julian Brown <julian@codesourcery.com>
3560 Thomas Schwinge <thomas@codesourcery.com>
3562 * libgomp.h (struct splay_tree_aux): New.
3563 (struct splay_tree_key_s): Replace link_key field with aux pointer.
3564 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
3566 (gomp_remove_var_internal): Free aux block if present.
3567 (gomp_load_image_to_device): Zero-initialise aux field instead of
3569 (omp_target_associate_pointer): Zero-initialise aux field.
3571 2019-12-18 Jakub Jelinek <jakub@redhat.com>
3574 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
3576 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
3579 2019-12-19 Julian Brown <julian@codesourcery.com>
3580 Maciej W. Rozycki <macro@codesourcery.com>
3581 Tobias Burnus <tobias@codesourcery.com>
3582 Thomas Schwinge <thomas@codesourcery.com>
3584 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
3585 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
3586 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
3587 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
3588 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
3589 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
3590 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
3591 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
3592 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
3594 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
3596 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
3598 (goacc_insert_pointer): ... from here, "present" case.
3599 (goacc_insert_pointer): Inline function into...
3600 (GOACC_enter_exit_data): ... here, and simplify.
3602 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
3604 (goacc_insert_pointer): ... from here, "not present" case.
3606 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
3609 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
3610 'goacc_enter_data', 'goacc_exit_data'.
3612 * oacc-mem.c (delete_copyout): Refactor into...
3613 (goacc_exit_data): ... this. Adjust all users.
3615 * oacc-mem.c (present_create_copy): Refactor into...
3616 (goacc_enter_data): ... this. Adjust all users.
3618 * target.c (gomp_unmap_vars_internal): Add a safeguard to
3621 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
3622 like 'GOMP_MAP_FROM'.
3627 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
3629 (GOACC_enter_exit_data): Simplify accordingly.
3630 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
3632 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
3633 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
3635 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
3637 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
3638 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
3640 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
3642 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
3644 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
3645 'finalize' handling.
3648 * oacc-mem.c (acc_map_data, present_create_copy)
3649 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
3650 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
3651 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
3652 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
3653 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
3654 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
3655 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
3656 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
3659 * target.c (gomp_unmap_tgt): Make it 'static'.
3660 * libgomp.h (gomp_unmap_tgt): Remove.
3662 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
3665 * testsuite/libgomp.c/pr86416-1.c: New.
3666 * testsuite/libgomp.c/pr86416-2.c: New.
3668 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
3670 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
3671 all symbols as public except for the 'use …, only' imported symbol,
3673 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
3674 all symbols from module openacc_kinds as PUBLIC
3675 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
3677 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
3679 2019-12-13 Julian Brown <julian@codesourcery.com>
3683 * libgomp.h (gomp_remove_var_async): Add prototype.
3684 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
3686 * target.c (gomp_unref_tgt): Change return type to bool, indicating
3687 whether target_mem_desc was unmapped.
3688 (gomp_unref_tgt_void): New.
3689 (gomp_remove_var): Reimplement in terms of...
3690 (gomp_remove_var_internal): ...this new helper function.
3691 (gomp_remove_var_async): New, implemented using above helper function.
3692 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
3695 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
3697 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
3698 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3699 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
3700 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
3701 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
3703 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
3704 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
3706 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
3708 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
3709 as public except for the 'use …, only' imported symbol, which is
3711 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
3712 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
3713 attributes for acc_copyout_finalize and acc_delete_finalize.
3715 2019-12-11 Jakub Jelinek <jakub@redhat.com>
3718 * testsuite/libgomp.fortran/atomic1.f90: New test.
3720 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
3723 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
3724 reference counting for structured 'REFCOUNT_INFINITY'. Add some
3726 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
3727 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
3728 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
3729 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
3730 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3732 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
3733 * oacc-mem.c: ... here.
3734 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
3735 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
3736 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
3738 * libgomp_g.h: Update.
3740 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
3741 * oacc-async.c: ... here.
3742 * oacc-int.h (goacc_wait): Declare.
3743 * libgomp_g.h: Update
3746 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
3748 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
3750 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
3752 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
3754 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
3756 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
3759 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
3760 Julian Brown <julian@codesourcery.com>
3762 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
3763 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
3765 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
3767 * omp_lib.h.in: Fix spelling of function declaration
3768 omp_get_cancell(l)ation.
3769 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
3771 * env.c: Fix comment typos.
3772 * oacc-host.c: Likewise.
3773 * ordered.c: Likewise.
3776 * config/gcn/task.c: Likewise.
3777 * config/gcn/team.c: Likewise.
3778 * config/nvptx/task.c: Likewise.
3779 * config/nvptx/team.c: Likewise.
3780 * plugin/plugin-gcn.c: Likewise.
3781 * testsuite/libgomp.fortran/jacobi.f: Likewise.
3782 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
3783 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
3785 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
3787 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
3788 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
3789 unnecessary 'dg-additional-options "-w"'.
3791 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
3792 Julian Brown <julian@codesourcery.com>
3797 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
3798 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
3800 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
3802 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
3804 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
3806 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
3809 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
3810 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
3812 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
3814 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
3816 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
3818 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
3820 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
3822 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
3823 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
3824 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
3825 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
3826 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
3827 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
3828 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3829 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3830 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
3831 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3834 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
3835 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
3836 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
3838 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
3840 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
3842 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
3843 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
3846 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
3848 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
3850 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
3852 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
3854 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
3855 ... with their content moved into, and extended in this new file.
3856 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
3858 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
3860 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
3862 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
3865 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
3868 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
3870 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
3872 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
3874 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
3876 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
3878 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
3879 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
3880 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
3881 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
3883 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
3884 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
3886 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
3888 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
3890 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
3891 Kwok Cheung Yeung <kcy@codesourcery.com>
3893 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
3894 if input it a NULL pointer.
3895 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
3896 diagnostic of NULL pointer.
3897 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
3898 * testsuite/libgomp.fortran/optional-map.f90: New.
3899 * testsuite/libgomp.fortran/use_device_addr-1.f90
3900 (test_dummy_opt_callee_1_absent): New.
3901 (test_dummy_opt_call_1): Call it.
3902 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
3903 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
3904 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
3905 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
3906 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
3907 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
3908 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
3909 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
3910 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
3911 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
3912 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
3913 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
3914 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
3915 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
3916 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
3917 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
3919 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
3921 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
3922 expect dg-output of 'Error termination.' for GCN.
3923 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3924 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3926 2019-12-04 Jakub Jelinek <jakub@redhat.com>
3929 * testsuite/libgomp.fortran/teams1.f90: New test.
3930 * testsuite/libgomp.fortran/teams2.f90: New test.
3932 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
3934 * oacc-init.c (acc_known_device_type): Add function.
3935 (unknown_device_type_error): Add function.
3936 (name_of_acc_device_t): Change to call unknown_device_type_error
3938 (resolve_device): Use acc_known_device_type.
3939 (acc_init): Fail if acc_device_t argument is not valid.
3940 (acc_shutdown): Likewise.
3941 (acc_get_num_devices): Likewise.
3942 (acc_set_device_type): Likewise.
3943 (acc_get_device_num): Likewise.
3944 (acc_set_device_num): Likewise.
3945 (acc_on_device): Add comment that argument validity is not checked.
3947 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
3949 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
3951 (check_effective_target_openacc_amdgcn_accel_present): New proc.
3952 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
3953 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
3954 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3955 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3957 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
3960 * configure.tgt: Avoid IE tls on *-*-musl*.
3962 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
3964 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
3965 adding a common-block test case.
3967 2019-11-29 Jakub Jelinek <jakub@redhat.com>
3970 * testsuite/libgomp.c++/udr-20.C: New test.
3971 * testsuite/libgomp.c++/udr-21.C: New test.
3973 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
3975 * testsuite/lib/libgomp.exp
3976 (check_effective_target_offload_target_nvptx): New proc.
3977 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
3979 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
3980 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
3981 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
3983 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3985 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
3986 * testsuite/libgomp.c/pr39591-2.c: Likewise.
3987 * testsuite/libgomp.c/pr39591-3.c: Likewise.
3988 * testsuite/libgomp.c/private-1.c: Likewise.
3989 * testsuite/libgomp.c/task-1.c: Likewise.
3990 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
3992 2019-11-20 Julian Brown <julian@codesourcery.com>
3994 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
3996 (queue_push_launch): Lock aq->mutex before calling
3997 wait_for_queue_nonfull.
3998 (queue_push_callback): Likewise.
3999 (queue_push_asyncwait): Likewise.
4000 (queue_push_placeholder): Likewise.
4002 2019-11-20 Julian Brown <julian@codesourcery.com>
4004 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
4005 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
4006 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
4009 2019-11-20 Julian Brown <julian@codesourcery.com>
4013 * oacc-mem.c (present_create_copy): Fix device pointer return value in
4014 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
4015 in non-present/create case.
4016 (delete_copyout): Change error condition to fail only on copies outside
4017 of mapped block. Adjust error message accordingly.
4018 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
4019 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
4020 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
4022 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4023 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
4024 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
4026 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
4028 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
4029 libatomic in build-tree testing.
4031 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
4033 * testsuite/Makefile.in: Regenerate.
4035 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
4037 * testsuite/libgomp.c/target-print-1.c: New file.
4038 * testsuite/libgomp.fortran/target-print-1.f90: New file.
4039 * testsuite/libgomp.oacc-c/print-1.c: New file.
4040 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
4042 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4043 Kwok Cheung Yeung <kcy@codesourcery.com>
4044 Julian Brown <julian@codesourcery.com>
4045 Tom de Vries <tom@codesourcery.com>
4047 * plugin/Makefrag.am: Add amdgcn plugin support.
4048 * plugin/configfrag.ac: Likewise.
4049 * plugin/plugin-gcn.c: New file.
4050 * configure: Regenerate.
4051 * Makefile.in: Regenerate.
4052 * testsuite/Makefile.in: Regenerate.
4054 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4056 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
4057 and use team_malloc variants.
4058 (gomp_gcn_exit_kernel): Use team_free.
4059 * libgomp.h (TEAM_ARENA_SIZE): Define.
4060 (TEAM_ARENA_START): Define.
4061 (TEAM_ARENA_FREE): Define.
4062 (TEAM_ARENA_END): Define.
4063 (team_malloc): New function.
4064 (team_malloc_cleared): New function.
4065 (team_free): New function.
4066 * team.c (gomp_new_team): Initialize and use team_malloc.
4067 (free_team): Use team_free.
4068 (gomp_free_thread): Use team_free.
4069 (gomp_pause_host): Use team_free.
4070 * work.c (gomp_init_work_share): Use team_malloc.
4071 (gomp_fini_work_share): Use team_free.
4073 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4074 Kwok Cheung Yeung <kcy@codesourcery.com>
4075 Julian Brown <julian@codesourcery.com>
4076 Tom de Vries <tom@codesourcery.com>
4078 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
4079 * Makefile.in: Regenerate.
4080 * config.h.in (PLUGIN_GCN): Add new undef.
4081 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
4082 * config/gcn/affinity-fmt.c: New file.
4083 * config/gcn/bar.c: New file.
4084 * config/gcn/bar.h: New file.
4085 * config/gcn/doacross.h: New file.
4086 * config/gcn/icv-device.c: New file.
4087 * config/gcn/oacc-target.c: New file.
4088 * config/gcn/simple-bar.h: New file.
4089 * config/gcn/target.c: New file.
4090 * config/gcn/task.c: New file.
4091 * config/gcn/team.c: New file.
4092 * config/gcn/time.c: New file.
4093 * configure.ac: Add amdgcn*-*-*.
4094 * configure: Regenerate.
4095 * configure.tgt: Add amdgcn*-*-*.
4096 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
4097 * libgomp.h (gcn_thrs): Add amdgcn variant.
4098 (set_gcn_thrs): Likewise.
4099 (gomp_thread): Likewise.
4100 * oacc-int.h (goacc_thread): Likewise.
4101 * oacc-target.c: New file.
4102 * openacc.f90 (acc_device_gcn): New parameter.
4103 * openacc.h (acc_device_t): Add acc_device_gcn.
4104 * team.c (gomp_free_pool_helper): Add amdgcn support.
4106 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4107 Julian Brown <julian@codesourcery.com>
4109 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
4111 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
4113 * oacc-host.c (host_openacc_async_construct): Add device parameter.
4114 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
4117 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4119 * configure.tgt (nvptx*-*-*): Add "accel" directory.
4120 * config/nvptx/libgomp-plugin.c: Move ...
4121 * config/accel/libgomp-plugin.c: ... to here.
4122 * config/nvptx/lock.c: Move ...
4123 * config/accel/lock.c: ... to here.
4124 * config/nvptx/mutex.c: Move ...
4125 * config/accel/mutex.c: ... to here.
4126 * config/nvptx/mutex.h: Move ...
4127 * config/accel/mutex.h: ... to here.
4128 * config/nvptx/oacc-async.c: Move ...
4129 * config/accel/oacc-async.c: ... to here.
4130 * config/nvptx/oacc-cuda.c: Move ...
4131 * config/accel/oacc-cuda.c: ... to here.
4132 * config/nvptx/oacc-host.c: Move ...
4133 * config/accel/oacc-host.c: ... to here.
4134 * config/nvptx/oacc-init.c: Move ...
4135 * config/accel/oacc-init.c: ... to here.
4136 * config/nvptx/oacc-mem.c: Move ...
4137 * config/accel/oacc-mem.c: ... to here.
4138 * config/nvptx/oacc-plugin.c: Move ...
4139 * config/accel/oacc-plugin.c: ... to here.
4140 * config/nvptx/omp-lock.h: Move ...
4141 * config/accel/omp-lock.h: ... to here.
4142 * config/nvptx/openacc.f90: Move ...
4143 * config/accel/openacc.f90: ... to here.
4144 * config/nvptx/pool.h: Move ...
4145 * config/accel/pool.h: ... to here.
4146 * config/nvptx/proc.c: Move ...
4147 * config/accel/proc.c: ... to here.
4148 * config/nvptx/ptrlock.c: Move ...
4149 * config/accel/ptrlock.c: ... to here.
4150 * config/nvptx/ptrlock.h: Move ...
4151 * config/accel/ptrlock.h: ... to here.
4152 * config/nvptx/sem.c: Move ...
4153 * config/accel/sem.c: ... to here.
4154 * config/nvptx/sem.h: Move ...
4155 * config/accel/sem.h: ... to here.
4156 * config/nvptx/thread-stacksize.h: Move ...
4157 * config/accel/thread-stacksize.h: ... to here.
4159 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4160 Tobias Burnus <tobias@codesourcery.com>
4161 Frederik Harwath <frederik@codesourcery.com>
4162 Thomas Schwinge <thomas@codesourcery.com>
4165 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
4166 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
4167 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
4169 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4170 Kwok Cheung Yeung <kcy@codesourcery.com>
4172 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
4173 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
4175 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4177 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
4179 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
4181 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
4182 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
4184 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
4186 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
4187 Add expected warnings about missing reduction clauses.
4188 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
4190 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
4192 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4195 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
4197 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
4198 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
4199 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
4200 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
4201 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
4202 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
4204 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
4207 * testsuite/libgomp.fortran/allocatable2.f90: Use
4208 unique numbers with 'stop'.
4209 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
4210 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
4211 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
4212 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
4213 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
4215 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
4217 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
4218 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
4219 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
4220 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
4221 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
4222 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
4224 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
4226 * testsuite/libgomp.fortran/target9.f90: New.
4228 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
4230 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
4231 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
4232 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
4233 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
4234 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
4235 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
4236 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
4237 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
4238 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
4239 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
4240 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
4241 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
4242 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
4243 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
4244 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
4245 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
4246 * testsuite/libgomp.fortran/associate1.f90: Ditto.
4247 * testsuite/libgomp.fortran/associate2.f90: Ditto.
4248 * testsuite/libgomp.fortran/associate3.f90: Ditto.
4249 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
4250 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
4251 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
4252 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
4253 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
4254 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
4255 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
4256 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
4257 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
4258 * testsuite/libgomp.fortran/character1.f90: Ditto.
4259 * testsuite/libgomp.fortran/character2.f90: Ditto.
4260 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
4261 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
4262 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
4263 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
4264 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
4265 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
4266 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
4267 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
4268 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
4269 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
4270 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
4271 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
4272 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
4273 * testsuite/libgomp.fortran/do1.f90: Ditto.
4274 * testsuite/libgomp.fortran/do2.f90: Ditto.
4275 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
4276 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
4277 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
4278 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
4279 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
4280 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
4281 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
4282 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
4283 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
4284 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
4285 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
4286 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
4287 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
4288 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
4289 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
4290 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
4291 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
4292 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
4293 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
4294 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
4295 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
4296 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
4297 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
4298 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
4299 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
4300 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
4301 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
4302 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
4303 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
4304 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
4305 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
4306 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
4307 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
4308 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
4309 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
4310 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
4311 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
4312 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
4313 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
4314 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
4315 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
4316 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
4317 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
4318 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
4319 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
4320 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
4321 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
4322 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
4323 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
4324 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
4325 * testsuite/libgomp.fortran/lib1.f90: Ditto.
4326 * testsuite/libgomp.fortran/lib4.f90: Ditto.
4327 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
4328 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
4329 * testsuite/libgomp.fortran/nested1.f90: Ditto.
4330 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
4331 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
4332 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
4333 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
4334 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
4335 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
4336 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
4337 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
4338 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
4339 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
4340 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
4341 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
4342 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
4343 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
4344 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
4345 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
4346 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
4347 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
4348 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
4349 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
4350 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
4351 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
4352 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
4353 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
4354 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
4355 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
4356 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
4357 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
4358 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
4359 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
4360 * testsuite/libgomp.fortran/pr28390.f: Ditto.
4361 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
4362 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
4363 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
4364 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
4365 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4366 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
4367 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
4368 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
4369 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
4370 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
4371 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
4372 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
4373 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
4374 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
4375 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
4376 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
4377 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
4378 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
4379 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
4380 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
4381 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
4382 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
4383 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
4384 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
4385 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
4386 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
4387 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
4388 * testsuite/libgomp.fortran/reference1.f90: Ditto.
4389 * testsuite/libgomp.fortran/reference2.f90: Ditto.
4390 * testsuite/libgomp.fortran/retval1.f90: Ditto.
4391 * testsuite/libgomp.fortran/retval2.f90: Ditto.
4392 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
4393 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
4394 * testsuite/libgomp.fortran/simd1.f90: Ditto.
4395 * testsuite/libgomp.fortran/simd2.f90: Ditto.
4396 * testsuite/libgomp.fortran/simd3.f90: Ditto.
4397 * testsuite/libgomp.fortran/simd4.f90: Ditto.
4398 * testsuite/libgomp.fortran/simd5.f90: Ditto.
4399 * testsuite/libgomp.fortran/simd6.f90: Ditto.
4400 * testsuite/libgomp.fortran/simd7.f90: Ditto.
4401 * testsuite/libgomp.fortran/stack.f90: Ditto.
4402 * testsuite/libgomp.fortran/strassen.f90: Ditto.
4403 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
4404 * testsuite/libgomp.fortran/tabs2.f: Ditto.
4405 * testsuite/libgomp.fortran/target1.f90: Ditto.
4406 * testsuite/libgomp.fortran/target2.f90: Ditto.
4407 * testsuite/libgomp.fortran/target3.f90: Ditto.
4408 * testsuite/libgomp.fortran/target4.f90: Ditto.
4409 * testsuite/libgomp.fortran/target5.f90: Ditto.
4410 * testsuite/libgomp.fortran/target6.f90: Ditto.
4411 * testsuite/libgomp.fortran/target7.f90: Ditto.
4412 * testsuite/libgomp.fortran/target8.f90: Ditto.
4413 * testsuite/libgomp.fortran/task1.f90: Ditto.
4414 * testsuite/libgomp.fortran/task2.f90: Ditto.
4415 * testsuite/libgomp.fortran/task3.f90: Ditto.
4416 * testsuite/libgomp.fortran/task4.f90: Ditto.
4417 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4418 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4419 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
4420 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
4421 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
4422 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
4423 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
4424 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
4425 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
4426 * testsuite/libgomp.fortran/udr1.f90: Ditto.
4427 * testsuite/libgomp.fortran/udr10.f90: Ditto.
4428 * testsuite/libgomp.fortran/udr11.f90: Ditto.
4429 * testsuite/libgomp.fortran/udr12.f90: Ditto.
4430 * testsuite/libgomp.fortran/udr13.f90: Ditto.
4431 * testsuite/libgomp.fortran/udr14.f90: Ditto.
4432 * testsuite/libgomp.fortran/udr15.f90: Ditto.
4433 * testsuite/libgomp.fortran/udr2.f90: Ditto.
4434 * testsuite/libgomp.fortran/udr3.f90: Ditto.
4435 * testsuite/libgomp.fortran/udr4.f90: Ditto.
4436 * testsuite/libgomp.fortran/udr5.f90: Ditto.
4437 * testsuite/libgomp.fortran/udr6.f90: Ditto.
4438 * testsuite/libgomp.fortran/udr7.f90: Ditto.
4439 * testsuite/libgomp.fortran/udr8.f90: Ditto.
4440 * testsuite/libgomp.fortran/udr9.f90: Ditto.
4441 * testsuite/libgomp.fortran/vla1.f90: Ditto.
4442 * testsuite/libgomp.fortran/vla2.f90: Ditto.
4443 * testsuite/libgomp.fortran/vla3.f90: Ditto.
4444 * testsuite/libgomp.fortran/vla4.f90: Ditto.
4445 * testsuite/libgomp.fortran/vla5.f90: Ditto.
4446 * testsuite/libgomp.fortran/vla6.f90: Ditto.
4447 * testsuite/libgomp.fortran/vla7.f90: Ditto.
4448 * testsuite/libgomp.fortran/vla8.f90: Ditto.
4449 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4450 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4452 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
4454 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
4455 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
4456 Ditto; add 'dg-do run' for torture testing.
4457 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
4458 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
4459 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
4460 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
4461 * testsuite/libgomp.fortran/pr28390.f: Ditto.
4462 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4463 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
4464 * testsuite/libgomp.fortran/task2.f90: Ditto.
4465 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4466 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4467 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
4468 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
4469 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4470 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4472 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
4474 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
4475 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
4476 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
4477 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
4478 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
4479 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
4480 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
4481 Use 'stop' not abort().
4482 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
4483 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
4484 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
4485 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
4486 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
4487 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
4488 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
4489 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
4490 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
4491 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
4492 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
4493 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
4494 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
4495 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
4496 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
4497 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
4498 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
4500 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4502 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4504 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4506 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4508 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
4510 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
4512 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
4514 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
4516 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
4518 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
4520 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
4522 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
4524 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
4526 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
4527 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
4528 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
4529 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
4530 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
4531 Likewise and also add 'dg-do run'.
4532 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
4535 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
4536 Tobias Burnus <tobias@codesourcery.com>
4538 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
4539 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
4540 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
4542 2019-10-14 Jakub Jelinek <jakub@redhat.com>
4545 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
4548 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
4550 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
4551 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
4553 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
4556 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
4559 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
4562 * testsuite/libgomp.fortran/fortran.exp: Conditionally
4564 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
4566 2019-10-09 Jakub Jelinek <jakub@redhat.com>
4569 * target.c (gomp_map_vars_internal): Readd the previous
4570 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
4571 though do that just in the !not_found_cnt case.
4573 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
4575 * gfortran.dg/gomp/target-simd.f90: New.
4577 2019-10-02 Julian Brown <julian@codesourcery.com>
4578 Cesar Philippidis <cesar@codesourcery.com>
4580 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
4581 * target.c (FIELD_TGT_EMPTY): Define.
4582 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
4583 as switch instead of list of ifs.
4584 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
4586 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
4588 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
4589 include. Replace alloca () with __builtin_alloca ().
4590 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
4592 2019-10-01 Jakub Jelinek <jakub@redhat.com>
4594 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
4595 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
4596 * oacc-parallel.c: Don't include "libgomp_g.h".
4597 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
4598 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
4599 * aclocal.m4: Regenerated.
4600 * config.h.in: Regenerated.
4601 * configure: Regenerated.
4602 * Makefile.in: Regenerated.
4604 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
4606 * libgomp_g.h: Include stdint.h instead of gstdint.h.
4608 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
4610 * configure: Regenerate.
4612 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
4614 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
4615 string is initialized.
4617 2019-09-06 Florian Weimer <fweimer@redhat.com>
4619 * configure: Regenerate.
4621 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
4624 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
4625 scanning to conform to the GNU Coding Standards.
4626 * configure: Regenerate.
4628 2019-08-28 Jakub Jelinek <jakub@redhat.com>
4631 * testsuite/libgomp.c/scan-21.c: New test.
4632 * testsuite/libgomp.c/scan-22.c: New test.
4634 2019-08-27 Jakub Jelinek <jakub@redhat.com>
4637 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
4639 * testsuite/libgomp.c/scan-12.c: Likewise.
4640 * testsuite/libgomp.c/scan-13.c: Likewise.
4641 * testsuite/libgomp.c/scan-14.c: Likewise.
4642 * testsuite/libgomp.c/scan-15.c: Likewise.
4643 * testsuite/libgomp.c/scan-16.c: Likewise.
4644 * testsuite/libgomp.c/scan-17.c: Likewise.
4645 * testsuite/libgomp.c/scan-18.c: Likewise.
4646 * testsuite/libgomp.c/scan-19.c: Likewise.
4647 * testsuite/libgomp.c/scan-20.c: Likewise.
4648 * testsuite/libgomp.c++/scan-9.C: Likewise.
4649 * testsuite/libgomp.c++/scan-10.C: Likewise.
4650 * testsuite/libgomp.c++/scan-11.C: Likewise.
4651 * testsuite/libgomp.c++/scan-12.C: Likewise.
4652 * testsuite/libgomp.c++/scan-14.C: Likewise.
4653 * testsuite/libgomp.c++/scan-15.C: Likewise.
4654 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
4655 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
4656 * testsuite/libgomp.c++/scan-16.C: Likewise.
4658 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
4661 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
4662 -std=legacy so invalid code in the test case is accepted.
4664 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
4667 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
4670 2019-08-08 Jakub Jelinek <jakub@redhat.com>
4672 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
4673 perform the lookup in the first loop only if !not_found_cnt, otherwise
4674 perform lookups for it in the second loop guarded with
4675 if (not_found_cnt || has_firstprivate).
4676 * testsuite/libgomp.c/target-37.c: New test.
4677 * testsuite/libgomp.c++/target-22.C: New test.
4679 2019-08-07 Jakub Jelinek <jakub@redhat.com>
4681 * testsuite/libgomp.c/target-18.c (struct S): New type.
4682 (foo): Use use_device_addr clause instead of use_device_ptr clause
4683 where required by OpenMP 5.0, add further tests for both use_device_ptr
4684 and use_device_addr clauses.
4685 * testsuite/libgomp.c++/target-9.C (struct S): New type.
4686 (foo): Use use_device_addr clause instead of use_device_ptr clause
4687 where required by OpenMP 5.0, add further tests for both use_device_ptr
4688 and use_device_addr clauses. Add t and u arguments.
4689 (main): Adjust caller.
4691 2019-08-06 Jakub Jelinek <jakub@redhat.com>
4693 * testsuite/libgomp.c++/loop-13.C: New test.
4694 * testsuite/libgomp.c++/loop-14.C: New test.
4695 * testsuite/libgomp.c++/loop-15.C: New test.
4697 2019-07-31 Jakub Jelinek <jakub@redhat.com>
4700 * testsuite/libgomp.c++/for-27.C: New test.
4702 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
4704 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
4705 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
4707 2019-07-20 Jakub Jelinek <jakub@redhat.com>
4709 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
4711 2019-07-08 Jakub Jelinek <jakub@redhat.com>
4713 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
4714 * testsuite/libgomp.c++/scan-16.C: Likewise.
4716 2019-07-06 Jakub Jelinek <jakub@redhat.com>
4718 * testsuite/libgomp.c/scan-19.c: New test.
4719 * testsuite/libgomp.c/scan-20.c: New test.
4721 * testsuite/libgomp.c/scan-11.c: New test.
4722 * testsuite/libgomp.c/scan-12.c: New test.
4723 * testsuite/libgomp.c/scan-13.c: New test.
4724 * testsuite/libgomp.c/scan-14.c: New test.
4725 * testsuite/libgomp.c/scan-15.c: New test.
4726 * testsuite/libgomp.c/scan-16.c: New test.
4727 * testsuite/libgomp.c/scan-17.c: New test.
4728 * testsuite/libgomp.c/scan-18.c: New test.
4729 * testsuite/libgomp.c++/scan-9.C: New test.
4730 * testsuite/libgomp.c++/scan-10.C: New test.
4731 * testsuite/libgomp.c++/scan-11.C: New test.
4732 * testsuite/libgomp.c++/scan-12.C: New test.
4733 * testsuite/libgomp.c++/scan-13.C: New test.
4734 * testsuite/libgomp.c++/scan-14.C: New test.
4735 * testsuite/libgomp.c++/scan-15.C: New test.
4736 * testsuite/libgomp.c++/scan-16.C: New test.
4738 2019-07-04 Jakub Jelinek <jakub@redhat.com>
4740 * testsuite/libgomp.c/scan-9.c: New test.
4741 * testsuite/libgomp.c/scan-10.c: New test.
4743 2019-07-03 Jakub Jelinek <jakub@redhat.com>
4745 * testsuite/libgomp.c++/scan-1.C: New test.
4746 * testsuite/libgomp.c++/scan-2.C: New test.
4747 * testsuite/libgomp.c++/scan-3.C: New test.
4748 * testsuite/libgomp.c++/scan-4.C: New test.
4749 * testsuite/libgomp.c++/scan-5.C: New test.
4750 * testsuite/libgomp.c++/scan-6.C: New test.
4751 * testsuite/libgomp.c++/scan-7.C: New test.
4752 * testsuite/libgomp.c++/scan-8.C: New test.
4753 * testsuite/libgomp.c/scan-1.c: New test.
4754 * testsuite/libgomp.c/scan-2.c: New test.
4755 * testsuite/libgomp.c/scan-3.c: New test.
4756 * testsuite/libgomp.c/scan-4.c: New test.
4757 * testsuite/libgomp.c/scan-5.c: New test.
4758 * testsuite/libgomp.c/scan-6.c: New test.
4759 * testsuite/libgomp.c/scan-7.c: New test.
4760 * testsuite/libgomp.c/scan-8.c: New test.
4762 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
4764 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
4765 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
4768 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
4771 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
4773 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
4776 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
4779 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
4781 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
4782 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
4783 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
4784 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
4787 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
4790 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
4792 2019-06-16 Tom de Vries <tdevries@suse.de>
4794 PR tree-optimization/89376
4795 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
4797 2019-06-15 Tom de Vries <tdevries@suse.de>
4799 PR tree-optimization/89713
4800 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
4801 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
4803 2019-06-15 Jakub Jelinek <jakub@redhat.com>
4806 * testsuite/libgomp.c/pr90779.c: New test.
4807 * testsuite/libgomp.fortran/pr90779.f90: New test.
4809 2019-06-15 Tom de Vries <tdevries@suse.de>
4811 PR tree-optimization/90009
4812 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
4814 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
4816 PR tree-optimization/89713
4817 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
4819 2019-06-11 Jakub Jelinek <jakub@redhat.com>
4822 * testsuite/libgomp.c/pr90811.c: New test.
4824 2019-06-05 Jakub Jelinek <jakub@redhat.com>
4826 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
4827 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
4829 2019-06-04 Jakub Jelinek <jakub@redhat.com>
4831 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
4832 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
4833 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
4834 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
4836 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4838 * configure.ac: Call AX_COUNT_CPUS.
4839 Substitute CPU_COUNT.
4840 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
4842 * aclocal.m4: Regenerate.
4843 * configure: Regenerate.
4844 * Makefile.in, testsuite/Makefile.in: Regenerate.
4846 2019-05-29 Jakub Jelinek <jakub@redhat.com>
4848 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
4850 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
4851 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
4852 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
4854 2019-05-27 Jakub Jelinek <jakub@redhat.com>
4856 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
4858 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
4861 * work.c (gomp_init_work_share): Instead of aligning final ordered
4862 value to multiples of long long alignment, align to that the
4863 first part (ordered team ids) and if inline_ordered_team_ids
4864 is not on a long long alignment boundary within the structure,
4865 use __alignof__ (long long) - 1 pad size always.
4866 * loop.c (GOMP_loop_start): Fix *mem computation if
4867 inline_ordered_team_ids is not aligned on long long alignment boundary
4868 within the structure.
4869 * loop-ull.c (GOMP_loop_ull_start): Likewise.
4870 * sections.c (GOMP_sections2_start): Likewise.
4872 2019-05-24 Jakub Jelinek <jakub@redhat.com>
4874 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
4875 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
4878 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
4879 HAVE_INTTYPES_H is defined.
4880 (print_uint64_t): New typedef.
4881 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
4882 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
4883 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
4884 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
4885 before casting to void *.
4886 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
4887 * oacc-mem.c: Don't include config.h nor stdint.h.
4888 * target.c: Don't include config.h.
4889 * oacc-cuda.c: Likewise.
4890 * oacc-host.c: Don't include stdint.h.
4892 2019-05-20 Jakub Jelinek <jakub@redhat.com>
4895 * alloc.c (_GNU_SOURCE): Define.
4897 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
4899 * acc_prof.h: New file.
4900 * oacc-profiling.c: Likewise.
4901 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
4902 Add these, respectively.
4903 * Makefile.in: Regenerate.
4904 * env.c (initialize_env): Call goacc_profiling_initialize.
4905 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
4906 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
4907 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
4908 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
4909 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
4910 acc_prof_register, acc_prof_unregister, and acc_register_library.
4911 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
4912 GOMP_PLUGIN_goacc_thread.
4913 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
4914 prof_callbacks_enabled members.
4915 (goacc_prof_enabled, goacc_profiling_initialize)
4916 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
4917 (goacc_profiling_dispatch): Declare.
4918 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
4919 (GOACC_PROFILING_SETUP_P): Define.
4920 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
4921 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
4922 OpenACC Profiling Interface.
4923 * oacc-cuda.c (acc_get_current_cuda_device)
4924 (acc_get_current_cuda_context, acc_get_cuda_stream)
4925 (acc_set_cuda_stream): Likewise.
4926 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
4927 (acc_init, acc_set_device_type, acc_get_device_type)
4928 (acc_get_device_num, goacc_lazy_initialize): Likewise.
4929 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
4930 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
4931 (acc_unmap_data, present_create_copy, delete_copyout)
4932 (update_dev_host): Likewise.
4933 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
4934 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
4936 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
4937 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
4939 * libgomp.texi: Update.
4940 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
4942 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
4943 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4945 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
4947 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
4949 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
4952 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
4954 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
4955 (struct goacc_asyncqueue_list): Likewise.
4956 (goacc_aq): Likewise.
4957 (goacc_aq_list): Likewise.
4958 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
4959 (GOMP_OFFLOAD_openacc_async_test): Remove.
4960 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
4961 (GOMP_OFFLOAD_openacc_async_wait): Remove.
4962 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
4963 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
4964 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
4965 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
4966 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
4967 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
4968 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
4969 (GOMP_OFFLOAD_openacc_async_exec): Declare.
4970 (GOMP_OFFLOAD_openacc_async_construct): Declare.
4971 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
4972 (GOMP_OFFLOAD_openacc_async_test): Declare.
4973 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
4974 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
4975 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
4976 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
4977 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
4979 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
4980 (gomp_acc_insert_pointer): Adjust declaration.
4981 (gomp_copy_host2dev): New declaration.
4982 (gomp_copy_dev2host): Likewise.
4983 (gomp_map_vars_async): Likewise.
4984 (gomp_unmap_tgt): Likewise.
4985 (gomp_unmap_vars_async): Likewise.
4986 (gomp_fini_device): Likewise.
4988 * oacc-async.c (get_goacc_thread): New function.
4989 (get_goacc_thread_device): New function.
4990 (lookup_goacc_asyncqueue): New function.
4991 (get_goacc_asyncqueue): New function.
4992 (acc_async_test): Adjust code to use new async design.
4993 (acc_async_test_all): Likewise.
4994 (acc_wait): Likewise.
4995 (acc_wait_async): Likewise.
4996 (acc_wait_all): Likewise.
4997 (acc_wait_all_async): Likewise.
4998 (goacc_async_free): New function.
4999 (goacc_init_asyncqueues): Likewise.
5000 (goacc_fini_asyncqueues): Likewise.
5001 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
5003 (acc_set_cuda_stream): Likewise.
5004 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
5005 (host_openacc_register_async_cleanup): Remove.
5006 (host_openacc_async_exec): New function.
5007 (host_openacc_async_test): Adjust parameters.
5008 (host_openacc_async_test_all): Remove.
5009 (host_openacc_async_wait): Remove.
5010 (host_openacc_async_wait_async): Remove.
5011 (host_openacc_async_wait_all): Remove.
5012 (host_openacc_async_wait_all_async): Remove.
5013 (host_openacc_async_set_async): Remove.
5014 (host_openacc_async_synchronize): New function.
5015 (host_openacc_async_serialize): New function.
5016 (host_openacc_async_host2dev): New function.
5017 (host_openacc_async_dev2host): New function.
5018 (host_openacc_async_queue_callback): New function.
5019 (host_openacc_async_construct): New function.
5020 (host_openacc_async_destruct): New function.
5021 (struct gomp_device_descr host_dispatch): Remove initialization of old
5022 interface, add initialization of new async sub-struct.
5023 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
5024 (goacc_attach_host_thread_to_device): Remove old async code usage.
5025 * oacc-int.h (goacc_init_asyncqueues): New declaration.
5026 (goacc_fini_asyncqueues): Likewise.
5027 (goacc_async_copyout_unmap_vars): Likewise.
5028 (goacc_async_free): Likewise.
5029 (get_goacc_asyncqueue): Likewise.
5030 (lookup_goacc_asyncqueue): Likewise.
5031 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
5033 (present_create_copy): Adjust code to use new async design.
5034 (delete_copyout): Likewise.
5035 (update_dev_host): Likewise.
5036 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
5038 (gomp_acc_remove_pointer): Adjust code to use new async design.
5039 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
5041 (GOACC_enter_exit_data): Likewise.
5042 (goacc_wait): Likewise.
5043 (GOACC_update): Likewise.
5044 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
5045 when called, warn as obsolete in comment.
5046 * target.c (goacc_device_copy_async): New function.
5047 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
5048 add goacc_device_copy_async case.
5049 (gomp_copy_dev2host): Likewise.
5050 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
5051 (gomp_map_pointer): Likewise.
5052 (gomp_map_fields_existing): Likewise.
5053 (gomp_map_vars_internal): New always_inline function, renamed from
5055 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
5056 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
5057 passing goacc_asyncqueue argument.
5058 (gomp_unmap_tgt): Remove static, add attribute_hidden.
5059 (gomp_unref_tgt): New function.
5060 (gomp_unmap_vars_internal): New always_inline function, renamed from
5062 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
5063 (gomp_unmap_vars_async): Implement by calling
5064 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
5065 (gomp_fini_device): New function.
5066 (gomp_exit_data): Adjust gomp_copy_dev2host call.
5067 (gomp_load_plugin_for_device): Remove old interface, adjust to load
5068 new async interface.
5069 (gomp_target_fini): Adjust code to call gomp_fini_device.
5071 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
5072 (struct ptx_stream): Remove.
5073 (struct nvptx_thread): Remove current_stream field.
5074 (cuda_map_create): Remove.
5075 (cuda_map_destroy): Remove.
5080 (struct goacc_asyncqueue): Define.
5081 (struct nvptx_callback): Define.
5082 (struct ptx_free_block): Define.
5083 (struct ptx_device): Remove null_stream, active_streams, async_streams,
5084 stream_lock, and next fields.
5085 (enum ptx_event_type): Remove.
5086 (struct ptx_event): Remove.
5087 (ptx_event_lock): Remove.
5088 (ptx_events): Remove.
5089 (init_streams_for_device): Remove.
5090 (fini_streams_for_device): Remove.
5091 (select_stream_for_async): Remove.
5092 (nvptx_init): Remove ptx_events and ptx_event_lock references.
5093 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
5095 (nvptx_open_device): Add free_blocks initialization, remove
5096 init_streams_for_device call.
5097 (nvptx_close_device): Remove fini_streams_for_device call, add
5098 free_blocks destruct code.
5100 (event_add): Remove.
5101 (nvptx_exec): Adjust parameters and code.
5102 (nvptx_free): Likewise.
5103 (nvptx_host2dev): Remove.
5104 (nvptx_dev2host): Remove.
5105 (nvptx_set_async): Remove.
5106 (nvptx_async_test): Remove.
5107 (nvptx_async_test_all): Remove.
5108 (nvptx_wait): Remove.
5109 (nvptx_wait_async): Remove.
5110 (nvptx_wait_all): Remove.
5111 (nvptx_wait_all_async): Remove.
5112 (nvptx_get_cuda_stream): Remove.
5113 (nvptx_set_cuda_stream): Remove.
5114 (GOMP_OFFLOAD_alloc): Adjust code.
5115 (GOMP_OFFLOAD_free): Likewise.
5116 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
5117 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
5118 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
5119 (GOMP_OFFLOAD_openacc_async_wait): Remove.
5120 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
5121 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
5122 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
5123 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
5124 (cuda_free_argmem): New function.
5125 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
5126 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
5127 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
5128 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
5129 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
5130 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
5131 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
5132 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
5133 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
5134 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
5135 (cuda_callback_wrapper): New function.
5136 (cuda_memcpy_sanity_check): New function.
5137 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
5138 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
5139 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
5140 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
5142 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
5145 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
5147 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
5149 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
5151 2019-03-27 Kevin Buettner <kevinb@redhat.com>
5153 * team.c (gomp_team_start): Initialize pool->threads[0].
5155 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
5157 * testsuite/libgomp.oacc-c++/c++.exp: Specify
5158 "-foffload=$offload_target".
5159 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5160 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5161 * testsuite/lib/libgomp.exp
5162 (check_effective_target_openacc_nvidia_accel_configured): Remove,
5163 as (conceptually) merged into
5164 check_effective_target_openacc_nvidia_accel_selected. Adjust all
5167 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
5168 * testsuite/libgomp-test-support.exp.in: Adjust.
5169 * testsuite/lib/libgomp.exp: Likewise. Don't populate
5170 openacc_device_types_s.
5171 (offload_target_to_openacc_device_type): New proc.
5172 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
5173 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5174 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5175 * Makefile.in: Regenerate.
5176 * configure: Likewise.
5177 * testsuite/Makefile.in: Likewise.
5179 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
5180 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
5181 instead of OFFLOAD_TARGETS.
5182 * target.c (gomp_target_init): Adjust.
5183 * testsuite/libgomp-test-support.exp.in: Likewise.
5184 * testsuite/lib/libgomp.exp: Likewise. Populate
5185 openacc_device_types_s instead of offload_targets_s_openacc.
5186 (check_effective_target_openacc_nvidia_accel_selected)
5187 (check_effective_target_openacc_host_selected): Adjust.
5188 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
5189 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5190 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5191 * Makefile.in: Regenerate.
5192 * config.h.in: Likewise.
5193 * configure: Likewise.
5194 * testsuite/Makefile.in: Likewise.
5196 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
5197 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
5198 "offloading: supported, but hardware not accessible".
5199 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5200 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5202 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
5205 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
5207 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
5208 and related adjustment.
5210 2019-01-30 Jakub Jelinek <jakub@redhat.com>
5213 * testsuite/libgomp.c++/pr88988.C: New test.
5215 2019-01-28 Jakub Jelinek <jakub@redhat.com>
5218 * testsuite/libgomp.c/pr89002.c: New test.
5220 2019-01-28 Richard Biener <rguenther@suse.de>
5223 PR tree-optimization/86865
5224 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
5226 2019-01-24 Tom de Vries <tdevries@suse.de>
5228 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
5229 once instantiated_devices drops to 0.
5231 2019-01-23 Tom de Vries <tdevries@suse.de>
5234 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
5236 (nvptx_exec): Don't call map_push if mapnum == 0.
5237 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
5239 2019-01-23 Tom de Vries <tdevries@suse.de>
5243 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
5244 (map_fini): Remove "assert (!s->map->active)".
5245 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
5247 2019-01-23 Tom de Vries <tdevries@suse.de>
5250 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
5251 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
5253 2019-01-15 Tom de Vries <tdevries@suse.de>
5256 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
5259 2019-01-12 Tom de Vries <tdevries@suse.de>
5261 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
5262 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
5263 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
5264 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
5266 2019-01-12 Tom de Vries <tdevries@suse.de>
5268 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
5270 2019-01-12 Tom de Vries <tdevries@suse.de>
5272 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
5273 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
5274 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
5276 2019-01-12 Tom de Vries <tdevries@suse.de>
5279 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
5280 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
5282 2019-01-12 Tom de Vries <tdevries@suse.de>
5285 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
5286 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
5288 2019-01-12 Tom de Vries <tdevries@suse.de>
5290 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
5291 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
5292 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
5294 2019-01-12 Tom de Vries <tdevries@suse.de>
5296 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
5297 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
5298 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
5300 2019-01-12 Tom de Vries <tdevries@suse.de>
5302 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
5303 resources diagnostic.
5305 2019-01-12 Tom de Vries <tdevries@suse.de>
5307 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
5308 vector length to be 128.
5309 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
5310 length 2097152 to be reduced to 1024 instead of 32.
5312 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
5313 James Norris <jnorris@codesourcery.com>
5315 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
5316 Library Routines", and "Environment Variables".
5318 2019-01-11 Tom de Vries <tdevries@suse.de>
5320 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
5323 2019-01-11 Tom de Vries <tdevries@suse.de>
5325 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
5327 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
5328 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
5329 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
5330 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
5332 2019-01-11 Tom de Vries <tdevries@suse.de>
5334 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
5337 2019-01-10 Nathan Sidwell <nathan@acm.org>
5338 Julian Brown <julian@codesourcery.com>
5341 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
5342 * testsuite/libgomp.oacc-c++/pr71959.C: New.
5344 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5346 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
5349 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5351 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
5352 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
5355 2019-01-09 Tom de Vries <tdevries@suse.de>
5358 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
5359 #define instead of "const int".
5360 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
5361 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
5362 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
5363 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
5365 2019-01-09 Tom de Vries <tdevries@suse.de>
5367 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
5370 2019-01-07 Tom de Vries <tdevries@suse.de>
5372 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
5373 GOMP_OPENACC_DIM argument.
5375 2019-01-03 Tom de Vries <tdevries@suse.de>
5377 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
5378 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
5380 2019-01-01 Jakub Jelinek <jakub@redhat.com>
5382 Update copyright years.
5384 2019-01-01 Jakub Jelinek <jakub@redhat.com>
5386 * libgomp.texi: Bump @copying's copyright year.
5388 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
5390 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
5391 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
5392 (GOACC_declare): Redefine the "device" argument to "flags".
5394 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
5395 Cesar Philippidis <cesar@codesourcery.com>
5397 * target.c (struct gomp_coalesce_chunk): New structure.
5398 (struct gomp_coalesce_buf): Update the chunks member to use that
5399 type. Adjust all users.
5401 2018-12-19 Tom de Vries <tdevries@suse.de>
5403 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
5404 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
5405 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
5407 2018-12-19 Tom de Vries <tdevries@suse.de>
5409 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
5410 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
5411 gcc/testsuite/gcc.dg/goacc.
5412 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
5414 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
5415 Chung-Lin Tang <cltang@codesourcery.com>
5417 * oacc-mem.c (acc_present_or_create): Remove definition and change
5418 to alias of acc_create.
5419 (acc_present_or_copyin): Remove definition and change to alias of
5421 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
5422 of acc_present_or_create.
5423 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
5424 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5425 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5426 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5427 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5428 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5429 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5430 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5431 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5432 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5433 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5434 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5435 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5436 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5437 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5438 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5440 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
5443 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
5444 "identical parameters".
5445 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
5446 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
5449 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
5450 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
5453 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
5454 (nvptx_wait_async): Unseen async-argument is a no-op.
5455 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
5456 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
5457 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5458 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5459 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
5460 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
5461 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
5462 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
5463 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
5465 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
5466 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5468 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
5470 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
5471 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5472 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5474 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
5477 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
5478 (acc_set_cuda_stream): Clarify.
5479 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
5481 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
5483 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
5484 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
5485 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
5486 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5488 2018-12-14 Tom de Vries <tdevries@suse.de>
5490 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
5491 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
5492 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
5493 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
5494 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
5496 2018-12-13 Tom de Vries <tdevries@suse.de>
5498 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
5499 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
5500 * fortran.c (omp_display_affinity_): ... here.
5501 * libgomp.h (gomp_print_string): Declare.
5502 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
5503 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
5506 2018-12-13 Jakub Jelinek <jakub@redhat.com>
5509 * testsuite/libgomp.c++/for-24.C (results): Include it in
5510 omp declare target region.
5511 (main): Use map (always, tofrom: results) instead of
5512 map (tofrom: results).
5514 2018-12-12 Jakub Jelinek <jakub@redhat.com>
5517 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
5518 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
5520 * testsuite/libgomp.c-c++-common/for-16.c: New test.
5522 2018-12-12 Andreas Schwab <schwab@suse.de>
5524 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
5527 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
5530 * testsuite/libgomp.fortran/async_io_8.f90: New test.
5532 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
5533 Jakub Jelinek <jakub@redhat.com>
5535 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
5536 devicep->host2dev_func.
5538 2018-12-08 Jakub Jelinek <jakub@redhat.com>
5541 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
5542 tls_runtime effective target.
5543 (t): New threadprivate variable.
5544 (main): Set t in threads which execute iterations of the worksharing
5545 loop. Propagate that to the task after the loop and don't abort
5546 if the current taskgroup hasn't been cancelled.
5548 2018-12-02 Jakub Jelinek <jakub@redhat.com>
5550 * testsuite/libgomp.c/task-reduction-3.c: New test.
5552 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
5554 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
5557 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
5558 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
5560 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
5562 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
5564 2018-10-19 Richard Biener <rguenther@suse.de>
5566 PR tree-optimization/88182
5567 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
5569 2018-11-26 Jakub Jelinek <jakub@redhat.com>
5571 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
5572 (RUNTEST): Don't define.
5573 (RUNTESTDEFAULTFLAGS): Add.
5574 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
5575 (distclean-am): Depend on distclean-DEJAGNU.
5576 (check-am): If -j% option is present in MFLAGS and if
5577 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
5578 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
5579 * testsuite/Makefile.in: Regenerated.
5581 2018-11-26 Richard Biener <rguenther@suse.de>
5583 PR tree-optimization/88182
5584 * testsuite/libgomp.c++/pr88182.C: New testcase.
5586 2018-11-20 Jakub Jelinek <jakub@redhat.com>
5589 * config/mingw32/affinity-fmt.c: New file.
5591 2018-11-09 Jakub Jelinek <jakub@redhat.com>
5593 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
5594 (gomp_display_affinity): Use __builtin_choose_expr to handle
5595 properly handle argument having integral, or pointer or some other
5596 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
5597 with uint64_t type instead of %llx and unsigned long long.
5599 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
5600 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
5602 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5604 * affinity.c: Include <string.h>, <stdio.h>.
5605 (gomp_display_affinity_place): Remove cpusetp.
5606 * teams.c: Include <limits.h>.
5608 2018-11-08 Jakub Jelinek <jakub@redhat.com>
5610 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
5611 in_reduction clause for s[0].
5613 * affinity.c (gomp_display_affinity_place): New function.
5614 * affinity-fmt.c: New file.
5615 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
5616 * config/linux/affinity.c (gomp_display_affinity_place): New function.
5617 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
5618 Move these functions to ...
5619 * config/nvptx/teams.c: ... here. New file.
5620 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
5622 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
5624 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
5625 and _aligned_malloc.
5626 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
5627 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
5628 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
5629 gomp_affinity_format_len): New variables.
5630 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
5631 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
5632 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
5633 modifiers. Display (non-default) chunk sizes. Print
5634 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
5635 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
5636 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
5637 * fortran.c: Include stdio.h and string.h.
5638 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
5639 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
5640 (omp_set_affinity_format_, omp_get_affinity_format_,
5641 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
5642 omp_pause_resource_all_): New functions.
5643 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
5645 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
5647 * teams.c: ... here. New file.
5648 * libgomp_g.h: Include gstdint.h.
5649 (GOMP_loop_nonmonotonic_runtime_start,
5650 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
5651 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
5652 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
5653 GOMP_parallel_loop_nonmonotonic_runtime,
5654 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5655 GOMP_loop_ull_nonmonotonic_runtime_start,
5656 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
5657 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
5658 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5659 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
5660 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
5661 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5662 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
5663 GOMP_teams_reg): Declare.
5664 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
5665 gomp_aligned_alloc uses fallback implementation.
5666 (gomp_aligned_alloc, gomp_aligned_free): Declare.
5667 (enum gomp_schedule_type): Add GFS_MONOTONIC.
5668 (struct gomp_doacross_work_share): Add extra field.
5669 (struct gomp_work_share): Add task_reductions field.
5670 (struct gomp_taskgroup): Add workshare and reductions fields.
5671 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
5672 (gomp_thread_handle): New typedef.
5673 (gomp_display_affinity_place, gomp_set_affinity_format,
5674 gomp_display_string, gomp_display_affinity,
5675 gomp_display_affinity_thread): Declare.
5676 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
5677 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
5678 gomp_workshare_task_reduction_register): Declare.
5679 (gomp_team_start): Add taskgroup argument.
5680 (gomp_pause_host): Declare.
5681 (gomp_init_work_share, gomp_work_share_start): Change bool argument
5683 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
5684 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
5685 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
5686 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
5687 GOMP_loop_ull_doacross_start,
5688 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
5689 GOMP_loop_maybe_nonmonotonic_runtime_next,
5690 GOMP_loop_maybe_nonmonotonic_runtime_start,
5691 GOMP_loop_nonmonotonic_runtime_next,
5692 GOMP_loop_nonmonotonic_runtime_start,
5693 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5694 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
5695 GOMP_loop_ull_nonmonotonic_runtime_next,
5696 GOMP_loop_ull_nonmonotonic_runtime_start,
5697 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5698 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
5699 GOMP_taskgroup_reduction_register,
5700 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5701 GOMP_teams_reg and GOMP_taskwait_depend.
5702 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
5703 omp_{capture,display}_affinity{,_}, and
5704 omp_[gs]et_affinity_format{,_}.
5705 * loop.c: Include string.h.
5706 (GOMP_loop_runtime_next): Add ialias.
5707 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5708 (gomp_loop_static_start, gomp_loop_dynamic_start,
5709 gomp_loop_guided_start, gomp_loop_ordered_static_start,
5710 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
5711 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
5712 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
5713 or gomp_doacross_init callers.
5714 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
5715 GOMP_loop_doacross_start): New functions.
5716 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
5717 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
5718 Mask off GFS_MONOTONIC bit.
5719 (GOMP_loop_maybe_nonmonotonic_runtime_next,
5720 GOMP_loop_maybe_nonmonotonic_runtime_start,
5721 GOMP_loop_nonmonotonic_runtime_next,
5722 GOMP_loop_nonmonotonic_runtime_start,
5723 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5724 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
5726 (gomp_parallel_loop_start): Pass NULL as taskgroup to
5728 * loop_ull.c: Include string.h.
5729 (GOMP_loop_ull_runtime_next): Add ialias.
5730 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5731 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
5732 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
5733 gomp_loop_ull_ordered_dynamic_start,
5734 gomp_loop_ull_ordered_guided_start,
5735 gomp_loop_ull_doacross_static_start,
5736 gomp_loop_ull_doacross_dynamic_start,
5737 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
5738 and gomp_doacross_ull_init callers.
5739 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
5740 GOMP_loop_ull_doacross_start): New functions.
5741 (GOMP_loop_ull_runtime_start,
5742 GOMP_loop_ull_ordered_runtime_start,
5743 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
5744 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5745 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
5746 GOMP_loop_ull_nonmonotonic_runtime_next,
5747 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
5748 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
5749 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
5750 (omp_pause_resource_t, omp_depend_t): New typedefs.
5751 (enum omp_lock_hint_t): Renamed to ...
5752 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
5753 enumerators using numbers and omp_lock_hint_* as their aliases.
5754 (omp_lock_hint_t): New typedef. Rename to ...
5755 (omp_sync_hint_t): ... this.
5756 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
5757 omp_sync_hint_t instead of omp_lock_hint_t.
5758 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5759 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5761 (omp_target_is_present, omp_target_disassociate_ptr):
5762 Change first argument from void * to const void *.
5763 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
5764 from void * to const void *.
5765 (omp_target_associate_ptr): Change first and second arguments from
5766 void * to const void *.
5767 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
5768 omp_pause_hard): New parameters.
5769 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5770 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5772 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
5773 omp_pause_hard): New parameters.
5774 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5775 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5777 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
5778 EXTRA argument. If not needed to prepare array, if extra is 0,
5779 clear ws->doacross, otherwise allocate just doacross structure and
5780 extra payload. If array is needed, allocate also extra payload.
5781 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
5782 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
5784 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
5786 (GOMP_parallel): Likewise. Formatting fix.
5787 (GOMP_parallel_reductions): New function.
5788 (GOMP_cancellation_point): If taskgroup has workshare
5789 flag set, check cancelled of prev taskgroup if any.
5790 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
5791 on prev taskgroup if any.
5792 * sections.c: Include string.h.
5793 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5794 (GOMP_sections_start): Adjust gomp_work_share_start caller.
5795 (GOMP_sections2_start): New function.
5796 (GOMP_parallel_sections_start, GOMP_parallel_sections):
5797 Pass NULL as taskgroup to gomp_team_start.
5798 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
5799 gomp_work_share_start callers.
5800 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
5801 If taskgroup has workshare flag set, check cancelled on prev
5802 taskgroup if any. Guard all cancellation tests with
5803 gomp_cancel_var test.
5804 (omp_target_is_present, omp_target_disassociate_ptr):
5805 Change ptr argument from void * to const void *.
5806 (omp_target_memcpy): Change src argument from void * to const void *.
5807 (omp_target_memcpy_rect): Likewise.
5808 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
5809 instead of char * where needed.
5810 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
5811 from void * to const void *.
5812 (omp_pause_resource, omp_pause_resource_all): New functions.
5813 * task.c (gomp_task_handle_depend): Handle new depend array format
5814 in addition to the old. Handle mutexinoutset kinds the same as
5815 inout for now, handle unspecified kinds.
5816 (gomp_create_target_task): If taskgroup has workshare flag set, check
5817 cancelled on prev taskgroup if any. Guard all cancellation tests with
5818 gomp_cancel_var test. Handle new depend array format count in
5819 addition to the old.
5820 (GOMP_task): Likewise. Adjust function comment.
5821 (gomp_task_run_pre): If taskgroup has workshare flag set, check
5822 cancelled on prev taskgroup if any. Guard all cancellation tests with
5823 gomp_cancel_var test.
5824 (GOMP_taskwait_depend): New function.
5825 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
5826 format in addition to the old. Handle mutexinoutset kinds the same as
5827 inout for now, handle unspecified kinds. Fix a function comment typo.
5828 (gomp_taskgroup_init): New function.
5829 (GOMP_taskgroup_start): Use it.
5830 (gomp_reduction_register, gomp_create_artificial_team,
5831 GOMP_taskgroup_reduction_register,
5832 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5833 gomp_parallel_reduction_register,
5834 gomp_workshare_task_reduction_register,
5835 gomp_workshare_taskgroup_start,
5836 GOMP_workshare_task_reduction_unregister): New functions.
5837 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
5838 check cancelled on prev taskgroup if any. Guard all cancellation
5839 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
5840 by calling GOMP_taskgroup_reduction_register.
5841 * team.c (gomp_thread_attr): Remove comment.
5842 (struct gomp_thread_start_data): Add handle field.
5843 (gomp_thread_start): Call pthread_detach.
5844 (gomp_new_team): Adjust gomp_init_work_share caller.
5845 (gomp_free_pool_helper): Call pthread_detach.
5846 (gomp_team_start): Add taskgroup argument, initialize implicit
5847 tasks' taskgroup field to that. Don't call
5848 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
5849 (gomp_team_end): Determine nesting by thr->ts.level != 0
5850 rather than thr->ts.team != NULL.
5851 (gomp_pause_pool_helper, gomp_pause_host): New functions.
5852 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
5853 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
5854 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
5855 if more than 1 allocate also extra payload at the end of array. Never
5856 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
5857 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
5858 return true instead of ws.
5859 * Makefile.in: Regenerated.
5860 * configure: Regenerated.
5861 * config.h.in: Regenerated.
5862 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
5864 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
5865 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
5866 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
5867 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
5868 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
5869 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
5870 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
5871 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
5872 * testsuite/libgomp.c-c++-common/for-10.c: New test.
5873 * testsuite/libgomp.c-c++-common/for-11.c: New test.
5874 * testsuite/libgomp.c-c++-common/for-12.c: New test.
5875 * testsuite/libgomp.c-c++-common/for-13.c: New test.
5876 * testsuite/libgomp.c-c++-common/for-14.c: New test.
5877 * testsuite/libgomp.c-c++-common/for-15.c: New test.
5878 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
5879 define a different N(test), don't define N(f0) to N(f14), but instead
5880 define N(f20) to N(f34) using != comparisons.
5881 * testsuite/libgomp.c-c++-common/for-7.c: New test.
5882 * testsuite/libgomp.c-c++-common/for-8.c: New test.
5883 * testsuite/libgomp.c-c++-common/for-9.c: New test.
5884 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
5885 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
5886 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
5887 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
5888 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
5889 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
5890 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
5891 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
5892 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
5893 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
5894 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
5895 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
5896 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
5897 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
5898 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
5899 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
5900 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
5901 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
5902 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
5903 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
5904 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
5905 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
5906 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
5907 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
5908 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
5909 * testsuite/libgomp.c++/depend-1.C: New test.
5910 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
5911 * testsuite/libgomp.c++/depobj-1.C: New test.
5912 * testsuite/libgomp.c++/for-16.C: New test.
5913 * testsuite/libgomp.c++/for-21.C: New test.
5914 * testsuite/libgomp.c++/for-22.C: New test.
5915 * testsuite/libgomp.c++/for-23.C: New test.
5916 * testsuite/libgomp.c++/for-24.C: New test.
5917 * testsuite/libgomp.c++/for-25.C: New test.
5918 * testsuite/libgomp.c++/for-26.C: New test.
5919 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
5920 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
5921 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
5922 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
5923 * testsuite/libgomp.c++/task-reduction-10.C: New test.
5924 * testsuite/libgomp.c++/task-reduction-11.C: New test.
5925 * testsuite/libgomp.c++/task-reduction-12.C: New test.
5926 * testsuite/libgomp.c++/task-reduction-13.C: New test.
5927 * testsuite/libgomp.c++/task-reduction-14.C: New test.
5928 * testsuite/libgomp.c++/task-reduction-15.C: New test.
5929 * testsuite/libgomp.c++/task-reduction-16.C: New test.
5930 * testsuite/libgomp.c++/task-reduction-17.C: New test.
5931 * testsuite/libgomp.c++/task-reduction-18.C: New test.
5932 * testsuite/libgomp.c++/task-reduction-19.C: New test.
5933 * testsuite/libgomp.c/task-reduction-1.c: New test.
5934 * testsuite/libgomp.c++/task-reduction-1.C: New test.
5935 * testsuite/libgomp.c/task-reduction-2.c: New test.
5936 * testsuite/libgomp.c++/task-reduction-2.C: New test.
5937 * testsuite/libgomp.c++/task-reduction-3.C: New test.
5938 * testsuite/libgomp.c++/task-reduction-4.C: New test.
5939 * testsuite/libgomp.c++/task-reduction-5.C: New test.
5940 * testsuite/libgomp.c++/task-reduction-6.C: New test.
5941 * testsuite/libgomp.c++/task-reduction-7.C: New test.
5942 * testsuite/libgomp.c++/task-reduction-8.C: New test.
5943 * testsuite/libgomp.c++/task-reduction-9.C: New test.
5944 * testsuite/libgomp.c/teams-1.c: New test.
5945 * testsuite/libgomp.c/teams-2.c: New test.
5946 * testsuite/libgomp.c/thread-limit-4.c: New test.
5947 * testsuite/libgomp.c/thread-limit-5.c: New test.
5948 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
5950 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
5952 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
5953 acc_memcpy_to/from_device functions, now with async parameter.
5954 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
5955 (acc_memcpy_from_device): Likewise.
5956 (acc_memcpy_to_device_async): New API function.
5957 (acc_memcpy_from_device_async): Likewise.
5958 (present_create_copy): Add async parameter and async setting/unsetting.
5959 (acc_create): Adjust present_create_copy call.
5960 (acc_copyin): Likewise.
5961 (acc_present_or_create): Likewise.
5962 (acc_present_or_copyin): Likewise.
5963 (acc_create_async): New API function.
5964 (acc_copyin_async): New API function.
5965 (delete_copyout): Add async parameter and async setting/unsetting.
5966 (acc_delete): Adjust delete_copyout call.
5967 (acc_copyout): Likewise.
5968 (acc_delete_async): New API function.
5969 (acc_copyout_async): Likewise.
5970 (update_dev_host): Add async parameter and async setting/unsetting.
5971 (acc_update_device): Adjust update_dev_host call.
5972 (acc_update_self): Likewise.
5973 (acc_update_device_async): New API function.
5974 (acc_update_self_async): Likewise.
5975 * openacc.h (acc_copyin_async): Declare new API function.
5976 (acc_create_async): Likewise.
5977 (acc_copyout_async): Likewise.
5978 (acc_delete_async): Likewise.
5979 (acc_update_device_async): Likewise.
5980 (acc_update_self_async): Likewise.
5981 (acc_memcpy_to_device_async): Likewise.
5982 (acc_memcpy_from_device_async): Likewise.
5983 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
5984 (acc_copyin_async_64_h): New subroutine.
5985 (acc_copyin_async_array_h): New subroutine.
5986 (acc_create_async_32_h): New subroutine.
5987 (acc_create_async_64_h): New subroutine.
5988 (acc_create_async_array_h): New subroutine.
5989 (acc_copyout_async_32_h): New subroutine.
5990 (acc_copyout_async_64_h): New subroutine.
5991 (acc_copyout_async_array_h): New subroutine.
5992 (acc_delete_async_32_h): New subroutine.
5993 (acc_delete_async_64_h): New subroutine.
5994 (acc_delete_async_array_h): New subroutine.
5995 (acc_update_device_async_32_h): New subroutine.
5996 (acc_update_device_async_64_h): New subroutine.
5997 (acc_update_device_async_array_h): New subroutine.
5998 (acc_update_self_async_32_h): New subroutine.
5999 (acc_update_self_async_64_h): New subroutine.
6000 (acc_update_self_async_array_h): New subroutine.
6001 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
6002 (acc_copyin_async_64_h): New subroutine.
6003 (acc_copyin_async_array_h): New subroutine.
6004 (acc_create_async_32_h): New subroutine.
6005 (acc_create_async_64_h): New subroutine.
6006 (acc_create_async_array_h): New subroutine.
6007 (acc_copyout_async_32_h): New subroutine.
6008 (acc_copyout_async_64_h): New subroutine.
6009 (acc_copyout_async_array_h): New subroutine.
6010 (acc_delete_async_32_h): New subroutine.
6011 (acc_delete_async_64_h): New subroutine.
6012 (acc_delete_async_array_h): New subroutine.
6013 (acc_update_device_async_32_h): New subroutine.
6014 (acc_update_device_async_64_h): New subroutine.
6015 (acc_update_device_async_array_h): New subroutine.
6016 (acc_update_self_async_32_h): New subroutine.
6017 (acc_update_self_async_64_h): New subroutine.
6018 (acc_update_self_async_array_h): New subroutine.
6019 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
6020 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
6021 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
6022 acc_memcpy_to_device_async*, acc_update_device_async*, and
6023 acc_update_self_async* entries.
6024 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
6025 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
6026 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
6028 2018-10-31 Joseph Myers <joseph@codesourcery.com>
6031 * Makefile.am: Include multilib.am
6032 (AUTOMAKE_OPTIONS): Add info-in-builddir.
6033 (CLEANFILES): Remove libgomp.info.
6034 * configure.ac: Remove AC_PREREQ.
6035 * testsuite/Makefile.am (RUNTEST): Remove quotes.
6036 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
6039 2018-10-29 Joseph Myers <joseph@codesourcery.com>
6040 Julian Brown <julian@codesourcery.com>
6042 * testsuite/libgomp.oacc-c++/this.C: New.
6044 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
6046 * plugin/plugin-nvptx.c (struct cuda_map): New.
6047 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
6048 h_tail with (cuda_map *) map.
6049 (cuda_map_create): New function.
6050 (cuda_map_destroy): New function.
6051 (map_init): Update to use a linked list of cuda_map objects.
6052 (map_fini): Likewise.
6053 (map_pop): Likewise.
6054 (map_push): Likewise. Return CUdeviceptr instead of void.
6055 (init_streams_for_device): Remove stales references to ptx_stream
6057 (select_stream_for_async): Likewise.
6058 (nvptx_exec): Update call to map_init.
6060 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
6061 Julian Brown <julian@codesourcery.com>
6064 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
6066 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
6067 Thomas Koenig <tkoenig@gcc.gnu.org>
6070 * testsuite/libgomp.fortran/async_io_1.f90: New test.
6071 * testsuite/libgomp.fortran/async_io_2.f90: New test.
6072 * testsuite/libgomp.fortran/async_io_3.f90: New test.
6073 * testsuite/libgomp.fortran/async_io_4.f90: New test.
6074 * testsuite/libgomp.fortran/async_io_5.f90: New test.
6075 * testsuite/libgomp.fortran/async_io_6.f90: New test.
6076 * testsuite/libgomp.fortran/async_io_7.f90: New test.
6078 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
6079 Tom de Vries <tdevries@suse.de>
6082 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
6083 (cuOccupancyMaxPotentialBlockSize): Declare.
6084 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
6085 CUDA_ONE_CALL_MAYBE_NULL.
6086 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
6087 CUoccupancyB2DSize and declare
6088 cuOccupancyMaxPotentialBlockSize.
6089 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
6090 default num_gangs and num_workers when the driver supports it.
6092 2018-08-08 Tom de Vries <tdevries@suse.de>
6094 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
6095 CUDA_ONE_CALL_MAYBE_NULL.
6096 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
6097 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
6098 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
6101 2018-08-08 Tom de Vries <tdevries@suse.de>
6103 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
6104 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
6107 2018-08-08 Tom de Vries <tdevries@suse.de>
6109 * plugin/plugin-nvptx.c
6110 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
6111 (nvptx_open_device): Use
6112 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
6114 2018-08-08 Tom de Vries <tdevries@suse.de>
6116 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
6117 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
6119 2018-08-07 Tom de Vries <tdevries@suse.de>
6121 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
6122 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
6123 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
6124 corresponding call in CUDA_ONE_CALL. Add def/undef of
6125 CUDA_ONE_CALL_MAYBE_NULL.
6126 (CUDA_CALL_EXISTS): Define.
6128 2018-08-07 Tom de Vries <tdevries@suse.de>
6130 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
6131 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
6132 corresponding undefs right after.
6134 2018-08-04 Tom de Vries <tdevries@suse.de>
6136 * plugin/configfrag.ac: For --without-cuda-driver, set
6137 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
6138 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
6139 * configure: Regenerate.
6141 2018-08-02 Tom de Vries <tdevries@suse.de>
6144 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
6145 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
6146 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
6148 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
6149 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
6150 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
6152 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
6153 Thomas Schwinge <thomas@codesourcery.com>
6155 * config/nvptx/oacc-parallel.c: Truncate.
6157 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
6158 James Norris <jnorris@codesourcery.com>
6160 * plugin/plugin-nvptx.c (struct map): Removed.
6161 (map_init, map_pop): Remove use of struct map.
6162 (map_push): Likewise and change argument list.
6163 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
6165 2018-08-01 Tom de Vries <tdevries@suse.de>
6167 * plugin/cuda-lib.def: New file. Factor out of ...
6168 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
6169 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
6172 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6174 Revert 'AsyncI/O patch committed'.
6175 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
6176 Thomas Koenig <tkoenig@gcc.gnu.org>
6179 * testsuite/libgomp.fortran/async_io_1.f90: New test.
6180 * testsuite/libgomp.fortran/async_io_2.f90: New test.
6181 * testsuite/libgomp.fortran/async_io_3.f90: New test.
6182 * testsuite/libgomp.fortran/async_io_4.f90: New test.
6183 * testsuite/libgomp.fortran/async_io_5.f90: New test.
6184 * testsuite/libgomp.fortran/async_io_6.f90: New test.
6185 * testsuite/libgomp.fortran/async_io_7.f90: New test.
6187 2018-07-30 Tom de Vries <tdevries@suse.de>
6189 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
6190 (nvptx_exec): Ensure worker and vector default dims don't exceed
6191 targ_fn->max_threads_per_block.
6193 2018-07-30 Tom de Vries <tdevries@suse.de>
6195 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
6196 (nvptx_open_device): Init default_dims for device.
6197 (nvptx_exec): Use default_dims from device.
6199 2018-07-26 Jakub Jelinek <jakub@redhat.com>
6202 * testsuite/libgomp.c++/for-15.C (results): Include it in
6203 omp declare target region.
6204 (main): Use map (always, tofrom: results) instead of
6205 map (tofrom: results).
6208 * testsuite/libgomp.c/pr86660.c: New test.
6210 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
6211 Tom de Vries <tdevries@suse.de>
6213 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
6214 sufficient resources to launch a kernel, and give a hint on how to fix
6217 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
6218 Tom de Vries <tdevries@suse.de>
6220 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
6221 max_threads_per_block and max_threads_per_multiprocessor fields.
6222 (nvptx_open_device): Initialize new fields.
6223 (nvptx_exec): Use num_sms, and new fields.
6225 2018-07-26 Tom de Vries <tdevries@suse.de>
6227 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
6228 to correct locations. Remove xfail.
6230 2018-07-26 Tom de Vries <tdevries@suse.de>
6232 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
6233 acc_wait. Move acc_async_test calls to correct locations. Remove
6236 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
6237 Thomas Koenig <tkoenig@gcc.gnu.org>
6240 * testsuite/libgomp.fortran/async_io_1.f90: New test.
6241 * testsuite/libgomp.fortran/async_io_2.f90: New test.
6242 * testsuite/libgomp.fortran/async_io_3.f90: New test.
6243 * testsuite/libgomp.fortran/async_io_4.f90: New test.
6244 * testsuite/libgomp.fortran/async_io_5.f90: New test.
6245 * testsuite/libgomp.fortran/async_io_6.f90: New test.
6246 * testsuite/libgomp.fortran/async_io_7.f90: New test.
6248 2018-07-17 Jakub Jelinek <jakub@redhat.com>
6251 * testsuite/libgomp.c++/pr86542.C: New test.
6254 * testsuite/libgomp.c++/pr86539.C: New test.
6256 2018-07-11 Jakub Jelinek <jakub@redhat.com>
6259 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
6260 (results): Make sure the variable is not inside declare target region.
6261 (qux): Remove unused function.
6263 2018-07-10 Jakub Jelinek <jakub@redhat.com>
6266 * testsuite/libgomp.c++/for-15.C: New test.
6268 2018-06-26 Jakub Jelinek <jakub@redhat.com>
6271 * testsuite/libgomp.c++/pr86291.C: New test.
6273 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
6275 * libgomp.texi (Top): Move www.openmp.org to https.
6276 (Enabling OpenMP): Ditto.
6277 (omp_get_active_level): Ditto.
6278 (omp_get_ancestor_thread_num): Ditto.
6279 (omp_get_cancellation): Ditto.
6280 (omp_get_default_device): Ditto.
6281 (omp_get_dynamic): Ditto.
6282 (omp_get_level): Ditto.
6283 (omp_get_max_active_levels): Ditto.
6284 (omp_get_max_task_priority): Ditto.
6285 (omp_get_max_threads): Ditto.
6286 (omp_get_nested): Ditto.
6287 (omp_get_num_devices): Ditto.
6288 (omp_get_num_procs): Ditto.
6289 (omp_get_num_teams): Ditto.
6290 (omp_get_num_threads): Ditto.
6291 (omp_get_proc_bind): Ditto.
6292 (omp_get_schedule): Ditto.
6293 (omp_get_team_num): Ditto.
6294 (omp_get_team_size): Ditto.
6295 (omp_get_thread_limit): Ditto.
6296 (omp_get_thread_num): Ditto.
6297 (omp_in_parallel): Ditto.
6298 (omp_in_final): Ditto.
6299 (omp_is_initial_device): Ditto.
6300 (omp_set_default_device): Ditto.
6301 (omp_set_dynamic): Ditto.
6302 (omp_set_max_active_levels): Ditto.
6303 (omp_set_nested): Ditto.
6304 (omp_set_num_threads): Ditto.
6305 (omp_set_schedule): Ditto.
6306 (omp_init_lock): Ditto.
6307 (omp_set_lock): Ditto.
6308 (omp_test_lock): Ditto.
6309 (omp_unset_lock): Ditto.
6310 (omp_destroy_lock): Ditto.
6311 (omp_init_nest_lock): Ditto.
6312 (omp_set_nest_lock): Ditto.
6313 (omp_test_nest_lock): Ditto.
6314 (omp_unset_nest_lock): Ditto.
6315 (omp_destroy_nest_lock): Ditto.
6316 (omp_get_wtick): Ditto.
6317 (omp_get_wtime): Ditto.
6318 (OMP_CANCELLATION): Ditto.
6319 (OMP_DISPLAY_ENV): Ditto.
6320 (OMP_DEFAULT_DEVICE): Ditto.
6321 (OMP_DYNAMIC): Ditto.
6322 (OMP_MAX_ACTIVE_LEVELS): Ditto.
6323 (OMP_MAX_TASK_PRIORITY): Ditto.
6324 (OMP_NESTED): Ditto.
6325 (OMP_NUM_THREADS): Ditto.
6326 (OMP_PROC_BIND): Ditto.
6327 (OMP_PLACES): Ditto.
6328 (OMP_STACKSIZE): Ditto.
6329 (OMP_SCHEDULE): Ditto.
6330 (OMP_THREAD_LIMIT): Ditto.
6331 (OMP_WAIT_POLICY): Ditto.
6333 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
6334 James Norris <jnorris@codesourcery.com>
6335 Julian Brown <julian@codesourcery.com>
6336 Thomas Schwinge <thomas@codesourcery.com>
6337 Tom de Vries <tom@codesourcery.com>
6339 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
6340 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
6341 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
6342 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
6343 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
6344 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
6345 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
6346 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
6347 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
6348 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
6350 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6352 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6354 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
6356 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
6358 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6360 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
6362 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
6364 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
6366 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
6368 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
6370 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
6372 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
6374 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
6376 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
6378 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
6380 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
6382 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
6384 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
6386 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
6388 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
6390 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
6392 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
6394 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
6396 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
6398 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
6400 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
6402 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
6403 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
6404 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
6405 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
6406 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
6407 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
6408 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
6409 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
6410 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
6412 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
6414 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
6415 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
6416 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
6418 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
6419 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
6420 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
6422 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6424 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6426 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6428 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6430 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
6432 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
6434 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
6436 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
6438 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
6440 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
6442 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
6444 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
6446 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
6448 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
6450 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
6451 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
6452 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
6453 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
6454 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
6455 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
6456 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
6458 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
6459 Thomas Schwinge <thomas@codesourcery.com>
6460 Cesar Philippidis <cesar@codesourcery.com>
6462 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
6463 (gomp_acc_remove_pointer): Update declaration.
6464 (gomp_acc_declare_allocate): Declare.
6465 (gomp_remove_var): Declare.
6466 * libgomp.map (OACC_2.5): Define.
6467 * oacc-mem.c (acc_map_data): Update refcount.
6468 (acc_unmap_data): Likewise.
6469 (present_create_copy): Likewise.
6470 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
6471 (acc_copyin): Likewise.
6472 (FLAG_FINALIZE): Define.
6473 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
6474 (acc_delete_finalize): New function.
6475 (acc_delete_finalize_async): New function.
6476 (acc_copyout_finalize): New function.
6477 (acc_copyout_finalize_async): New function.
6478 (gomp_acc_insert_pointer): Update refcounts.
6479 (gomp_acc_remove_pointer): Return if data is not present on the
6481 * oacc-parallel.c (find_pset): Rename to find_pointer.
6482 (find_pointer): Add support for GOMP_MAP_POINTER.
6483 (handle_ftn_pointers): New function.
6484 (GOACC_parallel_keyed): Update refcounts of variables.
6485 (GOACC_enter_exit_data): Add support for finalized data mappings.
6486 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
6488 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
6489 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
6490 for GOMP_MAP_FORCE_FROM.
6491 * openacc.f90 (module openacc_internal): Add
6492 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
6493 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
6494 acc_copyout_finalize and acc_delete_finalize.
6495 (acc_copyout_finalize_32_h): New subroutine.
6496 (acc_copyout_finalize_64_h): New subroutine.
6497 (acc_copyout_finalize_array_h): New subroutine.
6498 (acc_delete_finalize_32_h): New subroutine.
6499 (acc_delete_finalize_64_h): New subroutine.
6500 (acc_delete_finalize_array_h): New subroutine.
6501 * openacc.h (acc_copyout_finalize): Declare.
6502 (acc_copyout_finalize_async): Declare.
6503 (acc_delete_finalize): Declare.
6504 (acc_delete_finalize_async): Declare.
6505 * openacc_lib.h (acc_copyout_finalize): New interface.
6506 (acc_delete_finalize): New interface.
6507 * target.c (gomp_map_vars): Update dynamic_refcount.
6508 (gomp_remove_var): New function.
6509 (gomp_unmap_vars): Use it.
6510 (gomp_unload_image_from_device): Likewise.
6511 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
6512 case to utilize OpenACC 2.5 data clause semantics.
6513 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6514 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6515 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6516 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6517 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6518 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6519 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6520 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6521 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6522 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
6523 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6524 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
6525 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
6526 utilize OpenACC 2.5 data clause semantics.
6527 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6528 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6529 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6530 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6531 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6532 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6533 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6534 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
6535 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
6537 2018-05-21 Janus Weil <janus@gcc.gnu.org>
6541 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
6542 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
6543 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
6544 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
6545 * testsuite/libgomp.fortran/task2.f90: Ditto.
6546 * testsuite/libgomp.fortran/vla1.f90: Ditto.
6547 * testsuite/libgomp.fortran/vla2.f90: Ditto.
6548 * testsuite/libgomp.fortran/vla3.f90: Ditto.
6549 * testsuite/libgomp.fortran/vla4.f90: Ditto.
6550 * testsuite/libgomp.fortran/vla5.f90: Ditto.
6551 * testsuite/libgomp.fortran/vla6.f90: Ditto.
6552 * testsuite/libgomp.fortran/vla8.f90: Ditto.
6553 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
6554 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
6556 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
6559 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
6561 2018-05-09 Tom de Vries <tom@codesourcery.com>
6564 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
6565 to GOACC_enter_exit_data.
6567 2018-05-09 Tom de Vries <tom@codesourcery.com>
6570 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
6571 (async_synchronous_p): New function.
6572 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
6574 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
6575 async_valid_stream_id_p.
6576 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
6577 * oacc-parallel.c (GOACC_parallel_keyed): Same.
6579 2018-05-07 Tom de Vries <tom@codesourcery.com>
6582 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
6583 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
6585 2018-05-03 Tom de Vries <tom@codesourcery.com>
6588 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
6589 extra_tool_flags if it contains an -foffload=-fdump-* flag.
6590 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
6591 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
6593 2018-05-02 Tom de Vries <tom@codesourcery.com>
6596 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
6597 GOMP_OPENACC_DIM ...
6598 * env.c (parse_gomp_openacc_dim): ... here. New function.
6599 (initialize_env): Call parse_gomp_openacc_dim.
6600 (goacc_default_dims): Define.
6601 * libgomp.h (goacc_default_dims): Declare.
6602 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
6603 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
6604 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
6605 GOMP_PLUGIN_acc_default_dim.
6606 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
6607 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
6609 2018-05-02 Tom de Vries <tom@codesourcery.com>
6612 * testsuite/libgomp.c++/udr-9.C: Update.
6613 * testsuite/libgomp.c++/atomic-16.C: Remove.
6614 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
6615 * testsuite/libgomp.c++/loop-13.C: Remove.
6616 * testsuite/libgomp.c++/loop-14.C: Remove.
6617 * testsuite/libgomp.c++/loop-15.C: Remove.
6618 * testsuite/libgomp.c++/monotonic-1.C: Remove.
6619 * testsuite/libgomp.c++/monotonic-2.C: Remove.
6620 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
6621 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
6622 * testsuite/libgomp.c++/ordered-1.C: Remove.
6623 * testsuite/libgomp.c++/pr45784.C: Remove.
6624 * testsuite/libgomp.c++/pr64824.C: Remove.
6625 * testsuite/libgomp.c++/pr64868.C: Remove.
6626 * testsuite/libgomp.c++/pr66199-1.C: Remove.
6627 * testsuite/libgomp.c++/pr66199-2.C: Remove.
6628 * testsuite/libgomp.c++/pr66199-3.C: Remove.
6629 * testsuite/libgomp.c++/pr66199-4.C: Remove.
6630 * testsuite/libgomp.c++/pr66199-5.C: Remove.
6631 * testsuite/libgomp.c++/pr66199-6.C: Remove.
6632 * testsuite/libgomp.c++/pr66199-7.C: Remove.
6633 * testsuite/libgomp.c++/pr66199-8.C: Remove.
6634 * testsuite/libgomp.c++/pr66199-9.C: Remove.
6635 * testsuite/libgomp.c++/pr69389.C: Remove.
6636 * testsuite/libgomp.c++/simd10.C: Remove.
6637 * testsuite/libgomp.c++/simd11.C: Remove.
6638 * testsuite/libgomp.c++/simd12.C: Remove.
6639 * testsuite/libgomp.c++/simd13.C: Remove.
6640 * testsuite/libgomp.c++/target-1.C: Remove.
6641 * testsuite/libgomp.c++/target-3.C: Remove.
6642 * testsuite/libgomp.c++/target-4.C: Remove.
6643 * testsuite/libgomp.c++/target-5.C: Remove.
6644 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
6645 * testsuite/libgomp.c++/taskloop-1.C: Remove.
6646 * testsuite/libgomp.c++/taskloop-2.C: Remove.
6647 * testsuite/libgomp.c++/taskloop-3.C: Remove.
6648 * testsuite/libgomp.c++/taskloop-4.C: Remove.
6649 * testsuite/libgomp.c++/udr-9.C: Remove.
6650 * testsuite/libgomp.c++/for-10.C: Remove.
6651 * testsuite/libgomp.c++/for-11.C: Remove.
6652 * testsuite/libgomp.c++/for-12.C: Remove.
6653 * testsuite/libgomp.c++/for-13.C: Remove.
6654 * testsuite/libgomp.c++/for-14.C: Remove.
6655 * testsuite/libgomp.c++/for-9.C: Remove.
6656 * testsuite/libgomp.c/atomic-18.c: Move ...
6657 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
6658 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
6659 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
6660 * testsuite/libgomp.c/loop-13.c: Move ...
6661 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
6662 * testsuite/libgomp.c/loop-14.c: Move ...
6663 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
6664 * testsuite/libgomp.c/loop-15.c: Remove.
6665 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
6666 * testsuite/libgomp.c/monotonic-1.c: Move ...
6667 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
6668 * testsuite/libgomp.c/monotonic-2.c: Move ...
6669 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
6670 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
6671 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
6672 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
6673 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
6674 * testsuite/libgomp.c/ordered-4.c: Move ...
6675 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
6676 * testsuite/libgomp.c/pr45784.c: Move ...
6677 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
6678 * testsuite/libgomp.c/pr64824.c: Move ...
6679 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
6680 * testsuite/libgomp.c/pr64868.c: Move ...
6681 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
6682 * testsuite/libgomp.c/pr66199-1.c: Move ...
6683 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
6684 * testsuite/libgomp.c/pr66199-2.c: Move ...
6685 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
6686 * testsuite/libgomp.c/pr66199-3.c: Move ...
6687 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
6688 * testsuite/libgomp.c/pr66199-4.c: Move ...
6689 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
6690 * testsuite/libgomp.c/pr66199-5.c: Move ...
6691 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
6692 * testsuite/libgomp.c/pr66199-6.c: Move ...
6693 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
6694 * testsuite/libgomp.c/pr66199-7.c: Move ...
6695 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
6696 * testsuite/libgomp.c/pr66199-8.c: Move ...
6697 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
6698 * testsuite/libgomp.c/pr66199-9.c: Move ...
6699 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
6700 * testsuite/libgomp.c/pr69389.c: Move ...
6701 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
6702 * testsuite/libgomp.c/simd-14.c: Move ...
6703 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
6704 * testsuite/libgomp.c/simd-15.c: Move ...
6705 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
6706 * testsuite/libgomp.c/simd-16.c: Move ...
6707 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
6708 * testsuite/libgomp.c/simd-17.c: Move ...
6709 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
6710 * testsuite/libgomp.c/target-1.c: Move ...
6711 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
6712 * testsuite/libgomp.c/target-10.c: Move ...
6713 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
6714 * testsuite/libgomp.c/target-13.c: Move ...
6715 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
6716 * testsuite/libgomp.c/target-2.c: Move ...
6717 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
6718 * testsuite/libgomp.c/taskgroup-1.c: Move ...
6719 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
6720 * testsuite/libgomp.c/taskloop-1.c: Move ...
6721 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
6722 * testsuite/libgomp.c/taskloop-2.c: Move ...
6723 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
6724 * testsuite/libgomp.c/taskloop-3.c: Move ...
6725 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
6726 * testsuite/libgomp.c/taskloop-4.c: Move ...
6727 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
6728 * testsuite/libgomp.c/udr-1.c: Move ...
6729 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
6730 * testsuite/libgomp.c/for-1.c: Move ...
6731 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
6732 * testsuite/libgomp.c/for-1.h: Move ...
6733 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
6734 * testsuite/libgomp.c/for-2.c: Move ...
6735 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
6736 * testsuite/libgomp.c/for-2.h: Move ...
6737 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
6738 * testsuite/libgomp.c/for-3.c: Move ...
6739 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
6740 * testsuite/libgomp.c/for-4.c: Move ...
6741 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
6742 * testsuite/libgomp.c/for-5.c: Move ...
6743 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
6744 * testsuite/libgomp.c/for-6.c: Move ...
6745 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
6747 2018-05-02 Tom de Vries <tom@codesourcery.com>
6750 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
6751 __builtin_goacc_parlevel_{id,size}.
6752 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
6753 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
6754 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
6755 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
6756 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
6757 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
6758 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
6759 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
6760 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
6761 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
6762 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
6763 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
6764 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
6765 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
6766 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
6767 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
6768 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
6769 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
6770 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
6771 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
6772 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
6773 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
6774 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
6776 2018-05-02 Tom de Vries <tom@codesourcery.com>
6779 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
6781 2018-05-02 Tom de Vries <tom@codesourcery.com>
6784 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
6786 2018-04-29 Julian Brown <julian@codesourcery.com>
6787 Tom de Vries <tom@codesourcery.com>
6790 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
6791 arbitrary order for iterations of atomic subtract check.
6793 2018-04-28 Tom de Vries <tom@codesourcery.com>
6796 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
6797 atomic capture results obtained in parallel loop to an array, instead of
6800 2018-04-26 Tom de Vries <tom@codesourcery.com>
6803 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
6804 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
6805 (process_GOMP_NVPTX_JIT): New function.
6806 (link_ptx): Use process_GOMP_NVPTX_JIT.
6808 2018-04-26 Richard Biener <rguenther@suse.de>
6809 Tom de Vries <tom@codesourcery.com>
6812 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
6814 2018-04-26 Tom de Vries <tom@codesourcery.com>
6817 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
6818 recursion depth from 25 to 23.
6819 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
6821 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
6823 * configure: Regenerated.
6825 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
6826 Tom de Vries <tom@codesourcery.com>
6829 * testsuite/libgomp.oacc-c++/ref-1.C: New.
6831 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
6834 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
6835 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6836 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6837 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
6838 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
6839 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
6842 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
6844 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
6846 2018-04-19 Jakub Jelinek <jakub@redhat.com>
6848 * configure: Regenerated.
6850 2018-04-18 David Malcolm <dmalcolm@redhat.com>
6853 * configure: Regenerate.
6855 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
6856 Tom de Vries <tom@codesourcery.com>
6859 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
6860 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
6862 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
6866 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
6867 test from gfortran.dg to here.
6869 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
6871 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
6872 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
6874 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
6877 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
6878 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
6880 2018-04-05 Tom de Vries <tom@codesourcery.com>
6883 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
6885 2018-03-26 Tom de Vries <tom@codesourcery.com>
6887 PR tree-optimization/85063
6888 * testsuite/libgomp.c/switch-conversion-2.c: New test.
6889 * testsuite/libgomp.c/switch-conversion.c: New test.
6890 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
6891 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
6893 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
6896 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
6897 call abort by STOP n.
6898 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
6899 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
6900 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
6901 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
6902 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
6903 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
6904 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
6905 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
6906 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
6907 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
6908 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
6909 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
6910 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
6911 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
6912 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
6913 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
6914 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
6915 * testsuite/libgomp.fortran/associate1.f90: Likewise.
6916 * testsuite/libgomp.fortran/associate2.f90: Likewise.
6917 * testsuite/libgomp.fortran/associate3.f90: Likewise.
6918 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
6919 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
6920 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
6921 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
6922 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
6923 * testsuite/libgomp.fortran/character1.f90: Likewise.
6924 * testsuite/libgomp.fortran/character2.f90: Likewise.
6925 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
6926 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
6927 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
6928 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
6929 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
6930 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
6931 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
6932 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
6933 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
6934 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
6935 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
6936 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
6937 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
6938 * testsuite/libgomp.fortran/do1.f90: Likewise.
6939 * testsuite/libgomp.fortran/do2.f90: Likewise.
6940 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
6941 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
6942 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
6943 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
6944 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
6945 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
6946 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
6947 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
6948 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
6949 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
6950 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
6951 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
6952 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
6953 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
6954 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
6955 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
6956 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
6957 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
6958 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
6959 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
6960 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
6961 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
6962 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
6963 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
6964 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
6965 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
6966 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
6967 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
6968 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
6969 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
6970 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
6971 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
6972 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
6973 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
6974 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
6975 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
6976 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
6977 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
6978 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
6979 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
6980 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
6981 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
6982 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
6983 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
6984 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
6985 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
6986 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
6987 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
6988 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
6989 * testsuite/libgomp.fortran/lib1.f90: Likewise.
6990 * testsuite/libgomp.fortran/lib2.f: Likewise.
6991 * testsuite/libgomp.fortran/lib3.f: Likewise.
6992 * testsuite/libgomp.fortran/lib4.f90: Likewise.
6993 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
6994 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
6995 * testsuite/libgomp.fortran/nested1.f90: Likewise.
6996 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
6997 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
6998 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
6999 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
7000 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
7001 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
7002 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
7003 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
7004 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
7005 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
7006 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
7007 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
7008 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
7009 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
7010 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
7011 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
7012 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
7013 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
7014 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
7015 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7016 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
7017 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
7018 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
7019 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
7020 * testsuite/libgomp.fortran/pr25162.f: Likewise.
7021 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
7022 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
7023 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
7024 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
7025 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
7026 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
7027 * testsuite/libgomp.fortran/pr28390.f: Likewise.
7028 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
7029 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
7030 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
7031 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
7032 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
7033 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
7034 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
7035 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
7036 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
7037 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
7038 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
7039 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
7040 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
7041 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
7042 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
7043 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
7044 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
7045 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
7046 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
7047 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
7048 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
7049 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
7050 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
7051 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
7052 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
7053 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
7054 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
7055 * testsuite/libgomp.fortran/reference1.f90: Likewise.
7056 * testsuite/libgomp.fortran/reference2.f90: Likewise.
7057 * testsuite/libgomp.fortran/retval1.f90: Likewise.
7058 * testsuite/libgomp.fortran/retval2.f90: Likewise.
7059 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
7060 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
7061 * testsuite/libgomp.fortran/simd1.f90: Likewise.
7062 * testsuite/libgomp.fortran/simd2.f90: Likewise.
7063 * testsuite/libgomp.fortran/simd3.f90: Likewise.
7064 * testsuite/libgomp.fortran/simd4.f90: Likewise.
7065 * testsuite/libgomp.fortran/simd5.f90: Likewise.
7066 * testsuite/libgomp.fortran/simd6.f90: Likewise.
7067 * testsuite/libgomp.fortran/simd7.f90: Likewise.
7068 * testsuite/libgomp.fortran/stack.f90: Likewise.
7069 * testsuite/libgomp.fortran/strassen.f90: Likewise.
7070 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
7071 * testsuite/libgomp.fortran/tabs2.f: Likewise.
7072 * testsuite/libgomp.fortran/target1.f90: Likewise.
7073 * testsuite/libgomp.fortran/target2.f90: Likewise.
7074 * testsuite/libgomp.fortran/target3.f90: Likewise.
7075 * testsuite/libgomp.fortran/target4.f90: Likewise.
7076 * testsuite/libgomp.fortran/target5.f90: Likewise.
7077 * testsuite/libgomp.fortran/target6.f90: Likewise.
7078 * testsuite/libgomp.fortran/target7.f90: Likewise.
7079 * testsuite/libgomp.fortran/target8.f90: Likewise.
7080 * testsuite/libgomp.fortran/task1.f90: Likewise.
7081 * testsuite/libgomp.fortran/task2.f90: Likewise.
7082 * testsuite/libgomp.fortran/task3.f90: Likewise.
7083 * testsuite/libgomp.fortran/task4.f90: Likewise.
7084 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
7085 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
7086 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
7087 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
7088 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
7089 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
7090 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
7091 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
7092 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
7093 * testsuite/libgomp.fortran/udr1.f90: Likewise.
7094 * testsuite/libgomp.fortran/udr10.f90: Likewise.
7095 * testsuite/libgomp.fortran/udr11.f90: Likewise.
7096 * testsuite/libgomp.fortran/udr12.f90: Likewise.
7097 * testsuite/libgomp.fortran/udr13.f90: Likewise.
7098 * testsuite/libgomp.fortran/udr14.f90: Likewise.
7099 * testsuite/libgomp.fortran/udr15.f90: Likewise.
7100 * testsuite/libgomp.fortran/udr2.f90: Likewise.
7101 * testsuite/libgomp.fortran/udr3.f90: Likewise.
7102 * testsuite/libgomp.fortran/udr4.f90: Likewise.
7103 * testsuite/libgomp.fortran/udr5.f90: Likewise.
7104 * testsuite/libgomp.fortran/udr6.f90: Likewise.
7105 * testsuite/libgomp.fortran/udr7.f90: Likewise.
7106 * testsuite/libgomp.fortran/udr8.f90: Likewise.
7107 * testsuite/libgomp.fortran/udr9.f90: Likewise.
7108 * testsuite/libgomp.fortran/vla1.f90: Likewise.
7109 * testsuite/libgomp.fortran/vla2.f90: Likewise.
7110 * testsuite/libgomp.fortran/vla3.f90: Likewise.
7111 * testsuite/libgomp.fortran/vla4.f90: Likewise.
7112 * testsuite/libgomp.fortran/vla5.f90: Likewise.
7113 * testsuite/libgomp.fortran/vla6.f90: Likewise.
7114 * testsuite/libgomp.fortran/vla7.f90: Likewise.
7115 * testsuite/libgomp.fortran/vla8.f90: Likewise.
7116 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
7117 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
7118 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7119 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
7120 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7121 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7122 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7123 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
7124 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
7125 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
7126 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
7127 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
7128 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
7129 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
7130 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
7131 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
7132 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7133 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
7134 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
7135 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
7136 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
7137 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
7138 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
7139 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
7140 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
7141 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
7142 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
7143 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
7144 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7145 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
7146 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
7147 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7148 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7149 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7150 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7151 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7152 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
7153 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
7154 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
7155 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
7156 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
7157 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
7158 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
7159 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
7160 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
7161 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
7162 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
7163 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
7164 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
7165 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
7166 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
7167 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
7168 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
7169 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7170 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
7171 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
7172 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
7173 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
7174 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
7175 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
7176 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
7177 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
7178 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
7179 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
7180 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
7181 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7182 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
7183 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7184 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
7185 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
7186 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
7187 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
7188 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
7189 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
7190 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
7191 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
7192 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
7193 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7194 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7195 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7196 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
7197 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7198 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
7199 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
7200 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
7201 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
7202 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
7203 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
7204 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
7205 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
7206 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
7207 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
7208 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
7209 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
7211 2018-03-20 Richard Biener <rguenther@suse.de>
7213 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
7214 parallelizable loop.
7216 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
7219 * configure: Regenerate.
7221 2018-02-16 Jakub Jelinek <jakub@redhat.com>
7224 * libgomp.fortran/pr84418-1.f90: New test.
7225 * libgomp.fortran/pr84418-2.f90: New test.
7227 2018-02-14 Jakub Jelinek <jakub@redhat.com>
7230 * testsuite/libgomp.fortran/threadprivate4.f90: Add
7231 -std=f2003 -fall-intrinsics into dg-additional-options.
7233 2018-02-08 Martin Jambor <mjambor@suse.cz>
7235 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
7238 2018-02-08 Martin Jambor <mjambor@suse.cz>
7240 * testsuite/libgomp.hsa.c/staticvar.c: New test.
7242 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7244 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
7245 [__cplusplus]: Declare extern "C".
7247 2018-02-07 Tom de Vries <tom@codesourcery.com>
7250 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
7252 2018-01-29 Christoph Spiel <cspiel@freenet.de>
7253 Jakub Jelinek <jakub@redhat.com>
7256 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
7257 instead of omp_lock_t.
7259 2018-01-25 Tom de Vries <tom@codesourcery.com>
7262 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
7264 2018-01-24 Tom de Vries <tom@codesourcery.com>
7267 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
7269 2018-01-24 Tom de Vries <tom@codesourcery.com>
7272 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
7274 2018-01-19 Tom de Vries <tom@codesourcery.com>
7275 Cesar Philippidis <cesar@codesourcery.com>
7278 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
7279 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
7281 2018-01-03 Jakub Jelinek <jakub@redhat.com>
7283 Update copyright years.
7285 * libgomp.texi: Bump @copying's copyright year.
7287 2017-12-30 Tom de Vries <tom@codesourcery.com>
7290 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
7291 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
7293 2017-12-27 Tom de Vries <tom@codesourcery.com>
7296 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
7297 (test_nonstatic): Fix return type to workaround PR83046.
7299 2017-12-05 Jakub Jelinek <jakub@redhat.com>
7302 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
7303 j suffix instead of i.
7304 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
7307 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
7309 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
7310 call to acc_wait (1).
7312 2017-11-24 Jakub Jelinek <jakub@redhat.com>
7315 * testsuite/libgomp.fortran/pr81304.f90: New test.
7317 2017-11-23 Jakub Jelinek <jakub@redhat.com>
7320 * libgomp.fortran/pr81841.f90: New test.
7322 2017-11-22 Jakub Jelinek <jakub@redhat.com>
7325 * target.c (gomp_target_init): Compute lengths just once and
7326 use them in both malloc size and subsequent copying.
7328 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
7330 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
7331 * acinclude.m4: Add cet.m4.
7332 * configure: Regenerate.
7333 * Makefile.in: Likewise.
7334 * testsuite/Makefile.in: Likewise.
7336 2017-11-15 Tom de Vries <tom@codesourcery.com>
7338 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
7339 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
7340 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
7341 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
7342 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
7343 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
7345 2017-11-14 Tom de Vries <tom@codesourcery.com>
7347 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
7350 2017-11-07 Jakub Jelinek <jakub@redhat.com>
7353 * testsuite/libgomp.c++/pr82835.C: New test.
7355 2017-11-06 Martin Liska <mliska@suse.cz>
7357 * testsuite/libgomp.c++/loop-2.C: Return a value
7358 for functions with non-void return type, or change type to void,
7359 or add -Wno-return-type for test.
7360 * testsuite/libgomp.c++/loop-4.C: Likewise.
7361 * testsuite/libgomp.c++/parallel-1.C: Likewise.
7362 * testsuite/libgomp.c++/shared-1.C: Likewise.
7363 * testsuite/libgomp.c++/single-1.C: Likewise.
7364 * testsuite/libgomp.c++/single-2.C: Likewise.
7366 2017-10-31 Tom de Vries <tom@codesourcery.com>
7368 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
7369 "do {} while (false)".
7370 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
7371 after HSA_DEBUG call.
7373 2017-10-28 Jakub Jelinek <jakub@redhat.com>
7375 * target.c (struct gomp_coalesce_buf): New type.
7376 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
7377 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
7378 (gomp_copy_host2dev): Add CBUF argument, if copying into
7379 the cached ranges, memcpy into buffer instead of copying
7381 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
7382 Add CBUF argument, pass it through to other calls.
7383 (gomp_map_vars): Aggregate copies from host to device if small enough
7384 and with small enough gaps in between into memcpy into a buffer and
7385 fewer host to device copies from the buffer.
7386 (gomp_update): Adjust gomp_copy_host2dev caller.
7388 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
7390 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
7392 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7393 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7394 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7395 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7397 2017-10-16 Tom de Vries <tom@codesourcery.com>
7399 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
7400 openacc_nvidia_accel_selected.
7401 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
7402 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
7403 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
7404 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
7405 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
7406 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
7407 openacc_nvidia_accel_selected. Skip for shared memory device.
7408 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
7409 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
7411 2017-10-09 Martin Jambor <mjambor@suse.cz>
7414 * testsuite/libgomp.hsa.c/pr82416.c: New test.
7416 2017-10-07 Tom de Vries <tom@codesourcery.com>
7418 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
7419 Remove acc_device_nvidia references.
7420 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
7423 2017-10-05 Tom de Vries <tom@codesourcery.com>
7425 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
7426 vector_length(32) clause from acc parallel directive.
7427 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
7429 2017-10-04 Tom de Vries <tom@codesourcery.com>
7431 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
7432 (main): Reduce sum of arr elements. Assert that hres is exactly
7433 representable in 32-bit floating point.
7434 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
7435 (main): Reduce sum of arr elements. Assert that hres and hmres are
7436 exactly representable in 32-bit floating point.
7437 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
7439 2017-09-28 Tom de Vries <tom@codesourcery.com>
7441 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
7443 * testsuite/libgomp.c++/pr69393.C: Same.
7444 * testsuite/libgomp.c++/taskloop-1.C: Same.
7445 * testsuite/libgomp.c++/taskloop-3.C: Same.
7446 * testsuite/libgomp.c++/taskloop-4.C: Same.
7447 * testsuite/libgomp.c/for-4.c: Same.
7448 * testsuite/libgomp.c/pr66199-3.c: Same.
7449 * testsuite/libgomp.c/pr66199-4.c: Same.
7450 * testsuite/libgomp.c/pr66199-6.c: Same.
7451 * testsuite/libgomp.c/taskloop-1.c: Same.
7452 * testsuite/libgomp.c/taskloop-3.c: Same.
7453 * testsuite/libgomp.c/taskloop-4.c: Same.
7454 * testsuite/libgomp.fortran/aligned1.f03: Same.
7455 * testsuite/libgomp.fortran/condinc1.f: Same.
7456 * testsuite/libgomp.fortran/condinc3.f90: Same.
7457 * testsuite/libgomp.fortran/crayptr1.f90: Same.
7458 * testsuite/libgomp.fortran/crayptr2.f90: Same.
7459 * testsuite/libgomp.fortran/crayptr3.f90: Same.
7460 * testsuite/libgomp.fortran/omp_cond1.f: Same.
7461 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
7462 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
7463 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
7464 * testsuite/libgomp.fortran/recursion1.f90: Same.
7465 * testsuite/libgomp.fortran/target2.f90: Same.
7466 * testsuite/libgomp.fortran/target5.f90: Same.
7467 * testsuite/libgomp.fortran/task3.f90: Same.
7469 2017-09-28 Tom de Vries <tom@codesourcery.com>
7471 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
7472 vector_length(32) clause from acc parallel directive.
7473 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
7475 2017-09-27 Tom de Vries <tom@codesourcery.com>
7477 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
7478 Remove acc_device_nvidia references.
7480 2017-09-16 Tom de Vries <tom@codesourcery.com>
7483 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
7485 2017-09-14 Tom de Vries <tom@codesourcery.com>
7487 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
7488 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
7489 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
7490 * testsuite/libgomp.c/c.exp: Include test-cases from
7491 libgomp.c-c++-common.
7492 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
7495 2017-09-14 Jakub Jelinek <jakub@redhat.com>
7498 * testsuite/libgomp.c++/pr81314.C: New test.
7500 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
7502 * libgomp.texi (Top): www.openacc.org now uses https.
7503 (Enabling OpenACC): Ditto.
7504 (acc_get_num_devices): Ditto.
7505 (acc_set_device_type): Ditto.
7506 (acc_get_device_type): Ditto.
7507 (acc_set_device_num): Ditto.
7508 (acc_get_device_num): Ditto.
7509 (acc_async_test): Ditto.
7510 (acc_async_test_all): Ditto.
7512 (acc_wait_all): Ditto.
7513 (acc_wait_all_async): Ditto.
7514 (acc_wait_async): Ditto.
7516 (acc_shutdown): Ditto.
7517 (acc_on_device): Ditto.
7518 (acc_malloc): Ditto.
7520 (acc_copyin): Ditto.
7521 (acc_present_or_copyin): Ditto.
7522 (acc_create): Ditto.
7523 (acc_present_or_create): Ditto.
7524 (acc_copyout): Ditto.
7525 (acc_delete): Ditto.
7526 (acc_update_device): Ditto.
7527 (acc_update_self): Ditto.
7528 (acc_map_data): Ditto.
7529 (acc_unmap_data): Ditto.
7530 (acc_deviceptr): Ditto.
7531 (acc_hostptr): Ditto.
7532 (acc_is_present): Ditto.
7533 (acc_memcpy_to_device): Ditto.
7534 (acc_memcpy_from_device): Ditto.
7535 (acc_get_current_cuda_device): Ditto.
7536 (acc_get_current_cuda_context): Ditto.
7537 (acc_get_cuda_stream): Ditto.
7538 (acc_set_cuda_stream): Ditto.
7539 (ACC_DEVICE_TYPE): Ditto.
7540 (ACC_DEVICE_NUM): Ditto.
7541 (OpenACC Library Interoperability): Ditto.
7543 2017-08-09 Jakub Jelinek <jakub@redhat.com>
7546 * testsuite/libgomp.c/pr81687-1.c: New test.
7547 * testsuite/libgomp.c/pr81687-2.c: New test.
7549 2017-08-07 Jakub Jelinek <jakub@redhat.com>
7552 * testsuite/libgomp.c/pr69389.c: New test.
7553 * testsuite/libgomp.c++/pr69389.C: New test.
7555 2017-08-07 Tom de Vries <tom@codesourcery.com>
7558 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
7559 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
7561 2017-07-27 Jakub Jelinek <jakub@redhat.com>
7564 * testsuite/libgomp.c/pr45784.c: New test.
7565 * testsuite/libgomp.c++/pr45784.C: New test.
7567 2017-07-19 Tom de Vries <tom@codesourcery.com>
7569 * testsuite/libgomp.oacc-c/vec.c: New test.
7571 2017-07-03 Tom de Vries <tom@codesourcery.com>
7573 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
7575 2017-06-27 Tom de Vries <tom@codesourcery.com>
7577 * plugin/plugin-nvptx.c (notify_var): New function.
7578 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
7580 2017-06-27 Tom de Vries <tom@codesourcery.com>
7582 * env.c (parse_unsigned_long_1): Factor out of ...
7583 (parse_unsigned_long): ... here.
7584 (parse_int_1): Factor out of ...
7585 (parse_int): ... here.
7586 (parse_int_secure): New function.
7587 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
7588 * secure_getenv.h: Factor out of ...
7589 * plugin/plugin-hsa.c: ... here.
7590 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
7592 2017-06-21 Jakub Jelinek <jakub@redhat.com>
7595 * testsuite/libgomp.c++/pr81130.C: New test.
7597 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7599 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
7601 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
7602 dg-xfail-run-if default args.
7604 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
7606 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
7607 * testsuite/libgomp.c/pr39591-3.c: Likewise.
7609 2017-05-30 Jakub Jelinek <jakub@redhat.com>
7612 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
7613 (gomp_affinity_init_level): Use it. Always analyze the core and thread
7614 sibling lists, depending on level just pick up what CPUs to put
7615 together into a place vs. whether add multiple ordered places.
7617 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
7619 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
7620 * libgomp.map (OACC_2.0.1): Add these.
7621 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
7622 for "acc_wait", and "acc_wait_all", respectively.
7623 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
7624 for "acc_wait", and "acc_wait_all", respectively.
7625 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
7626 * libgomp.texi (acc_wait, acc_wait_all): Update.
7627 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
7628 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
7629 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7631 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
7632 acc_present_or_copyin and acc_present_or_create procedures,
7634 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
7635 generally different variants of OpenACC Runtime Library functions.
7636 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7638 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
7639 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7641 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
7642 of preprocessor definitions.
7643 * libgomp.h (strong_alias): Guard by "#ifdef
7644 HAVE_ATTRIBUTE_ALIAS".
7645 * oacc-mem.c: Provide "acc_pcreate" as alias for
7646 "acc_present_or_create", and "acc_pcopyin" as alias for
7647 "acc_present_or_copyin".
7648 * libgomp.map: New version "OACC_2.0.1".
7649 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
7650 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
7652 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
7655 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
7656 when disabling nvptx offloading.
7658 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
7660 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
7661 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
7662 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
7664 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
7665 * testsuite/lib/libgomp.exp
7666 (check_effective_target_openacc_nvidia_accel_configured): New
7668 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
7669 (check_effective_target_c++): New procs.
7670 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
7671 (check_effective_target_c++): Likewise.
7673 2017-05-22 Jakub Jelinek <jakub@redhat.com>
7676 * testsuite/libgomp.c/pr80809-2.c: New test.
7677 * testsuite/libgomp.c/pr80809-3.c: New test.
7680 * testsuite/libgomp.c/pr80809-1.c: New test.
7683 * testsuite/libgomp.c/pr80853.c: New test.
7685 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
7687 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
7688 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
7689 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7690 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7691 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
7693 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
7694 Debug output for failure.
7696 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7698 * testsuite/lib/libgomp.exp: Load scanlang.exp.
7700 2017-04-27 Jakub Jelinek <jakub@redhat.com>
7703 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
7704 bootstrap compare failures.
7706 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
7708 * testsuite/libgomp.c/target-36.c: New testcase.
7710 2017-04-13 Jakub Jelinek <jakub@redhat.com>
7712 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
7715 2017-04-11 Jakub Jelinek <jakub@redhat.com>
7718 * testsuite/libgomp.c/pr80394.c: New test.
7720 2017-04-04 Jakub Jelinek <jakub@redhat.com>
7723 * config/posix/thread-stacksize.h: New file.
7724 * config/darwin/thread-stacksize.h: New file.
7725 * config/nvptx/thread-stacksize.h: New file.
7726 * env.c: Include thread-stacksize.h.
7727 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
7728 instead of 0. Call pthread_attr_setstacksize even if
7729 GOMP_DEFAULT_STACKSIZE is non-zero.
7731 2017-03-30 Jakub Jelinek <jakub@redhat.com>
7733 * env.c (initialize_env): Initialize stacksize to 0.
7735 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
7738 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
7740 2017-03-08 Jakub Jelinek <jakub@redhat.com>
7743 * testsuite/libgomp.c/pr79940.c: New test.
7745 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7747 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
7749 Add __float128 options.
7751 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
7753 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
7754 hppa*-*-* dg-skip-if directive.
7756 2017-02-09 Jakub Jelinek <jakub@redhat.com>
7758 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
7759 dg-skip-if directive into a comment.
7761 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
7762 Chung-Lin Tang <cltang@codesourcery.com>
7764 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
7765 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
7766 add additional case.
7767 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
7768 "openacc_nvidia_accel_selected".
7769 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
7770 Add num_workers(8) clause.
7772 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
7774 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
7776 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
7777 include complex.h on hppa*-*-hpux*.
7778 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
7780 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
7782 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
7784 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
7785 GOMP_OFFLOAD_openacc_exec. Adjust all users.
7786 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
7787 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
7788 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
7789 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
7790 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
7791 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
7792 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
7793 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
7795 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
7797 * libgomp-plugin.h: #include <stdbool.h>.
7798 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
7799 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
7800 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
7801 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
7802 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
7803 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
7804 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
7805 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
7806 (GOMP_OFFLOAD_openacc_register_async_cleanup)
7807 (GOMP_OFFLOAD_openacc_async_test)
7808 (GOMP_OFFLOAD_openacc_async_test_all)
7809 (GOMP_OFFLOAD_openacc_async_wait)
7810 (GOMP_OFFLOAD_openacc_async_wait_async)
7811 (GOMP_OFFLOAD_openacc_async_wait_all)
7812 (GOMP_OFFLOAD_openacc_async_wait_all_async)
7813 (GOMP_OFFLOAD_openacc_async_set_async)
7814 (GOMP_OFFLOAD_openacc_create_thread_data)
7815 (GOMP_OFFLOAD_openacc_destroy_thread_data)
7816 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
7817 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
7818 (GOMP_OFFLOAD_openacc_get_cuda_stream)
7819 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
7820 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
7822 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
7823 (GOMP_OFFLOAD_unload_image): Fix argument types.
7825 2017-01-26 Jakub Jelinek <jakub@redhat.com>
7827 * testsuite/lib/libgomp.exp
7828 (check_effective_target_hsa_offloading_selected_nocache): Fix up
7829 check_compile invocation. Fix up removal of executable. Drop
7830 bogus "2>&1" argument.
7832 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
7835 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
7836 Martin Jambor <mjambor@suse.cz>
7838 * plugin/hsa.h: Moved to top level include.
7839 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
7841 2017-01-21 Jakub Jelinek <jakub@redhat.com>
7844 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
7845 of cat to get version from BASE-VER file.
7846 * testsuite/Makefile.in: Regenerated.
7848 2017-01-19 Jakub Jelinek <jakub@redhat.com>
7850 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
7853 2017-01-17 Jakub Jelinek <jakub@redhat.com>
7855 * plugin/hsa.h: Add GCC runtime library exception.
7856 * plugin/hsa_ext_finalize.h: Likewise.
7858 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
7859 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
7860 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
7861 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
7862 plugin/include/cuda as include dir and -ldl instead of -lcuda as
7863 library to link ptx plugin against.
7864 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
7865 (CUDA_CALLS): Define.
7866 (cuda_lib, cuda_lib_inited): New variables.
7867 (init_cuda_lib): New function.
7868 (CUDA_CALL_PREFIX): Define.
7869 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
7870 (CUDA_CALL): Use FN instead of (FN).
7871 (CUDA_CALL_NOCHECK): Define.
7872 (cuda_error, fini_streams_for_device, select_stream_for_async,
7873 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
7874 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
7875 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
7876 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
7878 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
7880 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
7881 Use CUDA_CALL_NOCHECK.
7882 * plugin/cuda/cuda.h: New file.
7883 * config.h.in: Regenerated.
7884 * configure: Regenerated.
7887 * configure.ac: Add GCC_BASE_VER.
7888 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
7889 get version from BASE-VER file.
7890 * testsuite/Makefile.in: Regenerated.
7891 * configure: Regenerated.
7892 * Makefile.in: Regenerated.
7894 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7897 * Makefile.am: Make fincludedir multilib-aware.
7898 * Makefile.in: Regenerate.
7900 2017-01-01 Jakub Jelinek <jakub@redhat.com>
7902 Update copyright years.
7904 * libgomp.texi: Bump @copying's copyright year.
7906 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
7908 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
7909 pthread_spinlock_t instead of gomp_mutex_t lock.
7910 (gomp_get_thread_pool): Likewise.
7911 (gomp_release_thread_pool): Likewise.
7912 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
7915 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
7917 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
7918 thread pool in case nthreads == 1.
7920 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
7922 * config/nvptx/env.c: Delete.
7923 * icv.c: Move definitions of ICV variables back ...
7924 * env.c: ...here. Do not compile environment-related functionality if
7925 LIBGOMP_OFFLOADED_ONLY is set.
7927 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
7929 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
7930 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
7931 * configure: Regenerate.
7932 * config.h.in: Likewise.
7934 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
7936 * Makefile.in: Regenerate with automake-1.11.6.
7937 * aclocal.m4: Likewise.
7938 * configure: Likewise.
7939 * testsuite/Makefile.in: Likewise.
7941 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
7943 * config/nvptx/critical.c: Delete to use generic implementation.
7945 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
7947 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
7948 ../../affinity.c as fallback.
7949 * config/nvptx/affinity.c: Delete to use fallback implementation.
7951 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
7952 Jakub Jelinek <jakub@redhat.com>
7953 Dmitry Melnik <dm@ispras.ru>
7955 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
7956 * Makefile.in. Regenerate.
7957 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
7958 (LIBGOMP_USE_PTHREADS): ...here; new define.
7959 * configure: Regenerate.
7960 * config.h.in: Likewise.
7961 * config/posix/affinity.c: Move to...
7962 * affinity.c: ...here (new file). Guard use of Pthreads-specific
7963 interface by LIBGOMP_USE_PTHREADS.
7964 * critical.c: Split out GOMP_atomic_{start,end} into...
7965 * atomic.c: ...here (new file).
7966 * env.c: Split out ICV definitions into...
7967 * icv.c: ...here (new file) and...
7968 * icv-device.c: ...here. New file.
7969 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
7970 (gomp_destroy_lock_30): Ditto.
7971 (gomp_set_lock_30): Ditto.
7972 (gomp_unset_lock_30): Ditto.
7973 (gomp_test_lock_30): Ditto.
7974 (gomp_init_nest_lock_30): Ditto.
7975 (gomp_destroy_nest_lock_30): Ditto.
7976 (gomp_set_nest_lock_30): Ditto.
7977 (gomp_unset_nest_lock_30): Ditto.
7978 (gomp_test_nest_lock_30): Ditto.
7980 * config/nvptx/lock.c: New.
7981 * config/nvptx/bar.c: New.
7982 * config/nvptx/bar.h: New.
7983 * config/nvptx/doacross.h: New.
7984 * config/nvptx/error.c: New.
7985 * config/nvptx/icv-device.c: New.
7986 * config/nvptx/mutex.h: New.
7987 * config/nvptx/pool.h: New.
7988 * config/nvptx/proc.c: New.
7989 * config/nvptx/ptrlock.h: New.
7990 * config/nvptx/sem.h: New.
7991 * config/nvptx/simple-bar.h: New.
7992 * config/nvptx/target.c: New.
7993 * config/nvptx/task.c: New.
7994 * config/nvptx/team.c: New.
7995 * config/nvptx/time.c: New.
7996 * config/posix/simple-bar.h: New.
7997 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
7998 (gomp_num_teams_var): Declare.
7999 (struct gomp_thread_pool): Change threads_dock member to
8000 gomp_simple_barrier_t.
8001 [__nvptx__] (gomp_thread): New implementation.
8002 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
8003 (gomp_thread_destructor): Ditto.
8004 (gomp_init_thread_affinity): Ditto.
8005 * team.c: Guard uses of Pthreads-specific interfaces by
8006 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
8007 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
8008 * config/nvptx/alloc.c: Delete.
8009 * config/nvptx/barrier.c: Ditto.
8010 * config/nvptx/fortran.c: Ditto.
8011 * config/nvptx/iter.c: Ditto.
8012 * config/nvptx/iter_ull.c: Ditto.
8013 * config/nvptx/loop.c: Ditto.
8014 * config/nvptx/loop_ull.c: Ditto.
8015 * config/nvptx/ordered.c: Ditto.
8016 * config/nvptx/parallel.c: Ditto.
8017 * config/nvptx/priority_queue.c: Ditto.
8018 * config/nvptx/sections.c: Ditto.
8019 * config/nvptx/single.c: Ditto.
8020 * config/nvptx/splay-tree.c: Ditto.
8021 * config/nvptx/work.c: Ditto.
8022 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
8023 -foffload=-lgfortran in addition to -lgfortran.
8024 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
8025 * plugin/plugin-nvptx.c: Include <limits.h>.
8026 (struct targ_fn_descriptor): Add new fields.
8027 (struct ptx_device): Ditto. Set them...
8028 (nvptx_open_device): ...here.
8029 (nvptx_adjust_launch_bounds): New.
8030 (nvptx_host2dev): Allow NULL 'nvthd'.
8031 (nvptx_dev2host): Ditto.
8032 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
8033 (link_ptx): Adjust log sizes.
8034 (nvptx_host2dev): Allow NULL 'nvthd'.
8035 (nvptx_dev2host): Ditto.
8036 (nvptx_set_clocktick): New. Use it...
8037 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
8039 (GOMP_OFFLOAD_dev2dev): New.
8040 (nvptx_adjust_launch_bounds): New.
8041 (nvptx_stacks_size): New.
8042 (nvptx_stacks_alloc): New.
8043 (nvptx_stacks_free): New.
8044 (GOMP_OFFLOAD_run): New.
8045 (GOMP_OFFLOAD_async_run): New (stub).
8047 2016-11-23 Martin Jambor <mjambor@suse.cz>
8049 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
8050 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
8051 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8053 2016-11-23 Martin Liska <mliska@suse.cz>
8054 Martin Jambor <mjambor@suse.cz>
8056 * plugin/hsa.h: New file.
8057 * plugin/hsa_ext_finalize.h: New file.
8058 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
8059 header file unistd.h, and functions secure_getenv, __secure_getenv,
8060 getuid, geteuid, getgid and getegid.
8061 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
8063 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
8064 Handle various cases of secure_getenv presence, add an implementation
8065 when we can test effective UID and GID.
8066 (struct hsa_runtime_fn_info): New structure.
8067 (hsa_runtime_fn_info hsa_fns): New variable.
8068 (hsa_runtime_lib): Likewise.
8069 (support_cpu_devices): Likewise.
8070 (init_enviroment_variables): Load newly introduced ENV
8072 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
8073 (hsa_fatal): Likewise.
8074 (DLSYM_FN): New macro.
8075 (init_hsa_runtime_functions): New function.
8076 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
8077 structure. Depending on environment, also allow CPU devices.
8078 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
8079 (get_kernarg_memory_region): Likewise.
8080 (GOMP_OFFLOAD_init_device): Likewise.
8081 (destroy_hsa_program): Likewise.
8082 (init_basic_kernel_info): New function.
8083 (GOMP_OFFLOAD_load_image): Use it.
8084 (create_and_finalize_hsa_program): Call hsa run-time functions via
8086 (create_single_kernel_dispatch): Likewise.
8087 (release_kernel_dispatch): Likewise.
8088 (init_single_kernel): Likewise.
8089 (parse_target_attributes): Allow up multiple HSA grid dimensions.
8090 (get_group_size): New function.
8091 (run_kernel): Likewise.
8092 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
8093 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
8095 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
8096 * testsuite/libgomp-test-support.exp.in: Likewise.
8097 * Makefile.in: Regenerated.
8098 * aclocal.m4: Likewise.
8099 * config.h.in: Likewise.
8100 * configure: Likewise.
8101 * testsuite/Makefile.in: Likewise.
8103 2016-11-15 Martin Jambor <mjambor@suse.cz>
8104 Alexander Monakov <amonakov@ispras.ru>
8106 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
8107 mapping clauses to target constructs.
8108 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
8110 2016-11-15 Matthias Klose <doko@ubuntu.com>
8112 * configure: Regenerate.
8114 2016-11-10 Jakub Jelinek <jakub@redhat.com>
8116 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
8117 * omp_lib.h.in (openmp_version): Likewise.
8118 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
8120 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8122 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
8123 (fib_wrapper): Add map(from: x) clause.
8124 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
8126 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
8127 (accum): Add map(tmp) clause.
8128 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
8129 (accum): Add map(tofrom: tmp) clause.
8130 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
8131 (gramSchmidt): Likewise.
8132 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
8133 map(tofrom: sum) clause.
8134 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
8135 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
8136 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
8137 only allowed on the loop iterator.
8138 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
8139 * testsuite/libgomp.fortran/taskloop2.f90: New test.
8140 * testsuite/libgomp.fortran/taskloop4.f90: New test.
8141 * testsuite/libgomp.fortran/doacross1.f90: New test.
8142 * testsuite/libgomp.fortran/doacross3.f90: New test.
8143 * testsuite/libgomp.fortran/taskloop1.f90: New test.
8144 * testsuite/libgomp.fortran/taskloop3.f90: New test.
8145 * testsuite/libgomp.fortran/doacross2.f90: New test.
8146 * testsuite/libgomp.c/doacross-1.c (main): Add missing
8147 #pragma omp atomic read.
8148 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
8149 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
8151 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
8152 Nathan Sidwell <nathan@acm.org>
8154 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
8155 to determine default geometry.
8156 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
8159 2016-11-01 Jakub Jelinek <jakub@redhat.com>
8161 * hashtab.h: Use standard GPLv3 with runtime exception
8164 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
8166 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
8167 size when allocating new thread.
8169 2016-09-14 Marek Polacek <polacek@redhat.com>
8171 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
8173 2016-08-19 Jakub Jelinek <jakub@redhat.com>
8176 * testsuite/libgomp.fortran/pr71014.f90: New test.
8178 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
8181 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
8182 firstprivate clauses.
8183 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
8185 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
8186 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
8187 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
8188 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8189 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
8190 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8191 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
8192 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
8193 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
8194 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
8195 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
8196 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
8198 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
8201 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
8203 2016-08-08 Jakub Jelinek <jakub@redhat.com>
8206 * testsuite/libgomp.c++/pr58706.C: New test.
8208 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
8210 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
8211 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
8212 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
8214 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
8215 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
8217 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
8219 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
8220 test, and don't hardcode -O0.
8222 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
8224 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
8226 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
8228 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
8231 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
8234 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
8235 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
8237 2016-07-01 Jakub Jelinek <jakub@redhat.com>
8240 * testsuite/libgomp.fortran/associate3.f90: New test.
8242 2016-06-17 Jakub Jelinek <jakub@redhat.com>
8244 * testsuite/libgomp.c++/target-21.C: New test.
8246 2016-06-16 Jakub Jelinek <jakub@redhat.com>
8248 * testsuite/libgomp.c++/target-20.C: New test.
8250 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
8251 Cesar Philippidis <cesar@codesourcery.com>
8254 * libgomp.oacc-c/nested-function-1.c: New file.
8255 * libgomp.oacc-c/nested-function-2.c: Likewise.
8256 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
8257 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
8258 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
8260 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
8263 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
8264 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
8265 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
8267 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
8269 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
8270 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
8272 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
8275 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
8277 2016-05-26 Jakub Jelinek <jakub@redhat.com>
8279 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
8280 instead of invalid schedule(static, 0).
8281 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
8283 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
8285 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
8286 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
8287 parameter, use to set async stream around call to gomp_unmap_vars,
8288 call gomp_unmap_vars() with 'do_copyfrom' set to true.
8289 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
8290 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
8291 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
8292 (event_add): Add int parameter, initialize 'val' field when
8293 adding new ptx_event struct.
8294 (nvptx_evec): Adjust event_add() call arguments.
8295 (nvptx_host2dev): Likewise.
8296 (nvptx_dev2host): Likewise.
8297 (nvptx_wait_async): Likewise.
8298 (nvptx_wait_all_async): Likewise.
8299 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
8300 pass to event_add() call.
8301 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
8303 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
8304 call openacc.register_async_cleanup_func() hook.
8305 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
8306 * target.c (gomp_copy_from_async): Delete function.
8307 (gomp_map_vars): Remove async_refcount.
8308 (gomp_unmap_vars): Likewise.
8309 (gomp_load_image_to_device): Likewise.
8310 (omp_target_associate_ptr): Likewise.
8311 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
8312 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
8313 (gomp_copy_from_async): Remove.
8315 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
8317 * target.c (gomp_device_copy): New function.
8318 (gomp_copy_host2dev): Likewise.
8319 (gomp_copy_dev2host): Likewise.
8320 (gomp_free_device_memory): Likewise.
8321 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
8322 (gomp_map_pointer): Likewise.
8323 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
8324 NULL value from alloc_func plugin hook.
8325 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
8326 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
8327 (gomp_unmap_vars): Likewise.
8328 (gomp_update): Adjust to call gomp_copy_dev2host and
8329 gomp_copy_host2dev functions.
8330 (gomp_unload_image_from_device): Handle false value from
8331 unload_image_func plugin hook.
8332 (gomp_init_device): Handle false value from init_device_func
8334 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
8335 (omp_target_free): Adjust to call gomp_free_device_memory.
8336 (omp_target_memcpy): Handle return values from host2dev_func,
8337 dev2host_func, and dev2dev_func plugin hooks.
8338 (omp_target_memcpy_rect_worker): Likewise.
8339 (gomp_target_fini): Handle false value from fini_device_func
8341 * libgomp.h (struct gomp_device_descr): Adjust return type of
8342 init_device_func, fini_device_func, unload_image_func, free_func,
8343 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
8344 * oacc-init.c (acc_shutdown_1): Handle false value from
8345 fini_device_func plugin hook.
8346 * oacc-host.c (host_init_device): Change return type to bool.
8347 (host_fini_device): Likewise.
8348 (host_unload_image): Likewise.
8349 (host_free): Likewise.
8350 (host_dev2host): Likewise.
8351 (host_host2dev): Likewise.
8352 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
8353 (acc_memcpy_to_device): Likewise.
8354 (acc_memcpy_from_device): Likewise.
8355 (delete_copyout): Add libfnname parameter, handle free_func
8356 hook fatal error case.
8357 (acc_delete): Adjust delete_copyout call.
8358 (acc_copyout): Likewise.
8359 (update_dev_host): Move gomp_mutex_unlock to after
8360 host2dev/dev2host hook calls.
8362 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
8363 to 'hsa_error_msg', for clarity.
8364 (hsa_fatal): Likewise.
8365 (hsa_error): New function.
8366 (init_hsa_context): Change return type to bool, adjust to return
8368 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
8370 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
8371 return false on error.
8372 (get_agent_info): Adjust to return NULL on error.
8373 (destroy_hsa_program): Change return type to bool, adjust to
8374 return false on error.
8375 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
8376 (destroy_module): Change return type to bool, adjust to
8377 return false on error.
8378 (GOMP_OFFLOAD_unload_image): Likewise.
8379 (GOMP_OFFLOAD_fini_device): Likewise.
8380 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
8381 (GOMP_OFFLOAD_free): Change to return false when called.
8382 (GOMP_OFFLOAD_dev2host): Likewise.
8383 (GOMP_OFFLOAD_host2dev): Likewise.
8384 (GOMP_OFFLOAD_dev2dev): Likewise.
8386 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
8387 (CUDA_CALL): Likewise.
8388 (CUDA_CALL_ASSERT): Likewise.
8389 (map_init): Change return type to bool, use CUDA_CALL* macros.
8390 (map_fini): Likewise.
8391 (init_streams_for_device): Change return type to bool, adjust
8393 (fini_streams_for_device): Change return type to bool, adjust
8395 (select_stream_for_async): Release stream_lock before calls to
8396 GOMP_PLUGIN_fatal, adjust call to map_init.
8397 (nvptx_init): Use CUDA_CALL* macros.
8398 (nvptx_attach_host_thread_to_device): Change return type to bool,
8399 use CUDA_CALL* macros.
8400 (nvptx_open_device): Use CUDA_CALL* macros.
8401 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
8403 (nvptx_get_num_devices): Use CUDA_CALL* macros.
8404 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
8405 (nvptx_exec): Use CUDA_CALL* macros.
8406 (nvptx_alloc): Use CUDA_CALL* macros.
8407 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
8408 (nvptx_host2dev): Likewise.
8409 (nvptx_dev2host): Likewise.
8410 (nvptx_wait): Use CUDA_CALL* macros.
8411 (nvptx_wait_async): Likewise.
8412 (nvptx_wait_all): Likewise.
8413 (nvptx_wait_all_async): Likewise.
8414 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
8415 use CUDA_CALL* macros, adjust call to map_fini.
8416 (GOMP_OFFLOAD_init_device): Change return type to bool,
8417 adjust code accordingly.
8418 (GOMP_OFFLOAD_fini_device): Likewise.
8419 (GOMP_OFFLOAD_load_image): Adjust calls to
8420 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
8421 use CUDA_CALL* macros.
8422 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
8424 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
8425 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
8426 handle error return.
8427 (GOMP_OFFLOAD_dev2host): Likewise.
8428 (GOMP_OFFLOAD_host2dev): Likewise.
8429 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
8430 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
8432 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
8434 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
8435 (acc_free): Likewise.
8436 (acc_memcpy_to_device): Likewise.
8437 (acc_memcpy_from_device): Likewise.
8438 (acc_deviceptr): Likewise.
8439 (acc_hostptr): Likewise.
8440 (acc_is_present): Likewise.
8441 (acc_map_data): Likewise.
8442 (acc_unmap_data): Likewise.
8443 (present_create_copy): Likewise.
8444 (delete_copyout): Likewise.
8445 (update_dev_host): Likewise.
8446 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
8447 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
8448 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
8449 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8450 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
8451 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
8452 it only runs on nvptx targets.
8453 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8454 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8455 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8456 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8457 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8458 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8459 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8460 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8461 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8462 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8463 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8464 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8465 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8466 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8467 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8468 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8469 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8470 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8471 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8472 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8473 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8474 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8475 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8477 2016-05-23 Martin Jambor <mjambor@suse.cz>
8479 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
8481 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
8483 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
8484 to gomp_init_targets_once.
8485 (acc_set_device_type): Remove !cached_base_dev condition on call to
8486 gomp_init_targets_once, move call to before acc_device_lock acquire,
8488 (acc_get_device_num): Remove !cached_base_dev condition on call to
8489 gomp_init_targets_once.
8490 (acc_set_device_num): Likewise.
8492 2016-05-16 Martin Jambor <mjambor@suse.cz>
8494 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
8496 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
8498 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
8499 expected partitioning.
8501 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
8504 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
8505 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
8506 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
8508 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
8510 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
8513 2016-04-19 Jakub Jelinek <jakub@redhat.com>
8516 * testsuite/libgomp.c/pr70680-1.c: New test.
8517 * testsuite/libgomp.c/pr70680-2.c: New test.
8519 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
8521 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
8522 pass parameter variables to subroutines.
8524 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
8527 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
8529 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
8532 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
8533 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8535 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
8537 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
8538 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
8539 GOACC_declare prototype.
8541 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
8542 Merge this file, and...
8543 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
8544 ... this file, and...
8545 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
8546 ... this file, and...
8547 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
8548 ... this file, and...
8549 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
8550 ... this file, and...
8551 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
8552 ... this file, and...
8553 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
8554 ... this file, and...
8555 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
8556 ... this file, and...
8557 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
8558 ... this file, and...
8559 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
8560 ... this file, and...
8561 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
8562 ... this file, and...
8563 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
8564 ... this file, and...
8565 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
8566 ... this file into...
8567 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
8570 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8571 Make failure observable.
8573 2016-04-12 Jakub Jelinek <jakub@redhat.com>
8575 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
8577 * target.c (gomp_target_fallback_firstprivate,
8578 gomp_target_unshare_firstprivate): Removed.
8579 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
8580 before waiting for dependencies.
8581 (gomp_target_task_fn): Don't copy firstprivate vars here.
8582 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
8583 firstprivate_copies here.
8584 (gomp_create_target_task): Don't initialize firstprivate_copies field.
8585 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
8586 explicit/implicit firstprivate.
8588 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
8592 PR tree-optimization/70373
8596 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
8598 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
8600 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
8602 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
8604 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
8606 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
8608 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
8610 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
8612 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
8614 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
8615 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
8616 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
8617 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
8619 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
8621 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
8623 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
8625 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
8627 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
8628 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
8629 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
8630 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
8631 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
8632 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
8634 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8635 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8636 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8637 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8638 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
8639 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
8640 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
8641 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
8642 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
8643 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8644 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8645 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8646 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8647 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8648 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
8650 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
8651 James Norris <jnorris@codesourcery.com>
8652 Nathan Sidwell <nathan@codesourcery.com>
8653 Julian Brown <julian@codesourcery.com>
8654 Cesar Philippidis <cesar@codesourcery.com>
8655 Chung-Lin Tang <cltang@codesourcery.com>
8656 Tom de Vries <tom@codesourcery.com>
8658 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
8659 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8660 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8661 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
8662 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8663 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8664 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8665 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
8666 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8668 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
8670 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
8672 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
8673 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
8674 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
8675 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
8677 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
8679 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
8680 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
8681 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
8682 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
8683 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
8684 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
8685 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
8686 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
8687 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
8688 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
8690 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
8691 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
8692 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
8694 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
8696 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
8698 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
8700 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
8702 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
8703 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
8704 ... this new file. Update.
8705 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
8706 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
8707 ... this new file. Update.
8708 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
8709 file. Incorporate...
8710 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
8712 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
8714 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
8716 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
8718 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
8720 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
8721 set-torture-options.
8723 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
8725 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
8727 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8728 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
8729 -fno-builtin-acc_on_device instead of -O0.
8730 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
8732 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
8733 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
8735 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
8736 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
8737 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
8738 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
8739 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
8740 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
8741 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
8742 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
8743 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
8744 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
8745 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
8746 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
8747 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
8748 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
8749 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
8750 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
8751 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
8752 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
8754 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
8756 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
8759 2016-03-24 Martin Liska <mliska@suse.cz>
8761 * plugin/plugin-hsa.c (packet_store_release): New function
8762 that is taken from the HSA runtime manual.
8763 (GOMP_OFFLOAD_run): Use the function.
8765 2016-03-23 Jakub Jelinek <jakub@redhat.com>
8768 * testsuite/libgomp.c++/pr70376.C: New test.
8770 2016-03-23 Tom de Vries <tom@codesourcery.com>
8772 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
8773 initialization of lresult and lvresult.
8774 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
8776 2016-03-23 James Norris <jnorris@codesourcery.com>
8777 Daichi Fukuoka <dc-fukuoka@sgi.com>
8780 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
8781 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
8782 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8783 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
8785 2016-03-23 Martin Liska <mliska@suse.cz>
8788 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
8789 argument just in case a dispatched kernel uses that argument.
8791 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
8793 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
8794 -ftree-parallelize-loops/-fopenacc changes.
8795 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
8797 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
8799 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
8801 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
8803 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
8804 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
8806 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
8808 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
8809 always_ld_library_path the path to libgcc_s.
8811 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
8814 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
8816 2016-03-09 Tom de Vries <tom@codesourcery.com>
8818 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
8819 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
8820 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
8822 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
8823 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
8824 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
8825 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
8827 2016-03-07 Martin Jambor <mjambor@suse.cz>
8829 * testsuite/lib/libgomp.exp
8830 (check_effective_target_hsa_offloading_selected_nocache): New.
8831 (check_effective_target_hsa_offloading_selected): Likewise.
8832 * testsuite/libgomp.hsa.c/c.exp: Likewise.
8833 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
8834 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
8835 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
8836 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
8837 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
8838 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
8839 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
8840 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
8841 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
8842 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
8843 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
8844 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
8845 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
8846 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
8847 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
8848 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
8850 2016-03-07 Martin Jambor <mjambor@suse.cz>
8852 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
8853 non-shared memory accelerators.
8854 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
8855 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
8856 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
8857 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
8858 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
8859 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
8860 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
8861 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
8862 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
8864 2016-03-07 Martin Jambor <mjambor@suse.cz>
8866 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
8869 2016-03-02 Jakub Jelinek <jakub@redhat.com>
8872 * testsuite/libgomp.c++/pr69555-1.C: New test.
8873 * testsuite/libgomp.c++/pr69555-2.C: New test.
8875 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
8876 Martin Jambor <mjambor@suse.cz>
8878 * testsuite/lib/libgomp.exp
8879 (check_effective_target_offload_device_shared_as): New proc.
8880 * testsuite/libgomp.c++/declare_target-1.C: New test.
8882 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
8885 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
8887 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
8889 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
8890 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
8892 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
8893 -ftree-parallelize-loops/-fopenacc changes.
8894 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
8895 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
8897 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
8899 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
8901 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
8903 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
8905 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
8907 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
8909 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
8910 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
8912 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
8913 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
8915 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
8916 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
8919 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
8921 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
8923 2016-02-19 Jakub Jelinek <jakub@redhat.com>
8926 * testsuite/libgomp.c/pr69805.c: New test.
8928 2016-02-16 Tom de Vries <tom@codesourcery.com>
8931 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
8933 2016-02-09 Tom de Vries <tom@codesourcery.com>
8935 PR tree-optimization/69599
8936 * testsuite/libgomp.c/omp-nested-3.c: New test.
8937 * testsuite/libgomp.c/pr46032-2.c: New test.
8938 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
8939 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
8941 2016-02-09 Tom de Vries <tom@codesourcery.com>
8944 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
8946 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
8948 * testsuite/libgomp.c/target-31.c: Fix testcase.
8950 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
8952 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
8954 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
8955 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
8956 reduction and map clauses.
8957 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
8959 2016-02-02 James Norris <jnorris@codesourcery.com>
8961 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
8963 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
8965 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
8966 * oacc-parallel.c (GOACC_host_data): Remove function definition.
8968 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
8971 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
8973 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
8974 (hsa_kmt_lib): Set variables.
8975 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
8976 always_ld_library_path.
8977 * Makefile.in: Regenerate.
8978 * configure: Likewise.
8979 * testsuite/Makefile.in: Likewise.
8981 * plugin/configfrag.ac (offload_additional_options)
8982 (offload_additional_lib_paths): Don't amend for hsa offloading.
8983 * configure: Regenerate.
8985 * plugin/configfrag.ac: Don't configure for offloading target if
8986 we don't build the corresponding plugin.
8987 * configure: Regenerate.
8989 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
8991 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
8992 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
8994 2016-01-26 Tom de Vries <tom@codesourcery.com>
8996 PR tree-optimization/69110
8997 * testsuite/libgomp.c/pr69110.c: New test.
8999 2016-01-25 Richard Biener <rguenther@suse.de>
9002 * testsuite/libgomp.c++/pr69393.C: New testcase.
9004 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
9006 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
9007 function wasn't mapped to the device with non-shared memory.
9009 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
9011 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
9013 2016-01-19 Martin Jambor <mjambor@suse.cz>
9014 Martin Liska <mliska@suse.cz>
9016 * plugin/Makefrag.am: Add HSA plugin requirements.
9017 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
9018 (HSA_RUNTIME_LIB): Likewise.
9019 (HSA_RUNTIME_CPPFLAGS): Likewise.
9020 (HSA_RUNTIME_INCLUDE): New substitution.
9021 (HSA_RUNTIME_LIB): Likewise.
9022 (HSA_RUNTIME_LDFLAGS): Likewise.
9023 (hsa-runtime): New configure option.
9024 (hsa-runtime-include): Likewise.
9025 (hsa-runtime-lib): Likewise.
9026 (PLUGIN_HSA): New substitution variable.
9027 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
9029 (PLUGIN_HSA_CPPFLAGS): Likewise.
9030 (PLUGIN_HSA_LDFLAGS): Likewise.
9031 (PLUGIN_HSA_LIBS): Likewise.
9032 Check that we have access to HSA run-time.
9033 * libgomp-plugin.h (offload_target_type): New element
9034 OFFLOAD_TARGET_TYPE_HSA.
9035 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
9037 (bool gomp_create_target_task): Updated.
9038 (gomp_device_descr): Extra parameter of run_func and async_run_func,
9039 new field can_run_func.
9040 * libgomp_g.h (GOMP_target_ext): Update prototype.
9041 * oacc-host.c (host_run): Added a new parameter args.
9042 * target.c (calculate_firstprivate_requirements): New function.
9043 (copy_firstprivate_data): Likewise.
9044 (gomp_target_fallback_firstprivate): Use them.
9045 (gomp_target_unshare_firstprivate): New function.
9046 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
9048 (GOMP_target): Do host fallback for all shared memory devices. Do not
9049 pass any args to plugins.
9050 (GOMP_target_ext): Introduce device-specific argument parameter args.
9051 Allow host fallback if device shares memory. Do not remap data if
9052 device has shared memory.
9053 (gomp_target_task_fn): Likewise. Also treat shared memory devices
9054 like host fallback for mappings.
9055 (GOMP_target_data): Treat shared memory devices like host fallback.
9056 (GOMP_target_data_ext): Likewise.
9057 (GOMP_target_update): Likewise.
9058 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
9059 gomp_create_target_task.
9060 (GOMP_target_enter_exit_data): Likewise.
9061 (omp_target_alloc): Treat shared memory devices like host fallback.
9062 (omp_target_free): Likewise.
9063 (omp_target_is_present): Likewise.
9064 (omp_target_memcpy): Likewise.
9065 (omp_target_memcpy_rect): Likewise.
9066 (omp_target_associate_ptr): Likewise.
9067 (gomp_load_plugin_for_device): Also load can_run.
9068 * task.c (GOMP_PLUGIN_target_task_completion): Free
9069 firstprivate_copies.
9070 (gomp_create_target_task): Accept new argument args and store it to
9072 * plugin/plugin-hsa.c: New file.
9074 2016-01-18 Tom de Vries <tom@codesourcery.com>
9076 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
9077 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
9078 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
9079 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
9080 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
9081 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
9082 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
9083 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
9084 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
9085 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
9086 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
9088 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
9090 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
9091 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
9092 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
9093 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
9094 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
9095 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
9096 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
9097 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
9099 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
9101 2016-01-15 Jakub Jelinek <jakub@redhat.com>
9103 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
9105 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
9107 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
9109 2016-01-12 James Norris <jnorris@codesourcery.com>
9111 * libgomp.texi: Updates for OpenACC.
9113 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
9115 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
9117 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
9120 * testsuite/libgomp.fortran/pr66680.f90: New test.
9122 2016-01-07 Jakub Jelinek <jakub@redhat.com>
9125 * testsuite/libgomp.c/pr68960.c: New test.
9127 2016-01-06 Nathan Sidwell <nathan@acm.org>
9129 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
9130 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
9132 2016-01-04 Jakub Jelinek <jakub@redhat.com>
9134 Update copyright years.
9136 * libgomp.texi: Bump @copying's copyright year.
9138 2015-12-31 Nathan Sidwell <nathan@acm.org>
9140 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
9141 dg-additional-options syntax.
9142 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
9143 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
9144 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
9145 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
9146 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
9147 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
9148 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
9149 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
9150 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
9151 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
9152 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
9153 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
9154 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
9155 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
9156 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
9157 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
9158 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
9159 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
9161 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
9163 * libgomp.h (REFCOUNT_LINK): Define.
9164 (struct splay_tree_key_s): Add link_key.
9165 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
9166 Replace target address of the pointer with target address of newly
9167 mapped object in the splay tree. Set link pointer on target to the
9168 device address of the mapped object.
9169 (gomp_unmap_vars): Restore target address of the pointer in the splay
9170 tree for REFCOUNT_LINK objects after unmapping.
9171 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
9172 declare target link" objects.
9173 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
9174 "omp declare target link" objects, which were mapped for the image.
9175 (gomp_exit_data): Restore target address of the pointer in the splay
9176 tree for REFCOUNT_LINK objects after unmapping.
9177 * testsuite/libgomp.c/target-link-1.c: New file.
9179 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
9181 * libgomp.h (gomp_device_state): New enum.
9182 (struct gomp_device_descr): Replace is_initialized with state.
9183 (gomp_fini_device): Remove declaration.
9184 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
9185 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
9186 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
9187 (acc_set_device_type): Use state instead of is_initialized.
9188 (acc_set_device_num): Likewise.
9189 * target.c (resolve_device): Use state instead of is_initialized.
9190 Do not initialize finalized device.
9191 (gomp_map_vars): Do nothing if device is finalized.
9192 (gomp_unmap_vars): Likewise.
9193 (gomp_update): Likewise.
9194 (GOMP_offload_register_ver): Use state instead of is_initialized.
9195 (GOMP_offload_unregister_ver): Likewise.
9196 (gomp_init_device): Likewise.
9197 (gomp_unload_device): Likewise.
9198 (gomp_fini_device): Remove.
9199 (gomp_get_target_fn_addr): Do nothing if device is finalized.
9200 (GOMP_target): Go to host fallback if device is finalized.
9201 (GOMP_target_ext): Likewise.
9202 (gomp_exit_data): Do nothing if device is finalized.
9203 (gomp_target_task_fn): Go to host fallback if device is finalized.
9204 (gomp_target_fini): New static function.
9205 (gomp_target_init): Use state instead of is_initialized.
9206 Call gomp_target_fini at exit.
9208 2015-12-09 Tom de Vries <tom@codesourcery.com>
9210 PR tree-optimization/68716
9211 * testsuite/libgomp.c/omp-nested-2.c: New test.
9213 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
9215 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
9216 target openacc_nvidia_accel_selected.
9217 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
9218 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
9219 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
9220 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
9222 2015-12-01 Julian Brown <julian@codesourcery.com>
9223 James Norris <James_Norris@mentor.com>
9225 * oacc-parallel.c (GOACC_host_data): New function.
9226 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
9227 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
9228 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
9229 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
9230 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
9231 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
9232 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
9234 2015-11-30 James Norris <jnorris@codesourcery.com>
9235 Cesar Philippidis <cesar@codesourcery.com>
9238 * libgomp.oacc-fortran/routine-5.f90: New test.
9239 * libgomp.oacc-fortran/routine-7.f90: New test.
9240 * libgomp.oacc-fortran/routine-9.f90: New test.
9242 2015-11-30 Tom de Vries <tom@codesourcery.com>
9244 PR tree-optimization/46032
9245 * testsuite/libgomp.c/pr46032.c: New test.
9247 2015-11-27 Jakub Jelinek <jakub@redhat.com>
9250 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
9251 (gomp_create_target_task): Call it before freeing
9252 GOMP_TARGET_TASK_DATA tasks.
9255 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
9256 in between case label and OpenMP standalone directives.
9257 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
9259 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
9261 * configure: Regenerate.
9263 2015-11-26 Jakub Jelinek <jakub@redhat.com>
9265 * testsuite/libgomp.c/target-35.c: New test.
9267 2015-11-22 James Norris <jnorris@codesourcery.com>
9268 Cesar Philippidis <cesar@codesourcery.com>
9270 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
9271 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
9272 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
9273 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
9274 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
9276 2015-11-20 Jakub Jelinek <jakub@redhat.com>
9279 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
9280 * testsuite/libgomp.c/reduction-12.c: Likewise.
9281 * testsuite/libgomp.c++/reduction-11.C: Likewise.
9282 * testsuite/libgomp.c++/reduction-12.C: Likewise.
9284 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
9286 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
9287 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
9288 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
9289 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
9290 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
9292 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9293 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9295 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
9297 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
9298 worker & gang cases.
9299 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
9301 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
9303 * config/nvptx/priority_queue.c: New file.
9305 2015-11-14 Jakub Jelinek <jakub@redhat.com>
9307 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
9310 2015-11-14 Jakub Jelinek <jakub@redhat.com>
9311 Aldy Hernandez <aldyh@redhat.com>
9312 Ilya Verbin <ilya.verbin@intel.com>
9314 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
9315 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
9316 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
9317 iterators or IV by chunk size.
9318 * parallel.c (gomp_resolve_num_threads): Don't assume that
9319 if thr->ts.team is non-NULL, then pool must be non-NULL.
9320 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
9321 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
9322 GOMP_PLUGIN_target_task_completion.
9323 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
9324 * Makefile.in: Regenerate.
9325 * libgomp.h: Shuffle prototypes and forward definitions around so
9326 priority queues can be defined.
9327 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
9328 (enum gomp_target_task_state): New enum.
9329 (struct gomp_target_task): Add state, tgt, task and team fields.
9330 (gomp_create_target_task): Change return type to bool, add
9332 (gomp_target_task_fn): Change return type to bool.
9333 (struct gomp_device_descr): Add async_run_func.
9334 (struct gomp_task): Remove children, next_child, prev_child,
9335 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
9337 (struct gomp_taskgroup): Remove children.
9338 Add taskgroup_queue.
9339 (struct gomp_team): Change task_queue type to a priority queue.
9340 (splay_compare): Define inline.
9341 (priority_queue_offset): New.
9342 (priority_node_to_task): New.
9343 (task_to_priority_node): New.
9344 * oacc-mem.c: Do not include splay-tree.h.
9345 * priority_queue.c: New file.
9346 * priority_queue.h: New file.
9347 * splay-tree.c: Do not include splay-tree.h.
9348 (splay_tree_foreach_internal): New.
9349 (splay_tree_foreach): New.
9350 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
9351 (splay_tree_callback): Define typedef.
9352 * target.c (splay_compare): Move to libgomp.h.
9353 (GOMP_target): Don't adjust *thr in any way around running offloaded
9355 (GOMP_target_ext): Likewise. Handle target nowait.
9356 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
9357 return value from gomp_create_target_task, if false, fallthrough
9358 as if no dependencies exist.
9359 (gomp_target_task_fn): Change return type to bool, return true
9360 if the task should have another part scheduled later. Handle
9362 (gomp_load_plugin_for_device): Initialize async_run.
9363 * task.c (gomp_init_task): Initialize children_queue.
9364 (gomp_clear_parent_in_list): New.
9365 (gomp_clear_parent_in_tree): New.
9366 (gomp_clear_parent): Handle priorities.
9367 (GOMP_task): Likewise.
9368 (priority_queue_move_task_first,
9369 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
9371 (gomp_create_target_task): Use priority queues. Change return type
9372 to bool, add state argument, return false if for async
9373 {{enter,exit} data,update} constructs no dependencies need to be
9374 waited for, handle target nowait. Set task->fn to NULL instead of
9375 gomp_target_task_fn.
9376 (verify_children_queue): Remove.
9377 (priority_list_upgrade_task): New.
9378 (priority_queue_upgrade_task): New.
9379 (verify_task_queue): Remove.
9380 (priority_list_downgrade_task): New.
9381 (priority_queue_downgrade_task): New.
9382 (gomp_task_run_pre): Use priority queues.
9383 Abstract code out to priority_queue_downgrade_task.
9384 (gomp_task_run_post_handle_dependers): Use priority queues.
9385 (gomp_task_run_post_remove_parent): Likewise.
9386 (gomp_task_run_post_remove_taskgroup): Likewise.
9387 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
9389 (GOMP_taskwait): Likewise.
9390 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
9391 priority-queue_upgrade_task.
9392 (GOMP_taskgroup_start): Use priority queues.
9393 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
9394 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
9396 * taskloop.c (GOMP_taskloop): Handle priorities.
9397 * team.c (gomp_new_team): Call priority_queue_init.
9398 (free_team): Call priority_queue_free.
9399 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
9400 team created for target nowait in implicit parallel region.
9401 (gomp_team_start): For nested check, test thr->ts.level instead of
9402 thr->ts.team != NULL.
9403 * testsuite/libgomp.c/doacross-3.c: New test.
9404 * testsuite/libgomp.c/ordered-5.c: New test.
9405 * testsuite/libgomp.c/priority.c: New test.
9406 * testsuite/libgomp.c/target-31.c: New test.
9407 * testsuite/libgomp.c/target-32.c: New test.
9408 * testsuite/libgomp.c/target-33.c: New test.
9409 * testsuite/libgomp.c/target-34.c: New test.
9411 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
9413 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
9415 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
9418 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
9420 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
9421 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
9423 2015-11-12 James Norris <jnorris@codesourcery.com>
9424 Joseph Myers <joseph@codesourcery.com>
9426 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
9427 * oacc-parallel.c (GOACC_declare): New function.
9428 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
9429 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
9430 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
9431 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
9432 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
9434 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
9436 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
9438 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
9440 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
9441 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
9443 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
9445 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
9448 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
9450 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
9451 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
9452 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
9453 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
9454 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
9456 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
9458 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
9459 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
9461 2015-11-05 Jakub Jelinek <jakub@redhat.com>
9462 Ilya Verbin <ilya.verbin@intel.com>
9464 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
9465 GOMP_loop_nonmonotonic_dynamic_start,
9466 GOMP_loop_nonmonotonic_guided_next,
9467 GOMP_loop_nonmonotonic_guided_start,
9468 GOMP_loop_ull_nonmonotonic_dynamic_next,
9469 GOMP_loop_ull_nonmonotonic_dynamic_start,
9470 GOMP_loop_ull_nonmonotonic_guided_next,
9471 GOMP_loop_ull_nonmonotonic_guided_start,
9472 GOMP_parallel_loop_nonmonotonic_dynamic,
9473 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
9474 (GOMP_target_41): Renamed to ...
9475 (GOMP_target_ext): ... this. Add num_teams and thread_limit
9477 (GOMP_target_data_41): Renamed to ...
9478 (GOMP_target_data_ext): ... this.
9479 (GOMP_target_update_41): Renamed to ...
9480 (GOMP_target_update_ext): ... this.
9481 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
9482 GOMP_target_data_ext and GOMP_target_update_ext instead of
9483 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
9484 Export GOMP_loop_nonmonotonic_dynamic_next,
9485 GOMP_loop_nonmonotonic_dynamic_start,
9486 GOMP_loop_nonmonotonic_guided_next,
9487 GOMP_loop_nonmonotonic_guided_start,
9488 GOMP_loop_ull_nonmonotonic_dynamic_next,
9489 GOMP_loop_ull_nonmonotonic_dynamic_start,
9490 GOMP_loop_ull_nonmonotonic_guided_next,
9491 GOMP_loop_ull_nonmonotonic_guided_start,
9492 GOMP_parallel_loop_nonmonotonic_dynamic and
9493 GOMP_parallel_loop_nonmonotonic_guided.
9494 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
9495 GOMP_parallel_loop_nonmonotonic_guided,
9496 GOMP_loop_nonmonotonic_dynamic_start,
9497 GOMP_loop_nonmonotonic_guided_start,
9498 GOMP_loop_nonmonotonic_dynamic_next,
9499 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
9500 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
9501 GOMP_loop_ull_nonmonotonic_guided_start,
9502 GOMP_loop_ull_nonmonotonic_dynamic_next,
9503 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
9504 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
9506 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
9507 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
9508 Use gomp_map_val function.
9509 (gomp_target_fallback_firstprivate): New static function.
9510 (GOMP_target_41): Renamed to ...
9511 (GOMP_target_ext): ... this. Add num_teams and thread_limit
9512 arguments. Move firstprivate fallback handling into a new
9514 (GOMP_target_data_41): Renamed to ...
9515 (GOMP_target_data_ext): ... this.
9516 (GOMP_target_update_41): Renamed to ...
9517 (GOMP_target_update_ext): ... this.
9518 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
9519 gomp_map_0len_lookup instead of gomp_map_lookup.
9520 (omp_target_is_present): Use gomp_map_0len_lookup instead of
9522 * testsuite/libgomp.c/target-28.c: Likewise.
9523 * testsuite/libgomp.c/monotonic-1.c: New test.
9524 * testsuite/libgomp.c/monotonic-2.c: New test.
9525 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
9526 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
9527 * testsuite/libgomp.c/pr66199-5.c: New test.
9528 * testsuite/libgomp.c/pr66199-6.c: New test.
9529 * testsuite/libgomp.c/pr66199-7.c: New test.
9530 * testsuite/libgomp.c/pr66199-8.c: New test.
9531 * testsuite/libgomp.c/pr66199-9.c: New test.
9532 * testsuite/libgomp.c/reduction-11.c: New test.
9533 * testsuite/libgomp.c/reduction-12.c: New test.
9534 * testsuite/libgomp.c/reduction-13.c: New test.
9535 * testsuite/libgomp.c/reduction-14.c: New test.
9536 * testsuite/libgomp.c/reduction-15.c: New test.
9537 * testsuite/libgomp.c/target-12.c (main): Adjust for
9538 omp_target_is_present change for one-past-last element.
9539 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
9540 the same var is both mapped and privatized.
9541 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
9542 handling of zero-length array sections.
9543 * testsuite/libgomp.c/target-28.c: New test.
9544 * testsuite/libgomp.c/target-29.c: New test.
9545 * testsuite/libgomp.c/target-30.c: New test.
9546 * testsuite/libgomp.c/target-teams-1.c: New test.
9547 * testsuite/libgomp.c++/member-6.C: New test.
9548 * testsuite/libgomp.c++/member-7.C: New test.
9549 * testsuite/libgomp.c++/monotonic-1.C: New test.
9550 * testsuite/libgomp.c++/monotonic-2.C: New test.
9551 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
9552 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
9553 * testsuite/libgomp.c++/pr66199-3.C: New test.
9554 * testsuite/libgomp.c++/pr66199-4.C: New test.
9555 * testsuite/libgomp.c++/pr66199-5.C: New test.
9556 * testsuite/libgomp.c++/pr66199-6.C: New test.
9557 * testsuite/libgomp.c++/pr66199-7.C: New test.
9558 * testsuite/libgomp.c++/pr66199-8.C: New test.
9559 * testsuite/libgomp.c++/pr66199-9.C: New test.
9560 * testsuite/libgomp.c++/reduction-11.C: New test.
9561 * testsuite/libgomp.c++/reduction-12.C: New test.
9562 * testsuite/libgomp.c++/target-13.C: New test.
9563 * testsuite/libgomp.c++/target-14.C: New test.
9564 * testsuite/libgomp.c++/target-15.C: New test.
9565 * testsuite/libgomp.c++/target-16.C: New test.
9566 * testsuite/libgomp.c++/target-17.C: New test.
9567 * testsuite/libgomp.c++/target-18.C: New test.
9568 * testsuite/libgomp.c++/target-19.C: New test.
9570 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
9572 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
9574 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9575 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9576 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9577 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9578 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
9579 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9580 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
9581 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
9582 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9583 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
9584 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
9585 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
9586 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
9587 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
9589 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
9591 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
9592 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
9593 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
9594 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
9595 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
9596 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
9597 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
9598 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
9600 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
9602 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
9603 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
9604 (GOMP_OFFLOAD_openacc_parallel): Likewise.
9605 * oacc-host.c (host_openacc_exec): Likewise.
9606 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
9608 2015-11-03 Julian Brown <julian@codesourcery.com>
9609 Thomas Schwinge <thomas@codesourcery.com>
9611 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
9612 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
9613 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
9615 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
9616 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
9618 2015-11-03 James Norris <jnorris@codesourcery.com>
9620 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
9622 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
9624 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
9625 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
9626 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
9627 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
9628 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
9630 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
9632 * openacc.h (enum acc_device_t): Reformat. Ensure layout
9634 (enum acc_async_t): Reformat.
9635 (acc_on_device): Declare compatible with builtin and provide C++
9637 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
9639 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
9640 Cesar Philippidis <cesar@codesourcery.com>
9642 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
9643 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
9644 ... this. Add a description of the test at the top of the file.
9645 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
9646 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
9647 ... this. Add a description of the test at the top of the file.
9649 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
9651 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
9652 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
9653 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
9654 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
9655 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
9656 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
9658 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9660 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
9663 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
9666 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
9668 2015-10-27 James Norris <jnorris@codesourcery.com>
9670 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
9671 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
9673 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
9675 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
9676 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
9678 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
9679 acc_device_nvidia usage.
9680 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
9681 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
9682 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
9684 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
9685 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
9688 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
9692 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
9693 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
9695 2015-10-23 Tom de Vries <tom@codesourcery.com>
9698 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
9700 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
9702 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
9704 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9706 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
9707 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
9709 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
9710 to 0 when mapnum is 0.
9712 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
9714 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
9715 Cast to int from int32_t.
9717 2015-10-13 Jakub Jelinek <jakub@redhat.com>
9718 Aldy Hernandez <aldyh@redhat.com>
9719 Ilya Verbin <ilya.verbin@intel.com>
9721 * config/linux/affinity.c (omp_get_place_num_procs,
9722 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
9723 * config/linux/doacross.h: New file.
9724 * config/posix/affinity.c (omp_get_place_num_procs,
9725 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
9726 * config/posix/doacross.h: New file.
9727 * env.c: Include gomp-constants.h.
9728 (struct gomp_task_icv): Rename run_sched_modifier to
9729 run_sched_chunk_size.
9730 (gomp_max_task_priority_var): New variable.
9731 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
9732 (handle_omp_display_env): Change _OPENMP value from 201307 to
9733 201511. Print OMP_MAX_TASK_PRIORITY.
9734 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
9735 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
9736 chunk_size and run_sched_modifier to run_sched_chunk_size.
9737 (omp_get_max_task_priority, omp_get_initial_device,
9738 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
9739 omp_get_partition_place_nums): New functions.
9740 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
9741 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
9743 (omp_get_num_places_, omp_get_place_num_procs_,
9744 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
9745 omp_get_place_proc_ids_8_, omp_get_place_num_,
9746 omp_get_partition_num_places_, omp_get_partition_place_nums_,
9747 omp_get_partition_place_nums_8_, omp_get_initial_device_,
9748 omp_get_max_task_priority_): New functions.
9749 * libgomp_g.h (GOMP_loop_doacross_static_start,
9750 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
9751 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
9752 GOMP_loop_ull_doacross_dynamic_start,
9753 GOMP_loop_ull_doacross_guided_start,
9754 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
9755 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
9756 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
9757 GOMP_target_data_41, GOMP_target_update_41,
9758 GOMP_target_enter_exit_data): New prototypes.
9759 (GOMP_task): Add prototype argument.
9760 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
9761 (struct gomp_doacross_work_share): New type.
9762 (struct gomp_work_share): Add doacross field.
9763 (struct gomp_task_icv): Rename run_sched_modifier to
9764 run_sched_chunk_size.
9765 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
9766 GOMP_TASK_UNDEFERRED. Add comments.
9767 (struct gomp_task_depend_entry): Add comments.
9768 (struct gomp_task): Likewise.
9769 (struct gomp_taskgroup): Likewise.
9770 (struct gomp_target_task): New type.
9771 (struct gomp_team): Add comment.
9772 (gomp_get_place_proc_ids_8, gomp_doacross_init,
9773 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
9774 gomp_create_target_task, gomp_target_task_fn): New prototypes.
9775 (struct target_var_desc): New type.
9776 (struct target_mem_desc): Adjust comment. Use struct
9777 target_var_desc instead of splay_tree_key for list.
9778 (REFCOUNT_INFINITY): Define.
9779 (struct splay_tree_key_s): Remove copy_from field.
9780 (struct gomp_device_descr): Add dev2dev_func field.
9781 (enum gomp_map_vars_kind): New enum.
9782 (gomp_map_vars): Add one argument.
9783 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
9784 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
9785 omp_get_place_num_procs, omp_get_place_num_procs_,
9786 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
9787 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
9788 omp_get_place_num_, omp_get_partition_num_places,
9789 omp_get_partition_num_places_, omp_get_partition_place_nums,
9790 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
9791 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
9792 omp_target_free, omp_target_is_present, omp_target_memcpy,
9793 omp_target_memcpy_rect, omp_target_associate_ptr and
9794 omp_target_disassociate_ptr.
9795 (GOMP_4.0.2): Renamed to ...
9796 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
9797 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
9798 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
9799 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
9800 GOMP_loop_doacross_static_start, GOMP_doacross_post,
9801 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
9802 GOMP_loop_ull_doacross_guided_start,
9803 GOMP_loop_ull_doacross_runtime_start,
9804 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
9805 GOMP_doacross_ull_wait.
9806 * libgomp.texi: Document omp_get_max_task_priority.
9807 Rename modifier argument to chunk_size for omp_set_schedule and
9808 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
9809 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
9810 to run_sched_chunk_size renaming.
9811 (GOMP_loop_ordered_runtime_start): Likewise.
9812 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
9813 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
9814 GOMP_parallel_loop_runtime_start): New functions.
9815 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
9816 to run_sched_chunk_size renaming.
9817 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
9818 GOMP_loop_doacross_guided_start): New functions or aliases.
9819 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
9820 run_sched_modifier to run_sched_chunk_size renaming.
9821 (GOMP_loop_ull_ordered_runtime_start): Likewise.
9822 (gomp_loop_ull_doacross_static_start,
9823 gomp_loop_ull_doacross_dynamic_start,
9824 gomp_loop_ull_doacross_guided_start,
9825 GOMP_loop_ull_doacross_runtime_start): New functions.
9826 (GOMP_loop_ull_doacross_static_start,
9827 GOMP_loop_ull_doacross_dynamic_start,
9828 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
9829 * oacc-mem.c (acc_map_data, present_create_copy,
9830 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
9832 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
9833 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
9834 instead of false to gomp_map_vars.
9835 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
9836 * omp.h.in (omp_lock_hint_t): New type.
9837 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
9838 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
9839 omp_get_place_num, omp_get_partition_num_places,
9840 omp_get_partition_place_nums, omp_get_initial_device,
9841 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
9842 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
9843 omp_target_associate_ptr, omp_target_disassociate_ptr): New
9845 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
9846 (omp_lock_hint_none, omp_lock_hint_uncontended,
9847 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
9848 omp_lock_hint_speculative): New parameters.
9849 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
9850 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
9851 omp_get_place_num, omp_get_partition_num_places,
9852 omp_get_partition_place_nums, omp_get_initial_device,
9853 omp_get_max_task_priority): New interfaces.
9854 (omp_set_schedule, omp_get_schedule): Rename modifier argument
9856 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
9857 (omp_lock_hint_none, omp_lock_hint_uncontended,
9858 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
9859 omp_lock_hint_speculative): New parameters.
9860 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
9861 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
9862 omp_get_place_num, omp_get_partition_num_places,
9863 omp_get_partition_place_nums, omp_get_initial_device,
9864 omp_get_max_task_priority): New functions and subroutines.
9865 * ordered.c: Include stdarg.h and string.h.
9866 (MAX_COLLAPSED_BITS): Define.
9867 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
9868 gomp_doacross_ull_init, GOMP_doacross_ull_post,
9869 GOMP_doacross_ull_wait): New functions.
9870 * target.c: Include errno.h.
9871 (resolve_device): If device is not initialized, call
9872 gomp_init_device on it.
9873 (gomp_map_lookup): New function.
9874 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
9875 Don't bump refcount if REFCOUNT_INFINITY. Handle
9876 GOMP_MAP_ALWAYS_TO_P.
9877 (get_kind): Rename is_openacc argument to short_mapkind.
9878 (gomp_map_pointer): Use gomp_map_lookup.
9879 (gomp_map_fields_existing): New function.
9880 (gomp_map_vars): Rename is_openacc argument to short_mapkind
9881 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
9882 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
9883 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
9884 Adjust for tgt->list changed type and copy_from living in there.
9885 (gomp_copy_from_async): Adjust for tgt->list changed type and
9886 copy_from living in there.
9887 (gomp_unmap_vars): Likewise.
9888 (gomp_update): Likewise. Rename is_openacc argument to
9889 short_mapkind. Don't fail if object is not mapped.
9890 (gomp_load_image_to_device): Initialize refcount to
9892 (gomp_target_fallback): New function.
9893 (gomp_get_target_fn_addr): Likewise.
9894 (GOMP_target): Adjust gomp_map_vars caller, use
9895 gomp_get_target_fn_addr and gomp_target_fallback.
9896 (GOMP_target_41): New function.
9897 (gomp_target_data_fallback): New function.
9898 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
9899 (GOMP_target_data_41): New function.
9900 (GOMP_target_update): Adjust gomp_update caller.
9901 (GOMP_target_update_41): New function.
9902 (gomp_exit_data, GOMP_target_enter_exit_data,
9903 gomp_target_task_fn, omp_target_alloc, omp_target_free,
9904 omp_target_is_present, omp_target_memcpy,
9905 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
9906 omp_target_associate_ptr, omp_target_disassociate_ptr,
9907 gomp_load_plugin_for_device): New functions.
9908 * task.c: Include gomp-constants.h. Include taskloop.c
9909 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
9910 (gomp_task_handle_depend): New function.
9911 (GOMP_task): Use it. Add priority argument. Use
9912 gomp-constant.h constants instead of hardcoded numbers.
9913 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
9914 (gomp_create_target_task): New function.
9915 (verify_children_queue, verify_taskgroup_queue,
9916 verify_task_queue): New functions.
9917 (gomp_task_run_pre): Call verify_*_queue functions.
9918 If an upcoming tied task is about to leave the sibling or
9919 taskgroup queues in an invalid state, adjust appropriately.
9920 Remove taskgroup argument. Add comments.
9921 (gomp_task_run_post_handle_dependers): Add comments.
9922 (gomp_task_run_post_remove_parent): Likewise.
9923 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
9924 (GOMP_taskwait): Likewise. Add comments.
9925 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
9926 problem such that the first non parent_depends_on task does not
9927 end up at the end of the children queue.
9928 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
9929 GOMP_TASK_UNDEFERRED.
9930 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
9931 * taskloop.c: New file.
9932 * testsuite/lib/libgomp.exp
9933 (check_effective_target_offload_device_nonshared_as): New proc.
9934 * testsuite/libgomp.c/affinity-2.c: New test.
9935 * testsuite/libgomp.c/doacross-1.c: New test.
9936 * testsuite/libgomp.c/doacross-2.c: New test.
9937 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
9938 Add map clause to target.
9939 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
9940 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
9941 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
9942 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
9943 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
9945 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
9946 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
9947 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
9948 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
9949 not defined. Use those where needed.
9950 * testsuite/libgomp.c/for-4.c: New test.
9951 * testsuite/libgomp.c/for-5.c: New test.
9952 * testsuite/libgomp.c/for-6.c: New test.
9953 * testsuite/libgomp.c/linear-1.c: New test.
9954 * testsuite/libgomp.c/ordered-4.c: New test.
9955 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
9956 only allowed on the loop iterator.
9957 * testsuite/libgomp.c/pr66199-3.c: New test.
9958 * testsuite/libgomp.c/pr66199-4.c: New test.
9959 * testsuite/libgomp.c/reduction-7.c: New test.
9960 * testsuite/libgomp.c/reduction-8.c: New test.
9961 * testsuite/libgomp.c/reduction-9.c: New test.
9962 * testsuite/libgomp.c/reduction-10.c: New test.
9963 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
9965 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
9966 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
9967 * testsuite/libgomp.c/target-11.c: New test.
9968 * testsuite/libgomp.c/target-12.c: New test.
9969 * testsuite/libgomp.c/target-13.c: New test.
9970 * testsuite/libgomp.c/target-14.c: New test.
9971 * testsuite/libgomp.c/target-15.c: New test.
9972 * testsuite/libgomp.c/target-16.c: New test.
9973 * testsuite/libgomp.c/target-17.c: New test.
9974 * testsuite/libgomp.c/target-18.c: New test.
9975 * testsuite/libgomp.c/target-19.c: New test.
9976 * testsuite/libgomp.c/target-20.c: New test.
9977 * testsuite/libgomp.c/target-21.c: New test.
9978 * testsuite/libgomp.c/target-22.c: New test.
9979 * testsuite/libgomp.c/target-23.c: New test.
9980 * testsuite/libgomp.c/target-24.c: New test.
9981 * testsuite/libgomp.c/target-25.c: New test.
9982 * testsuite/libgomp.c/target-26.c: New test.
9983 * testsuite/libgomp.c/target-27.c: New test.
9984 * testsuite/libgomp.c/taskloop-1.c: New test.
9985 * testsuite/libgomp.c/taskloop-2.c: New test.
9986 * testsuite/libgomp.c/taskloop-3.c: New test.
9987 * testsuite/libgomp.c/taskloop-4.c: New test.
9988 * testsuite/libgomp.c++/ctor-13.C: New test.
9989 * testsuite/libgomp.c++/doacross-1.C: New test.
9990 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
9991 Replace offload_device with offload_device_nonshared_as.
9992 * testsuite/libgomp.c++/for-12.C: New test.
9993 * testsuite/libgomp.c++/for-13.C: New test.
9994 * testsuite/libgomp.c++/for-14.C: New test.
9995 * testsuite/libgomp.c++/linear-1.C: New test.
9996 * testsuite/libgomp.c++/member-1.C: New test.
9997 * testsuite/libgomp.c++/member-2.C: New test.
9998 * testsuite/libgomp.c++/member-3.C: New test.
9999 * testsuite/libgomp.c++/member-4.C: New test.
10000 * testsuite/libgomp.c++/member-5.C: New test.
10001 * testsuite/libgomp.c++/ordered-1.C: New test.
10002 * testsuite/libgomp.c++/reduction-5.C: New test.
10003 * testsuite/libgomp.c++/reduction-6.C: New test.
10004 * testsuite/libgomp.c++/reduction-7.C: New test.
10005 * testsuite/libgomp.c++/reduction-8.C: New test.
10006 * testsuite/libgomp.c++/reduction-9.C: New test.
10007 * testsuite/libgomp.c++/reduction-10.C: New test.
10008 * testsuite/libgomp.c++/reference-1.C: New test.
10009 * testsuite/libgomp.c++/simd14.C: New test.
10010 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
10011 * testsuite/libgomp.c++/target-5.C: New test.
10012 * testsuite/libgomp.c++/target-6.C: New test.
10013 * testsuite/libgomp.c++/target-7.C: New test.
10014 * testsuite/libgomp.c++/target-8.C: New test.
10015 * testsuite/libgomp.c++/target-9.C: New test.
10016 * testsuite/libgomp.c++/target-10.C: New test.
10017 * testsuite/libgomp.c++/target-11.C: New test.
10018 * testsuite/libgomp.c++/target-12.C: New test.
10019 * testsuite/libgomp.c++/taskloop-1.C: New test.
10020 * testsuite/libgomp.c++/taskloop-2.C: New test.
10021 * testsuite/libgomp.c++/taskloop-3.C: New test.
10022 * testsuite/libgomp.c++/taskloop-4.C: New test.
10023 * testsuite/libgomp.c++/taskloop-5.C: New test.
10024 * testsuite/libgomp.c++/taskloop-6.C: New test.
10025 * testsuite/libgomp.c++/taskloop-7.C: New test.
10026 * testsuite/libgomp.c++/taskloop-8.C: New test.
10027 * testsuite/libgomp.c++/taskloop-9.C: New test.
10028 * testsuite/libgomp.fortran/affinity1.f90: New test.
10029 * testsuite/libgomp.fortran/affinity2.f90: New test.
10031 2015-10-13 Tom de Vries <tom@codesourcery.com>
10033 PR tree-optimization/67476
10034 * testsuite/libgomp.c/autopar-3.c: New test.
10035 * testsuite/libgomp.c/autopar-4.c: New test.
10036 * testsuite/libgomp.c/autopar-5.c: New test.
10037 * testsuite/libgomp.c/autopar-6.c: New test.
10038 * testsuite/libgomp.c/autopar-7.c: New test.
10039 * testsuite/libgomp.c/autopar-8.c: New test.
10041 2015-10-12 James Norris <jnorris@codesourcery.com>
10043 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
10046 2015-10-09 David Malcolm <dmalcolm@redhat.com>
10048 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
10049 using load_gcc_lib.
10051 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
10053 * oacc-ptx.h: Remove file, moving its content into...
10054 * config/nvptx/fortran.c: ... here...
10055 * config/nvptx/oacc-init.c: ..., here...
10056 * config/nvptx/oacc-parallel.c: ..., and here.
10057 * config/nvptx/openacc.f90: New file.
10058 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
10059 (link_ptx): Don't link in predefined bits of PTX code.
10061 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
10062 Bernd Schmidt <bernds@codesourcery.com>
10064 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
10065 (struct targ_ptx_obj): New.
10066 (nvptx_tdata): Move earlier, change data format.
10067 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
10069 (GOMP_OFFLOAD_load_image): Adjust.
10071 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10073 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
10074 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
10075 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
10076 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
10077 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10078 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10079 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10080 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10081 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10082 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10083 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10084 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
10085 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
10086 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10087 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10088 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10089 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
10090 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10091 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10092 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10093 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10094 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10095 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
10096 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
10097 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10098 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10099 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
10100 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10101 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10102 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
10103 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
10104 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
10105 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
10106 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
10107 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10108 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10109 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10110 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10111 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10112 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10113 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10114 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10115 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
10116 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
10117 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
10118 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
10119 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
10120 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
10121 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
10122 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
10123 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
10124 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
10125 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
10126 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
10127 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
10128 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10129 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10130 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10131 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10132 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10133 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10134 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10135 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10137 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
10139 * oacc-init.c (acc_on_device): Force optimization level.
10141 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
10143 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
10144 (cuda_errlist): Delete.
10145 (cuda_error): Reimplement.
10147 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
10149 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
10151 * libgomp.map (GOACC_parallel_keyed): New.
10152 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
10154 (GOACC_parallel_keyed): New interface. Lose geometry arguments
10155 and take keyed varargs list. Adjust call to exec_func.
10156 (GOACC_parallel): Force host fallback.
10157 * libgomp_g.h (GOACC_parallel): Remove.
10158 (GOACC_parallel_keyed): Declare.
10159 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
10160 (struct targ_gn_descriptor): Replace name field with launch field.
10161 (nvptx_exec): Lose separate geometry args, take array. Process
10162 dynamic dimensions and adjust.
10163 (struct nvptx_tdata): Replace fn_names field with fn_descs.
10164 (GOMP_OFFLOAD_load_image): Adjust for change in function table
10166 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
10168 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
10171 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
10174 * oacc-int.h (goacc_host_init): Add declaration.
10175 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
10176 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
10178 2015-09-08 Aditya Kumar <hiraditya@msn.com>
10179 Sebastian Pop <s.pop@samsung.com>
10181 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
10183 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
10184 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
10185 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
10186 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
10187 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
10189 2015-09-03 Jakub Jelinek <jakub@redhat.com>
10191 * configure.tgt: Add missing ;; in between nvptx and rtems
10194 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
10196 * config/posix/pool.h (gomp_adjust_thread_attr): New.
10197 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
10198 (gomp_thread_pool_reservoir): Add priority member.
10199 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
10201 (parse_thread_pools): Likewise.
10202 * team.c (gomp_team_start): Call configuration provided
10203 gomp_adjust_thread_attr(). Destroy thread attributes if
10205 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
10207 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
10209 * config/posix/pool.h: New.
10210 * config/rtems/pool.h: Likewise.
10211 * config/rtems/proc.c: Likewise.
10212 * libgomp.h (gomp_thread_destructor): Declare.
10213 * team.c: Include configuration provided "pool.h".
10214 (gomp_get_thread_pool): Define in configuration.
10215 (gomp_team_end): Call configuration defined
10216 gomp_release_thread_pool().
10218 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
10220 * config/rtems/bar.c: New.
10221 * config/rtems/bar.h: Likewise.
10222 * config/rtems/mutex.c: Likewise.
10223 * config/rtems/mutex.h: Likewise.
10224 * config/rtems/sem.c: Likewise.
10225 * config/rtems/sem.h: Likewise.
10226 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
10227 <sys/lock.h> header file.
10228 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
10229 supported by Newlib.
10230 * configure: Regenerate.
10232 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
10234 * team.c (gomp_new_thread_pool): Delete and move content to ...
10235 (gomp_get_thread_pool): ... new function. Allocate and
10236 initialize thread pool on demand.
10237 (get_last_team): Use gomp_get_thread_pool().
10238 (gomp_team_start): Delete thread pool initialization.
10240 2015-09-03 Tom de Vries <tom@codesourcery.com>
10242 PR tree-optimization/65637
10243 * testsuite/libgomp.c/autopar-2.c: New test.
10245 2015-08-29 Tom de Vries <tom@codesourcery.com>
10247 PR tree-optimization/46193
10248 * testsuite/libgomp.c/pr46193.c: New test.
10250 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
10253 * libgomp.map: Add 4.0.2 version.
10254 * target.c (offload_image_descr): Add version field.
10255 (gomp_load_image_to_device): Add version argument. Adjust plugin
10256 call. Improve load mismatch diagnostic.
10257 (gomp_unload_image_from_device): Add version argument. Adjust plugin
10259 (GOMP_offload_regster): Make stub function, move bulk to ...
10260 (GOMP_offload_register_ver): ... here. Process version argument.
10261 (GOMP_offload_unregister): Make stub function, move bulk to ...
10262 (GOMP_offload_unregister_ver): ... here. Process version argument.
10263 (gomp_init_device): Process version field.
10264 (gomp_unload_device): Process version field.
10265 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
10266 macros. Check plugin version.
10267 * libgomp.h (gomp_device_descr): Add version function field. Adjust
10268 loader and unloader types.
10269 * oacc-host.c: Include gomp-constants.h.
10270 (host_version): New.
10271 (host_load_image, host_unload_image): Adjust.
10272 (host_dispatch): Add host_version.
10273 * plugin/plugin-nvptx.c: Include gomp-constants.h.
10274 (GOMP_OFFLOAD_version): New.
10275 (GOMP_OFFLOAD_load_image): Add version arg and check it.
10276 (GOMP_OFFLOAD_unload_image): Likewise.
10277 * plugin/plugin-host.c: Include gomp-constants.h.
10278 (GOMP_OFFLOAD_version): New.
10279 (GOMP_OFFLOAD_load_image): Add version arg.
10280 (GOMP_OFFLOAD_unload_image): Likewise.
10282 2015-08-24 Tom de Vries <tom@codesourcery.com>
10284 PR tree-optimization/65468
10285 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
10287 2015-08-24 Tom de Vries <tom@codesourcery.com>
10289 PR tree-optimization/65468
10290 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
10292 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
10296 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
10297 (gomp_iter_guided_next): Idem.
10298 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
10299 (gomp_iter_ull_guided_next): Idem.
10300 * config/linux/wait.h (do_spin): Idem.
10302 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10304 * libgomp-plugin.h (enum offload_target_type): Remove
10305 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
10306 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
10307 * openacc.h (enum acc_device_t): Likewise.
10308 * openacc_lib.h: Likewise.
10309 * oacc-init.c (name_of_acc_device_t): Don't handle it.
10310 (acc_on_device): Just use __builtin_acc_on_device.
10311 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
10312 of acc_on_device builtin.
10313 * plugin/plugin-host.h: Remove file.
10314 * plugin/plugin-host.c: Likewise, but salvage some content into...
10315 * oacc-host.c: ... this file.
10316 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
10317 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
10318 * Makefile.in: Regenerate.
10319 * configure: Likewise.
10320 * testsuite/lib/libgomp.exp
10321 (check_effective_target_openacc_host_nonshm_selected): Remove.
10322 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
10323 ACC_DEVICE_TYPE=host_nonshm.
10324 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10325 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10326 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
10327 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
10328 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
10329 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
10331 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10332 Jakub Jelinek <jakub@redhat.com>
10334 * config/nvptx/affinity.c: New file.
10335 * config/nvptx/alloc.c: Likewise.
10336 * config/nvptx/bar.c: Likewise.
10337 * config/nvptx/barrier.c: Likewise.
10338 * config/nvptx/critical.c: Likewise.
10339 * config/nvptx/env.c: Likewise.
10340 * config/nvptx/error.c: Likewise.
10341 * config/nvptx/fortran.c: Likewise.
10342 * config/nvptx/iter.c: Likewise.
10343 * config/nvptx/iter_ull.c: Likewise.
10344 * config/nvptx/libgomp-plugin.c: Likewise.
10345 * config/nvptx/lock.c: Likewise.
10346 * config/nvptx/loop.c: Likewise.
10347 * config/nvptx/loop_ull.c: Likewise.
10348 * config/nvptx/mutex.c: Likewise.
10349 * config/nvptx/oacc-async.c: Likewise.
10350 * config/nvptx/oacc-cuda.c: Likewise.
10351 * config/nvptx/oacc-host.c: Likewise.
10352 * config/nvptx/oacc-init.c: Likewise.
10353 * config/nvptx/oacc-mem.c: Likewise.
10354 * config/nvptx/oacc-parallel.c: Likewise.
10355 * config/nvptx/oacc-plugin.c: Likewise.
10356 * config/nvptx/omp-lock.h: Likewise.
10357 * config/nvptx/ordered.c: Likewise.
10358 * config/nvptx/parallel.c: Likewise.
10359 * config/nvptx/proc.c: Likewise.
10360 * config/nvptx/ptrlock.c: Likewise.
10361 * config/nvptx/sections.c: Likewise.
10362 * config/nvptx/sem.c: Likewise.
10363 * config/nvptx/single.c: Likewise.
10364 * config/nvptx/splay-tree.c: Likewise.
10365 * config/nvptx/target.c: Likewise.
10366 * config/nvptx/task.c: Likewise.
10367 * config/nvptx/team.c: Likewise.
10368 * config/nvptx/time.c: Likewise.
10369 * config/nvptx/work.c: Likewise.
10370 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
10371 * configure: Regenerate.
10372 * configure.tgt (config_path): Set to "nvptx" for target
10375 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10377 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
10379 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
10381 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
10382 (cuda_errlist): Constify.
10383 (errmsg): Move into ...
10384 (cuda_error): ... here. Make smaller.
10385 (_XSTR, _STR): Delete.
10386 (cuda_synames): Delete.
10387 (verify_device_library): Delete.
10388 (nvptx_init): Don't call it.
10390 2015-07-28 Tom de Vries <tom@codesourcery.com>
10392 * testsuite/libgomp.c/uns-outer-4.c: New test.
10394 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
10396 * testsuite/libgomp.c/pr66714.c: New test.
10398 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
10401 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
10402 (fib_ref): New function.
10403 (fib): Correct corner cases in the recursion.
10404 (main): Replace the non-simd loop with fib_ref call.
10405 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
10407 (fibonacci): Lower the parameter N to 30. Correct accordingly check
10408 for the last array element value. Replace the non-simd loop with
10409 fib_ref call. Remove redundant b_ref array. Remove the comparison
10410 of the last array element with according Fibonacci sequence element.
10411 (fib): Correct corner cases in the recursion.
10413 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
10415 * target.c (gomp_offload_image_to_device): Rename to ...
10416 (gomp_load_image_to_device): ... here.
10417 (GOMP_offload_register): Adjust call.
10418 (gomp_init_device): Likewise.
10419 (gomp_unload_image_from_device): New. Broken out of ...
10420 (GOMP_offload_unregister): ... here. Call it.
10421 (gomp_unload_device): New.
10422 * libgomp.h (gomp_unload_device): Declare.
10423 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
10426 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
10428 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
10430 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
10432 (goacc_waits): Move !num_waits handling to ...
10433 (GOACC_wait): ... here, the only caller that might have zero waits.
10435 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
10436 (struct ptx_image_data): Move earlier, add fns field.
10437 (struct ptx_device): Add images and image_lock fields.
10438 (ptx_images, ptx_image_lock): Delete.
10439 (nvptx_open_device): Initialize images and image_lock fields.
10440 (nvptx_close_device): Destroy image_lock.
10441 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
10442 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
10445 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
10447 * target.c (GOMP_offload_register): Use int for device type arg.
10448 (GOMP_offload_unregister): Likewise.
10450 * target.c (struct_offload_image_descr): Constify host_table.
10451 (gomp_offload_image_to_device): Likewise.
10452 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
10454 * libgomp.h (gomp_device_descr): Constify target data arguments.
10455 * target.c (struct offload_image_descr): Constify target_data.
10456 (gomp_offload_image_to_device): Likewise.
10457 (GOMP_offload_register): Likewise.
10458 (GOMP_offload_unregister): Likewise.
10459 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
10460 GOMP_OFFLOAD_unload_image): Constify target data.
10461 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
10462 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
10464 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
10466 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
10467 Workaround driver library const error.
10468 (struct nvptx_tdata, nvptx_tdata_t): New.
10469 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
10472 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
10474 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
10475 of EPS parameter from integer to real.
10476 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
10477 type of EPS parameter from integer to real.
10479 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
10481 * team.c (get_last_team): New.
10482 (gomp_new_team): Recycle last non-nested team if possible.
10483 (gomp_team_end): Move team work share list free lock destruction
10485 (free_team): ... here.
10487 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
10489 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
10490 and ref from int to double. Replaced their comparison with
10491 an inequality of their difference and EPS.
10492 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
10493 comparison of pri and a reference number with an inequality of their
10494 difference and EPS.
10495 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
10496 the comparison of sum and sum_ref with an inequality of their
10497 difference and EPS.
10498 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
10499 the comparison of pri and a reference number with an inequality of
10500 their difference and EPS.
10502 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
10504 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
10505 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
10506 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
10507 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
10508 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
10509 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
10510 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
10511 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
10512 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
10513 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
10514 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
10515 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
10516 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
10518 (vec_mult): Likewise. Add #pragma omp taskwait.
10519 (main): Adjust caller.
10520 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
10521 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
10522 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
10523 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
10524 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
10525 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
10526 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
10527 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
10528 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
10529 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
10530 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
10531 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
10532 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
10533 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
10534 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
10535 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
10536 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
10537 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
10538 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
10539 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
10540 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
10541 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
10542 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
10543 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
10544 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
10545 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
10546 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
10547 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
10548 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
10549 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
10550 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
10551 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
10552 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
10553 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
10554 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
10555 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
10556 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
10557 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
10558 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
10559 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
10560 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
10561 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
10562 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
10563 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
10564 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
10565 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
10566 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
10567 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
10568 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
10569 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
10570 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
10571 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
10572 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
10573 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
10574 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
10575 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
10576 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
10577 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
10578 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
10579 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
10580 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
10581 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
10582 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
10583 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
10584 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
10585 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
10586 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
10587 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
10588 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
10589 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
10590 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
10591 (vec_mult): Add !$omp taskwait.
10592 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
10593 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
10594 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
10595 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
10596 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
10597 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
10598 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
10599 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
10600 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
10601 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
10602 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
10603 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
10604 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
10605 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
10606 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
10607 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
10608 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
10609 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
10610 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
10611 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
10612 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
10613 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
10614 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
10615 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
10616 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
10617 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
10618 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
10619 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
10620 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
10621 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
10622 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
10623 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
10624 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
10625 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
10626 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
10627 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
10628 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
10629 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
10630 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
10631 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
10632 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
10633 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
10634 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
10635 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
10636 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
10637 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
10638 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
10639 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
10640 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
10641 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
10642 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
10643 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
10644 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
10645 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
10646 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
10647 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
10648 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
10649 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
10650 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
10651 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
10652 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
10653 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
10654 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
10655 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
10656 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
10657 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
10658 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
10660 2015-07-10 Tom de Vries <tom@codesourcery.com>
10662 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
10663 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
10665 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
10668 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
10669 in a 64-bit configuration.
10670 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
10671 offloading testing if no such device is available.
10672 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10673 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10675 2015-07-08 Tom de Vries <tom@codesourcery.com>
10677 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
10679 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10681 2015-07-07 Tom de Vries <tom@codesourcery.com>
10683 PR tree-optimization/66642
10684 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
10685 iteration count case.
10686 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
10687 function, factor out of ...
10688 (main): ... here. Test low iteration count case.
10690 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
10692 * libgomp.h (gomp_thread_pool): Comment last_team field.
10694 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
10696 * testsuite/libgomp.c++/pr66702-1.C: Require
10697 vect_simd_clones effective target.
10698 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
10700 2015-06-30 Tom de Vries <tom@codesourcery.com>
10702 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
10703 already set. Use DEFAULT_CFLAGS in dg-runtest.
10704 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
10707 2015-06-30 Tom de Vries <tom@codesourcery.com>
10709 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
10710 already set. Use DEFAULT_CFLAGS in dg-runtest.
10711 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
10712 * testsuite/libgomp.c++/pr64824.C: Same.
10713 * testsuite/libgomp.c++/pr64868.C: Same.
10714 * testsuite/libgomp.c++/pr66199-1.C: Same.
10715 * testsuite/libgomp.c++/pr66199-2.C: Same.
10716 * testsuite/libgomp.c++/target-2.C: Same.
10717 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
10718 -std=<standard> option.
10719 * testsuite/libgomp.c++/udr-11.C: Same.
10720 * testsuite/libgomp.c++/udr-12.C: Same.
10721 * testsuite/libgomp.c++/udr-13.C: Same.
10722 * testsuite/libgomp.c++/udr-14.C: Same.
10723 * testsuite/libgomp.c++/udr-15.C: Same.
10724 * testsuite/libgomp.c++/udr-16.C: Same.
10725 * testsuite/libgomp.c++/udr-17.C: Same.
10726 * testsuite/libgomp.c++/udr-18.C: Same.
10727 * testsuite/libgomp.c++/udr-19.C: Same.
10728 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
10729 * testsuite/libgomp.c++/simd-1.C: Same.
10730 * testsuite/libgomp.c++/simd-2.C: Same.
10731 * testsuite/libgomp.c++/simd-3.C: Same.
10732 * testsuite/libgomp.c++/simd-4.C: Same.
10733 * testsuite/libgomp.c++/simd-5.C: Same.
10734 * testsuite/libgomp.c++/simd-6.C: Same.
10735 * testsuite/libgomp.c++/simd-7.C: Same.
10736 * testsuite/libgomp.c++/simd-8.C: Same.
10737 * testsuite/libgomp.c++/simd-9.C: Same.
10738 * testsuite/libgomp.c++/simd10.C: Same.
10739 * testsuite/libgomp.c++/simd11.C: Same.
10740 * testsuite/libgomp.c++/simd12.C: Same.
10741 * testsuite/libgomp.c++/simd13.C: Same.
10743 2015-06-30 Jakub Jelinek <jakub@redhat.com>
10745 PR middle-end/66702
10746 * testsuite/libgomp.c++/pr66702-1.C: New test.
10747 * testsuite/libgomp.c++/pr66702-2.C: New test.
10749 2015-06-30 Tom de Vries <tom@codesourcery.com>
10751 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
10752 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
10753 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
10754 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
10756 2015-06-30 Tom de Vries <tom@codesourcery.com>
10758 PR tree-optimization/66652
10759 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
10760 using restrict pointers.
10761 (main): Add arguments to calls to f.
10762 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10764 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
10766 * configure.ac: Fix check for header <sys/sysctl.h>.
10767 * configure: Regenerate.
10768 * config.h.in: Likewise.
10770 2015-06-23 Tom de Vries <tom@codesourcery.com>
10772 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
10774 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
10776 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
10778 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
10782 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
10783 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10785 2015-06-15 Tom de Vries <tom@codesourcery.com>
10787 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
10788 dg-additional-options for any remaining options.
10789 * testsuite/libgomp.c/atomic-2.c: Same.
10790 * testsuite/libgomp.c/atomic-4.c: Same.
10791 * testsuite/libgomp.c/atomic-5.c: Same.
10792 * testsuite/libgomp.c/atomic-6.c: Same.
10793 * testsuite/libgomp.c/autopar-1.c: Same.
10794 * testsuite/libgomp.c/copyin-1.c: Same.
10795 * testsuite/libgomp.c/copyin-2.c: Same.
10796 * testsuite/libgomp.c/copyin-3.c: Same.
10797 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
10798 * testsuite/libgomp.c/nestedfn-5.c: Same.
10799 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
10800 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
10801 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
10802 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10803 * testsuite/libgomp.c/pr32362-1.c: Same.
10804 * testsuite/libgomp.c/pr32362-2.c: Same.
10805 * testsuite/libgomp.c/pr32362-3.c: Same.
10806 * testsuite/libgomp.c/pr39591-1.c: Same.
10807 * testsuite/libgomp.c/pr39591-2.c: Same.
10808 * testsuite/libgomp.c/pr39591-3.c: Same.
10809 * testsuite/libgomp.c/pr58392.c: Same.
10810 * testsuite/libgomp.c/pr58756.c: Same.
10811 * testsuite/libgomp.c/simd-1.c: Same.
10812 * testsuite/libgomp.c/simd-10.c: Same.
10813 * testsuite/libgomp.c/simd-11.c: Same.
10814 * testsuite/libgomp.c/simd-12.c: Same.
10815 * testsuite/libgomp.c/simd-13.c: Same.
10816 * testsuite/libgomp.c/simd-14.c: Same.
10817 * testsuite/libgomp.c/simd-15.c: Same.
10818 * testsuite/libgomp.c/simd-2.c: Same.
10819 * testsuite/libgomp.c/simd-3.c: Same.
10820 * testsuite/libgomp.c/simd-4.c: Same.
10821 * testsuite/libgomp.c/simd-5.c: Same.
10822 * testsuite/libgomp.c/simd-6.c: Same.
10823 * testsuite/libgomp.c/simd-7.c: Same.
10824 * testsuite/libgomp.c/simd-8.c: Same.
10825 * testsuite/libgomp.c/simd-9.c: Same.
10827 2015-06-15 Tom de Vries <tom@codesourcery.com>
10829 * testsuite/libgomp.c/pr35625.c: Fix typo.
10831 2015-06-15 Tom de Vries <tom@codesourcery.com>
10833 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
10835 * testsuite/libgomp.c/atomic-3.c: Same.
10836 * testsuite/libgomp.c/debug-1.c: Same.
10837 * testsuite/libgomp.c/nqueens-1.c: Same.
10838 * testsuite/libgomp.c/pr26171.c: Same.
10839 * testsuite/libgomp.c/pr48591.c: Same.
10840 * testsuite/libgomp.c/pr64824.c: Same.
10841 * testsuite/libgomp.c/pr64868.c: Same.
10842 * testsuite/libgomp.c/pr66133.c: Same.
10843 * testsuite/libgomp.c/pr66199-1.c: Same.
10844 * testsuite/libgomp.c/pr66199-2.c: Same.
10845 * testsuite/libgomp.c/target-8.c: Same.
10847 2015-06-15 Tom de Vries <tom@codesourcery.com>
10849 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
10851 * testsuite/libgomp.c/for-1.c: Same.
10852 * testsuite/libgomp.c/for-2.c: Same.
10853 * testsuite/libgomp.c/for-3.c: Same.
10854 * testsuite/libgomp.c/pr35625.c: Same.
10855 * testsuite/libgomp.c/pr39154.c: Same.
10856 * testsuite/libgomp.c/simd-16.c: Same.
10857 * testsuite/libgomp.c/simd-17.c: Same.
10859 2015-06-13 Tom de Vries <tom@codesourcery.com>
10861 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
10863 2015-06-13 Tom de Vries <tom@codesourcery.com>
10865 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
10866 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10867 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
10869 (main): Use N instead of hardcoded constants.
10871 2015-06-05 Tom de Vries <tom@codesourcery.com>
10873 merge from gomp4 branch:
10874 2015-05-28 Tom de Vries <tom@codesourcery.com>
10876 PR tree-optimization/65443
10877 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
10878 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
10879 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
10881 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10883 * testsuite/libgomp.graphite/bounds.c: Adjust for
10884 cleanup-tree-dump removal.
10885 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
10886 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
10887 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
10888 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
10889 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
10890 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
10891 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10892 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10893 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10894 * testsuite/libgomp.graphite/pr41118.c: Likewise.
10896 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
10898 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
10899 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
10900 (futex_wake) [!__x86_64__]: Ditto.
10902 2015-05-28 Julian Brown <julian@codesourcery.com>
10904 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
10905 function comment. Only call gomp_fatal if new argument is true.
10906 (acc_dev_num_out_of_range): New function.
10907 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
10908 acc_dev_num_out_of_range as appropriate.
10909 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
10910 (acc_get_device_num, acc_set_device_num): Update calls to
10912 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
10915 2015-05-28 Julian Brown <julian@codesourcery.com>
10918 * oacc-init.c (plugin/plugin-host.h): Include.
10919 (acc_on_device): Check whether we're in an offloaded region for
10921 plugin. Don't use __builtin_acc_on_device.
10922 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
10923 nonshm_exec flag in thread-local data.
10924 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
10925 data for host_nonshm plugin.
10926 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
10927 for host_nonshm plugin.
10928 * plugin/plugin-host.h: New.
10930 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
10932 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
10934 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
10936 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
10938 (FUTEX_PRIVATE_FLAG): Remove L suffix.
10939 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
10942 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
10944 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
10946 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
10948 * target.c (gomp_map_pointer): New function abstracting out
10949 GOMP_MAP_POINTER handling.
10950 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
10951 gomp_map_pointer().
10953 2015-05-19 Jakub Jelinek <jakub@redhat.com>
10955 PR middle-end/66199
10956 * testsuite/libgomp.c/pr66199-1.c: New test.
10957 * testsuite/libgomp.c/pr66199-2.c: New test.
10958 * testsuite/libgomp.c++/pr66199-1.C: New test.
10959 * testsuite/libgomp.c++/pr66199-2.C: New test.
10960 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
10961 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
10963 2015-05-19 Julian Brown <julian@codesourcery.com>
10965 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
10968 2015-05-13 Jakub Jelinek <jakub@redhat.com>
10970 PR middle-end/66133
10971 * testsuite/libgomp.c/pr66133.c: New test.
10973 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
10975 * Makefile.in: Regenerated with automake-1.11.6.
10976 * aclocal.m4: Likewise.
10977 * config.h.in: Likewise.
10978 * configure: Likewise.
10979 * testsuite/Makefile.in: Likewise.
10981 2015-05-08 Jason Merrill <jason@redhat.com>
10983 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
10986 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
10988 2015-05-06 Julian Brown <julian@codesourcery.com>
10990 * oacc-init.c (acc_device_lock): Add explanatory comment.
10991 (resolve_device): Add comment about locking requirement.
10992 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
10993 gomp_init_device and gomp_fini_device calls.
10994 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
10995 (acc_get_device_num, acc_set_device_num): Add locking around
10996 resolve_device and gomp_init_device calls.
10998 2015-05-06 Julian Brown <julian@codesourcery.com>
11000 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
11001 goacc_thread_lock on error paths.
11002 * oacc-mem.c (lookup_host): Remove locking from function. Note
11003 locking requirement for caller in function comment.
11004 (lookup_dev): Likewise.
11005 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
11006 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
11007 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
11010 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
11014 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
11015 don't expect "0x" prefix for "%p" format specifier, don't expect
11016 "(nil)" for NULL pointer.
11017 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11018 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11019 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11020 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11021 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11022 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11023 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11024 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11025 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11026 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11027 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11028 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11029 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11030 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11031 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11032 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11033 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11034 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11035 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11036 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11037 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11038 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11039 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11040 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11041 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11042 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11043 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11044 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11045 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
11046 accurately specify what we're looking for.
11047 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11048 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11049 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11050 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11051 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11053 2015-04-30 James Norris <jnorris@codesourcery.com>
11056 * testsuite/lib/libgomp.exp
11057 (check_effective_target_openacc_host_selected)
11058 (check_effective_target_openacc_host_nonshm_selected): New
11060 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
11062 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11063 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11064 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11065 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11066 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11067 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11068 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11069 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11070 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11071 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11072 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11073 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11074 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11075 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11076 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11077 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11078 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11079 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11080 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11081 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11082 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11083 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11084 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11085 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11086 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11087 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11088 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11089 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11090 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11091 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11092 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11093 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11094 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11095 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11096 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11097 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11098 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11099 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11100 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11101 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11102 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11103 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11104 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11106 2015-04-08 Julian Brown <julian@codesourcery.com>
11108 * libgomp.h (target_mem_desc: Remove mem_map field.
11109 (acc_dispatch_t): Remove open_device_func, close_device_func,
11110 get_device_num_func, set_device_num_func, target_data members.
11111 Change create_thread_data_func argument to device number instead of
11113 * oacc-async.c (assert.h): Include.
11114 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
11115 (acc_wait_all, acc_wait_all_async): Use current host thread's
11116 active device, not base_dev.
11117 * oacc-cuda.c (acc_get_current_cuda_device)
11118 (acc_get_current_cuda_context, acc_get_cuda_stream)
11119 (acc_set_cuda_stream): Likewise.
11120 * oacc-host.c (host_dispatch): Don't set open_device_func,
11121 close_device_func, get_device_num_func or set_device_num_func.
11122 * oacc-init.c (base_dev, init_key): Remove.
11123 (cached_base_dev): New.
11124 (name_of_acc_device_t): New.
11125 (acc_init_1): Initialise default-numbered device, not zeroth.
11126 (acc_shutdown_1): Close all devices of a given type.
11127 (goacc_destroy_thread): Don't use base_dev.
11128 (lazy_open, lazy_init, lazy_init_and_open): Remove.
11129 (goacc_attach_host_thread_to_device): New.
11130 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
11131 (acc_get_num_devices): Don't use base_dev.
11132 (acc_set_device_type): Reimplement.
11133 (acc_get_device_type): Don't use base_dev.
11134 (acc_get_device_num): Tweak logic.
11135 (acc_set_device_num): Likewise.
11136 (acc_on_device): Use acc_get_device_type.
11137 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
11138 (goacc_lazy_initialize): Reimplement with acc_init and
11139 goacc_attach_host_thread_to_device.
11140 * oacc-int.h (goacc_thread): Add base_dev field.
11141 (base_dev): Remove extern declaration.
11142 (goacc_attach_host_thread_to_device): Add prototype.
11143 * oacc-mem.c (acc_malloc): Use current thread's device instead of
11145 (acc_free): Likewise.
11146 (acc_memcpy_to_device): Likewise.
11147 (acc_memcpy_from_device): Likewise.
11148 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
11149 goacc_lazy_initialize (throughout).
11150 (GOACC_parallel): Use tgt_offset to locate target functions.
11151 * target.c (gomp_map_vars): Don't set tgt->mem_map.
11152 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
11153 (gomp_load_plugin_for_device): Remove open_device, close_device,
11154 get_device_num, set_device_num openacc hook initialisation. Don't set
11155 openacc.target_data.
11156 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
11157 (GOMP_OFFLOAD_openacc_close_device)
11158 (GOMP_OFFLOAD_openacc_get_device_num)
11159 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
11160 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
11162 * plugin/plugin-nvptx.c (ptx_inited): Remove.
11163 (instantiated_devices, ptx_dev_lock): New.
11164 (struct ptx_image_data): New.
11165 (ptx_devices, ptx_images, ptx_image_lock): New.
11166 (fini_streams_for_device): Reorder cuStreamDestroy call.
11167 (nvptx_get_num_devices): Remove forward declaration.
11168 (nvptx_init): Change return type to bool.
11169 (nvptx_fini): Remove.
11170 (nvptx_attach_host_thread_to_device): New.
11171 (nvptx_open_device): Return struct ptx_device* instead of void*.
11172 (nvptx_close_device): Change argument type to struct ptx_device*,
11173 return type to void.
11174 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
11175 (kernel_target_data, kernel_host_table): Remove static globals.
11176 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
11177 (GOMP_OFFLOAD_init_device): Reimplement.
11178 (GOMP_OFFLOAD_fini_device): Likewise.
11179 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
11180 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
11181 (GOMP_OFFLOAD_host2dev): Use ORD argument.
11182 (GOMP_OFFLOAD_openacc_open_device)
11183 (GOMP_OFFLOAD_openacc_close_device)
11184 (GOMP_OFFLOAD_openacc_set_device_num)
11185 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
11186 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
11190 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
11192 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
11194 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
11195 * libgomp.h (struct gomp_memory_mapping): Remove.
11196 (struct target_mem_desc): Change type of mem_map from
11197 gomp_memory_mapping * to splay_tree_s *.
11198 (struct gomp_device_descr): Remove register_image_func, get_table_func.
11199 Add load_image_func, unload_image_func.
11200 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
11201 Remove offload_regions_registered.
11202 (gomp_init_tables): Remove.
11203 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
11205 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
11206 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
11207 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
11208 offload_regions_registered.
11209 Initialize load_image_func, unload_image_func, mem_map.root.
11210 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
11211 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
11212 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
11213 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
11214 gomp_memory_mapping *. Use dev's lock and splay_tree.
11215 (lookup_dev): Use dev's lock.
11216 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
11217 (acc_is_present): Likewise.
11218 (acc_map_data): Likewise.
11219 (acc_unmap_data): Likewise. Use dev's lock.
11220 (present_create_copy): Likewise.
11221 (delete_copyout): Pass dev to lookup_host instead of mem_map.
11222 (update_dev_host): Likewise.
11223 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
11224 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
11225 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
11226 (GOMP_OFFLOAD_get_table): Remove
11227 (GOMP_OFFLOAD_load_image): New function.
11228 (GOMP_OFFLOAD_unload_image): New function.
11229 * target.c (register_lock): New mutex for offload image registration.
11230 (num_devices): Do not guard with PLUGIN_SUPPORT.
11231 (gomp_realloc_unlock): New static function.
11232 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
11234 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
11235 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
11236 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
11238 (gomp_unmap_vars): Likewise.
11239 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
11240 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
11241 (gomp_offload_image_to_device): New static function.
11242 (GOMP_offload_register): Add mutex lock.
11243 Call gomp_offload_image_to_device for all initialized devices.
11244 Replace gomp_realloc with gomp_realloc_unlock.
11245 (GOMP_offload_unregister): New function.
11246 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
11247 get_table_func from the plugin with calls to init_device_func and
11248 gomp_offload_image_to_device.
11249 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
11251 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
11252 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
11253 (GOMP_target_data): Do not call gomp_init_tables.
11254 (GOMP_target_update): Likewise. Remove argument from gomp_update.
11255 (gomp_load_plugin_for_device): Replace register_image and get_table
11256 with load_image and unload_image in DLSYM ().
11257 (gomp_register_images_for_device): Remove function.
11258 (gomp_target_init): Do not initialize current_device.mem_map.*,
11259 current_device.offload_regions_registered.
11260 Remove call to gomp_register_images_for_device.
11261 Do not free offload_images and num_offload_images.
11263 2015-03-30 Jakub Jelinek <jakub@redhat.com>
11266 * testsuite/libgomp.fortran/pr65597.f90: New test.
11268 2015-03-27 Tom de Vries <tom@codesourcery.com>
11271 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
11272 (init, check): New function.
11273 (foo): Change return type to void.
11274 (main): Call init and check.
11276 2015-03-27 Tom de Vries <tom@codesourcery.com>
11279 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
11280 (foo): Use M for non-inner loops to scale down test-case.
11282 2015-03-25 Kai Tietz <ktietz@redhat.com>
11285 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
11286 (GOACC_data_start): Likewise.
11287 * target.c (gomp_map_vars): Likewise.
11289 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
11291 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
11294 2015-03-19 Jakub Jelinek <jakub@redhat.com>
11296 * testsuite/libgomp.c/target-10.c: New test.
11297 * testsuite/libgomp.c++/target-4.C: New test.
11299 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
11301 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
11302 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
11304 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
11306 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
11307 * configure.ac (*-*-rtems*): Assume Pthread is supported.
11308 (pthread.h): Check for this header file.
11309 * configure: Regenerate.
11311 2015-02-25 Tom de Vries <tom@codesourcery.com>
11313 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
11314 (check_reduction_op, check_reduction_macro, max, min):
11316 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
11318 (main): Use new functions.
11320 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
11322 * target.c (gomp_load_plugin_for_device): Use const char * instead of
11323 char * for variables holding dlerror return values.
11324 (DLSYM_OPT): Ditto.
11326 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
11328 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
11330 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
11331 Cesar Philippidis <cesar@codesourcery.com>
11333 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
11334 GOACC_ctaid, and GOACC_nctaid routines.
11336 2015-02-11 Jakub Jelinek <jakub@redhat.com>
11339 * testsuite/libgomp.c/atomic-18.c: New test.
11340 * testsuite/libgomp.c++/atomic-16.C: New test.
11342 2015-02-04 Jakub Jelinek <jakub@redhat.com>
11346 * testsuite/libgomp.c/pr64824.c: New test.
11347 * testsuite/libgomp.c/pr64868.c: New test.
11348 * testsuite/libgomp.c++/pr64824.C: New test.
11349 * testsuite/libgomp.c++/pr64868.C: New test.
11351 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
11354 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
11355 Link with -lpthread.
11356 * config/aix/plugin-suffix.h: Delete.
11358 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
11361 * configure.tgt (*-*-aix*): Use config_path "aix posix".
11362 (*-*-darwin*): Use config_path "bsd darwin posix".
11363 (*-*-hpux*): Use config_path "hpux posix".
11364 * target.c: Add include of plugin-suffix.h and use
11365 SONAME_SUFFIX macro.
11366 * config/aix/plugin-suffix.h: New file.
11367 * config/darwin/plugin-suffix.h: New file.
11368 * config/hpux/plugin-suffix.h: New file.
11369 * config/posix/plugin-suffix.h: New file.
11371 2015-01-23 Jakub Jelinek <jakub@redhat.com>
11373 PR middle-end/64734
11374 * libgomp.c/pr64734.c: New test.
11376 2015-01-23 Tom de Vries <tom@codesourcery.com>
11379 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
11381 2015-01-23 Tom de Vries <tom@codesourcery.com>
11384 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
11387 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
11390 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
11391 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
11392 formal parameter. Update all users.
11393 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
11394 Document unused formal parameter.
11396 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
11398 * oacc-parallel.c: Don't include <alloca.h>.
11399 (GOACC_parallel): Use gomp_alloca instead of alloca.
11401 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
11403 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
11405 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
11406 James Norris <jnorris@codesourcery.com>
11407 Tom de Vries <tom@codesourcery.com>
11408 Julian Brown <julian@codesourcery.com>
11409 Cesar Philippidis <cesar@codesourcery.com>
11410 Nathan Sidwell <nathan@codesourcery.com>
11411 Tobias Burnus <burnus@net-b.de>
11413 * Makefile.am (search_path): Add $(top_srcdir)/../include.
11414 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
11415 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
11416 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
11417 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
11418 Include $(top_srcdir)/plugin/Makefrag.am.
11419 (nodist_libsubinclude_HEADERS): Add openacc.h.
11420 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
11421 openacc.f90, openacc.mod, openacc_kinds.mod.
11422 (omp_lib.mod): Generalize into...
11423 (%.mod): ... this new rule.
11424 (openacc_kinds.mod, openacc.mod): New rules.
11425 * plugin/configfrag.ac: New file.
11426 * configure.ac: Move plugin/offloading support into it. Include
11427 it. Instantiate testsuite/libgomp-test-support.pt.exp.
11428 * plugin/Makefrag.am: New file.
11429 * testsuite/Makefile.am (OFFLOAD_TARGETS)
11430 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
11432 (libgomp-test-support.exp): New rule.
11433 (all-local): Depend on it.
11434 * Makefile.in: Regenerate.
11435 * testsuite/Makefile.in: Regenerate.
11436 * config.h.in: Likewise.
11437 * configure: Likewise.
11438 * configure.tgt: Harden shell syntax.
11439 * env.c: Include "oacc-int.h".
11440 (parse_acc_device_type): New function.
11441 (gomp_debug_var, goacc_device_type, goacc_device_num): New
11443 (initialize_env): Initialize those. Call
11444 goacc_runtime_initialize.
11445 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
11446 (gomp_fatal): Call gomp_vfatal.
11447 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
11448 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
11449 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
11450 (splay_tree_node, splay_tree, splay_tree_key)
11451 (struct target_mem_desc, struct splay_tree_key_s)
11452 (struct gomp_memory_mapping, struct acc_dispatch_t)
11453 (struct gomp_device_descr, gomp_acc_insert_pointer)
11454 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
11455 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
11456 (gomp_free_memmap, gomp_fini_device): New declarations.
11457 (gomp_vdebug, gomp_debug): New macros.
11458 Include "splay-tree.h".
11459 * libgomp.map (OACC_2.0): New symbol version. Use for
11460 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
11461 acc_set_device_type_h_, acc_get_device_type,
11462 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
11463 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
11464 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
11465 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
11466 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
11467 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
11468 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
11469 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
11470 acc_copyin_array_h_, acc_present_or_copyin,
11471 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
11472 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
11473 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
11474 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
11475 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
11476 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
11477 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
11478 acc_update_device, acc_update_device_32_h_,
11479 acc_update_device_64_h_, acc_update_device_array_h_,
11480 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
11481 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
11482 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
11483 acc_is_present_64_h_, acc_is_present_array_h_,
11484 acc_memcpy_to_device, acc_memcpy_from_device,
11485 acc_get_current_cuda_device, acc_get_current_cuda_context,
11486 acc_get_cuda_stream, acc_set_cuda_stream.
11487 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
11488 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
11489 GOACC_update, GOACC_wait, GOACC_get_thread_num,
11490 GOACC_get_num_threads.
11491 (GOMP_PLUGIN_1.0): New symbol version. Use for
11492 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
11493 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
11494 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
11495 GOMP_PLUGIN_acc_thread.
11496 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
11497 environment variable.
11498 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
11499 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
11500 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
11501 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
11502 (splay_tree_remove): New declarations.
11503 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
11504 (splay_tree_remove, splay_tree_lookup): Move into...
11505 * splay-tree.c: ... this new file.
11506 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
11507 (splay_tree_node, splay_tree, splay_tree_key)
11508 (struct target_mem_desc, struct splay_tree_key_s)
11509 (struct gomp_device_descr): Don't declare.
11510 (num_devices_openmp): New variable.
11511 (gomp_get_num_devices ): Use it.
11512 (gomp_init_targets_once): New function.
11513 (gomp_get_num_devices ): Use it.
11514 (get_kind, gomp_copy_from_async, gomp_free_memmap)
11515 (gomp_fini_device, gomp_register_image_for_device): New functions.
11516 (gomp_map_vars): Add devaddrs parameter.
11517 (gomp_update): Add mm parameter.
11518 (gomp_init_device): Move most of it into...
11519 (gomp_init_tables): ... this new function.
11520 (gomp_register_images_for_device): Remove function.
11521 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
11522 Make them hidden instead of static.
11523 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
11524 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
11525 (GOMP_target_end_data, GOMP_target_update)
11526 (gomp_load_plugin_for_device, gomp_target_init): Update for
11528 * oacc-async.c: New file.
11529 * oacc-cuda.c: Likewise.
11530 * oacc-host.c: Likewise.
11531 * oacc-init.c: Likewise.
11532 * oacc-int.h: Likewise.
11533 * oacc-mem.c: Likewise.
11534 * oacc-parallel.c: Likewise.
11535 * oacc-plugin.c: Likewise.
11536 * oacc-plugin.h: Likewise.
11537 * oacc-ptx.h: Likewise.
11538 * openacc.f90: Likewise.
11539 * openacc.h: Likewise.
11540 * openacc_lib.h: Likewise.
11541 * plugin/plugin-host.c: Likewise.
11542 * plugin/plugin-nvptx.c: Likewise.
11543 * libgomp-plugin.c: Likewise.
11544 * libgomp-plugin.h: Likewise.
11545 * libgomp_target.h: Remove file after merging content into the
11546 former file. Update all users.
11547 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
11548 (offload_targets_s, offload_targets_s_openacc): New variables.
11549 (check_effective_target_openacc_nvidia_accel_present)
11550 (check_effective_target_openacc_nvidia_accel_selected): New
11552 (libgomp_init): Update for OpenACC changes.
11553 * testsuite/libgomp-test-support.exp.in: New file.
11554 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
11555 * testsuite/libgomp.oacc-c/c.exp: Likewise.
11556 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
11557 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
11558 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
11559 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
11560 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
11561 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
11562 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
11563 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
11564 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
11565 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
11566 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
11567 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11568 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
11569 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
11570 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
11571 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
11572 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
11573 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
11574 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
11575 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
11576 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
11577 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
11578 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11579 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11580 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11581 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11582 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11583 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11584 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11585 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
11586 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
11587 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
11588 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
11589 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11590 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
11591 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11592 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
11593 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
11594 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
11595 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
11596 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11597 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11598 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11599 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
11600 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11601 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11602 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11603 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11604 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11605 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
11606 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11607 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11608 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11609 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11610 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11611 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11612 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11613 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
11614 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11615 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
11616 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11617 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11618 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11619 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
11620 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
11621 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11622 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11623 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11624 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
11625 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11626 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11627 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11628 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
11629 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
11630 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11631 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11632 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
11633 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
11634 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
11635 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
11636 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11637 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11638 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11639 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
11640 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
11641 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11642 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11643 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
11644 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
11645 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
11646 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
11647 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11648 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11649 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11650 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11651 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
11652 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11653 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11654 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
11655 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
11656 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
11657 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11658 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
11659 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
11660 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
11661 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
11662 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
11663 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11664 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
11665 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
11666 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11667 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
11668 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
11669 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11670 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
11671 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
11672 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
11673 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
11674 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
11675 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
11676 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
11677 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
11678 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
11679 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
11680 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
11681 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
11682 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
11683 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
11684 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
11685 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
11686 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11687 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
11688 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
11689 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11690 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11691 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11692 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11693 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
11695 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
11696 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
11697 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
11698 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
11699 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
11700 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11701 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11702 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11703 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11704 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11705 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11706 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11707 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11708 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11709 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11710 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11711 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11712 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11713 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11714 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11715 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11716 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11717 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11718 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11719 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11720 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11721 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11722 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11723 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11724 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11725 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11726 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11727 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11728 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11729 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11730 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11731 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11732 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11733 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11734 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11735 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11736 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11737 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11738 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11739 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11740 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11741 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11742 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11743 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11744 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11745 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11746 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11747 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11748 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11749 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11750 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11751 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11752 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11753 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11754 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11756 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
11757 Julian Brown <julian@codesourcery.com>
11758 David Malcolm <dmalcolm@redhat.com>
11760 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
11761 to "GNU Offloading and Multi Processing Runtime Library". Change
11763 * configure: Regenerate.
11764 * libgomp.texi: Update.
11766 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
11768 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
11770 * configure: Regenerate.
11772 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
11773 "intelmic" in $offload_targets.
11775 2015-01-05 Jakub Jelinek <jakub@redhat.com>
11777 Update copyright years.
11779 * libgomp.texi: Bump @copying's copyright year.
11781 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11783 * testsuite/lib/libgomp.exp: Load target-utils.exp.
11784 Move load of target-supports.exp earlier.
11786 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
11788 * testsuite/libgomp.c/target-9.c: New test.
11790 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
11792 * config.h.in: Regenerate.
11793 * configure: Regenerate.
11794 * configure.ac: Add GCC_CHECK_EMUTLS.
11795 * libgomp.h: Add check for USE_EMUTLS: this case
11796 is equal to HAVE_TLS.
11797 * team.c: Likewise.
11799 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
11801 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
11803 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
11804 Ilya Verbin <ilya.verbin@intel.com>
11806 * testsuite/libgomp.c/target-critical-1.c: New test.
11808 2014-11-26 Jakub Jelinek <jakub@redhat.com>
11810 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
11811 to dg-options unless expensive testing is on.
11812 (TESTITERS): Define to N if not defined.
11813 (main): Use TESTITERS instead of N.
11814 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
11815 dg-additional-options depending on whether expensive testing is on.
11816 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
11817 Decrease N to 100000 and CHUNKSZ to 10000.
11819 2014-11-24 Jakub Jelinek <jakub@redhat.com>
11822 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
11823 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
11825 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
11827 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
11829 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
11832 * configure: Regenerated.
11834 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
11836 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
11837 vect_simd_clones effective target.
11838 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
11840 2014-11-14 Jakub Jelinek <jakub@redhat.com>
11842 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
11843 of 32 as block_size.
11844 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
11845 instead of 32 as block_size.
11847 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
11848 Ilya Verbin <ilya.verbin@intel.com>
11850 * Makefile.in: Regenerate.
11851 * configure: Regenerate.
11852 * configure.ac: Set up offload_additional_options,
11853 offload_additional_lib_paths and offload_targets.
11854 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
11855 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
11856 * testsuite/Makefile.in: Regenerate.
11857 * testsuite/lib/libgomp.exp (libgomp_init): Append
11858 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
11859 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
11860 build directory to LD_LIBRARY_PATH for intelmic offload targets.
11862 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
11863 Ilya Verbin <ilya.verbin@intel.com>
11864 Kirill Yukhin <kirill.yukhin@intel.com>
11865 Ilya Tocar <ilya.tocar@intel.com>
11867 * testsuite/lib/libgomp.exp
11868 (check_effective_target_offload_device): New.
11869 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
11870 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
11871 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
11872 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
11873 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
11874 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
11875 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
11876 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
11877 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
11878 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
11879 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
11880 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
11881 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
11882 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
11883 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
11884 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
11885 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
11886 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
11887 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
11888 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
11889 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
11890 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
11891 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
11892 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
11893 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
11894 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
11895 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
11896 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
11897 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
11898 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
11899 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
11900 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
11901 * testsuite/libgomp.c/target-7.c: Fix test.
11902 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
11903 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
11904 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
11905 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
11906 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
11907 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
11908 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
11909 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
11910 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
11911 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
11912 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
11913 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
11914 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
11915 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
11916 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
11917 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
11918 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
11919 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
11920 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
11921 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
11922 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
11923 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
11924 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
11925 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
11926 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
11927 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
11928 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
11929 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
11930 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
11931 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
11932 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
11934 2014-11-13 Jakub Jelinek <jakub@redhat.com>
11935 Ilya Verbin <ilya.verbin@intel.com>
11936 Thomas Schwinge <thomas@codesourcery.com>
11937 Andrey Turetskiy <andrey.turetskiy@intel.com>
11939 * libgomp.map (GOMP_4.0.1): New symbol version.
11940 Add GOMP_offload_register.
11941 * libgomp_target.h: New file.
11942 * splay-tree.h: New file.
11943 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
11944 (gomp_target_init): New forward declaration.
11945 (gomp_is_initialized): New static variable.
11946 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
11947 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
11949 (offload_images, num_offload_images, devices, num_devices): New static
11951 (splay_compare): New static function.
11952 (struct gomp_device_descr): New structure.
11953 (gomp_get_num_devices): Call gomp_target_init.
11954 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
11955 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
11956 (GOMP_offload_register): New function.
11957 (GOMP_target): Arrange for host callback to be performed in a separate
11958 initial thread and contention group, inheriting ICVs from
11959 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
11960 Add device initialization and lookup for target function in splay tree.
11961 (GOMP_target_data): Add device initialization and call gomp_map_vars.
11962 (GOMP_target_end_data): Call gomp_unmap_vars.
11963 (GOMP_target_update): Add device initialization and call gomp_update.
11964 (gomp_load_plugin_for_device, gomp_register_images_for_device)
11965 (gomp_target_init): New static functions.
11967 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
11968 Thomas Schwinge <thomas@codesourcery.com>
11969 Ilya Verbin <ilya.verbin@intel.com>
11970 Andrey Turetskiy <andrey.turetskiy@intel.com>
11972 * config.h.in: Regenerate.
11973 * configure: Regenerate.
11974 * configure.ac: Check for libdl, required for plugin support.
11975 (PLUGIN_SUPPORT): Define if plugins are supported.
11976 (enable_offload_targets): Support Intel MIC targets.
11977 (OFFLOAD_TARGETS): List of target names suitable for offloading.
11979 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11982 * configure: Regenerate.
11984 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11986 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
11988 2014-10-06 Marek Polacek <polacek@redhat.com>
11990 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
11991 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
11992 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
11993 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
11995 2014-10-06 Marek Polacek <polacek@redhat.com>
11997 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
11998 * testsuite/libgomp.c/nqueens-1.c: Likewise.
11999 * testsuite/libgomp.c/pr26943-3.c: Likewise.
12000 * testsuite/libgomp.c/pr26943-4.c: Likewise.
12001 * testsuite/libgomp.c/pr36802-2.c: Likewise.
12002 * testsuite/libgomp.c/pr36802-3.c: Likewise.
12003 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
12004 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
12005 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
12006 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
12007 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
12008 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
12009 * testsuite/libgomp.c/omp-single-1.c: Likewise.
12010 * testsuite/libgomp.c/omp-single-2.c: Likewise.
12011 * testsuite/libgomp.c/omp_matvec.c: Likewise.
12012 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
12013 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
12014 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
12017 2014-10-03 Jakub Jelinek <jakub@redhat.com>
12020 * testsuite/libgomp.c/pr61200.c: New test.
12022 2014-09-18 Jakub Jelinek <jakub@redhat.com>
12025 * testsuite/libgomp.c++/pr63248.C: New test.
12027 2014-08-04 Jakub Jelinek <jakub@redhat.com>
12029 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
12030 is not zero, but taskgroup->children is NULL and there are
12031 any task->children, schedule those instead of waiting.
12032 * testsuite/libgomp.c/depend-6.c: New test.
12033 * testsuite/libgomp.c/depend-7.c: New test.
12034 * testsuite/libgomp.c/depend-8.c: New test.
12035 * testsuite/libgomp.c/depend-9.c: New test.
12036 * testsuite/libgomp.c/depend-10.c: New test.
12038 2014-08-01 Jakub Jelinek <jakub@redhat.com>
12040 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
12041 (struct gomp_taskwait): New type.
12042 (struct gomp_task): Add taskwait and parent_depends_on, remove
12043 in_taskwait and taskwait_sem fields.
12044 (gomp_finish_task): Don't destroy taskwait_sem.
12045 * task.c (gomp_init_task): Don't init in_taskwait, instead init
12046 taskwait and parent_depends_on.
12047 (GOMP_task): For if (0) tasks with depend clause that depend on
12048 earlier tasks don't defer them, instead call
12049 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
12050 Initialize redundant_out field, for redundant out entries just
12051 move them at the end of linked list instead of removing them
12052 completely, and set redundant_out flag instead of redundant.
12053 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
12055 (gomp_task_run_post_handle_dependers): If parent is in
12056 gomp_task_maybe_wait_for_dependencies and newly runnable task
12057 is not parent_depends_on, queue it in parent->children linked
12058 list after all runnable tasks with parent_depends_on set.
12059 Adjust for addition of taskwait indirection.
12060 (gomp_task_run_post_remove_parent): If parent is in
12061 gomp_task_maybe_wait_for_dependencies and task to be removed
12062 is parent_depends_on, decrement n_depend and if needed awake
12063 parent. Adjust for addition of taskwait indirection.
12064 (GOMP_taskwait): Adjust for addition of taskwait indirection.
12065 (gomp_task_maybe_wait_for_dependencies): New function.
12066 * testsuite/libgomp.c/depend-5.c: New test.
12068 2014-07-13 Tobias Burnus <burnus@net-b.de>
12070 * testsuite/libgomp.fortran/pr34020.f90: Make compile
12071 with TS 18508/Fortran 2015.
12073 2014-07-06 Marek Polacek <polacek@redhat.com>
12076 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
12078 2014-07-03 Jakub Jelinek <jakub@redhat.com>
12080 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
12081 matches regex $lang_source_re, add $lang_include_flags to options.
12082 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
12083 * testsuite/libgomp.c++/c++.exp: Likewise.
12084 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
12085 and lang_include_flags instead of adding -fintrinsic-modules-path= to
12087 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
12089 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
12091 * testsuite/libgomp.fortran/fortran.exp: Explain
12092 gfortran-dg-runtest usage.
12094 2014-06-25 Jakub Jelinek <jakub@redhat.com>
12096 * testsuite/libgomp.fortran/simd5.f90: New test.
12097 * testsuite/libgomp.fortran/simd6.f90: New test.
12098 * testsuite/libgomp.fortran/simd7.f90: New test.
12100 2014-06-24 Jakub Jelinek <jakub@redhat.com>
12102 * testsuite/libgomp.c/for-2.c: Define SC to static for
12103 #pragma omp for simd testing.
12104 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
12105 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
12107 * testsuite/libgomp.c/simd-14.c: New test.
12108 * testsuite/libgomp.c/simd-15.c: New test.
12109 * testsuite/libgomp.c/simd-16.c: New test.
12110 * testsuite/libgomp.c/simd-17.c: New test.
12111 * testsuite/libgomp.c++/for-10.C: Define SC to static for
12112 #pragma omp for simd testing.
12113 * testsuite/libgomp.c++/simd10.C: New test.
12114 * testsuite/libgomp.c++/simd11.C: New test.
12115 * testsuite/libgomp.c++/simd12.C: New test.
12116 * testsuite/libgomp.c++/simd13.C: New test.
12118 * testsuite/libgomp.fortran/aligned1.f03: New test.
12119 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
12120 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
12121 tasks with !$omp parallel !$omp single.
12122 * testsuite/libgomp.fortran/target8.f90: New test.
12123 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
12124 not to use trim in the combiner, instead call elemental function.
12125 (fn): New elemental function.
12126 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
12128 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
12130 * testsuite/libgomp.fortran/udr12.f90: New test.
12131 * testsuite/libgomp.fortran/udr13.f90: New test.
12132 * testsuite/libgomp.fortran/udr14.f90: New test.
12133 * testsuite/libgomp.fortran/udr15.f90: New test.
12135 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12137 * omp_lib.f90.in (openmp_version): Set to 201307.
12138 * omp_lib.h.in (openmp_version): Likewise.
12139 * testsuite/libgomp.c/target-8.c: New test.
12140 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
12141 and inbranch clauses.
12142 * testsuite/libgomp.fortran/depend-3.f90: New test.
12143 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
12145 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12146 * testsuite/libgomp.fortran/target1.f90: New test.
12147 * testsuite/libgomp.fortran/target2.f90: New test.
12148 * testsuite/libgomp.fortran/target3.f90: New test.
12149 * testsuite/libgomp.fortran/target4.f90: New test.
12150 * testsuite/libgomp.fortran/target5.f90: New test.
12151 * testsuite/libgomp.fortran/target6.f90: New test.
12152 * testsuite/libgomp.fortran/target7.f90: New test.
12154 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12157 * testsuite/libgomp.fortran/allocatable9.f90: New test.
12158 * testsuite/libgomp.fortran/allocatable10.f90: New test.
12159 * testsuite/libgomp.fortran/allocatable11.f90: New test.
12160 * testsuite/libgomp.fortran/allocatable12.f90: New test.
12161 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
12162 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
12163 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
12164 * testsuite/libgomp.fortran/associate1.f90: New test.
12165 * testsuite/libgomp.fortran/associate2.f90: New test.
12166 * testsuite/libgomp.fortran/procptr1.f90: New test.
12168 2014-06-06 Jakub Jelinek <jakub@redhat.com>
12170 * testsuite/libgomp.fortran/simd1.f90: New test.
12171 * testsuite/libgomp.fortran/udr1.f90: New test.
12172 * testsuite/libgomp.fortran/udr2.f90: New test.
12173 * testsuite/libgomp.fortran/udr3.f90: New test.
12174 * testsuite/libgomp.fortran/udr4.f90: New test.
12175 * testsuite/libgomp.fortran/udr5.f90: New test.
12176 * testsuite/libgomp.fortran/udr6.f90: New test.
12177 * testsuite/libgomp.fortran/udr7.f90: New test.
12178 * testsuite/libgomp.fortran/udr8.f90: New test.
12179 * testsuite/libgomp.fortran/udr9.f90: New test.
12180 * testsuite/libgomp.fortran/udr10.f90: New test.
12181 * testsuite/libgomp.fortran/udr11.f90: New test.
12183 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
12185 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
12186 vect_simd_clones effective target.
12187 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
12189 2014-05-21 Jakub Jelinek <jakub@redhat.com>
12191 PR middle-end/61252
12192 * testsuite/libgomp.c++/simd-9.C: New test.
12194 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
12196 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
12197 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
12198 texts according to their @menu entry positions.
12200 2014-05-11 Jakub Jelinek <jakub@redhat.com>
12202 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
12203 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
12204 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
12205 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
12206 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
12207 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
12208 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
12209 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
12210 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
12211 * testsuite/libgomp.fortran/depend-1.f90: New test.
12212 * testsuite/libgomp.fortran/depend-2.f90: New test.
12213 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
12214 * testsuite/libgomp.fortran/simd1.f90: New test.
12215 * testsuite/libgomp.fortran/simd2.f90: New test.
12216 * testsuite/libgomp.fortran/simd3.f90: New test.
12217 * testsuite/libgomp.fortran/simd4.f90: New test.
12218 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
12220 2014-05-02 Jakub Jelinek <jakub@redhat.com>
12222 * testsuite/libgomp.c/simd-10.c: New test.
12223 * testsuite/libgomp.c/simd-11.c: New test.
12224 * testsuite/libgomp.c/simd-12.c: New test.
12225 * testsuite/libgomp.c/simd-13.c: New test.
12227 2014-04-24 Jakub Jelinek <jakub@redhat.com>
12229 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
12230 atomic type clauses in any order and optional comma in between.
12231 * testsuite/libgomp.c++/atomic-15.C: Likewise.
12232 * testsuite/libgomp.c/atomic-17.c: Likewise.
12234 * testsuite/libgomp.c/simd-7.c: New test.
12235 * testsuite/libgomp.c/simd-8.c: New test.
12236 * testsuite/libgomp.c/simd-9.c: New test.
12237 * testsuite/libgomp.c/loop-16.c: New test.
12239 2014-04-02 Richard Henderson <rth@redhat.com>
12241 * config/linux/futex.h (futex_wait): Get error value from errno.
12242 (futex_wake): Likewise.
12244 2014-03-25 Jakub Jelinek <jakub@redhat.com>
12247 * testsuite/libgomp.c++/udr-11.C: New test.
12248 * testsuite/libgomp.c++/udr-12.C: New test.
12249 * testsuite/libgomp.c++/udr-13.C: New test.
12250 * testsuite/libgomp.c++/udr-14.C: New test.
12251 * testsuite/libgomp.c++/udr-15.C: New test.
12252 * testsuite/libgomp.c++/udr-16.C: New test.
12253 * testsuite/libgomp.c++/udr-17.C: New test.
12254 * testsuite/libgomp.c++/udr-18.C: New test.
12255 * testsuite/libgomp.c++/udr-19.C: New test.
12257 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12259 Update copyright years
12261 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12263 * hashtab.h: Use the standard form for the copyright notice.
12265 2014-01-02 Tobias Burnus <burnus@net-b.de>
12267 * libgomp.texi: Bump @copying's copyright year.
12269 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
12271 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
12272 alloca () with __builtin_alloca ().
12273 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
12274 * testsuite/libgomp.c/lock-3.c: Likewise.
12275 * testsuite/libgomp.c/pr48591.c: Likewise.
12277 2013-12-17 Jakub Jelinek <jakub@redhat.com>
12280 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
12283 2013-12-16 Jakub Jelinek <jakub@redhat.com>
12286 * testsuite/libgomp.c/pr58756.c: New test.
12288 2013-12-12 Jakub Jelinek <jakub@redhat.com>
12291 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
12294 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
12296 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
12298 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
12299 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
12300 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
12301 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
12304 * libgomp_g.h: Include <stddef.h> for size_t.
12306 * libgomp.spec.in: Update comment about libgomp's dependencies.
12307 * configure.ac: Likewise.
12308 * configure: Regenerate.
12310 2013-10-16 Tobias Burnus <burnus@net-b.de>
12312 * libgomp.texi: (Runtime Library Routines): Update references for
12313 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
12314 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
12315 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
12316 (Environment Variables): Update references for OpenMP 4.0. Add
12317 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
12318 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
12321 2013-10-14 Jakub Jelinek <jakub@redhat.com>
12323 * env.c (parse_bind_var): Initialize value to avoid
12324 (false positive) warning.
12326 2013-10-12 Jakub Jelinek <jakub@redhat.com>
12329 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
12331 (gomp_init_num_threads): Move i variable declaration into
12332 #ifdef CPU_ALLOC_SIZE block.
12333 * config/linux/affinity.c (gomp_affinity_init_level): Test
12334 gomp_places_list_len == 0 rather than gomp_places_list == 0
12335 when checking for topology reading error.
12336 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
12337 * env.c (parse_affinity): Add ignore argument, if true, don't populate
12338 gomp_places_list, only parse env var and always return false.
12339 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
12340 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
12341 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
12342 and either of these variables were parsed correctly into a places
12345 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
12346 Jakub Jelinek <jakub@redhat.com>
12348 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
12349 of 5 loopfn matches.
12350 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
12351 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
12352 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
12353 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
12354 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
12355 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12356 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12357 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
12359 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
12361 * Makefile.am (omp_lib.mod): Streamline rule.
12362 * Makefile.in: Regenerate.
12364 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
12367 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
12368 * testsuite/libgomp.fortran/lib1.f90: Likewise.
12369 * testsuite/libgomp.fortran/lib2.f: Likewise.
12370 * testsuite/libgomp.fortran/lib3.f: Likewise.
12372 * configure.ac: Typo fix.
12373 * configure: Regenerate.
12375 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
12376 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12378 * omp.h.in: Don't touch the user's namespace.
12380 2013-10-11 Jakub Jelinek <jakub@redhat.com>
12381 Tobias Burnus <burnus@net-b.de>
12382 Richard Henderson <rth@redhat.com>
12384 * target.c: New file.
12385 * Makefile.am (libgomp_la_SOURCES): Add target.c.
12386 * Makefile.in: Regenerated.
12387 * libgomp_g.h (GOMP_task): Add depend argument.
12388 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12389 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12390 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
12391 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12392 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12393 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
12394 GOMP_taskgroup_start, GOMP_taskgroup_end,
12395 GOMP_parallel_sections): New prototypes.
12396 * fortran.c (omp_is_initial_device): Add ialias_redirect.
12397 (omp_is_initial_device_): New function.
12398 (ULP, STR1, STR2, ialias_redirect): Removed.
12399 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
12400 omp_set_default_device_8_, omp_get_default_device_,
12401 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
12403 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12404 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12405 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
12407 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
12408 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
12409 omp_set_default_device, omp_set_default_device_,
12410 omp_set_default_device_8_, omp_get_default_device,
12411 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
12412 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
12413 omp_get_team_num_): Export @@OMP_4.0.
12414 * team.c (struct gomp_thread_start_data): Add place field.
12415 (gomp_thread_start): Clear thr->thread_pool and
12416 thr->task before returning. Use gomp_team_barrier_wait_final
12417 instead of gomp_team_barrier_wait. Initialize thr->place.
12418 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
12419 team_cancelled and task_queued_count fields.
12420 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
12421 before calling pthread_exit.
12422 (gomp_free_thread): No longer static. Use
12423 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
12424 (gomp_team_start): Add flags argument. Set
12425 thr->thread_pool->threads_busy to nthreads immediately after creating
12426 new pool. Use gomp_managed_threads_lock instead of
12427 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
12428 (gomp_team_end): Use gomp_managed_threads_lock instead of
12429 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
12430 of gomp_team_barrier_wait. If team->team_cancelled, call
12431 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
12432 rather than thr->ts.work_share.
12433 (initialize_team): Don't call gomp_sem_init here.
12434 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
12436 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
12437 * env.c (gomp_global_icv): Add default_device_var, target_data and
12438 bind_var initializers.
12439 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12440 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12441 gomp_places_list_len): New variables.
12442 (parse_bind_var, parse_one_place, parse_places_var): New functions.
12443 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
12445 (gomp_cancel_var): New global variable.
12446 (parse_int): New function.
12447 (handle_omp_display_env): New function.
12448 (initialize_env): Use it. Initialize default_device_var.
12449 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
12450 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
12451 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
12452 been successfully parsed (and call gomp_init_affinity in that case).
12453 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12454 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12455 omp_get_team_num, omp_is_initial_device): New functions.
12456 * libgomp.h: Include stdlib.h.
12457 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
12459 (struct target_mem_desc): Forward declare.
12460 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
12461 and thread_limit_var fields.
12462 (gomp_get_num_devices): New prototype.
12463 (gomp_cancel_var): New extern decl.
12464 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
12465 team_cancelled and task_queued_count fields. Add comments about
12466 task_{,queued_,running_}count.
12467 (gomp_cancel_kind): New enum.
12468 (gomp_work_share_end_cancel): New prototype.
12469 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
12470 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
12472 (struct gomp_taskgroup): New type.
12473 (struct gomp_task_depend_entry,
12474 struct gomp_dependers_vec): New types.
12475 (gomp_finish_task): Free depend_hash if non-NULL.
12476 (struct gomp_team_state): Add place_partition_off
12477 and place_partition_len fields.
12478 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12479 gomp_places_list_len): New extern decls.
12480 (struct gomp_thread): Add place field.
12481 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12482 (gomp_init_thread_affinity): Add place argument.
12483 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12484 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12485 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12486 gomp_affinity_init_level, gomp_affinity_print_place): New
12488 (gomp_team_start): Add flags argument.
12489 (gomp_thread_limit_var, gomp_remaining_threads_count,
12490 gomp_remaining_threads_lock): Remove.
12491 (gomp_managed_threads_lock): New variable.
12492 (struct gomp_thread_pool): Add threads_busy field.
12493 (gomp_free_thread): New prototype.
12494 * task.c: Include hashtab.h.
12495 (hash_entry_type): New typedef.
12496 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
12497 (gomp_init_task): Clear dependers, depend_hash, depend_count,
12498 copy_ctors_done and taskgroup fields.
12499 (GOMP_task): Add depend argument, handle depend clauses. If
12500 gomp_team_barrier_cancelled or if it's taskgroup has been
12501 cancelled, don't queue or start new tasks. Set copy_ctors_done
12502 field if needed. Initialize taskgroup field. If copy_ctors_done
12503 and already cancelled, don't discard the task. If taskgroup is
12504 non-NULL, enqueue the task into taskgroup queue. Increment
12505 num_children field in taskgroup. Increment task_queued_count.
12506 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
12507 gomp_task_run_post_remove_taskgroup): New inline functions.
12508 (gomp_task_run_post_handle_depend_hash,
12509 gomp_task_run_post_handle_dependers,
12510 gomp_task_run_post_handle_depend): New functions.
12511 (GOMP_taskwait): Use them. If more than one new tasks
12512 have been queued, wake other threads if needed.
12513 (gomp_barrier_handle_tasks): Likewise. If
12514 gomp_team_barrier_cancelled, don't start any new tasks, just free
12516 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
12518 (omp_proc_bind_kind, omp_proc_bind_false,
12519 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
12520 omp_proc_bind_spread): New params.
12521 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12522 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12523 omp_get_team_num, omp_is_initial_device): New interfaces.
12524 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
12525 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
12526 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
12527 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
12528 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
12529 useless use omp_lib_kinds.
12530 * omp.h.in (omp_proc_bind_t): New typedef.
12531 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12532 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12533 omp_get_team_num, omp_is_initial_device): New prototypes.
12534 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
12535 through to gomp_team_start.
12536 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
12537 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
12538 Adjust gomp_parallel_loop_start callers.
12539 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12540 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12541 GOMP_loop_end_cancel): New functions.
12542 (GOMP_parallel_end): Add ialias_redirect.
12543 * hashtab.h: New file.
12544 * libgomp.texi (Environment Variables): Minor cleanup,
12545 update section refs to OpenMP 4.0rc2.
12546 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
12547 environment variables.
12548 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
12549 team->work_shares_to_free to thr->ts.work_share before calling
12551 (gomp_work_share_end_cancel): New function.
12552 * config/linux/proc.c: Include errno.h.
12553 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
12554 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
12555 sizeof (cpu_set_t) to determine number of iterations. Fix up check
12556 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
12557 gomp_cpuset_size is sizeof (cpu_set_t).
12558 (gomp_init_num_threads): Initialize gomp_cpuset_size,
12559 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
12560 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
12561 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
12562 contain any logical CPUs.
12563 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
12564 is NULL. Use gomp_cpusetp instead of &cpuset and pass
12565 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
12566 pthread_getaffinity_np. Check gomp_places_list instead of
12567 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
12568 * config/linux/bar.c (gomp_barrier_wait_end,
12569 gomp_barrier_wait_last): Use BAR_* defines.
12570 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
12571 from state where needed. Set work_share_cancelled to 0 on last
12573 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
12574 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
12576 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
12577 Add cpusetsize argument.
12578 (gomp_cpuset_size, gomp_cpusetp): Declare.
12579 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
12580 (affinity_counter): Remove.
12581 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
12582 if CPU_ALLOC_SIZE isn't defined.
12583 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
12584 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
12585 bind current thread to the first place.
12586 (gomp_init_thread_affinity): Rewritten. Add place argument, just
12587 pthread_setaffinity_np to gomp_places_list[place].
12588 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12589 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12590 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12591 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
12592 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
12593 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
12594 (gomp_barrier_t): Add awaited_final field.
12595 (gomp_barrier_init): Initialize awaited_final field.
12596 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
12597 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
12599 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
12601 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
12602 gomp_team_barrier_cancelled): New inline functions.
12603 (gomp_barrier_last_thread,
12604 gomp_team_barrier_set_task_pending,
12605 gomp_team_barrier_clear_task_pending,
12606 gomp_team_barrier_set_waiting_for_tasks,
12607 gomp_team_barrier_waiting_for_tasks,
12608 gomp_team_barrier_done): Use BAR_* defines.
12609 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
12610 (gomp_barrier_wait_end): Use BAR_* defines.
12611 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
12612 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
12614 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
12615 gomp_team_barrier_cancel): New functions.
12616 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
12618 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12619 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12620 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12621 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
12622 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
12623 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
12624 (gomp_barrier_t): Add cancellable field.
12625 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
12626 gomp_team_barrier_cancel): New prototypes.
12627 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
12628 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
12629 gomp_team_barrier_cancelled): New inline functions.
12630 (gomp_barrier_wait_start, gomp_barrier_last_thread,
12631 gomp_team_barrier_set_task_pending,
12632 gomp_team_barrier_clear_task_pending,
12633 gomp_team_barrier_set_waiting_for_tasks,
12634 gomp_team_barrier_waiting_for_tasks,
12635 gomp_team_barrier_done): Use BAR_* defines.
12636 * barrier.c (GOMP_barrier_cancel): New function.
12637 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
12638 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
12639 omp_proc_bind_spread): New params.
12640 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12641 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12642 omp_get_team_num, omp_is_initial_device): New externals.
12643 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
12645 (gomp_resolve_num_threads): Adjust for thread_limit now being in
12646 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
12647 infinity. If not nested, just return minimum of max_num_threads
12648 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
12649 to the returned value. Otherwise, don't update atomically
12650 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
12651 (GOMP_parallel_end): Adjust for thread_limit now being in
12652 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
12653 infinity. Adjust threads_busy in the pool rather than
12654 gomp_remaining_threads_count. Remember team->nthreads and call
12655 gomp_team_end before adjusting threads_busy, if not nested
12656 afterwards, just set it to 1 non-atomically. Add ialias.
12657 (GOMP_parallel_start): Adjust gomp_team_start caller.
12658 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
12659 * testsuite/libgomp.c/affinity-1.c: New test.
12660 * testsuite/libgomp.c/atomic-15.c: New test.
12661 * testsuite/libgomp.c/atomic-16.c: New test.
12662 * testsuite/libgomp.c/atomic-17.c: New test.
12663 * testsuite/libgomp.c/cancel-for-1.c: New test.
12664 * testsuite/libgomp.c/cancel-for-2.c: New test.
12665 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
12666 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
12667 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
12668 * testsuite/libgomp.c/cancel-sections-1.c: New test.
12669 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
12670 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
12671 * testsuite/libgomp.c/depend-1.c: New test.
12672 * testsuite/libgomp.c/depend-2.c: New test.
12673 * testsuite/libgomp.c/depend-3.c: New test.
12674 * testsuite/libgomp.c/depend-4.c: New test.
12675 * testsuite/libgomp.c/for-1.c: New test.
12676 * testsuite/libgomp.c/for-1.h: New file.
12677 * testsuite/libgomp.c/for-2.c: New test.
12678 * testsuite/libgomp.c/for-2.h: New file.
12679 * testsuite/libgomp.c/for-3.c: New test.
12680 * testsuite/libgomp.c/pr58392.c: New test.
12681 * testsuite/libgomp.c/simd-1.c: New test.
12682 * testsuite/libgomp.c/simd-2.c: New test.
12683 * testsuite/libgomp.c/simd-3.c: New test.
12684 * testsuite/libgomp.c/simd-4.c: New test.
12685 * testsuite/libgomp.c/simd-5.c: New test.
12686 * testsuite/libgomp.c/simd-6.c: New test.
12687 * testsuite/libgomp.c/target-1.c: New test.
12688 * testsuite/libgomp.c/target-2.c: New test.
12689 * testsuite/libgomp.c/target-3.c: New test.
12690 * testsuite/libgomp.c/target-4.c: New test.
12691 * testsuite/libgomp.c/target-5.c: New test.
12692 * testsuite/libgomp.c/target-6.c: New test.
12693 * testsuite/libgomp.c/target-7.c: New test.
12694 * testsuite/libgomp.c/taskgroup-1.c: New test.
12695 * testsuite/libgomp.c/thread-limit-1.c: New test.
12696 * testsuite/libgomp.c/thread-limit-2.c: New test.
12697 * testsuite/libgomp.c/thread-limit-3.c: New test.
12698 * testsuite/libgomp.c/udr-1.c: New test.
12699 * testsuite/libgomp.c/udr-2.c: New test.
12700 * testsuite/libgomp.c/udr-3.c: New test.
12701 * testsuite/libgomp.c++/affinity-1.C: New test.
12702 * testsuite/libgomp.c++/atomic-10.C: New test.
12703 * testsuite/libgomp.c++/atomic-11.C: New test.
12704 * testsuite/libgomp.c++/atomic-12.C: New test.
12705 * testsuite/libgomp.c++/atomic-13.C: New test.
12706 * testsuite/libgomp.c++/atomic-14.C: New test.
12707 * testsuite/libgomp.c++/atomic-15.C: New test.
12708 * testsuite/libgomp.c++/cancel-for-1.C: New test.
12709 * testsuite/libgomp.c++/cancel-for-2.C: New test.
12710 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
12711 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
12712 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
12713 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
12714 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
12715 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
12716 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
12717 * testsuite/libgomp.c++/cancel-test.h: New file.
12718 * testsuite/libgomp.c++/for-9.C: New test.
12719 * testsuite/libgomp.c++/for-10.C: New test.
12720 * testsuite/libgomp.c++/for-11.C: New test.
12721 * testsuite/libgomp.c++/simd-1.C: New test.
12722 * testsuite/libgomp.c++/simd-2.C: New test.
12723 * testsuite/libgomp.c++/simd-3.C: New test.
12724 * testsuite/libgomp.c++/simd-4.C: New test.
12725 * testsuite/libgomp.c++/simd-5.C: New test.
12726 * testsuite/libgomp.c++/simd-6.C: New test.
12727 * testsuite/libgomp.c++/simd-7.C: New test.
12728 * testsuite/libgomp.c++/simd-8.C: New test.
12729 * testsuite/libgomp.c++/target-1.C: New test.
12730 * testsuite/libgomp.c++/target-2.C: New test.
12731 * testsuite/libgomp.c++/target-2-aux.cc: New file.
12732 * testsuite/libgomp.c++/target-3.C: New test.
12733 * testsuite/libgomp.c++/taskgroup-1.C: New test.
12734 * testsuite/libgomp.c++/udr-1.C: New test.
12735 * testsuite/libgomp.c++/udr-2.C: New test.
12736 * testsuite/libgomp.c++/udr-3.C: New test.
12737 * testsuite/libgomp.c++/udr-4.C: New test.
12738 * testsuite/libgomp.c++/udr-5.C: New test.
12739 * testsuite/libgomp.c++/udr-6.C: New test.
12740 * testsuite/libgomp.c++/udr-7.C: New test.
12741 * testsuite/libgomp.c++/udr-8.C: New test.
12742 * testsuite/libgomp.c++/udr-9.C: New test.
12744 2013-09-20 Jakub Jelinek <jakub@redhat.com>
12747 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
12750 2013-09-20 Alan Modra <amodra@gmail.com>
12752 * configure: Regenerate.
12754 2013-09-19 Jakub Jelinek <jakub@redhat.com>
12756 * testsuite/libgomp.c/sections-2.c: New test.
12758 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
12760 * testsuite/libgomp.fortran/strassen.f90:
12761 Add dg-skip-if aarch64_tiny.
12763 2013-06-20 Iain Sandoe <iain@codesourcery.com>
12764 Cesar Philippidis <cesar@codesourcery.com>
12766 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
12767 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
12768 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
12769 * testsuite/libgomp.fortran/fortran.exp: Likewise.
12770 * testsuite/libgomp.graphite/graphite.exp: Likewise.
12771 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
12772 Use dg-runtest rather than gfortran-dg-runtest.
12774 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
12776 * testsuite/libgomp.c/icv-2.c: Extend current handling of
12777 Linux-based x86 systems to cover all GNU systems.
12778 * testsuite/libgomp.c/lock-3.c: Likewise.
12779 * testsuite/libgomp.c/pr48591.c: Likewise.
12781 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
12783 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
12784 GNU/Hurd, as done for Linux-based systems.
12786 * config/posix/ptrlock.h: Fix comment.
12788 2013-05-27 Tobias Burnus <burnus@net-b.de>
12791 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
12792 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
12793 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
12794 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
12795 omp_destroy_nest_lock): Correct arguments to match the one in
12797 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
12798 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
12799 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
12800 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
12802 2013-05-16 Jakub Jelinek <jakub@redhat.com>
12804 * testsuite/libgomp.c/loop-13.c: New test.
12805 * testsuite/libgomp.c/loop-14.c: New test.
12806 * testsuite/libgomp.c/loop-15.c: New test.
12807 * testsuite/libgomp.c++/loop-13.C: New test.
12808 * testsuite/libgomp.c++/loop-14.C: New test.
12809 * testsuite/libgomp.c++/loop-15.C: New test.
12811 2013-02-06 Jakub Jelinek <jakub@redhat.com>
12813 PR middle-end/56217
12814 * testsuite/libgomp.c++/pr56217.C: New test.
12816 2013-02-01 Alan Modra <amodra@gmail.com>
12818 * task.c (GOMP_task, GOMP_taskwait): Comment.
12820 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
12821 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
12824 * config/linux/wait.h (do_spin): Use atomic load for addr.
12825 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
12826 for intptr and ptrlock.
12827 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
12830 2013-01-22 Alan Modra <amodra@gmail.com>
12834 * task.c (GOMP_task): Revert 2011-12-09 change.
12835 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
12836 barrier to read task->children..
12837 (gomp_barrier_handle_tasks): ..and matching atomic store with
12838 release barrier here when setting parent->children to NULL.
12840 2013-01-16 Jakub Jelinek <jakub@redhat.com>
12841 Tobias Burnus <burnus@net-b.de>
12844 * testsuite/libgomp.fortran/fortran.exp: Use
12845 -fintrinsic-modules-path= instead of
12846 -fintrinsic-modules-path.
12848 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
12850 Update copyright years.
12852 2012-12-19 Tobias Burnus <burnus@net-b.de>
12854 * testsuite/libgomp.fortran/fortran.exp: Set
12855 -fintrinsic-modules-path.
12857 2012-12-19 Tobias Burnus <burnus@net-b.de>
12859 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
12860 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
12862 2012-11-21 Jakub Jelinek <jakub@redhat.com>
12865 * team.c (gomp_free_thread): Decrease gomp_managed_threads
12866 if pool had any threads_used.
12868 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
12870 * testsuite/libgomp.c++/pr24455.C: Use
12871 -Wl,-undefined,dynamic_lookup on darwin.
12873 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
12875 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
12877 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
12879 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
12881 2012-10-23 Ian Bolton <ian.bolton@arm.com>
12882 Jim MacArthur <jim.macarthur@arm.com>
12883 Marcus Shawcroft <marcus.shawcroft@arm.com>
12884 Nigel Stephens <nigel.stephens@arm.com>
12885 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12886 Richard Earnshaw <rearnsha@arm.com>
12887 Sofiane Naci <sofiane.naci@arm.com>
12888 Stephen Thomas <stephen.thomas@arm.com>
12889 Tejas Belagod <tejas.belagod@arm.com>
12890 Yufeng Zhang <yufeng.zhang@arm.com>
12892 * configure.tgt: Add AArch64.
12894 2012-10-04 Jason Merrill <jason@redhat.com>
12896 * testsuite/libgomp.c++/tls-init1.C: New.
12898 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
12900 * configure: Regenerated.
12902 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
12904 * config/linux/mips/futex.h (sys_futex0): Change to static
12905 function with noinline, nomips16 attributes under MIPS16. Adjust
12906 asm statement to place 'li v0,SYS_futex' immediately before
12909 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
12911 * libgomp.texi (Library Index): Renamed from "Index" to prevent
12912 conflict with index.html on case-insensitive file systems.
12914 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
12916 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
12917 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
12919 2012-07-02 Richard Guenther <rguenther@suse.de>
12920 Michael Matz <matz@suse.de>
12921 Tobias Grosser <tobias@grosser.es>
12922 Sebastian Pop <sebpop@gmail.com>
12924 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
12925 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
12926 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12927 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12929 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
12931 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
12933 2012-06-22 Richard Guenther <rguenther@suse.de>
12935 Merge from graphite branch
12936 2012-01-13 Tobias Grosser <tobias@grosser.es>
12938 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
12939 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
12941 2012-06-07 Jakub Jelinek <jakub@redhat.com>
12943 PR middle-end/53580
12944 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
12945 use GOMP_barrier () call instead.
12946 * testsuite/libgomp.c/pr26943-3.c: Likewise.
12947 * testsuite/libgomp.c/pr26943-4.c: Likewise.
12948 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
12949 call GOMP_barrier instead.
12950 * testsuite/libgomp.fortran/vla5.f90: Likewise.
12952 2012-06-06 Jakub Jelinek <jakub@redhat.com>
12955 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
12956 argument to memset call.
12958 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
12960 * configure: Regenerated.
12962 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
12964 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
12966 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
12969 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
12971 2012-03-22 Jakub Jelinek <jakub@redhat.com>
12973 PR middle-end/52547
12974 * testsuite/libgomp.c/pr52547.c: New test.
12976 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12978 * testsuite/lib/libgomp.exp: load fortran-modules.exp
12980 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12982 * configure.tgt (mips-sgi-irix6*): Remove.
12984 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12986 * configure.tgt (alpha*-dec-osf*): Remove.
12988 * config/osf/sem.h: Remove.
12989 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
12991 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
12993 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
12995 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12998 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
12999 Remove ENABLE_SYMVERS_SOL2.
13000 * configure: Regenerate.
13001 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
13002 (PREPROCESS): New variable.
13003 (libgomp.ver): New target.
13004 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
13005 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
13006 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
13008 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
13009 * Makefile.in: Regenerate.
13011 2012-02-14 Walter Lee <walt@tilera.com>
13013 * configure.tgt: Handle tilegx and tilepro.
13014 * config/linux/tile/futex.h: New file.
13016 2012-02-08 Richard Guenther <rguenther@suse.de>
13018 PR tree-optimization/46886
13019 * testsuite/libgomp.c/pr46886.c: New testcase.
13021 2012-01-25 Matthias Klose <doko@ubuntu.com>
13023 * config/linux/arm: Remove empty directory.
13024 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
13026 2011-12-09 Alan Modra <amodra@gmail.com>
13029 * task.c (GOMP_taskwait): Don't access task->children outside of
13030 task_lock mutex region.
13031 (GOMP_task): Likewise.
13033 2011-12-06 Jakub Jelinek <jakub@redhat.com>
13036 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
13038 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
13039 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
13040 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
13041 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
13042 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
13044 2011-12-02 Alan Modra <amodra@gmail.com>
13046 * config/linux/affinity.c: Use atomic rather than sync builtin.
13047 * config/linux/lock.c: Likewise.
13048 * config/linux/ptrlock.h: Likewise.
13049 * config/linux/ptrlock.c: Likewise.
13050 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
13051 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
13052 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
13053 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
13054 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
13055 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
13056 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
13057 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
13058 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
13059 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
13061 2011-11-30 Alan Modra <amodra@gmail.com>
13064 * config/linux/bar.h: Use atomic rather than sync builtins.
13065 * config/linux/bar.c: Likewise. Add missing acquire
13066 synchronisation on generation field.
13067 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
13070 2011-11-30 Alan Modra <amodra@gmail.com>
13072 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
13073 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
13074 * config/linux/mutex.h: Use atomic rather than sync builtins.
13075 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
13076 * config/linux/omp-lock.h: Comment fix.
13077 * config/linux/arm/mutex.h: Delete.
13078 * config/linux/powerpc/mutex.h: Delete.
13079 * config/linux/ia64/mutex.h: Delete.
13080 * config/linux/mips/mutex.h: Delete.
13082 2011-11-30 Alan Modra <amodra@gmail.com>
13085 * config/linux/sem.h: Rewrite.
13086 * config/linux/sem.c: Rewrite.
13088 2011-11-28 Richard Henderson <rth@redhat.com>
13090 * libgomp.h (enum memmodel): New.
13092 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
13094 * configure: Regenerate.
13096 2011-10-10 Matthias Klose <doko@ubuntu.com>
13098 * config/posix95: Remove empty directory.
13100 2011-08-26 Jakub Jelinek <jakub@redhat.com>
13102 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
13104 2011-08-19 Jakub Jelinek <jakub@redhat.com>
13107 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
13108 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
13110 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13112 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
13114 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13117 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
13119 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
13121 * config/linux/proc.h: New.
13122 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
13123 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
13124 (gomp_init_num_threads): Update call to cpuset_popcount.
13125 (get_num_procs): Ditto.
13126 * config/linux/affinity.c (gomp_init_affinity): Call
13127 gomp_cpuset_popcount.
13129 2011-08-02 Jakub Jelinek <jakub@redhat.com>
13133 * omp.h.in (omp_in_final): New prototype.
13134 * omp_lib.f90.in (omp_in_final): New interface.
13135 (omp_integer_kind, omp_logical_kind): Remove
13136 and replace all its uses in the module with 4.
13137 (openmp_version): Change to 201107.
13138 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
13139 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
13140 kind for the parameters.
13141 (omp_in_final): New external.
13142 (openmp_version): Change to 201107.
13143 * task.c (omp_in_final): New function.
13144 (gomp_init_task): Initialize final_task.
13145 (GOMP_task): Remove unused attribute from flags. Handle final
13147 (GOMP_taskyield): New function.
13148 (omp_in_final): Return true if if (false) or final (true) task
13149 or descendant of final (true).
13150 * fortran.c (omp_in_final_): New function.
13151 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
13152 (GOMP_3.0): Export GOMP_taskyield.
13153 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
13155 (parse_unsigned_long_list): New function.
13156 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
13157 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
13158 even if parse_affinity returned false.
13159 * config/linux/affinity.c (gomp_init_affinity): Handle
13160 gomp_cpu_affinity_len == 0.
13161 * libgomp_g.h (GOMP_taskyield): New prototype.
13162 * libgomp.h (struct gomp_task): Add final_task field.
13163 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
13164 * team.c (gomp_team_start): Override new task's nthreads_var icv
13165 if list form OMP_NUM_THREADS has been used and it has value for
13166 the new nesting level.
13168 * testsuite/libgomp.c/atomic-11.c: New test.
13169 * testsuite/libgomp.c/atomic-12.c: New test.
13170 * testsuite/libgomp.c/atomic-13.c: New test.
13171 * testsuite/libgomp.c/atomic-14.c: New test.
13172 * testsuite/libgomp.c/reduction-6.c: New test.
13173 * testsuite/libgomp.c/task-5.c: New test.
13174 * testsuite/libgomp.c++/atomic-2.C: New test.
13175 * testsuite/libgomp.c++/atomic-3.C: New test.
13176 * testsuite/libgomp.c++/atomic-4.C: New test.
13177 * testsuite/libgomp.c++/atomic-5.C: New test.
13178 * testsuite/libgomp.c++/atomic-6.C: New test.
13179 * testsuite/libgomp.c++/atomic-7.C: New test.
13180 * testsuite/libgomp.c++/atomic-8.C: New test.
13181 * testsuite/libgomp.c++/atomic-9.C: New test.
13182 * testsuite/libgomp.c++/task-8.C: New test.
13183 * testsuite/libgomp.c++/reduction-4.C: New test.
13184 * testsuite/libgomp.fortran/allocatable7.f90: New test.
13185 * testsuite/libgomp.fortran/allocatable8.f90: New test.
13186 * testsuite/libgomp.fortran/crayptr3.f90: New test.
13187 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
13188 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
13189 * testsuite/libgomp.fortran/pointer1.f90: New test.
13190 * testsuite/libgomp.fortran/pointer2.f90: New test.
13191 * testsuite/libgomp.fortran/task4.f90: New test.
13193 2011-08-02 Tobias Burnus <burnus@net-b.de>
13195 * libgomp.texi: Update OpenMP spec references to 3.1.
13196 (omp_in_final,OMP_PROC_BIND): New sections.
13197 (OMP_NUM_THREADS): Document that the value can be now a list.
13198 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
13200 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
13202 * config/linux/x86/futex.h: Check __x86_64__ instead of
13205 2011-07-29 Jakub Jelinek <jakub@redhat.com>
13207 PR middle-end/49897
13208 PR middle-end/49898
13209 * testsuite/libgomp.c/pr49897-1.c: New test.
13210 * testsuite/libgomp.c/pr49897-2.c: New test.
13211 * testsuite/libgomp.c/pr49898-1.c: New test.
13212 * testsuite/libgomp.c/pr49898-2.c: New test.
13214 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
13216 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
13217 for ia32 instead of ilp32.
13219 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
13220 * testsuite/libgomp.c/atomic-6.c: Likewise.
13222 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
13224 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
13225 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
13227 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13230 * config/osf/sem.h: New file.
13231 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
13233 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13236 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
13239 2011-07-15 Jakub Jelinek <jakub@redhat.com>
13241 * config/linux/wait.h (do_spin): New inline, largely copied
13242 from do_wait, just don't do futex_wait here, instead return true if
13244 (do_wait): Implement using do_spin.
13245 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
13247 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
13248 __sync_bool_compare_and_swap, pass the oldval to
13249 gomp_mutex_lock_slow.
13250 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
13251 If all mutex contenders are just spinning and not sleeping, don't
13252 change state to 2 unnecessarily. Optimize the loop when state has
13253 already become 2 to use just one atomic operation per loop instead
13255 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
13257 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
13258 __sync_bool_compare_and_swap, pass the oldval to
13259 gomp_mutex_lock_slow.
13261 2011-06-22 Jakub Jelinek <jakub@redhat.com>
13264 * iter.c (gomp_iter_static_next): For chunk size 0
13265 only use n ceil/ nthreads size for the first
13266 n % nthreads threads in the team instead of
13267 all threads except for the last few ones which
13268 get less work or none at all.
13269 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
13270 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
13271 chunk argument, set run_sched_modifier to 0 for static
13272 resp. 1 for other kinds. If chunk argument is 0
13273 and not static, set value to 1.
13275 2011-05-19 Jakub Jelinek <jakub@redhat.com>
13278 * testsuite/libgomp.c++/pr49043.C: New test.
13281 * testsuite/libgomp.c++/pr48869.C: New test.
13283 2011-05-06 Jakub Jelinek <jakub@redhat.com>
13286 * fortran.c: Include limits.h.
13288 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
13290 (omp_set_num_threads_8_, omp_set_schedule_8_,
13291 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
13292 omp_get_team_size_8_): Use TO_INT macro.
13293 * testsuite/libgomp.fortran/pr48894.f90: New test.
13295 2011-04-13 Jakub Jelinek <jakub@redhat.com>
13297 PR middle-end/48591
13298 * testsuite/libgomp.c/pr48591.c: New test.
13300 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13303 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
13304 * configure: Regenerate.
13306 2011-02-27 Jakub Jelinek <jakub@redhat.com>
13309 * testsuite/libgomp.fortran/task3.f90: New test.
13311 2011-02-24 Tobias Burnus <burnus@net-b.de>
13313 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
13315 2011-02-23 Jakub Jelinek <jakub@redhat.com>
13318 * libgomp.texi (omp_get_wtime): Don't say time in the past
13319 must be Unix Epoch.
13321 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13324 * testsuite/libgomp.fortran/fortran.exp: Check for both
13325 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
13326 but $blddir != "", still append ${blddir}/${lang_library_path}
13327 to ld_library_path.
13329 2011-02-16 Tobias Burnus <burnus@net-b.de>
13332 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
13333 of libquadmath.a before adding its libpath to ldflags.
13335 2011-02-14 Jakub Jelinek <jakub@redhat.com>
13338 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
13339 to FUTEX_WAIT futex syscall.
13340 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
13342 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13344 * configure: Regenerate.
13346 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
13349 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
13351 2011-01-16 Gerald Pfeifer
13353 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
13355 2010-12-14 Jakub Jelinek <jakub@redhat.com>
13358 * libgomp.fortran/allocatable6.f90: New test.
13360 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13362 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
13363 * configure: Regenerate.
13365 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
13369 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
13370 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
13371 * aclocal.m4: Regenerate.
13372 * configure: Regenerate.
13373 * Makefile.in: Regenerate.
13374 * testsuite/Makefile.in: Regenerate.
13376 2010-12-02 Jakub Jelinek <jakub@redhat.com>
13379 * libgomp.fortran/pr46753.f90: New test.
13382 * env.c (initialize_env): Default to spin count 300000
13383 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
13387 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
13388 at the end if sync builtins aren't supported.
13390 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13392 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
13394 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13396 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
13398 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
13400 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
13402 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13403 Tobias Burnus <burnus@net-b.de>
13407 * configure: Regenerate.
13409 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
13411 * config/linux/futex.h: New.
13412 * config/linux/arm/mutex.h: New.
13413 * configure.tgt (arm*-*-linux*): Add config path.
13415 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
13417 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13419 2010-09-23 Tobias Burnus <burnus@net-b.de>
13421 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
13422 Change Fortran datatype to LOGICAL.
13423 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
13424 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
13426 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13428 * configure: Regenerate.
13430 2010-07-26 Jakub Jelinek <jakub@redhat.com>
13432 * libgomp.texi: Add function keyword to a couple of Fortran
13433 interfaces, use integer instead of int for Fortran.
13435 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
13437 * libgomp.texi: Fix spelling and pasto problems throughout.
13438 Adjust prototypes to match code.
13440 2010-07-24 Tobias Burnus <burnus@net-b.de>
13442 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
13443 silence -fwhole-file warning.
13445 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13447 * configure.tgt (*-*-solaris2.[56]*): Removed.
13449 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13451 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
13452 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
13453 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
13454 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
13455 targetting solaris2*.
13456 * configure: Regenerate.
13457 * config.h.in: Regenerate.
13459 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
13460 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
13461 Add libgomp_version_dep.
13462 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
13464 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
13465 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
13466 * Makefile.in: Regenerate.
13468 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
13469 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13470 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
13471 to common block, protected by
13472 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13474 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
13476 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
13478 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
13481 * configure: Regenerate.
13483 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13486 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
13487 * configure: Regenerate.
13488 * Makefile.in: Regenerate.
13489 * testsuite/Makefile.in: Regenerate.
13491 2010-04-26 Jakub Jelinek <jakub@redhat.com>
13494 * testsuite/libgomp.c/pr43893.c: New test.
13495 * testsuite/libgomp.c++/pr43893.C: New test.
13497 2010-04-21 Jakub Jelinek <jakub@redhat.com>
13499 PR middle-end/43570
13500 * testsuite/libgomp.fortran/vla8.f90: New test.
13502 2010-04-20 Jakub Jelinek <jakub@redhat.com>
13505 * config/linux/affinity.c (gomp_init_affinity): Decrease
13506 gomp_available_cpus if affinity mask confines the process to fewer
13508 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
13509 non-NULL, just return gomp_available_cpus.
13512 * sections.c (gomp_sections_init): Initialize ws->mode.
13514 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13516 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
13517 not unused bar variable.
13518 * configure: Regenerate.
13520 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13522 * Makefile.in: Regenerate.
13523 * aclocal.m4: Regenerate.
13524 * testsuite/Makefile.in: Regenerate.
13526 2010-03-22 Jakub Jelinek <jakub@redhat.com>
13529 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
13530 (initialize_env): Adjust callers.
13531 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
13532 when the argument is 0.
13534 * testsuite/libgomp.c/pr42942.c: New test.
13536 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
13538 PR middle-end/42644
13539 PR middle-end/42130
13540 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13541 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
13543 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13545 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
13546 * testsuite/libgomp.c++/task-6.C: Likewise.
13548 2010-01-28 Steve Ellcey <sje@cup.hp.com>
13550 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
13552 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
13554 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
13555 * configure: Regenerate.
13557 2010-01-26 Jakub Jelinek <jakub@redhat.com>
13560 * testsuite/libgomp.fortran/allocatable5.f90: New test.
13562 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
13564 * configure.ac: Test for executability of GFORTRAN.
13565 * configure: Regenerate.
13567 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13569 * configure: Regenerate.
13571 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
13574 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
13576 2010-01-03 Richard Guenther <rguenther@suse.de>
13578 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
13580 2009-12-23 Sebastian Pop <sebpop@gmail.com>
13582 * testsuite/libgomp.graphite/pr4118.c: New.
13584 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
13586 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
13587 for darwin, protect the test with require-effective-target tls_runtime.
13588 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
13590 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
13593 * testsuite/lib/libgomp.exp: Provide -B options to allow for
13594 link spec %s substitutions for static libraries.
13596 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
13599 * libgomp.graphite/force-parallel-2.c: Reduce array size.
13601 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13603 * Makefile.in: Regenerate.
13604 * configure: Regenerate.
13605 * testsuite/Makefile.in: Regenerate.
13607 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
13609 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
13610 settings for LC_ALL and LANG.
13612 2009-11-25 Jakub Jelinek <jakub@redhat.com>
13615 * testsuite/libgomp.fortran/pr42162.f90: New test.
13617 2009-11-13 Jakub Jelinek <jakub@redhat.com>
13619 PR middle-end/42029
13620 * testsuite/libgomp.c/pr42029.c: New test.
13622 2009-10-26 Jakub Jelinek <jakub@redhat.com>
13624 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
13625 *s. Accept ld version without text in ()s.
13626 * configure: Regenerated.
13628 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
13630 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
13632 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13635 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
13636 or a hyphen (happens with fortran language disabled).
13637 * configure: Regenerate.
13639 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13641 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
13642 use sed script portable to Solaris /bin/sed for extracting ld
13644 * configure: Regenerate.
13646 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
13648 * testsuite/libgomp.graphite/bounds.c: New test.
13650 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13652 * Makefile.am (libgomp_la_LINK): New.
13653 * Makefile.in: Regenerate.
13655 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13657 * configure.ac (AC_PREREQ): Bump to 2.64.
13659 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13661 * Makefile.am (install-html, install-pdf): Remove.
13662 * Makefile.in: Regenerate.
13664 * Makefile.in: Regenerate.
13665 * aclocal.m4: Regenerate.
13666 * config.h.in: Regenerate.
13667 * configure: Regenerate.
13668 * testsuite/Makefile.in: Regenerate.
13670 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13672 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
13673 * Makefile.in: Regenerate.
13675 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
13677 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
13678 * Makefile.in: Regenerate.
13680 2009-08-19 Tobias Burnus <burnus@net-b.de>
13683 omp_lib.h.in: Fix -std=f95 errors.
13685 2009-08-14 David Edelsohn <edelsohn@gnu.org>
13687 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
13688 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
13689 * testsuite/libgomp.graphite/graphite.exp: New.
13691 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
13693 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
13696 2009-08-04 David Daney <ddaney@caviumnetworks.com>
13698 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
13699 needed memory barrier semantics.
13700 * config/linux/mips/mutex.h: New file.
13702 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13704 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
13706 2009-07-16 Joseph Myers <joseph@codesourcery.com>
13708 * configure: Regenerate.
13710 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
13715 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
13716 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
13717 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
13719 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
13721 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
13722 options when choosing a multilib.
13724 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
13726 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
13727 ld_library_path. Use add_path. Add just find_libgcc_s to
13728 ld_library_path, not every libgcc multilib directory.
13729 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
13730 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
13731 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
13733 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
13735 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
13737 * Makefile.am (LTLDFLAGS): Define.
13739 * Makefile.in: Regenerate.
13741 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
13744 * testsuite/libgomp.fortran/fortran.exp: Don't link with
13745 libgfortranbegin, check existence of libgfortran.a instead of
13746 libgfortranbegin.a.
13748 2009-05-20 Jakub Jelinek <jakub@redhat.com>
13751 * team.c (gomp_thread_start): Destroy thr->release semaphore.
13752 (gomp_free_pool_helper): Likewise.
13754 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
13755 Jakub Jelinek <jakub@redhat.com>
13758 * testsuite/libgomp.fortran/workshare2.f90: New test.
13760 2009-04-09 Nick Clifton <nickc@redhat.com>
13762 * iter.c: Change copyright header to refer to version 3 of the
13763 GNU General Public License with version 3.1 of the GCC Runtime
13764 Library Exception and to point readers at the COPYING3 and
13765 COPYING3.RUNTIME files and the FSF's license web page.
13766 * alloc.c: Likewise.
13767 * barrier.c: Likewise.
13768 * config/bsd/proc.c: Likewise.
13769 * config/linux/affinity.c: Likewise.
13770 * config/linux/alpha/futex.h: Likewise.
13771 * config/linux/bar.c: Likewise.
13772 * config/linux/bar.h: Likewise.
13773 * config/linux/ia64/futex.h: Likewise.
13774 * config/linux/ia64/mutex.h: Likewise.
13775 * config/linux/lock.c: Likewise.
13776 * config/linux/mips/futex.h: Likewise.
13777 * config/linux/mutex.c: Likewise.
13778 * config/linux/mutex.h: Likewise.
13779 * config/linux/powerpc/futex.h: Likewise.
13780 * config/linux/proc.c: Likewise.
13781 * config/linux/ptrlock.c: Likewise.
13782 * config/linux/ptrlock.h: Likewise.
13783 * config/linux/s390/futex.h: Likewise.
13784 * config/linux/sem.c: Likewise.
13785 * config/linux/sem.h: Likewise.
13786 * config/linux/sparc/futex.h: Likewise.
13787 * config/linux/wait.h: Likewise.
13788 * config/linux/x86/futex.h: Likewise.
13789 * config/mingw32/proc.c: Likewise.
13790 * config/mingw32/time.c: Likewise.
13791 * config/posix/affinity.c: Likewise.
13792 * config/posix/bar.c: Likewise.
13793 * config/posix/bar.h: Likewise.
13794 * config/posix/lock.c: Likewise.
13795 * config/posix/mutex.h: Likewise.
13796 * config/posix/proc.c: Likewise.
13797 * config/posix/ptrlock.h: Likewise.
13798 * config/posix/sem.c: Likewise.
13799 * config/posix/sem.h: Likewise.
13800 * config/posix/time.c: Likewise.
13801 * config/posix95/lock.c: Likewise.
13802 * critical.c: Likewise.
13804 * error.c: Likewise.
13805 * fortran.c: Likewise.
13806 * iter_ull.c: Likewise.
13807 * libgomp.h: Likewise.
13808 * libgomp_f.h.in: Likewise.
13809 * libgomp_g.h: Likewise.
13810 * loop.c: Likewise.
13811 * loop_ull.c: Likewise.
13812 * omp.h.in: Likewise.
13813 * omp_lib.f90.in: Likewise.
13814 * omp_lib.h.in: Likewise.
13815 * ordered.c: Likewise.
13816 * parallel.c: Likewise.
13817 * sections.c: Likewise.
13818 * single.c: Likewise.
13819 * task.c: Likewise.
13820 * team.c: Likewise.
13821 * work.c: Likewise.
13823 2009-04-09 Jakub Jelinek <jakub@redhat.com>
13825 * testsuite/config/default.exp: Change copyright header to refer to
13826 version 3 of the GNU General Public License and to point readers
13827 at the COPYING3 file and the FSF's license web page.
13829 2009-04-08 Jakub Jelinek <jakub@redhat.com>
13831 PR middle-end/39573
13832 * libgomp.c++/pr39573.C: New test.
13834 2009-04-01 Jakub Jelinek <jakub@redhat.com>
13837 * testsuite/libgomp.c/pr39591-1.c: New test.
13838 * testsuite/libgomp.c/pr39591-2.c: New test.
13839 * testsuite/libgomp.c/pr39591-3.c: New test.
13841 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
13843 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
13844 * testsuite/libgomp.c/atomic-6.c: Ditto.
13846 2009-03-23 Jakub Jelinek <jakub@redhat.com>
13849 * testsuite/libgomp.c/loop-12.c: New test.
13850 * testsuite/libgomp.c/loop-11.c: New test.
13851 * testsuite/libgomp.c++/loop-11.C: New test.
13852 * testsuite/libgomp.c++/loop-12.C: New test.
13853 * testsuite/libgomp.c++/for-8.C: New test.
13855 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13857 * configure: Regenerate.
13859 2009-02-11 Jakub Jelinek <jakub@redhat.com>
13861 PR middle-end/39154
13862 * testsuite/libgomp.c/pr39154.c: New test.
13864 2009-01-30 Ian Lance Taylor <iant@google.com>
13866 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
13867 libgomp_ld_is_gold. Get gold version number.
13868 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
13869 * configure: Rebuild.
13871 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
13873 * testsuite/lib/libgomp.exp: Add -B option for targets that
13874 use libgfortran.a%s in their specs.
13876 2009-01-07 Jakub Jelinek <jakub@redhat.com>
13879 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
13880 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
13881 HAVE_AS_SYMVER_DIRECTIVE is not defined.
13882 * configure: Regenerated.
13883 * config.h.in: Likewise.
13885 2008-12-28 Jakub Jelinek <jakub@redhat.com>
13888 * testsuite/libgomp.c/pr38650.c: New test.
13889 * testsuite/libgomp.c++/pr38650.C: New test.
13891 2008-12-27 Jakub Jelinek <jakub@redhat.com>
13893 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
13895 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
13897 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
13899 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13901 * configure: Regenerate.
13903 2008-12-08 Jakub Jelinek <jakub@redhat.com>
13905 PR middle-end/36802
13906 * testsuite/libgomp.c/pr36802-1.c: New test.
13907 * testsuite/libgomp.c/pr36802-2.c: New test.
13908 * testsuite/libgomp.c/pr36802-3.c: New test.
13910 2008-12-01 Janis Johnson <janis187@us.ibm.com>
13913 * config/linux/powerpc/mutex.h: New.
13915 2008-12-01 Jakub Jelinek <jakub@redhat.com>
13918 * testsuite/libgomp.c++/for-7.C: New test.
13921 * testsuite/libgomp.c++/for-6.C: New test.
13923 2008-11-26 Janis Johnson <janis187@us.ibm.com>
13926 * testsuite/lib/libgomp.exp: Include new timeout library files.
13927 (libgomp_target_compile): Set timeout value from new proc.
13929 2008-11-13 Steve Ellcey <sje@cup.hp.com>
13932 * config/linux/ia64/mutex.h: New.
13934 2008-11-04 Tobias Burnus <burnus@net-b.de>
13937 * libgomp.texi (Runtime library routines, environment variables):
13938 Update for OpenMP version 3.0.
13940 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
13941 Steve Ellcey <sje@cup.hp.com>
13943 * configure: Regenerate for new libtool.
13944 * Makefile.in: Ditto.
13945 * testsuite/Makefile.in: Ditto.
13947 2008-09-19 Jakub Jelinek <jakub@redhat.com>
13948 Andreas Tobler <a.tobler@schweiz.org>
13950 * config/bsd/proc.c: New file.
13951 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
13952 * configure.ac: Check for header <sys/sysctl.h>
13953 * configure: Regenerate.
13954 * config.h.in: Likewise.
13956 2008-09-05 Janis Johnson <janis187@us.ibm.com>
13958 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
13960 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
13962 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
13963 * Makefile.in: Regenerated.
13964 * testsuite/Makefile.in: Regenerated.
13966 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
13968 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
13969 depend on blddir if blddir exists.
13970 (libgomp_target_compile): Likewise.
13971 * testsuite/libgomp.c++/c++.exp: Likewise.
13972 * testsuite/libgomp.fortran/fortran.exp: Likewise.
13974 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13976 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
13977 Do not list GPL as Invariant Section.
13979 2008-07-28 Ilie Garbacea <ilie@mips.com>
13980 Chao-ying Fu <fu@mips.com>
13982 * configure.tgt: Enable futex for MIPS.
13983 * config/linux/mips/futex.h: New file.
13985 2008-07-16 Jakub Jelinek <jakub@redhat.com>
13987 * team.c (gomp_team_end): Free team immediately if it has
13990 2008-07-08 David Edelsohn <edelsohn@gnu.org>
13992 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
13993 * testsuite/libgomp.fortran/fortran.exp: Same.
13994 * testsuite/libgomp.c/c.exp: Same.
13995 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
13996 directory to library path first.
13998 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
14000 * env.c (parse_stacksize): Add cast to avoid warning.
14001 (parse_spincount): Likewise.
14003 2008-06-27 Jakub Jelinek <jakub@redhat.com>
14005 * testsuite/libgomp.c/loop-10.c: New test.
14006 * libgomp.c/loop-3.c (main): Add lastprivate clause.
14007 * libgomp.c++/loop-6.C (main): Likewise.
14010 * testsuite/libgomp.c/debug-1.c: New test.
14012 2008-06-19 Jakub Jelinek <jakub@redhat.com>
14014 * testsuite/libgomp.c/nqueens-1.c: New test.
14017 * testsuite/libgomp.c++/task-7.C: New function.
14019 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14021 * configure: Regenerate.
14023 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14025 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
14026 mutex when HAVE_SYNC_BUILTINS isn't defined.
14028 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14030 * libgomp.texi (omp_test_lock): Fix typo.
14032 2008-06-12 Tobias Burnus <burnus@net-b.de>
14034 * omp_lib.f90.in: Add "implicit none".
14036 2008-06-12 Jakub Jelinek <jakub@redhat.com>
14038 PR middle-end/36506
14039 * testsuite/libgomp.c/reduction-5.c: New test.
14041 2008-06-11 Jakub Jelinek <jakub@redhat.com>
14043 * libgomp.h (struct gomp_task): Add in_tied_task field.
14044 * task.c (gomp_init_task): Initialize it.
14045 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
14046 unconditionally. Don't call gomp_team_barrier_wake if
14047 current task is implicit or if(0) from implicit and number of
14048 running tasks is equal to nthreads - 1.
14051 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
14052 omp_get_team_size_8): Fix pastos.
14055 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
14056 * configure: Regenerated.
14057 * config.h.in: Regenerated.
14058 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
14061 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
14064 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
14065 (GOMP_loop_ull_dynamic_start): Likewise.
14066 (GOMP_loop_ull_guided_start): Likewise.
14067 (GOMP_loop_ull_ordered_static_start): Likewise.
14068 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
14069 (GOMP_loop_ull_ordered_guided_start): Likewise.
14071 2008-06-06 Jakub Jelinek <jakub@redhat.com>
14072 Richard Henderson <rth@redhat.com>
14073 Ulrich Drepper <drepper@redhat.com>
14074 Jakob Blomer <jakob.blomer@ira.uka.de>
14076 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
14077 Substitute also OMP_*LOCK_25*.
14078 * configure: Regenerated.
14079 * config.h.in: Regenerated.
14080 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
14081 ptrlock.c and task.c.
14082 * Makefile.in: Regenerated.
14083 * testsuite/Makefile.in: Regenerated.
14084 * task.c: New file.
14085 * loop_ull.c: New file.
14086 * iter_ull.c: New file.
14087 * libgomp.h: Include ptrlock.h.
14088 (enum gomp_task_kind): New type.
14089 (struct gomp_team): Add task_lock, task_queue, task_count,
14090 task_running_count, single_count fields. Add
14091 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
14092 Remove work_share_lock, generation_mask,
14093 oldest_live_gen, num_live_gen and init_work_shares fields, add
14094 work work_share_list_alloc, work_share_list_free and work_share_chunk
14095 fields. Change work_shares from pointer to pointers into an array.
14096 Change ordered_release field into gomp_sem_t ** from flexible array
14097 member. Add implicit_task and initial_work_shares fields.
14098 Move close to the end of the struct.
14099 (struct gomp_team_state): Add single_count, last_work_share,
14100 active_level and level fields, remove work_share_generation.
14101 (gomp_barrier_handle_tasks): New prototype.
14102 (gomp_finish_task): New inline function.
14103 (struct gomp_work_share): Move chunk_size, end, incr into
14104 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
14105 next_ll fields. Reshuffle fields. Add next_alloc,
14106 next_ws, next_free and inline_ordered_team_ids fields, change
14107 ordered_team_ids into pointer from flexible array member.
14108 Add mode field. Put lock and next into a different cache line
14109 from most of the write-once fields.
14110 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
14111 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
14112 gomp_iter_ull_guided_next): New prototypes.
14113 (gomp_new_icv): New prototype.
14114 (struct gomp_thread): Add thread_pool and task fields.
14115 (struct gomp_thread_pool): New type.
14116 (gomp_new_team): New prototype.
14117 (gomp_team_start): Change type of last argument.
14118 (gomp_new_work_share): Removed.
14119 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
14120 (gomp_work_share_init_done): New static inline.
14121 (gomp_throttled_spin_count_var, gomp_available_cpus,
14122 gomp_managed_threads): New extern decls.
14123 (gomp_init_task): New prototype.
14124 (gomp_spin_count_var): New extern var decl.
14125 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
14126 or no alias support, or if not PIC.
14127 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
14128 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
14129 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
14130 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
14131 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
14132 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
14133 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
14134 gomp_test_nest_lock_25): New prototypes.
14135 (omp_lock_symver, strong_alias): Define.
14136 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
14138 (gomp_end_task): New.
14139 (struct gomp_task_icv, gomp_global_icv): New.
14140 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
14141 (struct gomp_task): New.
14142 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
14143 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
14145 (gomp_schedule_type): Reorder enum to match
14147 * team.c (struct gomp_thread_start_data): Add thread_pool and task
14149 (gomp_thread_start): Add gomp_team_barrier_wait call.
14150 For non-nested case remove clearing of docked thread thr fields.
14151 Use pool fields instead of global gomp_* variables. Use
14152 gomp_barrier_wait_last when needed. Initialize ts.active_level.
14153 Create tasks for each member thread.
14154 (free_team): Only destroy team barrier, task_lock here and free it.
14155 (gomp_free_thread): Free last_team if non-NULL.
14156 (gomp_team_end): Call gomp_team_barrier_wait instead of
14157 gomp_barrier_wait. For nested case call one extra
14158 gomp_barrier_wait. Move here some destruction from free_team.
14159 Call free_team on pool->last_team if any, rather than freeing
14160 current team. Destroy work_share_list_free_lock ifndef
14161 HAVE_SYNC_BUILTINS.
14162 (gomp_new_icv): New function.
14163 (gomp_threads, gomp_threads_size, gomp_threads_used,
14164 gomp_threads_dock): Removed.
14165 (gomp_thread_destructor): New variable.
14166 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
14168 (gomp_team_start): Create new pool if current thread doesn't have
14169 one. Use pool fields instead of global gomp_* variables.
14170 Initialize thread_pool field for new threads. Clear single_count.
14171 Change last argument from ws to team, don't create
14172 new team, set ts.work_share to &team->work_shares[0] and clear
14173 ts.last_work_share. Don't clear ts.work_share_generation.
14174 If number of threads changed, adjust atomically gomp_managed_threads.
14175 Use gomp_init_task instead of gomp_new_task,
14176 set thr->task to the corresponding implicit_task array entry.
14177 Create tasks for each member thread. Initialize ts.level.
14178 (initialize_team): Call pthread_key_create on
14179 gomp_thread_destructor.
14180 (team_destructor): New function.
14181 (new_team): Removed.
14182 (gomp_new_team): New function.
14183 (free_team): Free gomp_work_share blocks chained through next_alloc,
14184 instead of freeing work_shares and destroying work_share_lock.
14185 (gomp_team_end): Call gomp_fini_work_share. If number of threads
14186 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
14187 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
14188 of gomp_barrier_wait.
14189 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
14190 instead of gomp_barrier_wait. Call gomp_work_share_init_done
14191 if gomp_work_share_start returned true. Don't unlock ws->lock.
14192 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
14193 of gomp_barrier_wait.
14194 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
14195 gomp_work_share_init_done if gomp_work_share_start returned true.
14196 Don't unlock ws->lock.
14197 * work.c: Include stddef.h.
14198 (free_work_share): Use work_share_list_free_lock instead
14199 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
14200 Call gomp_fini_work_share and then either free ws if orphaned, or
14201 put it into work_share_list_free list of the current team.
14202 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
14204 (gomp_work_share_start, gomp_work_share_end,
14205 gomp_work_share_end_nowait): Rewritten.
14206 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
14207 (openmp_version): Set to 200805.
14208 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
14209 omp_sched_guided, omp_sched_auto): New parameters.
14210 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14211 omp_set_max_active_levels, omp_get_max_active_levels,
14212 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14213 omp_get_active_level): New interfaces.
14214 * omp_lib.h.in (openmp_version): Set to 200805.
14215 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
14216 omp_sched_guided, omp_sched_auto): New parameters.
14217 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14218 omp_set_max_active_levels, omp_get_max_active_levels,
14219 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14220 omp_get_active_level): New externals.
14221 * loop.c: Include limits.h.
14222 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
14224 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
14225 Likewise. Use gomp_icv.
14226 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
14227 ts.static_trip here.
14228 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
14229 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
14230 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
14231 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
14232 don't unlock ws->lock, otherwise lock it.
14233 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
14234 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
14235 (gomp_parallel_loop_start): Call gomp_new_team instead of
14236 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
14237 Adjust gomp_team_start caller. Pass 0 as second argument to
14238 gomp_resolve_num_threads.
14239 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
14240 If adding ws->chunk_size nthreads + 1 times after end won't
14241 overflow, set ws->mode to 1.
14242 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
14243 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
14244 GOMP_loop_ull_ordered_static_start,
14245 GOMP_loop_ull_ordered_dynamic_start,
14246 GOMP_loop_ull_ordered_guided_start,
14247 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
14248 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
14249 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
14250 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
14251 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
14253 * libgomp.map: Export lock routines also @@OMP_2.0.
14254 (GOMP_loop_ordered_dynamic_first,
14255 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
14256 GOMP_loop_ordered_static_first): Remove.
14257 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
14258 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
14259 GOMP_loop_ull_ordered_dynamic_next,
14260 GOMP_loop_ull_ordered_dynamic_start,
14261 GOMP_loop_ull_ordered_guided_next,
14262 GOMP_loop_ull_ordered_guided_start,
14263 GOMP_loop_ull_ordered_runtime_next,
14264 GOMP_loop_ull_ordered_runtime_start,
14265 GOMP_loop_ull_ordered_static_next,
14266 GOMP_loop_ull_ordered_static_start,
14267 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
14268 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
14269 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
14270 (omp_set_schedule, omp_get_schedule,
14271 omp_get_thread_limit, omp_set_max_active_levels,
14272 omp_get_max_active_levels, omp_get_level,
14273 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
14274 omp_set_schedule_, omp_set_schedule_8_,
14275 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
14276 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
14277 omp_get_max_active_levels_, omp_get_level_,
14278 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
14279 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
14280 New exports @@OMP_3.0.
14281 * omp.h.in (omp_sched_t): New type.
14282 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14283 omp_set_max_active_levels, omp_get_max_active_levels,
14284 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14285 omp_get_active_level): New prototypes.
14286 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
14287 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
14288 gomp_thread_limit_var, gomp_remaining_threads_count,
14289 gomp_remaining_threads_lock): New variables.
14290 (parse_spincount): New function.
14291 (initialize_env): Call gomp_init_num_threads unconditionally.
14292 Initialize gomp_available_cpus. Call parse_spincount,
14293 initialize gomp_{,throttled_}spin_count_var
14294 depending on presence and value of OMP_WAIT_POLICY and
14295 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
14296 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
14297 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
14298 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
14299 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
14300 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
14301 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
14302 (gomp_global_icv): New.
14303 (parse_schedule): Use it. Parse "auto".
14304 (omp_set_num_threads): Use gomp_icv.
14305 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
14307 (omp_get_max_threads): Move from parallel.c.
14308 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14309 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
14311 (parse_stacksize, parse_wait_policy): New functions.
14312 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
14313 both wrappers for compatibility and new locks.
14314 (omp_set_schedule, omp_get_schedule,
14315 omp_get_thread_limit, omp_set_max_active_levels,
14316 omp_get_max_active_levels, omp_get_level,
14317 omp_get_ancestor_thread_num, omp_get_team_size,
14318 omp_get_active_level): New ialias_redirect.
14319 (omp_set_schedule_, omp_set_schedule_8_,
14320 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
14321 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
14322 omp_get_max_active_levels_, omp_get_level_,
14323 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
14324 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
14326 * parallel.c: Include limits.h.
14327 (gomp_resolve_num_threads): Add count argument. Rewritten.
14328 (GOMP_parallel_start): Call gomp_new_team and pass that as last
14329 argument to gomp_team_start. Pass 0 as second argument to
14330 gomp_resolve_num_threads.
14331 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
14332 if gomp_thread_limit_var != ULONG_MAX.
14333 (omp_in_parallel): Implement using ts.active_level.
14334 (omp_get_max_threads): Move to env.c.
14335 (omp_get_level, omp_get_ancestor_thread_num,
14336 omp_get_team_size, omp_get_active_level): New functions,
14338 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
14339 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
14340 gomp_iter_dynamic_next instead of the _locked variant and don't take
14341 lock around it, otherwise acquire it before calling
14342 gomp_iter_dynamic_next_locked.
14343 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
14344 gomp_iter_dynamic_next instead of the _locked variant and don't take
14346 (GOMP_parallel_sections_start): Call gomp_new_team instead of
14347 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
14348 Adjust gomp_team_start caller. Pass count as second argument to
14349 gomp_resolve_num_threads, don't adjust num_threads after the call.
14351 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
14352 ws->chunk_size by incr.
14353 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
14355 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
14357 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
14358 (omp_check_defines): Check even the compat defines.
14359 * config/linux/ptrlock.c: New file.
14360 * config/linux/ptrlock.h: New file.
14361 * config/linux/wait.h: New file.
14362 * config/posix/ptrlock.c: New file.
14363 * config/posix/ptrlock.h: New file.
14364 * config/linux/bar.h (gomp_team_barrier_wait,
14365 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14366 (gomp_team_barrier_set_task_pending,
14367 gomp_team_barrier_clear_task_pending,
14368 gomp_team_barrier_set_waiting_for_tasks,
14369 gomp_team_barrier_waiting_for_tasks,
14370 gomp_team_barrier_done): New inlines.
14371 (gomp_barrier_t): Rewritten.
14372 (gomp_barrier_state_t): New typedef.
14373 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
14374 gomp_barrier_wait_start): Rewritten.
14375 (gomp_barrier_wait_end): Change second argument to
14376 gomp_barrier_state_t.
14377 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14379 * config/linux/bar.c: Include wait.h instead of libgomp.h and
14381 (gomp_barrier_wait_end): Rewritten.
14382 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14383 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
14384 * config/posix/bar.h (gomp_barrier_t): Add generation field.
14385 (gomp_barrier_state_t): New typedef.
14386 (gomp_team_barrier_wait,
14387 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14388 (gomp_barrier_wait_start): Or all but low 2 bits from generation
14389 into the return value. Return gomp_barrier_state_t.
14390 (gomp_team_barrier_set_task_pending,
14391 gomp_team_barrier_clear_task_pending,
14392 gomp_team_barrier_set_waiting_for_tasks,
14393 gomp_team_barrier_waiting_for_tasks,
14394 gomp_team_barrier_done): New inlines.
14395 (gomp_barrier_wait_end): Change second argument to
14396 gomp_barrier_state_t.
14397 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14399 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
14400 (gomp_barrier_wait_end): Change second argument to
14401 gomp_barrier_state_t.
14402 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14403 gomp_team_barrier_wake): New functions.
14404 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
14406 (gomp_futex_wake, gomp_futex_wait): New variables.
14407 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
14408 * config/linux/lock.c: Rewrite to make locks task owned,
14409 for backwards compatibility provide the old entrypoints
14410 if symbol versioning. Include wait.h instead of libgomp.h and
14412 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
14413 * config/posix95/lock.c: Rewrite to make locks task owned,
14414 for backwards compatibility provide the old entrypoints
14415 if symbol versioning.
14416 * config/posix/lock.c: Rewrite to make locks task owned,
14417 for backwards compatibility provide the old entrypoints
14418 if symbol versioning.
14419 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
14420 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
14421 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
14422 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14423 (sys_futex0): Return error code.
14424 (futex_wake, futex_wait): If ENOSYS was returned, clear
14425 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14426 (cpu_relax, atomic_write_barrier): New static inlines.
14427 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14428 (futex_wake, futex_wait): If ENOSYS was returned, clear
14429 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14430 (cpu_relax, atomic_write_barrier): New static inlines.
14431 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14432 (sys_futex0): Return error code.
14433 (futex_wake, futex_wait): If ENOSYS was returned, clear
14434 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14435 (cpu_relax, atomic_write_barrier): New static inlines.
14436 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14437 (sys_futex0): Return error code.
14438 (futex_wake, futex_wait): If ENOSYS was returned, clear
14439 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14440 (cpu_relax, atomic_write_barrier): New static inlines.
14441 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14442 (sys_futex0): Return error code.
14443 (futex_wake, futex_wait): If ENOSYS was returned, clear
14444 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14445 (cpu_relax, atomic_write_barrier): New static inlines.
14446 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14447 (sys_futex0): Return error code.
14448 (futex_wake, futex_wait): If ENOSYS was returned, clear
14449 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14450 (cpu_relax, atomic_write_barrier): New static inlines.
14451 * config/linux/sem.c: Include wait.h instead of libgomp.h and
14453 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
14454 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
14455 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
14457 (omp_nest_lock_t): Change owner into void *, add lock field.
14458 * config/posix95/omp-lock.h: Include semaphore.h.
14459 (omp_lock_25_t, omp_nest_lock_25_t): New types.
14460 (omp_lock_t): Use sem_t instead of mutex if semaphores
14462 (omp_nest_lock_t): Likewise. Change owner to void *.
14463 * config/posix/omp-lock.h: Include semaphore.h.
14464 (omp_lock_25_t, omp_nest_lock_25_t): New types.
14465 (omp_lock_t): Use sem_t instead of mutex if semaphores
14467 (omp_nest_lock_t): Likewise. Add owner field.
14469 2008-06-06 Jakub Jelinek <jakub@redhat.com>
14471 * testsuite/libgomp.c/collapse-1.c: New test.
14472 * testsuite/libgomp.c/collapse-2.c: New test.
14473 * testsuite/libgomp.c/collapse-3.c: New test.
14474 * testsuite/libgomp.c/icv-1.c: New test.
14475 * testsuite/libgomp.c/icv-2.c: New test.
14476 * testsuite/libgomp.c/lib-2.c: New test.
14477 * testsuite/libgomp.c/lock-1.c: New test.
14478 * testsuite/libgomp.c/lock-2.c: New test.
14479 * testsuite/libgomp.c/lock-3.c: New test.
14480 * testsuite/libgomp.c/loop-4.c: New test.
14481 * testsuite/libgomp.c/loop-5.c: New test.
14482 * testsuite/libgomp.c/loop-6.c: New test.
14483 * testsuite/libgomp.c/loop-7.c: New test.
14484 * testsuite/libgomp.c/loop-8.c: New test.
14485 * testsuite/libgomp.c/loop-9.c: New test.
14486 * testsuite/libgomp.c/nested-3.c: New test.
14487 * testsuite/libgomp.c/nestedfn-6.c: New test.
14488 * testsuite/libgomp.c/sort-1.c: New test.
14489 * testsuite/libgomp.c/task-1.c: New test.
14490 * testsuite/libgomp.c/task-2.c: New test.
14491 * testsuite/libgomp.c/task-3.c: New test.
14492 * testsuite/libgomp.c/task-4.c: New test.
14493 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
14494 to C++ testsuite default compiler options.
14495 * testsuite/libgomp.c++/collapse-1.C: New test.
14496 * testsuite/libgomp.c++/collapse-2.C: New test.
14497 * testsuite/libgomp.c++/ctor-10.C: New test.
14498 * testsuite/libgomp.c++/for-1.C: New test.
14499 * testsuite/libgomp.c++/for-2.C: New test.
14500 * testsuite/libgomp.c++/for-3.C: New test.
14501 * testsuite/libgomp.c++/for-4.C: New test.
14502 * testsuite/libgomp.c++/for-5.C: New test.
14503 * testsuite/libgomp.c++/loop-8.C: New test.
14504 * testsuite/libgomp.c++/loop-9.C: New test.
14505 * testsuite/libgomp.c++/loop-10.C: New test.
14506 * testsuite/libgomp.c++/task-1.C: New test.
14507 * testsuite/libgomp.c++/task-2.C: New test.
14508 * testsuite/libgomp.c++/task-3.C: New test.
14509 * testsuite/libgomp.c++/task-4.C: New test.
14510 * testsuite/libgomp.c++/task-5.C: New test.
14511 * testsuite/libgomp.c++/task-6.C: New test.
14512 * testsuite/libgomp.fortran/allocatable1.f90: New test.
14513 * testsuite/libgomp.fortran/allocatable2.f90: New test.
14514 * testsuite/libgomp.fortran/allocatable3.f90: New test.
14515 * testsuite/libgomp.fortran/allocatable4.f90: New test.
14516 * testsuite/libgomp.fortran/collapse1.f90: New test.
14517 * testsuite/libgomp.fortran/collapse2.f90: New test.
14518 * testsuite/libgomp.fortran/collapse3.f90: New test.
14519 * testsuite/libgomp.fortran/collapse4.f90: New test.
14520 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
14521 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
14522 * testsuite/libgomp.fortran/lib4.f90: New test.
14523 * testsuite/libgomp.fortran/lock-1.f90: New test.
14524 * testsuite/libgomp.fortran/lock-2.f90: New test.
14525 * testsuite/libgomp.fortran/nested1.f90: New test.
14526 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
14527 * testsuite/libgomp.fortran/strassen.f90: New test.
14528 * testsuite/libgomp.fortran/tabs1.f90: New test.
14529 * testsuite/libgomp.fortran/tabs2.f: New test.
14530 * testsuite/libgomp.fortran/task1.f90: New test.
14531 * testsuite/libgomp.fortran/task2.f90: New test.
14532 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
14533 * testsuite/libgomp.fortran/vla5.f90: Likewise.
14534 * testsuite/libgomp.c/pr26943-2.c: Likewise.
14535 * testsuite/libgomp.c/pr26943-3.c: Likewise.
14536 * testsuite/libgomp.c/pr26943-4.c: Likewise.
14538 2008-05-23 Jakub Jelinek <jakub@redhat.com>
14541 * testsuite/libgomp.c++/ctor-11.C: New test.
14542 * testsuite/libgomp.c++/ctor-12.C: New test.
14544 2008-05-15 Janis Johnson <janis187@us.ibm.com>
14546 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
14548 2008-05-07 Jakub Jelinek <jakub@redhat.com>
14550 PR middle-end/36106
14551 * testsuite/libgomp.c/atomic-5.c: New test.
14552 * testsuite/libgomp.c/atomic-6.c: New test.
14553 * testsuite/libgomp.c/autopar-1.c: New test.
14555 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14557 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
14558 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
14559 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
14560 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
14561 * configure: Regenerate.
14562 * Makefile.in, testsuite/Makefile.in: Likewise.
14564 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
14567 * aclocal.m4: Regenerate.
14568 * configure: Regenerate.
14570 2008-03-18 Jakub Jelinek <jakub@redhat.com>
14572 PR middle-end/35611
14573 * testsuite/libgomp.c/atomic-4.c: New test.
14576 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
14577 (gomp_iter_guided_next): Likewise.
14578 * testsuite/libgomp.c/pr35625.c: New test.
14580 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14582 * aclocal.m4: Regenerate.
14583 * configure: Likewise.
14584 * Makefile.in: Likewise.
14585 * testsuite/Makefile.in: Likewise.
14587 2008-03-13 Jakub Jelinek <jakub@redhat.com>
14589 PR middle-end/35185
14590 * testsuite/libgomp.c++/pr35185.C: New test.
14592 2008-03-12 Jakub Jelinek <jakub@redhat.com>
14594 PR middle-end/35549
14595 * testsuite/libgomp.c/pr35549.c: New test.
14597 2008-03-06 Jakub Jelinek <jakub@redhat.com>
14599 * testsuite/libgomp.c/atomic-3.c: New test.
14601 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14604 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
14605 .F08 file suffixes.
14607 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
14610 * configure.ac: Add ACX_HEADER_STRING.
14611 * env.c: Include strings.h.
14612 * aclocal.m4: Regenerate.
14613 * config.h.in: Regenerate.
14614 * configure: Regenerate.
14615 * Makefile.in: Regenerate.
14616 * testsuite/Makefile.in: Regenerate.
14618 2008-02-15 Jakub Jelinek <jakub@redhat.com>
14620 PR middle-end/35196
14621 * testsuite/libgomp.c/pr35196.c: New test.
14623 PR middle-end/35130
14624 * testsuite/libgomp.fortran/pr35130.f90: New test.
14625 * testsuite/libgomp.c/pr35130.c: New test.
14627 2008-01-25 Jakub Jelinek <jakub@redhat.com>
14629 PR middle-end/33880
14630 * testsuite/libgomp.c/pr33880.c: New test.
14631 * testsuite/libgomp.fortran/pr33880.f90: New test.
14633 2008-01-24 David Edelsohn <edelsohn@gnu.org>
14635 * configure: Regenerate.
14637 2008-01-08 Jakub Jelinek <jakub@redhat.com>
14639 * configure.ac: Move futex checking into ../config/futex.m4.
14640 * configure: Rebuilt.
14641 * aclocal.m4: Rebuilt.
14642 * Makefile.in: Rebuilt.
14644 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
14645 2007-10-15 ../config/tls.m4 change.
14647 2007-12-19 Jakub Jelinek <jakub@redhat.com>
14650 * testsuite/libgomp.c/pr34513.c: New test.
14651 * testsuite/libgomp.c++/pr34513.C: New test.
14653 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
14656 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
14658 2007-12-04 Jakub Jelinek <jakub@redhat.com>
14660 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
14662 2007-12-03 Jakub Jelinek <jakub@redhat.com>
14664 * testsuite/libgomp.c/private-1.c: New test.
14666 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
14667 Paolo Bonzini <bonzini@gnu.org>
14669 * Makefile.am: Use space as vpath separator. Use 'vpath %'
14670 instead of 'VPATH ='.
14671 * Makefile.in: Regenerate.
14673 2007-11-23 Matthias Klose <doko@ubuntu.com>
14675 * configure.ac: Adjust makeinfo version check.
14676 * configure: Regenerate.
14678 2007-11-10 Jakub Jelinek <jakub@redhat.com>
14681 * testsuite/libgomp.fortran/pr34020.f90: New test.
14683 2007-11-06 Jakub Jelinek <jakub@redhat.com>
14686 * testsuite/libgomp.c++/atomic-1.C: New test.
14688 2007-10-25 Jakub Jelinek <jakub@redhat.com>
14691 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
14692 Make x and y integers rather than (implicit) reals. Add private (j)
14693 clause to the last omp parallel.
14695 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
14697 * configure: Regenerate following changes to ../config/tls.m4.
14699 2007-09-28 Jakub Jelinek <jakub@redhat.com>
14701 * testsuite/libgomp.fortran/stack.f90: New test.
14703 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
14705 * config/mingw32/proc.c: New file.
14707 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
14709 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
14710 (main): Use __get_cpuid to get i386 target fetaures.
14711 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
14712 (main): Use __get_cpuid to get x86_64 target fetaures.
14714 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
14717 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
14718 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
14720 2007-07-12 Jakub Jelinek <jakub@redhat.com>
14723 * testsuite/libgomp.fortran/pr32550.f90: New test.
14724 * testsuite/libgomp.fortran/crayptr2.f90: New test.
14726 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
14728 * aclocal.m4: Regenerated.
14730 2007-07-05 Tobias Burnus <burnus@net-b.de>
14733 * testsuite/libgomp.fortran/pr32359.f90: New.
14735 2007-07-02 Jakub Jelinek <jakub@redhat.com>
14738 * sections.c (GOMP_parallel_sections_start): Only decrease
14739 number of threads to COUNT if dyn_var is true.
14740 * testsuite/libgomp.c/pr32468.c: New test.
14742 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14745 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
14747 2007-06-21 Jakub Jelinek <jakub@redhat.com>
14749 PR middle-end/32362
14750 * testsuite/libgomp.c/pr32362-1.c: New test.
14751 * testsuite/libgomp.c/pr32362-2.c: New test.
14752 * testsuite/libgomp.c/pr32362-3.c: New test.
14754 2007-06-07 Jakub Jelinek <jakub@redhat.com>
14756 * team.c (gomp_team_start): Fix setting up thread_attr
14759 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
14761 * configure: Regenerate.
14763 2007-05-23 Steve Ellcey <sje@cup.hp.com>
14765 * Makefile.in: Regenerate.
14766 * configure: Regenerate.
14767 * aclocal.m4: Regenerate.
14768 * testsuite/Makefile.in: Regenerate.
14770 2007-05-04 Jakub Jelinek <jakub@redhat.com>
14772 * config/linux/proc.c: New file.
14775 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
14777 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
14779 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
14781 2007-04-16 Matthias Klose <doko@debian.org>
14783 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
14784 flags if not building with -m64.
14785 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
14786 flag for i?86-*-* targets, if current target matches -m64.
14788 2007-04-14 Steve Ellcey <sje@cup.hp.com>
14790 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
14791 * Makefile.in: Regenerate.
14793 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14796 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
14798 * testsuite/libgomp.fortran/fortran.exp: Likewise.
14800 2007-04-04 Jakub Jelinek <jakub@redhat.com>
14802 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
14804 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
14805 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
14806 (parse_affinity): New function.
14807 (initialize_env): Call it and gomp_init_affinity.
14808 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
14809 create new pthread_attr_t and call gomp_init_thread_affinity
14810 on it for each thread before passing the attribute to pthread_create.
14811 * config/linux/affinity.c: New file.
14812 * config/posix/affinity.c: New file.
14813 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
14814 * configure: Rebuilt.
14815 * config.h.in: Rebuilt.
14816 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
14817 * Makefile.in: Rebuilt.
14819 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
14821 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
14823 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
14824 and use it if found.
14826 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
14828 * testsuite/config/default.exp: New file.
14829 * testsuite/lib/libgomp.exp: New file.
14830 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
14831 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
14832 load_lib *, load_gcc_lib *): Move to libgomp.exp.
14833 (libgomp_load): Remove.
14834 * testsuite/lib/libgomp.exp (libgomp_init): Compute
14835 always_ld_library_path, not ld_library_path. Set additional_flags
14836 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
14837 (target_compile): Do not call libgomp_init. Append lang_library_path
14838 and lang_link_flags to options.
14839 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
14840 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
14842 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
14843 always_ld_library_path. Set LD_LIBRARY_PATH here.
14844 * testsuite/libgomp.fortran/fortran.exp: Ditto.
14845 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
14846 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
14848 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
14849 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
14850 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
14851 * testsuite/libgomp.c/pr29947-1.c: Ditto.
14852 * testsuite/libgomp.c/atomic-10.c: Ditto.
14854 2007-03-21 Jakub Jelinek <jakub@redhat.com>
14856 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
14857 dg-final cleanup-modules line.
14858 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
14859 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
14860 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
14861 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
14862 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
14863 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
14864 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
14866 2007-03-18 Andreas Schwab <schwab@suse.de>
14868 * acinclude.m4: Adjust regular expression for ld version
14870 * configure: Regenerate.
14872 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
14874 * Makefile.am: Add install-pdf target as copied from
14875 automake v1.10 rules.
14876 * Makefile.in: Regenerate
14878 2007-02-07 Jakub Jelinek <jakub@redhat.com>
14881 * configure: Regenerate.
14884 * testsuite/libgomp.c++/pr30703.C: New test.
14886 2007-02-02 Jakub Jelinek <jakub@redhat.com>
14889 2006-07-05 Eric Christopher <echristo@apple.com>
14890 * configure.ac: Depend addition of -pthread on host OS.
14891 * configure: Regenerate.
14893 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14895 * libgomp.texi: Fix spacing after abbreviations.
14897 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
14900 * configure.ac: Add check for makeinfo
14901 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
14902 if an appropriate version of makeinfo is found.
14903 * aclocal.m4: Regenerated.
14904 * configure: Regenerated.
14905 * Makefile.in: Regenerated.
14906 * testsuite/Makefile.in: Regenerated.
14908 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
14911 * libgomp.texi: More about implementation-dependent settings.
14913 2007-01-26 Tobias Burnus <burnus@net-b.de>
14915 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
14917 2007-01-24 Jakub Jelinek <jakub@redhat.com>
14919 PR middle-end/30494
14920 * testsuite/libgomp.c/pr30494.c: New test.
14922 2007-01-15 Tom Tromey <tromey@redhat.com>
14924 * configure: Rebuilt.
14925 * configure.ac: Fixed comment.
14927 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
14929 * libgomp.texi: Document implementation specific default values of
14930 environment variables.
14932 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
14935 * libgomp.texi: New file.
14936 * configure.ac: Add --enable-generated-files-in-srcdir option.
14937 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
14939 * Makefile.in: Regenerated.
14940 * config.h.in: Regenerated.
14941 * testsuite/Makefile.in: Regenerated.
14944 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
14947 * env.c (omp_set_num_threads): Set illegal thread count to 1.
14949 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
14951 * configure: Regenerate.
14953 2006-12-04 Jakub Jelinek <jakub@redhat.com>
14956 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
14957 start if there shouldn't be any loop iterations.
14958 (gomp_loop_ordered_static_start): Remove start == end test.
14959 * testsuite/libgomp.c/pr29947-1.c: New test.
14960 * testsuite/libgomp.c/pr29947-2.c: New test.
14962 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
14964 * configure.tgt: Force initial-exec TLS model on Linux only.
14966 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
14968 * configure: Regenerated.
14970 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
14972 * env.c (parse_schedule): Reject out of range values.
14973 (parse_unsigned_long): Reject out of range, negative or zero values.
14975 2006-10-29 Jakub Jelinek <jakub@redhat.com>
14978 * testsuite/libgomp.fortran/pr29629.f90: New test.
14980 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
14983 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
14984 * config/posix95: New directory.
14985 * config/posix95/omp-lock.h: New file.
14986 * config/posix95/lock.c: Likewise.
14988 2006-10-14 Geoffrey Keating <geoffk@apple.com>
14990 * aclocal.m4: Regenerate.
14991 * configure: Regenerate.
14993 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
14995 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
14998 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
15000 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
15002 * configure: Regenerate.
15003 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
15005 2006-09-26 Jakub Jelinek <jakub@redhat.com>
15007 PR middle-end/25261
15008 PR middle-end/28790
15009 * testsuite/libgomp.c/nestedfn-4.c: New test.
15010 * testsuite/libgomp.c/nestedfn-5.c: New test.
15011 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
15014 * testsuite/libgomp.fortran/condinc1.f: New test.
15015 * testsuite/libgomp.fortran/condinc2.f: New test.
15016 * testsuite/libgomp.fortran/condinc3.f90: New test.
15017 * testsuite/libgomp.fortran/condinc4.f90: New test.
15018 * testsuite/libgomp.fortran/condinc1.inc: New file.
15020 2006-09-18 Tom Tromey <tromey@redhat.com>
15022 * configure: Rebuilt.
15024 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
15027 PR preprocessor/14634
15028 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
15030 * configure: Regenerate.
15032 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
15034 * testsuite/libgomp.fortran/reduction3.f90: Change
15035 -2147483648 to -huge(i)-1 to avoid overflow.
15036 * testsuite/libgomp.fortran/reduction4.f90: Change
15037 Z'ffffffff' to not(0) to avoid overflow.
15039 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
15042 * Makefile.am (libsubincludedir): New.
15043 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
15044 * Makefile.in: Regenerate.
15046 2006-08-17 Jakub Jelinek <jakub@redhat.com>
15049 * env.c: Include ctype.h.
15050 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
15051 leading and/or trailing whitespace and compare strings case
15054 2006-07-16 Jakub Jelinek <jakub@redhat.com>
15057 * testsuite/libgomp.fortran/pr28390.f: New test.
15059 2006-07-05 Eric Christopher <echristo@apple.com>
15061 * configure.ac: Depend addition of -pthread on host OS.
15062 * configure: Regenerate.
15064 2006-06-21 Jakub Jelinek <jakub@redhat.com>
15066 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
15067 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
15070 2006-06-20 Jakub Jelinek <jakub@redhat.com>
15074 * configure.ac: If neither --enable-linux-futex nor
15075 --disable-linux-futex is passed, determine the default by checking
15076 for compiling and/or running against NPTL. With --enable-linux-futex,
15077 check if SYS_gettid and SYS_futex are defined.
15078 * configure: Rebuilt.
15080 2006-06-14 Richard Henderson <rth@redhat.com>
15083 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
15084 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
15086 2006-06-09 Richard Henderson <rth@redhat.com>
15088 * env.c (gomp_nthreads_var): Change to unsigned long.
15089 (gomp_run_sched_chunk): Likewise.
15090 (parse_unsigned_long): Rename from parse_num_threads and generalize.
15091 (initialize_env): Initialize gomp_thread_attr.
15092 * libgomp.h (gomp_nthreads_var): Update decl.
15093 (gomp_run_sched_chunk): Likewise.
15094 (gomp_thread_attr): Declare.
15095 * team.c (gomp_thread_attr): Export.
15096 (initialize_team): Don't initialize it.
15098 2006-06-09 Jakub Jelinek <jakub@redhat.com>
15101 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
15102 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
15104 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
15106 * config/mingw32/time.c: New file.
15107 * configure.tgt: Use it.
15109 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
15111 * Makefile.am: Add install-html target. Add install-html to .PHONY
15112 * Makefile.in: Regenerate.
15114 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15117 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
15118 * testsuite/libgomp.c/critical-1.c: Likewise.
15119 * testsuite/libgomp.c/loop-1.c: Likewise.
15120 * testsuite/libgomp.c/loop-2.c: Likewise.
15121 * testsuite/libgomp.c/single-1.c: Likewise.
15122 * testsuite/libgomp.c/ordered-1.c: Likewise.
15123 * testsuite/libgomp.c/ordered-2.c: Likewise.
15125 2006-05-15 Jakub Jelinek <jakub@redhat.com>
15127 PR middle-end/27416
15128 * libgomp.fortran/pr27416-1.f90: New test.
15130 2006-05-03 Jakub Jelinek <jakub@redhat.com>
15133 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
15134 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
15136 2006-05-02 Jakub Jelinek <jakub@redhat.com>
15139 * testsuite/libgomp.c/pr26943-1.c: New test.
15140 * testsuite/libgomp.c/pr26943-2.c: New test.
15141 * testsuite/libgomp.c/pr26943-3.c: New test.
15142 * testsuite/libgomp.c/pr26943-4.c: New test.
15143 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
15144 * testsuite/libgomp.c++/pr26943.C: New test.
15146 2006-05-02 Jakub Jelinek <jakub@redhat.com>
15148 PR middle-end/27337
15149 * testsuite/libgomp.c++/pr27337.C: New test.
15151 2006-04-26 Jakub Jelinek <jakub@redhat.com>
15154 * testsuite/libgomp.c/pr26171.c: New test.
15156 2006-04-25 Richard Henderson <rth@redhat.com>
15159 * configure.ac: Use GCC_CHECK_TLS.
15160 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
15161 * Makefile.in, aclocal.m4, configure: Regenerate.
15163 2006-04-10 Matthias Klose <doko@debian.org>
15165 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
15166 directory names containing underscores.
15168 2006-03-21 Jakub Jelinek <jakub@redhat.com>
15171 * testsuite/libgomp.c++/pr26691.C: New test.
15173 2006-03-13 Jakub Jelinek <jakub@redhat.com>
15175 * testsuite/libgomp.fortran/retval2.f90: New test.
15177 2006-03-09 Diego Novillo <dnovillo@redhat.com>
15179 * testsuite/libgomp.c++: New directory.
15181 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
15183 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
15184 * config/posix/sem.c: Implement the above.
15186 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
15188 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
15189 define HAVE_BROKEN_POSIX_SEMAPHORES.
15190 * configure: Rebuilt.
15191 * config.h.in: Rebuilt.
15193 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
15196 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
15197 for the other pthread check.
15198 * configure: Regenerate.
15199 * config.h.in: Regenerate.
15201 2006-02-15 Jakub Jelinek <jakub@redhat.com>
15205 * Makefile.am (fincludedir): New variable.
15206 (nodist_include_HEADERS): Remove Fortran files.
15207 (nodist_finclude_HEADERS): New variable.
15208 * Makefile.in: Regenerated.
15210 2006-02-13 Jakub Jelinek <jakub@redhat.com>
15212 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
15213 Remove tests for returning assumed character length arrays.
15215 2006-02-12 Roger Sayle <roger@eyesopen.com>
15216 John David Anglin <dave@hiauly1.hia.nrc.ca>
15219 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
15221 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
15223 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
15225 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
15227 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
15228 part of LD_LIBRARY_PATH manually.
15230 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
15233 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
15236 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
15239 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
15240 * configure.ac (PERL): Don't set.
15241 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
15242 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
15243 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
15244 * omp.h.in: Wrap the new configure substitutions with @ characters.
15245 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
15246 * aclocal.m4, configure, Makefile.in: Regenerate.
15247 * mkomp_h.pl: Delete.
15249 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
15252 * configure.ac: Use GCC_HEADER_STDINT.
15253 * libgomp.h: Include gstdint.h.
15254 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
15255 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
15257 2006-01-24 Richard Henderson <rth@redhat.com>
15260 * configure.ac: Add AM_MAINTAINER_MODE.
15261 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
15263 2006-01-24 Diego Novillo <dnovillo@redhat.com>
15265 * Makefile.in: Regenerate.
15266 * testsuite/Makefile.in: Regenerate.
15267 * aclocal.m4: Regenerate.
15269 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
15271 * config/posix/proc.c: Conditional include of sys/loadavg.h for
15273 * configure.ac: Add check for loadavg.h.
15274 (link_gomp): Adjust comment.
15275 * configure: Regenerate.
15276 * config.h.in: Regenerate.
15278 2006-01-21 Steve Ellcey <sje@cup.hp.com>
15281 * configure.ac: Remove check for alloca.h.
15282 * configure: Regenerate.
15283 * config.h.in: Regenerate.
15284 * libgomp.h: define gomp_alloca to be __builtin_alloca.
15285 * team.c: Remove use of alloca.h.
15286 Call gomp_alloca instead of alloca.
15288 2006-01-20 Steve Ellcey <sje@cup.hp.com>
15291 * team.c: Add include of alloca.h.
15292 * configure.ac: Add check for alloca.h.
15293 * configure: Regenerate.
15294 * config.h.in: Regenerate.
15296 2006-01-17 Jakub Jelinek <jakub@redhat.com>
15299 * testsuite/libgomp.fortran/pr25219.f90: New test.
15301 2005-12-05 Uros Bizjak <uros@kss-loka.si>
15303 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
15304 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
15305 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
15306 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
15307 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
15308 testsuite/libgomp.fortran/threadprivate1.f90,
15309 testsuite/libgomp.fortran/threadprivate2.f90,
15310 testsuite/libgomp.fortran/threadprivate3.f90,
15311 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
15312 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
15313 testsuite/libgomp.fortran/omp_parse3.f90: Change required
15314 effective-target to TLS runtime.
15316 * testsuite/libgomp.fortran/pr25162.f: Require
15317 effective-target TLS runtime.
15319 2005-12-01 Jakub Jelinek <jakub@redhat.com>
15321 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
15322 * testsuite/libgomp.c/nestedfn-3.c: New test.
15324 2005-11-30 Jakub Jelinek <jakub@redhat.com>
15327 * testsuite/libgomp.fortran/pr25162.f: New test.
15329 2005-11-28 Jakub Jelinek <jakub@redhat.com>
15331 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
15332 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
15334 2005-11-25 Jakub Jelinek <jakub@redhat.com>
15336 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
15337 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
15338 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
15339 single.c, team.c, work.c, config/linux/alpha/futex.h,
15340 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
15341 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
15342 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
15343 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
15344 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
15345 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
15346 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
15349 2005-11-18 Jakub Jelinek <jakub@redhat.com>
15351 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
15352 to nodist_noinst_HEADERS.
15353 * Makefile.in: Rebuilt.
15355 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
15356 add integer count field.
15357 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
15358 omp_nest_lock_t type change.
15359 (omp_init_nest_lock): Likewise. Initialize count to 0.
15360 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
15362 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
15364 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
15365 Increment count if successful and return the new nesting level.
15366 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
15367 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
15368 * testsuite/libgomp.c/lib-1.c: New test.
15369 * testsuite/libgomp.fortran/lib1.f90: New test.
15370 * testsuite/libgomp.fortran/lib2.f: New test.
15371 * testsuite/libgomp.fortran/lib3.f: New test.
15373 2005-11-17 Richard Henderson <rth@redhat.com>
15376 * Makefile.am (nodist_toolexeclib_HEADERS): New.
15377 * configure.ac (link_gomp): New. Substitute it.
15378 (AC_CONFIG_FILES): Add libgomp.spec.
15379 * libgomp.spec.in: New file.
15380 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
15381 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
15383 2005-11-18 Jakub Jelinek <jakub@redhat.com>
15385 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
15386 reduction(-:var) behaving the same as reduction(+:var).
15387 * testsuite/libgomp.c/reduction-4.c: New test.
15389 2005-11-15 Uros Bizjak <uros@kss-loka.si>
15391 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
15392 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
15393 testsuite/libgomp.c/copyin-3.c,
15394 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
15395 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
15396 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
15397 testsuite/libgomp.c++/pr24455.C,
15398 testsuite/libgomp.fortran/threadprivate1.f90,
15399 testsuite/libgomp.fortran/threadprivate2.f90,
15400 testsuite/libgomp.fortran/threadprivate3.f90,
15401 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
15402 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
15403 testsuite/libgomp.fortran/omp_parse3.f90: Require
15404 effective-target TLS.
15406 2005-11-14 Diego Novillo <dnovillo@redhat.com>
15410 2005-11-13 Jakub Jelinek <jakub@redhat.com>
15413 * team.c (initialize_team): Pass NULL rather than free as
15414 pthread_key_create destructor. Initialize thread specific data
15415 pointer in initial thread to a static local variable rather than
15418 2005-11-11 Uros Bizjak <uros@kss-loka.si>
15420 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
15421 its location to ld_library_path.
15423 2005-11-10 Diego Novillo <dnovillo@redhat.com>
15425 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
15427 2005-11-10 Diego Novillo <dnovillo@redhat.com>
15429 * testsuite/libgomp.c: Rename from libgomp.dg.
15431 2005-11-09 Diego Novillo <dnovillo@redhat.com>
15433 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
15434 threadprivate variable 'i'.
15436 2005-11-09 Jakub Jelinek <jakub@redhat.com>
15438 * config/linux/s390/futex.h: New file.
15439 * configure.tgt: Use it.
15441 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
15442 before the parallel.
15444 2005-11-08 Jakub Jelinek <jakub@redhat.com>
15447 * testsuite/libgomp.c++/master-1.C: New test.
15449 2005-11-07 Jakub Jelinek <jakub@redhat.com>
15451 * testsuite/libgomp.dg/copyin-3.c: New test.
15453 2005-11-07 Jakub Jelinek <jakub@redhat.com>
15455 * testsuite/libgomp.fortran/retval1.f90: New test.
15456 * testsuite/libgomp.fortran/vla7.f90: New test.
15458 2005-11-06 Jakub Jelinek <jakub@redhat.com>
15460 * testsuite/libgomp.fortran/vla2.f90: New test.
15461 * testsuite/libgomp.fortran/vla3.f90: New test.
15462 * testsuite/libgomp.fortran/vla4.f90: New test.
15463 * testsuite/libgomp.fortran/vla5.f90: New test.
15464 * testsuite/libgomp.fortran/vla6.f90: New test.
15466 2005-11-01 Jakub Jelinek <jakub@redhat.com>
15468 * config/linux/sparc/futex.h: New file.
15469 * configure.tgt: Use it.
15470 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
15472 * critical.c: Include stdlib.h.
15473 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
15474 ignoring return value.
15475 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
15476 LIBGOMP_CHECK_SYNC_BUILTINS check.
15477 * configure: Rebuilt.
15479 2005-10-31 Jakub Jelinek <jakub@redhat.com>
15481 * testsuite/libgomp.fortran/vla1.f90: New test.
15483 2005-10-31 Richard Henderson <rth@redhat.com>
15485 * testsuite/libgomp.fortran/character2.f90: Fix race condition
15486 setting 's' in different threads.
15488 2005-10-31 Jakub Jelinek <jakub@redhat.com>
15490 * libgomp.h (attribute_hidden, ialias): Define.
15491 * config/posix/proc.c (omp_get_num_procs): Add ialias.
15492 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
15493 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
15494 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15495 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15496 omp_test_lock, omp_test_nest_lock): Likewise.
15497 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
15498 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15499 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15500 omp_test_lock, omp_test_nest_lock): Likewise.
15501 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
15502 omp_get_dynamic, omp_get_nested): Likewise.
15503 * parallel.c (omp_get_num_threads, omp_get_max_threads,
15504 omp_get_thread_num, omp_in_parallel): Likewise.
15505 * fortran.c (ialias_redirect): Define.
15506 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
15507 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
15508 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
15509 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
15510 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
15511 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
15512 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
15513 omp_get_wtime): Add ialias_redirect.
15515 2005-10-30 Jakub Jelinek <jakub@redhat.com>
15517 * fortran.c: Include stdlib.h.
15519 2005-10-29 Jakub Jelinek <jakub@redhat.com>
15521 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
15522 * Makefile.in: Regenerated.
15524 2005-10-28 Jakub Jelinek <jakub@redhat.com>
15526 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
15527 * libgomp_f.h.in (omp_check_defines): New function.
15528 * env.c: Include libgomp_f.h.
15529 (initialize_env): Call omp_check_defines.
15531 * testsuite/libgomp.dg/copyin-2.c: New test.
15532 * testsuite/libgomp.c++/copyin-2.C: New test.
15533 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
15535 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
15536 * testsuite/libgomp.fortran/sharing2.f90: New test.
15538 * testsuite/libgomp.dg/copyin-1.c: New test.
15539 * testsuite/libgomp.c++/copyin-1.C: New test.
15541 2005-10-26 Jakub Jelinek <jakub@redhat.com>
15543 * testsuite/libgomp.fortran/crayptr1.f90: New test.
15545 * testsuite/libgomp.fortran/workshare1.f90: New test.
15547 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
15549 * libgomp.fortran/sharing1.f90: New test.
15551 2005-10-24 Jakub Jelinek <jakub@redhat.com>
15554 * testsuite/libgomp.c++/loop-7.C: New test.
15556 * testsuite/libgomp.dg/nestedfn-2.c: New test.
15558 * testsuite/libgomp.dg/nestedfn-1.c: New test.
15559 * testsuite/libgomp.fortran/reduction6.f90: New test.
15560 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
15562 2005-10-23 Richard Henderson <rth@redhat.com>
15564 * testsuite/libgomp.c++/ctor-1.C: New.
15565 * testsuite/libgomp.c++/ctor-2.C: New.
15566 * testsuite/libgomp.c++/ctor-3.C: New.
15567 * testsuite/libgomp.c++/ctor-4.C: New.
15568 * testsuite/libgomp.c++/ctor-5.C: New.
15569 * testsuite/libgomp.c++/ctor-6.C: New.
15570 * testsuite/libgomp.c++/ctor-7.C: New.
15571 * testsuite/libgomp.c++/ctor-8.C: New.
15572 * testsuite/libgomp.c++/ctor-9.C: New.
15574 2005-10-21 Diego Novillo <dnovillo@redhat.com>
15577 * testsuite/libgomp.c++/pr24455-1.C: New test.
15578 * testsuite/libgomp.c++/pr24455.C: New test.
15579 * testsuite/libgomp.dg/pr24455-1.c: New test.
15580 * testsuite/libgomp.dg/pr24455.c: New test.
15582 2005-10-20 Richard Henderson <rth@redhat.com>
15584 * testsuite/libgomp.c++/loop-6.C: New.
15585 * testsuite/libgomp.dg/loop-3.c: New.
15587 2005-10-20 Jakub Jelinek <jakub@redhat.com>
15589 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
15590 explicitly private.
15591 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
15594 2005-10-19 Diego Novillo <dnovillo@redhat.com>
15596 * testsuite/libgomp.fortran/jacobi.f: New test.
15598 2005-10-19 Richard Henderson <rth@redhat.com>
15600 * configure.tgt (i?86-linux): Default to with_arch instead of
15601 CFLAGS. Add -mtune to match target_cpu.
15602 (x86_64-linux): Tune to i686.
15604 * fortran.c (omp_test_nest_lock_): Fix typo.
15606 2005-10-19 Jakub Jelinek <jakub@redhat.com>
15608 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
15609 gomp_ordered_sync): Do nothing if team->nthreads == 1.
15610 * testsuite/libgomp.dg/ordered-3.c: New test.
15612 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
15613 Remove volatile keyword.
15615 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
15616 in COMMON block to avoid warnings on 64-bit targets.
15618 2005-10-18 Diego Novillo <dnovillo@redhat.com>
15620 * testsuite/libgomp.dg/shared-3.c: New test.
15622 2005-10-18 Jakub Jelinek <jakub@redhat.com>
15624 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
15625 * testsuite/libgomp.fortran/reduction5.f90: New test.
15627 2005-10-18 Jakub Jelinek <jakub@redhat.com>
15629 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
15631 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
15632 flush loop now that __sync_synchronize has proper memory barrier.
15633 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
15634 Add -ffixed-form to dg-options.
15636 2005-10-17 Diego Novillo <dnovillo@redhat.com>
15638 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
15639 from subdirectories.
15640 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
15641 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
15642 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
15643 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
15644 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
15645 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
15646 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
15647 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
15648 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
15649 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
15650 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
15651 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
15652 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
15653 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
15654 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
15655 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
15656 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
15657 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
15658 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
15659 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
15660 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
15661 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
15662 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
15663 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
15664 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
15666 2005-10-17 Jakub Jelinek <jakub@redhat.com>
15668 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
15669 lang_library_path exists. Use find instead of glob to gather tests.
15670 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
15672 2005-10-17 Diego Novillo <dnovillo@redhat.com>
15674 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
15675 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
15676 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
15677 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
15678 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
15679 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
15680 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
15681 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
15682 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
15683 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
15684 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
15685 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
15686 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
15688 2005-10-15 Jakub Jelinek <jakub@redhat.com>
15690 * testsuite/libgomp.dg/vla-1.c: New test.
15692 * testsuite/libgomp.fortran/reference2.f90: New test.
15694 * testsuite/libgomp.fortran/character2.f90: Remove explicit
15695 declaration of omp_get_thread_num.
15696 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
15699 * testsuite/libgomp.fortran/reduction1.f90: New test.
15700 * testsuite/libgomp.fortran/reduction2.f90: New test.
15701 * testsuite/libgomp.fortran/reduction3.f90: New test.
15702 * testsuite/libgomp.fortran/reduction4.f90: New test.
15704 2005-10-13 Richard Henderson <rth@redhat.com>
15706 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
15707 * Makefile.in: Regenerate.
15708 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
15709 * libgomp.h: Include bar.h.
15710 (struct gomp_barrier): Remove.
15711 (struct gomp_team): Add barrier. Replace master_barrier with
15712 master_release. Replace threads with ordered_release.
15713 (struct gomp_thread): Replace barrier with release.
15714 * ordered.c (gomp_ordered_first): Update for ordered_release change.
15715 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
15716 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
15717 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
15718 (GOMP_single_copy_end): Likewise.
15719 * team.c (gomp_threads_dock): New.
15720 (gomp_barrier_init, gomp_barrier_destroy): Remove.
15721 (gomp_thread_start): Use gomp_barrier_wait.
15722 (new_team, free_team): Update for gomp_team changes.
15723 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
15724 (gomp_team_end): Use gomp_barrier_wait.
15725 (initialize_team): Update for gomp_thread changes.
15726 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
15727 (gomp_work_share_end_nowait): Use atomic ops when available.
15728 * config/linux/bar.c, config/linux/bar.h: New files.
15729 * config/posix/bar.c, config/posix/bar.h: New files.
15731 2005-10-13 Jakub Jelinek <jakub@redhat.com>
15733 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
15734 * testsuite/libgomp.dg/single-2.c: New test.
15736 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
15737 lang_link_flags): Unset, so that they aren't inherited from previously
15740 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
15742 2005-10-12 Richard Henderson <rth@redhat.com>
15744 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
15745 (libgomp_init): Use lang_test_file, lang_library_path, and
15746 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
15748 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
15749 (lang_test_file, lang_link_flags): New.
15750 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
15752 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
15753 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
15754 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
15755 testsuite/libgomp.c++/parallel-1.C,
15756 testsuite/libgomp.c++/reduction-1.C,
15757 testsuite/libgomp.c++/reduction-2.C,
15758 testsuite/libgomp.c++/reduction-3.C,
15759 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
15760 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
15761 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
15762 New files, largely cribbed from the C testsuite.
15764 2005-10-12 Jakub Jelinek <jakub@redhat.com>
15766 * testsuite/libgomp.fortran/character1.f90: New test.
15767 * testsuite/libgomp.fortran/character2.f90: New test.
15769 * testsuite/libgomp.dg/nested-1.c: New test.
15770 * testsuite/libgomp.dg/nested-2.c: New test.
15771 * testsuite/libgomp.fortran/do1.f90: New test.
15772 * testsuite/libgomp.fortran/do2.f90: New test.
15774 * testsuite/libgomp.fortran/reference1.f90: New test.
15776 2005-10-11 Jakub Jelinek <jakub@redhat.com>
15778 * testsuite/libgomp.dg/reduction-1.c: New test.
15779 * testsuite/libgomp.dg/reduction-2.c: New test.
15780 * testsuite/libgomp.dg/reduction-3.c: New test.
15782 2005-10-10 Jakub Jelinek <jakub@redhat.com>
15784 * testsuite/libgomp.dg/atomic-1.c: New test.
15785 * testsuite/libgomp.dg/atomic-2.c: New test.
15787 2005-10-09 Richard Henderson <rth@redhat.com>
15789 * critical.c (atomic_lock): New.
15790 (initialize_critical): Initialize it.
15791 (GOMP_atomic_start, GOMP_atomic_end): New.
15792 * libgomp.map: Export them.
15793 * libgomp_g.h: Declare them.
15795 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
15797 2005-10-02 Richard Henderson <rth@redhat.com>
15799 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
15800 to XCFLAGS instead of CFLAGS.
15802 2005-09-30 Richard Henderson <rth@redhat.com>
15804 * configure.ac: Determine whether -pthread or -lpthread is needed.
15805 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
15806 * Makefile.in, configure: Rebuild.
15808 2005-09-28 Richard Henderson <rth@redhat.com>
15810 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
15811 * testsuite/libgomp.dg/omp-single-3.c: New test.
15813 2005-09-28 Diego Novillo <dnovillo@redhat.com>
15815 * testsuite/libgomp.dg/omp-single-2.c: New test.
15816 * testsuite/libgomp.dg/shared-2.c: Fix return code.
15818 2005-09-27 Richard Henderson <rth@redhat.com>
15820 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
15821 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
15823 2005-09-27 Jakub Jelinek <jakub@redhat.com>
15825 * testsuite/libgomp.dg/omp-loop03.c: New test.
15827 2005-09-27 Diego Novillo <dnovillo@redhat.com>
15829 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
15831 2005-09-27 Diego Novillo <dnovillo@redhat.com>
15833 * testsuite/libgomp.dg/omp-single-1.c: New test.
15834 * testsuite/libgomp.dg/shared-1.c: Return 0.
15835 Add prototype for abort.
15836 * testsuite/libgomp.dg/shared-2.c: Likewise.
15838 2005-09-26 Jakub Jelinek <jakub@redhat.com>
15840 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
15843 2005-09-26 Diego Novillo <dnovillo@redhat.com>
15845 * testsuite/libgomp.dg/shared-1.c: New test.
15846 * testsuite/libgomp.dg/shared-2.c: New test.
15848 2005-09-24 Richard Henderson <rth@redhat.com>
15850 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
15852 2005-09-24 Richard Henderson <rth@redhat.com>
15854 * iter.c (gomp_iter_static_next): Round up when computing number
15855 of iterations. Don't bother distributing a remainder equally.
15857 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
15858 Don't call srand. Zero b before testing.
15861 2005-09-24 Jakub Jelinek <jakub@redhat.com>
15863 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
15864 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
15866 2005-09-23 Jakub Jelinek <jakub@redhat.com>
15868 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
15869 without !$omp end do, followed immediately by subroutine end.
15871 2005-09-23 Diego Novillo <dnovillo@redhat.com>
15873 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
15875 2005-09-22 Richard Henderson <rth@redhat.com>
15877 * critical.c (GOMP_critical_name_start): Change argument to void**.
15878 Reuse the pointer space if the mutex fits.
15879 (GOMP_critical_name_end): Likewise.
15880 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
15881 * libgomp_g.h (GOMP_critical_name_start): Update decl.
15882 (GOMP_critical_name_end): Likewise.
15883 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
15884 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
15886 2005-09-20 Richard Henderson <rth@redhat.com>
15888 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
15889 (create_lock_lock): New.
15890 (initialize_critical): Initialize it.
15891 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
15892 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
15894 2005-09-20 Diego Novillo <dnovillo@redhat.com>
15896 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
15898 2005-09-20 Diego Novillo <dnovillo@redhat.com>
15900 * testsuite/libgomp.dg/omp-loop01.c: New test.
15901 * testsuite/libgomp.dg/omp-loop02.c: New test.
15903 2005-09-20 Jakub Jelinek <jakub@redhat.com>
15905 * configure.ac (AC_PROG_FC): Add.
15906 (USE_FORTRAN): New automake conditional.
15907 * configure: Rebuilt.
15908 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
15909 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
15910 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
15911 Add rules to build them.
15912 * Makefile.in: Rebuilt.
15913 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
15914 OMP_NEST_LOCK_KIND.
15915 * libgomp.map: Add Fortran wrappers.
15916 * libgomp_f.h.in: New file.
15917 * omp_lib.h.in: New file.
15918 * omp_lib.f90.in: New file.
15919 * fortran.c: New file.
15920 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
15921 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
15922 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
15923 libgfortran has been built.
15924 * testsuite/libgomp.fortran/fortran.exp: New file.
15925 * testsuite/libgomp.fortran/omp_cond1.f: New test.
15926 * testsuite/libgomp.fortran/omp_cond2.f: New test.
15927 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
15928 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
15929 * testsuite/libgomp.fortran/omp_hello.f: New test.
15930 * testsuite/libgomp.fortran/omp_orphan.f: New test.
15931 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
15932 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
15933 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
15934 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
15935 * testsuite/libgomp.fortran/omp_reduction.f: New test.
15936 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
15937 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
15939 2005-08-30 Richard Henderson <rth@redhat.com>
15941 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
15942 function for when aliases are not usable.
15943 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
15944 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
15945 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
15946 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
15947 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
15948 GOMP_loop_ordered_guided_next): Likewise.
15949 * ordered.c (GOMP_ordered_start): Likewise.
15951 2005-08-01 Diego Novillo <dnovillo@redhat.com>
15953 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
15954 * testsuite/libgomp.dg/omp_hello.c: Fix return code
15955 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
15956 * testsuite/libgomp.dg/omp_orphan.c: Likewise
15957 * testsuite/libgomp.dg/omp_reduction.c: Likewise
15958 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
15959 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
15960 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
15961 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
15963 2005-07-07 Eric Christopher <echristo@redhat.com>
15964 Diego Novillo <dnovillo@redhat.com>
15966 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
15967 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
15969 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
15970 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
15971 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
15972 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
15973 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
15974 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
15975 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
15977 2005-06-13 Diego Novillo <dnovillo@redhat.com>
15979 * TOPLEVEL.patch: Remove.
15981 2005-05-16 Richard Henderson <rth@redhat.com>
15983 * configure.ac: Test for clock_gettime.
15984 * config.h.in, configure: Rebuild.
15985 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
15986 (omp_get_wtime): Use clock_gettime if available.
15987 (omp_get_wtick): Use clock_getres if available.
15989 2005-05-11 Richard Henderson <rth@redhat.com>
15991 * config/linux/ia64/futex.h: New file.
15992 * configure.tgt: Use it.
15994 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
15996 2005-05-07 Richard Henderson <rth@redhat.com>
15998 * config/linux/powerpc/futex.h: New file.
15999 * configure.tgt: Use it.
16001 * config/linux/i486/futex.h: Merge ...
16002 * config/linux/x86_64/futex.h: ... into ...
16003 * config/linux/x86/futex.h: ... here.
16004 * configure.tgt: Update to match.
16006 2005-05-06 Richard Henderson <rth@redhat.com>
16008 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
16009 * config/linux/i486/futex.h: Likewise.
16010 * config/linux/x86_64/futex.h: Likewise.
16012 * config/linux/lock.c: New file.
16013 * config/linux/omp-lock.h: New file.
16015 * critical.c, env.h: Don't include omp.h
16016 * config/posix/lock.c: Include libgomp.h instead of omp.h.
16017 * config/posix/time.c: Likewise.
16018 * config/posix/omp-lock.h: New file.
16019 * libgomp.h: Include omp-lock.h and omp.h.
16020 * Makefile.am (nodist_include_HEADERS): New.
16022 * configure.ac (PERL): New.
16023 * mkomp_h.pl: New file.
16024 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
16026 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
16028 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
16029 build directory. Re-add -march=i486 hack.
16031 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
16032 (libgomp_link_flags): Remove.
16033 (libgomp_initialized): Remove.
16034 (libgomp_init): Don't protect from reinitialization. Copy code
16035 from libstdc++ for getting the multilib set correctly.
16037 2005-05-05 Richard Henderson <rth@redhat.com>
16039 * config/linux/alpha/futex.h: New file.
16040 * configure.tgt (alpha*-*-linux*): Use it.
16042 * config/posix/mutex.c: New file.
16043 * config/posix/sem.c: Use libgomp.h.
16045 * configure.tgt (x86_64-linux): Also test CC for -m32.
16046 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
16048 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
16051 * Makefile.am (SUBDIRS): New.
16052 (libgomp_la_LDFLAGS): Add -lpthread.
16053 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
16054 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
16056 * libgomp_g.h: New file.
16057 * libgomp.h: Split out all public declarations to libgomp_g.h.
16058 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
16059 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
16060 * config/linux/sem.h: Likewise.
16061 * config/posix/sem.h: Likewise.
16063 * Makefile.am (AM_LDFLAGS): New.
16064 (libgomp_version_script): Split out from ...
16065 (libgomp_la_LDFLAGS): ... here.
16066 (libgomp_version_info): New.
16067 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
16068 (LIBGOMP_ENABLE): New.
16069 (LIBGOMP_CHECK_LINKER_FEATURES): New.
16070 (LIBGOMP_ENABLE_SYMVERS): New.
16071 * configure.ac (AC_INIT): Version 1.0.
16072 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
16073 (enable-linux-futex): Likewise. Rename from enable-futex.
16074 (libtool_VERSION): New.
16075 (LIBGOMP_ENABLE_SYMVERS): Use it.
16076 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
16077 * Makefile.in, aclocal.m4, configure: Rebuild.
16079 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
16080 (gomp_mutex_unlock_slow): Fix typo.
16081 * config/linux/sem.c: Similarly.
16082 (gomp_sem_post_slow): Fix typo.
16083 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
16084 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
16085 [__PIC__] (sys_futex0): Don't use tmp output in asm.
16087 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
16088 (libgomp_la_LDFLAGS): Add top_srcdir to path.
16089 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
16090 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
16091 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
16092 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
16093 LDFLAGS. Pull enable_futex check to top-level.
16094 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
16095 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
16097 First attempt at real configury.
16098 * Makefile, config.h: Remove file.
16099 * Makefile.am, Makefile.in: New file.
16100 * acinclude.m4 aclocal.m4: New file.
16101 * configure.ac, configure.tgt, configure: New file.
16103 * config/posix/lock.c: Rename from sys-lock.c.
16104 * config/posix/mutex.h: Rename from sys-mutex.h.
16105 * config/posix/sem.c: Rename from sys-sem.c.
16106 * config/posix/sem.h: Rename from sys-sem.h.
16107 * config/posix/proc.c: Rename from sys-proc.c.
16108 * config/posix/time.c: Rename from sys-proc.c.
16110 * config/linux/mutex.c: New file.
16111 * config/linux/mutex.h: New file.
16112 * config/linux/sem.c: New file.
16113 * config/linux/sem.h: New file.
16114 * config/linux/i486/futex.h: New file.
16115 * config/linux/x86_64/futex.h: New file.
16117 2005-05-04 Richard Henderson <rth@redhat.com>
16119 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
16120 * libgomp.h: Declare them.
16121 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
16122 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
16124 2005-05-04 Richard Henderson <rth@redhat.com>
16126 * libgomp-1 code drop
16128 2005-05-04 Richard Henderson <rth@redhat.com>
16130 * iter.c (gomp_iter_static_next): Return tri-state on 0.
16131 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
16132 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
16133 (gomp_iter_static_next): Update.
16134 (gomp_ordered_static_next): Update.
16135 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
16136 (gomp_loop_ordered_static_start): Likewise. Exit early for a
16137 totally empty range.
16138 (gomp_loop_ordered_static_next): Refine test for calling
16139 gomp_ordered_static_next.
16140 * testsuite/ordered-1.c: Add case for more threads than iterations.
16142 * iter.c (gomp_iter_runtime_next_locked): Remove.
16143 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
16144 gomp_loop_guided_start, gomp_loop_ordered_static_start,
16145 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
16146 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
16147 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
16148 gomp_loop_ordered_guided_next): Downcase name, make static, add
16149 an external alias with the old name.
16150 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
16151 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
16152 switch and call one of the above static functions.
16153 * libgomp.h: Update.
16155 * work.c (gomp_work_share_start): Lock the mutex for !first too.
16156 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
16157 GOMP_loop_guided_start, GOMP_loop_runtime_start,
16158 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
16159 GOMP_loop_ordered_guided_start): Update to match.
16160 * sections.c (GOMP_sections_start): Likewise.
16161 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
16163 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
16164 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
16165 Use bounds check instead of modulus.
16166 (gomp_ordered_sync): Split out of GOMP_ordered_start.
16167 (gomp_ordered_last): Don't sync with ordered_owner here.
16168 (gomp_ordered_next): Likewise.
16169 (gomp_ordered_static_loop_next): Likewise.
16170 * loop.c, libgomp.h: Update to match.
16172 * libgomp.h (GOMP_barrier): Declare.
16174 * testsuite/barrier-1.c: New file.
16175 * testsuite/critical-1.c: New file.
16176 * testsuite/ordered-2.c: New file.
16177 * testsuite/ordered-1.c: New file.
16178 * testsuite/sections-1.c: New file.
16179 * testsuite/single-1.c: New file.
16180 * testsuite/Makefile (TESTS): Add them.
16182 2005-05-04 Richard Henderson <rth@redhat.com>
16184 * libgomp.h (struct gomp_work_share): Add ordered_owner.
16185 * loop.c (GOMP_loop_static_start): If not the startup thread,
16186 acquire the mutex to wait for initialization complete.
16187 (GOMP_loop_ordered_static_start): Likewise.
16188 (GOMP_loop_ordered_runtime_start): Likewise.
16189 (GOMP_loop_ordered_static_first): Remove.
16190 (GOMP_loop_ordered_dynamic_first): Remove.
16191 (GOMP_loop_ordered_guided_first): Remove.
16192 (GOMP_loop_ordered_runtime_first): Remove.
16193 * ordered.c (gomp_ordered_loop_first): Post to own release when
16194 we're the first thread.
16195 (gomp_ordered_loop_last): Wait on release if not owner.
16196 (gomp_ordered_loop_next): Likewise.
16197 (gomp_ordered_static_loop_init): New.
16198 (gomp_ordered_static_loop_next): Use ordered_owner.
16199 (GOMP_ordered_start): Likewise.
16200 * work.c (gomp_new_work_share): Initialize ordered_owner.
16202 2005-05-03 Richard Henderson <rth@redhat.com>
16204 * Makefile (OPT): New.
16207 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
16208 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
16209 * libgomp.h, libgomp.map, NOTES: Update to match.
16211 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
16212 Add initialized and thr members.
16213 (gomp_thread_start): Pause when initially spawned to wait for
16214 the whole team to be created.
16215 (gomp_team_start): Release team members at the end.
16217 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
16218 (f_foo_1): Use GOMP_loop_end.
16219 (f_foo_2): Use GOMP_loop_end_nowait.
16221 * testsuite/loop-2.c: New file.
16222 * testsuite/Makefile (TESTS): Add it.
16224 2005-05-03 Richard Henderson <rth@redhat.com>
16226 * iter.c (gomp_iter_static_next): Fix overflow check typo.
16227 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
16228 * team.c (new_team): Initialize oldest_live_gen to 1 if no
16229 initial work_share.
16231 * testsuite/Makefile: New file.
16232 * testsuite/loop-1.c: New file.
16234 2005-05-03 Richard Henderson <rth@redhat.com>
16236 Initial implementation and checkin.
16238 Copyright (C) 2005-2021 Free Software Foundation, Inc.
16240 Copying and distribution of this file, with or without modification,
16241 are permitted in any medium without royalty provided the copyright
16242 notice and this notice are preserved.