1 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
3 * testsuite/libgomp.fortran/teams-1.f90: New test.
5 2021-11-11 Jakub Jelinek <jakub@redhat.com>
7 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
8 * team.c (struct gomp_thread_start_data): Likewise.
9 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
10 (gomp_team_start): Initialize start_data->num_teams and
11 start_data->team_num. Update nthr->num_teams and nthr->team_num.
12 * teams.c (gomp_num_teams, gomp_team_num): Remove.
13 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
14 instead of gomp_num_teams and gomp_team_num.
15 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
16 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
17 * testsuite/libgomp.c/teams-4.c: New test.
19 2021-11-11 Jakub Jelinek <jakub@redhat.com>
21 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
23 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
25 * env.c (parse_gomp_openacc_dim): Restore parsing.
27 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
30 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
32 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
33 * testsuite/libgomp.c/target-3.c: Likewise.
34 * testsuite/libgomp.c/target-5.c: Likewise.
35 * testsuite/libgomp.c/target-6.c: Likewise.
36 * testsuite/libgomp.c/target-teams-1.c: Likewise.
37 * testsuite/libgomp.c/teams-1.c: Likewise.
38 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
39 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
40 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
41 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
42 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
43 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
44 * testsuite/libgomp.fortran/teams1.f90: Likewise.
46 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
48 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
49 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
51 2021-10-27 Jakub Jelinek <jakub@redhat.com>
53 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
54 aren't implemented for Fortran yet.
56 2021-10-27 Jakub Jelinek <jakub@redhat.com>
58 * testsuite/libgomp.c/loop-26.c: New test.
59 * testsuite/libgomp.c/loop-27.c: New test.
61 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
64 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
65 instead of #include <alloca.h> + alloca.
67 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
69 * libgomp.texi (Support of strictly structured blocks in Fortran):
71 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
73 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
75 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
76 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
78 2021-10-20 Jakub Jelinek <jakub@redhat.com>
81 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
82 (struct gomp_work_share): Only use aligned(64) attribute if
83 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
84 add padding before lock to ensure lock is at offset 64 bytes
86 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
87 New poor man's static assertions.
88 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
89 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
91 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
92 Richard Biener <rguenther@suse.de>
94 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
96 2021-10-18 Jakub Jelinek <jakub@redhat.com>
98 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
99 && gomp_places_list_len < count after nfirst <= nlast loop condition.
101 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
110 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
112 2021-10-15 Jakub Jelinek <jakub@redhat.com>
114 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
115 type from char [50] to const char *.
116 (places_array): Add a testcase for simplified syntax place followed
117 by length or length and stride.
119 2021-10-15 Jakub Jelinek <jakub@redhat.com>
121 * env.c (parse_one_place): Handle non-negative-number the same
122 as { non-negative-number }. Reject even !number:1 and
123 !number:1:stride or !place:1 or !place:1:stride instead of just
125 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
126 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
127 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
129 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
132 2021-10-15 Jakub Jelinek <jakub@redhat.com>
134 * env.c (parse_schedule): For strtoul or strtoull calls which don't
135 clearly reject return value 0 as invalid handle the case where end
136 pointer is the same as first argument as invalid.
137 (parse_unsigned_long_1): Likewise.
138 (parse_one_place): Likewise.
139 (parse_places_var): Likewise.
140 (parse_stacksize): Likewise.
141 (parse_spincount): Likewise.
142 (parse_affinity): Likewise.
143 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
145 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
146 For strtoul calls which don't clearly reject return value 0 as
147 invalid handle the case where end pointer is the same as first
149 (gomp_affinity_init_level_1): Likewise.
150 (gomp_affinity_init_numa_domains): Likewise.
151 * config/rtems/proc.c (parse_thread_pools): Likewise.
153 2021-10-15 Jakub Jelinek <jakub@redhat.com>
155 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
156 after creating count places clean up and return immediately.
157 * testsuite/libgomp.c/places-6.c: New test.
158 * testsuite/libgomp.c/places-7.c: New test.
159 * testsuite/libgomp.c/places-8.c: New test.
160 * testsuite/libgomp.c/places-9.c: New test.
161 * testsuite/libgomp.c/places-10.c: New test.
163 2021-10-15 Jakub Jelinek <jakub@redhat.com>
165 * env.c (parse_places_var): Handle numa_domains as level 5.
166 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
168 (gomp_affinity_init_level): Use it instead of
169 gomp_affinity_init_level_1 for level == 5.
170 * testsuite/libgomp.c/places-5.c: New test.
172 2021-10-15 Jakub Jelinek <jakub@redhat.com>
174 * env.c (parse_places_var): Handle ll_caches as level 4.
175 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
177 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
179 (gomp_affinity_init_level): Likewise.
180 * testsuite/libgomp.c/places-1.c: New test.
181 * testsuite/libgomp.c/places-2.c: New test.
182 * testsuite/libgomp.c/places-3.c: New test.
183 * testsuite/libgomp.c/places-4.c: New test.
185 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
187 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
190 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
192 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
194 2021-10-12 Julian Brown <julian@codesourcery.com>
196 * target.c (gomp_copy_host2dev): Release device lock on cbuf
199 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
201 * testsuite/libgomp.fortran/icv-3.f90: New.
202 * testsuite/libgomp.fortran/icv-4.f90: New.
204 2021-10-12 Jakub Jelinek <jakub@redhat.com>
206 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
207 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
208 OMP_TEAMS_THREAD_LIMIT): Document.
210 2021-10-12 Jakub Jelinek <jakub@redhat.com>
212 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
213 to avoid makeinfo warnings.
215 2021-10-12 Jakub Jelinek <jakub@redhat.com>
217 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
218 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
220 2021-10-12 Jakub Jelinek <jakub@redhat.com>
224 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
225 allocation sizes from 420 to 320 and from 768 to 568.
226 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
227 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
230 2021-10-12 Jakub Jelinek <jakub@redhat.com>
232 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
233 * testsuite/libgomp.c/scan-12.c: Likewise.
234 * testsuite/libgomp.c/scan-13.c: Likewise.
235 * testsuite/libgomp.c/scan-14.c: Likewise.
236 * testsuite/libgomp.c/scan-15.c: Likewise.
237 * testsuite/libgomp.c/scan-16.c: Likewise.
238 * testsuite/libgomp.c/scan-17.c: Likewise.
239 * testsuite/libgomp.c/scan-18.c: Likewise.
240 * testsuite/libgomp.c/scan-19.c: Likewise.
241 * testsuite/libgomp.c/scan-20.c: Likewise.
242 * testsuite/libgomp.c/scan-21.c: Likewise.
243 * testsuite/libgomp.c/scan-22.c: Likewise.
244 * testsuite/libgomp.c++/scan-9.C: Likewise.
245 * testsuite/libgomp.c++/scan-10.C: Likewise.
246 * testsuite/libgomp.c++/scan-11.C: Likewise.
247 * testsuite/libgomp.c++/scan-12.C: Likewise.
248 * testsuite/libgomp.c++/scan-13.C: Likewise.
249 * testsuite/libgomp.c++/scan-14.C: Likewise.
250 * testsuite/libgomp.c++/scan-15.C: Likewise.
251 * testsuite/libgomp.c++/scan-16.C: Likewise.
253 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
255 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
257 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
259 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
261 * omp.h.in: Add deprecated flag for omp_atv_sequential.
262 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
263 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
264 * testsuite/libgomp.fortran/alloc-12.f90: New test.
266 2021-10-11 Jakub Jelinek <jakub@redhat.com>
268 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
269 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
270 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
271 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
272 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
273 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
274 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
275 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
276 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
277 omp_set_teams_thread_limit{,_,_8_}.
278 * icv.c (omp_set_num_teams, omp_get_max_teams,
279 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
281 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
282 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
283 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
285 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
286 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
287 is not specified, use gomp_nteams_var.
288 * fortran.c (omp_set_num_teams, omp_get_max_teams,
289 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
291 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
292 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
293 omp_get_teams_thread_limit_): New functions.
295 2021-10-09 liuhongt <hongtao.liu@intel.com>
297 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
298 * testsuite/libgomp.c++/scan-11.C: Ditto.
299 * testsuite/libgomp.c++/scan-12.C: Ditto.
300 * testsuite/libgomp.c++/scan-13.C: Ditto.
301 * testsuite/libgomp.c++/scan-14.C: Ditto.
302 * testsuite/libgomp.c++/scan-15.C: Ditto.
303 * testsuite/libgomp.c++/scan-16.C: Ditto.
304 * testsuite/libgomp.c++/scan-9.C: Ditto.
305 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
306 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
307 * testsuite/libgomp.c/scan-11.c: Ditto.
308 * testsuite/libgomp.c/scan-12.c: Ditto.
309 * testsuite/libgomp.c/scan-13.c: Ditto.
310 * testsuite/libgomp.c/scan-14.c: Ditto.
311 * testsuite/libgomp.c/scan-15.c: Ditto.
312 * testsuite/libgomp.c/scan-16.c: Ditto.
313 * testsuite/libgomp.c/scan-17.c: Ditto.
314 * testsuite/libgomp.c/scan-18.c: Ditto.
315 * testsuite/libgomp.c/scan-19.c: Ditto.
316 * testsuite/libgomp.c/scan-20.c: Ditto.
317 * testsuite/libgomp.c/scan-21.c: Ditto.
318 * testsuite/libgomp.c/scan-22.c: Ditto.
320 2021-10-09 Jakub Jelinek <jakub@redhat.com>
322 * libgomp.texi (OpenMP 5.1): Mention implemented support for
323 structured block sequences in C/C++. Mention support for
324 unconstrained/reproducible modifiers on order clause.
325 Mention partial (C/C++ only) support of extentensions to atomics
326 construct. Mention partial (C/C++ on clause only) support of
327 align/allocator modifiers on allocate clause.
329 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
331 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
332 based on libgomp.c-c++-common/order-reproducible-1.c.
333 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
334 * testsuite/libgomp.fortran/my-usleep.c: New test.
336 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
338 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
339 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
340 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
341 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
342 based on libgomp.c-c++-common/alloc-9.c.
344 2021-10-01 Jakub Jelinek <jakub@redhat.com>
346 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
347 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
349 2021-10-01 Jakub Jelinek <jakub@redhat.com>
351 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
353 * env.c (handle_omp_display_env): Use ialias_call.
354 * icv-device.c: Move ialias right below each function.
355 (omp_get_device_num): Use ialias_call.
356 * fortran.c (omp_fulfill_event): Add ialias_redirect.
357 * icv.c (omp_get_active_level): Add ialias_redirect.
359 2021-10-01 Jakub Jelinek <jakub@redhat.com>
361 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
362 __alloc_align__ (1) attribute.
363 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
365 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
367 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
368 for -fintrinsic-modules-path= warning of the C compiler.
369 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
370 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
372 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
374 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
375 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
376 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
378 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
380 * testsuite/libgomp.fortran/alloc-10.f90: New test.
381 * testsuite/libgomp.fortran/alloc-6.f90: New test.
382 * testsuite/libgomp.fortran/alloc-7.c: New test.
383 * testsuite/libgomp.fortran/alloc-7.f90: New test.
384 * testsuite/libgomp.fortran/alloc-8.f90: New test.
385 * testsuite/libgomp.fortran/alloc-9.f90: New test.
387 2021-09-30 Jakub Jelinek <jakub@redhat.com>
389 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
390 omp_realloc): New prototypes.
391 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
393 * allocator.c: Include string.h.
394 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
395 variable and use it instead of alignment so that when retrying the old
396 alignment is used again. Don't retry if new alignment is the same
397 as old alignment, unless allocator had pool size.
398 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
399 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
400 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
401 omp_aligned_calloc and omp_realloc.
402 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
403 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
404 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
405 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
406 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
407 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
409 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
412 * configure.ac: Only check for int-type = 2*size_t support when
413 building with Fortran support.
414 * configure: Regenerate.
416 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
418 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
419 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
421 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
423 * team.c: Initialize start_data.
424 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
425 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
427 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
429 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
430 dg-message back to dg-note.
432 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
435 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
436 expected dg-note output.
438 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
441 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
442 r12-3722 by removing -Wno-missing-include-dirs.
443 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
445 2021-09-22 Jakub Jelinek <jakub@redhat.com>
447 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
448 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
450 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
453 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
455 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
457 2021-09-18 Jakub Jelinek <jakub@redhat.com>
459 * testsuite/libgomp.c++/default-1.C: New test.
460 * testsuite/libgomp.c-c++-common/default-1.c: New test.
461 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
462 to default clause in C and C++" as implemented.
464 2021-09-17 Julian Brown <julian@codesourcery.com>
466 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
468 2021-09-17 Julian Brown <julian@codesourcery.com>
470 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
472 2021-09-17 Jakub Jelinek <jakub@redhat.com>
474 * libgomp.texi (OpenMP 5.1): Spelling fix,
475 declare variante -> declare variant.
477 2021-09-17 Jakub Jelinek <jakub@redhat.com>
479 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
480 Use /* */ comments instead of //.
481 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
482 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
483 * testsuite/libgomp.c++/atomic-16.C: New test.
484 * testsuite/libgomp.c++/atomic-17.C: New test.
486 2021-09-10 Jakub Jelinek <jakub@redhat.com>
488 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
489 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
490 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
492 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
494 * libgomp.texi (OpenMP Implementation Status): Extend
496 (OpenACC Profiling Interface): Fix typo.
498 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
500 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
501 not to 4.5; link to new section.
502 (OpenMP Implementation Status): New.
504 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
506 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
508 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
510 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
512 * testsuite/libgomp.fortran/error-1.f90: Likewise.
514 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
515 Jakub Jelinek <jakub@redhat.com>
517 * testsuite/libgomp.c/address-space-1.c: New file.
519 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
521 * testsuite/lib/libgomp.exp
522 (check_effective_target_offload_target_intelmic): Remove 'proc'.
523 (check_effective_target_offload_device_intel_mic): New 'proc'.
524 * testsuite/libgomp.c-c++-common/on_device_arch.h
525 (device_arch_intel_mic, on_device_arch_intel_mic): New.
526 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
528 * testsuite/libgomp.fortran/target10.f90: Likewise.
530 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
532 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
533 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
534 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
535 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
537 2021-08-23 Jakub Jelinek <jakub@redhat.com>
539 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
540 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
541 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
543 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
545 * config/nvptx/error.c (fwrite, exit): Override, too.
546 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
547 of offloading testing.
548 * testsuite/libgomp.fortran/error-1.f90: Likewise.
550 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
552 * testsuite/libgomp.fortran/error-1.f90: New test.
554 2021-08-20 Jakub Jelinek <jakub@redhat.com>
556 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
557 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
558 * error.c (GOMP_warning, GOMP_error): New functions.
559 * testsuite/libgomp.c-c++-common/error-1.c: New test.
561 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
563 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
564 omp_target_free. omp_target_is_present, omp_target_memcpy,
565 omp_target_memcpy_rect, omp_target_associate_ptr,
566 omp_target_disassociate_ptr): Add interface.
567 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
568 omp_target_free. omp_target_is_present, omp_target_memcpy,
569 omp_target_memcpy_rect, omp_target_associate_ptr,
570 omp_target_disassociate_ptr): Add interface.
571 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
572 interface block for omp_alloc + omp_free.
573 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
574 * testsuite/libgomp.fortran/refcount-1.f90: New test.
575 * testsuite/libgomp.fortran/target-12.f90: New test.
577 2021-08-18 Jakub Jelinek <jakub@redhat.com>
579 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
581 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
583 * testsuite/libgomp.fortran/scope-1.f90: New test.
584 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
586 2021-08-17 Jakub Jelinek <jakub@redhat.com>
588 * Makefile.am (libgomp_la_SOURCES): Add scope.c
589 * Makefile.in: Regenerated.
590 * libgomp_g.h (GOMP_scope_start): Declare.
591 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
593 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
594 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
596 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
598 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
601 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
603 * testsuite/libgomp.fortran/masked-1.f90: New test.
605 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
607 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
609 2021-08-12 Jakub Jelinek <jakub@redhat.com>
611 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
613 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
615 * env.c (parse_bind_var): Accept 'primary' as alias for
617 (omp_display_env): Add TODO comment to
618 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
619 * libgomp.texi: Change 'master thread' to 'primary thread'
620 in line with OpenMP 5.1.
621 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
622 omp_proc_bind_master is an alias of it.
623 (OMP_PROC_BIND): Mention 'PRIMARY'.
624 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
625 (omp_proc_bind_primary): Add.
626 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
627 * omp_lib.f90.in (omp_proc_bind_primary): Add.
628 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
629 * omp_lib.h.in (omp_proc_bind_primary): Add.
630 * testsuite/libgomp.c/affinity-1.c: Check that
631 'primary' works and is identical to 'master'.
633 2021-08-09 Julian Brown <julian@codesourcery.com>
634 Kwok Cheung Yeung <kcy@codesourcery.com>
635 Thomas Schwinge <thomas@codesourcery.com>
637 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
639 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
640 [acc_device_radeon]: Update.
641 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
642 [ACC_DEVICE_TYPE_radeon]: Likewise.
643 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
644 [acc_device_radeon]: Likewise.
645 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
646 [ACC_DEVICE_TYPE_radeon]: Likewise.
647 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
648 'openacc_radeon_accel_selected' and '-O0'.
649 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
651 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
653 * icv-device.c (omp_get_device_num): New API function, host side.
654 * fortran.c (omp_get_device_num_): New interface function.
655 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
656 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
658 * libgomp.texi (omp_get_device_num): Add documentation for new API
660 * omp.h.in (omp_get_device_num): Add declaration.
661 * omp_lib.f90.in (omp_get_device_num): Likewise.
662 * omp_lib.h.in (omp_get_device_num): Likewise.
663 * target.c (gomp_load_image_to_device): If additional entry for device
664 number exists at end of returned entries from 'load_image_func' hook,
665 copy the assigned device number over to the device variable.
666 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
667 (omp_get_device_num): New API function, device side.
668 * plugin/plugin-gcn.c ("symcat.h"): Add include.
669 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
670 at end of returned 'target_table' entries.
671 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
672 (omp_get_device_num): New API function, device side.
673 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
674 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
675 at end of returned 'target_table' entries.
676 * testsuite/lib/libgomp.exp
677 (check_effective_target_offload_target_intelmic): New function for
678 testing for intelmic offloading.
679 * testsuite/libgomp.c-c++-common/target-45.c: New test.
680 * testsuite/libgomp.fortran/target10.f90: New test.
682 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
683 Ulrich Drepper <drepper@redhat.com>
685 * fortran.c (omp_display_env_, omp_display_env_8_): Only
686 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
688 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
689 Julian Brown <julian@codesourcery.com>
690 Kwok Cheung Yeung <kcy@codesourcery.com>
692 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
693 's%oaccdevlow%oaccloops%g'.
694 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
695 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
696 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
698 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
700 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
702 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
704 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
706 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
708 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
710 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
712 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
714 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
716 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
718 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
720 2021-07-27 Ulrich Drepper <drepper@gmail.com>
722 * env.c (wait_policy, stacksize): New static variables,
723 move out of handle_omp_display_env.
724 (omp_display_env): New function. The meat of the old
725 handle_omp_display_env function.
726 (handle_omp_display_env): Change to not take parameters
727 and instead use the global variables. Only perform
728 parsing, defer to omp_display_env for the implementation.
729 (initialize_env): Remove local variables wait_policy and
730 stacksize. Don't pass parameters to handle_omp_display_env.
731 * fortran.c: Add ialias_redirect for omp_display_env.
732 (omp_display_env_, omp_display_env_8_): New functions.
733 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
734 omp_display_env_, and omp_display_env_8_.
735 * omp.h.in: Declare omp_display_env.
736 * omp_lib.f90.in: Likewise.
737 * omp_lib.h.in: Likewise.
739 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
740 Julian Brown <julian@codesourcery.com>
742 * target.c (gomp_coalesce_buf_add): Update comment.
743 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
745 (gomp_map_vars_internal): Only 'if (!aq)', do
746 'gomp_coalesce_buf_add'.
747 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
750 2021-07-27 Julian Brown <julian@codesourcery.com>
751 Thomas Schwinge <thomas@codesourcery.com>
753 * libgomp.h (gomp_copy_host2dev): Update prototype.
754 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
755 argument to gomp_copy_host2dev (false).
756 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
757 (copy_data): Don't free src.
758 (queue_push_copy): Remove free_src handling.
759 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
760 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
762 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
764 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
765 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
766 data when true, and set up deferred freeing of temporary buffer.
767 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
768 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
769 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
770 calls to gomp_copy_host2dev with appropriate ephemeral argument.
771 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
774 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
775 Tom de Vries <tom@codesourcery.com>
777 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
778 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
780 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
782 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
783 sequencing of 'async' data copying vs. profiling events.
784 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
787 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
788 Julian Brown <julian@codesourcery.com>
790 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
791 'async'/'wait' issue.
792 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
793 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
794 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
796 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
797 Joseph Myers <joseph@codesourcery.com>
798 Cesar Philippidis <cesar@codesourcery.com>
800 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
802 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
804 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
806 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
808 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
811 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
812 '-Wno-error=array-bounds'.
813 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
814 * libgomp.h [__AMDGCN__]: Likewise.
816 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
819 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
820 * libgomp.h [__AMDGCN__]: Likewise.
822 2021-07-13 Jakub Jelinek <jakub@redhat.com>
823 Florian Weimer <fweimer@redhat.com>
825 * config/linux/sem.h: Don't include limits.h.
826 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
827 * config/linux/affinity.c: Include limits.h.
829 2021-07-01 Jakub Jelinek <jakub@redhat.com>
832 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
834 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
837 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
838 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
839 avoid disabling other offload targets.
840 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
841 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
842 * testsuite/libgomp.c/target-44.c: Likewise.
844 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
846 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
847 target has shared memory and disable some scalar pointer/allocatable
848 checks if not as firstprivate does not work.
850 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
853 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
854 Add "target offload_device_nonshared_as" condition for enabling test.
856 2021-06-24 Jakub Jelinek <jakub@redhat.com>
858 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
859 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
860 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
861 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
863 2021-06-23 Jakub Jelinek <jakub@redhat.com>
866 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
868 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
870 * hashtab.h (htab_clear): New function with initialization code
872 (htab_create): ...here, adjust to use htab_clear function.
873 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
874 special refcount values, add comments.
875 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
876 (REFCOUNT_LINK): Likewise.
877 (REFCOUNT_STRUCTELEM): New special refcount range for structure
879 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
881 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
882 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
883 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
884 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
885 (struct splay_tree_key_s): Add structelem_refcount and
886 structelem_refcount_ptr fields into a union with dynamic_refcount.
888 (gomp_map_vars): Delete declaration.
889 (gomp_map_vars_async): Likewise.
890 (gomp_unmap_vars): Likewise.
891 (gomp_unmap_vars_async): Likewise.
892 (goacc_map_vars): New declaration.
893 (goacc_unmap_vars): Likewise.
894 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
895 (goacc_enter_datum): Likewise.
896 (goacc_enter_data_internal): Likewise.
897 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
898 and goacc_unmap_vars.
899 (GOACC_data_start): Adjust to use goacc_map_vars.
900 (GOACC_data_end): Adjust to use goacc_unmap_vars.
901 * target.c (hash_entry_type): New typedef.
902 (htab_alloc): New function hook for hashtab.h.
903 (htab_free): Likewise.
904 (htab_hash): Likewise.
906 (hashtab.h): Add file include.
907 (gomp_increment_refcount): New function.
908 (gomp_decrement_refcount): Likewise.
909 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
910 gomp_increment_refcount.
911 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
912 to gomp_map_vars_existing.
913 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
914 variable to guard OpenMP specific paths, adjust calls to
915 gomp_map_vars_existing, add structure element sibling splay_tree_key
916 sequence creation code, adjust Fortran map case to avoid increment
918 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
919 local refcount_set if caller passed in NULL, adjust call to
920 gomp_map_vars_internal.
921 (gomp_map_vars_async): Adjust and rename into...
922 (goacc_map_vars): ...this new function, adjust call to
923 gomp_map_vars_internal.
924 (gomp_remove_splay_tree_key): New function with code factored out from
925 gomp_remove_var_internal.
926 (gomp_remove_var_internal): Add code to handle removing multiple
927 splay_tree_key sequence for structure elements, adjust code to use
928 gomp_remove_splay_tree_key for splay-tree key removal.
929 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
930 gomp_decrement_refcount.
931 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
932 local refcount_set if caller passed in NULL, adjust call to
933 gomp_unmap_vars_internal.
934 (gomp_unmap_vars_async): Adjust and rename into...
935 (goacc_unmap_vars): ...this new function, adjust call to
936 gomp_unmap_vars_internal.
937 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
939 (GOMP_target_ext): Likewise.
940 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
941 (GOMP_target_data): Likewise.
942 (GOMP_target_data_ext): Likewise.
943 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
944 (gomp_exit_data): Add refcount_set parameter, adjust to use
945 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
947 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
948 gomp_map_vars and gomp_exit_data.
949 (gomp_target_task_fn): Likewise.
950 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
951 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
952 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
953 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
954 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
955 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
957 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
960 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
962 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
963 Thomas Schwinge <thomas@codesourcery.com>
965 * libgomp.map (GOACC_2.0.2): New symbol version.
966 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
967 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
969 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
970 Andrew Stubbs <ams@codesourcery.com>
972 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
974 (GOACC_enter_exit_data): ... here.
975 (GOACC_declare): Use it.
977 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
979 * oacc-parallel.c (GOACC_declare): Move...
980 * oacc-mem.c: ... here.
981 * libgomp_g.h: Adjust.
983 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
984 Thomas Schwinge <thomas@codesourcery.com>
986 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
989 2021-06-10 Jakub Jelinek <jakub@redhat.com>
991 PR tree-optimization/100981
992 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
993 dsdotr and dsdoti to 0.
995 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
997 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
998 if atomic compare-and-swap is supported on 'int'.
1000 2021-06-09 Richard Biener <rguenther@suse.de>
1002 PR tree-optimization/100981
1003 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
1005 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1007 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
1009 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1011 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1012 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
1014 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1016 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
1017 '-DACC_MEM_SHARED=0'.
1018 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
1019 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
1020 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
1021 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1022 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1023 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
1024 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1025 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1026 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1027 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1028 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
1029 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
1030 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
1031 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
1032 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
1033 'acc_device_radeon' testing.
1034 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
1035 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
1036 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
1037 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
1038 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1039 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1040 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
1041 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
1042 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
1043 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
1044 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
1045 for non-'openacc_nvidia_accel_selected'.
1046 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1047 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
1048 all implement this checking".
1049 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1050 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1051 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1052 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1053 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1055 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1057 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
1058 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
1060 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1062 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
1063 for 'acc_device_radeon'.
1065 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1067 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
1068 for non-'acc_device_nvidia'.
1070 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1072 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
1073 'acc_device_radeon' testing.
1074 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1075 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1076 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1078 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1080 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
1081 require 'openacc_nvidia_accel_selected'. Fix up for
1082 'ACC_DEVICE_TYPE_radeon'.
1084 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1086 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
1087 'openacc_nvidia_accel_selected'.
1088 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
1090 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1092 * testsuite/lib/libgomp.exp
1093 (check_effective_target_openacc_radeon_accel_selected):
1096 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1098 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
1101 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1103 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
1104 <acc_device_nvidia>: Update comment.
1106 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
1108 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
1110 2021-05-27 Jakub Jelinek <jakub@redhat.com>
1112 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
1113 check_effective_target_openacc_cublas,
1114 check_effective_target_openacc_cudart): New.
1115 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
1116 target openacc_cublas.
1117 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
1118 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
1119 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
1120 target openacc_cuda.
1121 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
1122 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
1123 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
1124 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
1125 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
1126 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
1127 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
1128 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
1129 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
1130 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
1131 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
1132 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1133 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
1134 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
1135 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
1136 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
1137 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
1138 targets openacc_cublas and openacc_cudart.
1139 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
1140 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
1141 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
1142 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
1143 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
1144 Require effective target openacc_cudart.
1145 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
1146 for effective target openacc_cuda and add && defined USE_CUDA_H to
1147 preprocessor conditionals. Guard -lcuda also on openacc_cuda
1150 2021-05-26 Jakub Jelinek <jakub@redhat.com>
1153 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
1154 GOMP_target_end_data, GOMP_target_update_ext,
1155 GOMP_target_enter_exit_data): New dummy entrypoints.
1156 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
1157 GOMP_target_end_data, GOMP_target_update_ext,
1158 GOMP_target_enter_exit_data): Likewise.
1159 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
1160 OMPFROM, OMPTO): Define.
1161 (main): Remove #pragma omp target teams around all the tests.
1162 * testsuite/libgomp.c-c++-common/target-41.c: New test.
1163 * testsuite/libgomp.c-c++-common/target-42.c: New test.
1165 2021-05-25 Jakub Jelinek <jakub@redhat.com>
1168 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
1170 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
1173 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
1174 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
1175 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
1177 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
1180 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
1181 uninteresting/varying diagnostics.
1183 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1186 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
1187 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1189 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1192 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
1194 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
1195 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
1196 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1198 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1200 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1202 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1204 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1206 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1208 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1210 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1212 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1214 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1216 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1218 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1220 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1222 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1224 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1226 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1228 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1230 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1232 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1234 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1236 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1238 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
1239 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
1240 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
1241 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
1242 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
1243 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
1244 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
1245 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
1246 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1247 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1248 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
1249 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
1250 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1251 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
1252 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1254 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
1256 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
1258 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1260 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
1261 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
1263 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1264 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1265 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1266 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
1267 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
1268 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1269 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1271 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1273 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1275 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1277 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1279 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1281 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1283 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1285 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1287 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1289 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1291 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1293 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1295 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1296 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1297 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
1299 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
1301 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1302 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1303 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1305 2021-05-21 Julian Brown <julian@codesourcery.com>
1306 Chung-Lin Tang <cltang@codesourcery.com>
1307 Thomas Schwinge <thomas@codesourcery.com>
1310 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
1312 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
1314 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
1317 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1319 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
1320 for nvptx offloading.
1322 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
1324 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
1326 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
1329 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
1331 2021-05-19 Julian Brown <julian@codesourcery.com>
1333 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
1335 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
1337 * testsuite/lib/libgomp.exp
1338 (check_effective_target_offload_target_nvptx): Don't shadow global
1339 'offload_targets' variable.
1341 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
1343 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
1344 '-latomic' to nvptx offloading compilation.
1345 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1347 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
1349 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
1350 offloading compilation.
1352 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
1354 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
1355 if new tasks generated.
1356 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
1358 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
1360 * testsuite/libgomp.fortran/parallel-master.f90: New test.
1362 2021-05-13 Martin Liska <mliska@suse.cz>
1365 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
1366 * testsuite/libgomp.c/pr46032-2.c: Likewise.
1367 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
1368 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
1370 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
1372 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
1373 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
1375 2021-05-11 Jakub Jelinek <jakub@redhat.com>
1377 PR middle-end/100471
1378 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
1379 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
1381 * testsuite/libgomp.c/task-reduction-4.c: New test.
1383 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
1384 Tom de Vries <tdevries@suse.de>
1386 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
1387 complex/floating-point || + && reduction with 'omp target'.
1388 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1390 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
1392 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
1393 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
1394 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
1395 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
1397 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
1400 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
1401 declaration to scope of non-'depend'-guarded assignment to avoid races.
1403 2021-05-03 Tom de Vries <tdevries@suse.de>
1406 * testsuite/libgomp.c/target-44.c: New test.
1408 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
1410 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
1412 2021-04-29 Tom de Vries <tdevries@suse.de>
1414 * testsuite/libgomp.c/pr81778.c: New test.
1416 2021-04-29 Tom de Vries <tdevries@suse.de>
1419 * testsuite/libgomp.c/target-43.c: New file.
1421 2021-04-28 Jakub Jelinek <jakub@redhat.com>
1422 Tobias Burnus <tobias@codesourcery.com>
1424 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
1425 * target.c (gomp_load_plugin_for_device): If set and if a plugin
1426 can't be dlopened, silently assume it has no devices.
1427 * Makefile.in: Regenerate.
1428 * config.h.in: Regenerate.
1429 * configure: Regenerate.
1431 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
1433 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1434 Use [Ww]arning in dg-bogus as FE diagnostic and default
1435 diagnostic differ and the result depends on ENABLE_OFFLOAD.
1436 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1437 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1438 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1440 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
1442 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1443 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
1444 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1445 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1446 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1448 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
1449 Nathan Sidwell <nathan@codesourcery.com>
1450 Tom de Vries <vries@codesourcery.com>
1451 Julian Brown <julian@codesourcery.com>
1452 Kwok Cheung Yeung <kcy@codesourcery.com>
1454 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
1455 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
1456 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
1457 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1458 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1459 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1460 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
1462 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
1463 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1464 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1465 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1467 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
1468 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1470 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1471 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
1472 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
1473 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
1474 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
1475 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
1477 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1478 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
1479 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1480 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1481 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1482 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
1483 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1484 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1485 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1486 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1487 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1489 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
1491 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
1493 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1494 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1496 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1497 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
1498 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1499 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1500 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1501 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1502 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
1504 2021-04-22 Richard Biener <rguenther@suse.de>
1506 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
1509 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
1511 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
1512 omp_depend_kind instead of defining it as 16.
1514 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
1516 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
1517 New, based on check_effective_target_offload_target_nvptx.
1518 (check_effective_target_offload_target_nvptx): Call it.
1519 (check_effective_target_offload_target_amdgcn): New.
1520 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
1521 Require target offload_target_nvptx || offload_target_amdgcn.
1522 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
1523 * testsuite/libgomp.c/pr86416-1.c: Likewise.
1524 * testsuite/libgomp.c/pr86416-2.c: Likewise.
1526 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
1528 * testsuite/libgomp.fortran/depobj-1.f90: New test.
1530 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
1532 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1533 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
1534 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1536 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1538 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1540 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
1543 * testsuite/lib/libgomp.exp
1544 (check_effective_target_offload_device_nvptx): New.
1545 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
1546 resolved, make sure that we exit quickly, with error status,
1548 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
1549 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1551 2021-04-14 Jakub Jelinek <jakub@redhat.com>
1554 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
1555 cp = omp_alloc with cp, p arguments instead of cq, q and call
1556 c_f_pointer after last cq = omp_alloc with cq, q.
1558 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
1561 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
1562 for loop with GT/GE condition.
1563 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
1565 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
1570 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
1572 2021-04-09 Jakub Jelinek <jakub@redhat.com>
1575 * team.c (gomp_thread_start): Call pthread_setspecific for
1576 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
1577 has been initialized to avoid false positive warning.
1579 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
1582 * testsuite/lib/on_device_arch.c: Move to ...
1583 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
1584 * testsuite/libgomp.fortran/on_device_arch.c: New file;
1585 #include on_device_arch.h.
1586 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
1587 on_device_arch.h instead of using dg-additional-source.
1588 * testsuite/libgomp.c/pr99555-1.c: Likewise.
1589 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
1590 on_device_arch.c without relative paths.
1592 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
1594 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
1595 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
1596 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
1597 * config.h.in: Regenerate.
1598 * configure: Likewise.
1600 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
1603 * testsuite/lib/on_device_arch.c: New file.
1604 * testsuite/libgomp.c/pr99555-1.c: Likewise.
1605 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
1606 skip for nvptx offloading, with error status.
1607 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1609 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
1611 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
1612 OpenACC 'serial' construct diagnostic for nvptx offloading.
1614 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
1617 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
1619 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
1622 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
1624 2021-03-04 Jakub Jelinek <jakub@redhat.com>
1626 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
1627 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
1628 checking of -m32 or -mx32 options on the command line.
1629 * config.h.in: Regenerated.
1630 * configure: Regenerated.
1632 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
1634 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
1635 support from the target.
1637 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
1638 Jakub Jelinek <jakub@redhat.com>
1641 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
1642 (struct gomp_task): Replace detach and completion_sem fields with
1643 union containing completion_sem and detach_team. Add deferred_p
1645 (struct gomp_team): Remove task_detach_queue.
1646 * task.c: Include assert.h.
1647 (gomp_init_task): Initialize deferred_p and completion_sem fields.
1648 Rearrange initialization order of fields.
1649 (task_fulfilled_p): Delete.
1650 (GOMP_task): Use address of task as the event handle. Remove
1651 initialization of detach field. Initialize deferred_p field.
1652 Use automatic local for completion_sem. Initialize detach_team field
1654 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
1655 Set kind of suspended detach task to GOMP_TASK_DETACHED and
1656 decrement task_running_count. Move finish_cancelled block out of
1657 else branch. Relocate call to gomp_team_barrier_done.
1658 (GOMP_taskwait): Handle tasks with completion events that have not
1660 (GOMP_taskgroup_end): Likewise.
1661 (omp_fulfill_event): Use address of task as event handle. Post to
1662 completion_sem for undeferred tasks. Clear detach_team if task
1663 has not finished. For finished tasks, handle post-execution tasks,
1664 call gomp_team_barrier_wake if necessary, and free task.
1665 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
1666 (free_team): Remove free of task_detach_queue.
1667 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
1668 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
1669 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
1670 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
1671 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
1672 Change data-sharing of detach events on enclosing parallel to private.
1673 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
1675 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
1676 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
1677 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
1678 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
1679 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
1680 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
1681 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
1682 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
1683 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
1684 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
1685 Change data-sharing of detach events on enclosing parallel to private.
1686 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
1688 * testsuite/libgomp.fortran/task-detach-7.f90: New.
1689 * testsuite/libgomp.fortran/task-detach-8.f90: New.
1690 * testsuite/libgomp.fortran/task-detach-9.f90: New.
1691 * testsuite/libgomp.fortran/task-detach-10.f90: New.
1692 * testsuite/libgomp.fortran/task-detach-11.f90: New.
1694 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
1697 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
1699 2021-02-17 Julian Brown <julian@codesourcery.com>
1701 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
1704 2021-02-17 Julian Brown <julian@codesourcery.com>
1706 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
1707 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
1709 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
1711 * config/linux/x86/futex.h (__futex_wait):
1712 Revert output type back to long.
1713 (__futex_wake): Ditto.
1714 (futex_wait): Update for revert.
1715 (futex_wake): Ditto.
1717 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
1719 * config/linux/x86/futex.h (__futex_wait): New static inline
1720 wrapper function. Correct output type to int and
1721 timeout type to void *.
1722 (__futex_wake): New static inline wrapper function.
1723 Correct output type to int.
1724 (futex_wait): Use __futex_wait.
1725 (futex_wake): Use __futex_wake.
1727 2021-02-10 Julian Brown <julian@codesourcery.com>
1730 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
1733 2021-02-04 Julian Brown <julian@codesourcery.com>
1735 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
1737 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
1739 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
1740 EF_AMDGPU_MACH_AMDGCN_GFX908.
1741 (gcn_gfx908_s): New constant string.
1742 (isa_hsa_name): Add gfx908.
1743 (isa_code): Add gfx908.
1745 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
1747 * libgomp.texi (omp_fulfill_event): New entry.
1749 2021-01-20 Jakub Jelinek <jakub@redhat.com>
1751 * task.c (GOMP_task): Rename priority argument to priority_arg,
1752 add priority automatic variable and modify that variable. Instead of
1753 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
1754 check flags for that bit.
1756 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
1759 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
1761 2021-01-18 Andreas Schwab <schwab@suse.de>
1763 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
1765 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
1767 * config/rtems/sem.h (gomp_sem_getcount): New function.
1769 2021-01-18 Jakub Jelinek <jakub@redhat.com>
1771 * config/linux/sem.h (gomp_sem_getcount): New function.
1772 * config/posix/sem.h (gomp_sem_getcount): New function.
1773 * config/posix/sem.c (gomp_sem_getcount): New function.
1774 * config/accel/sem.h (gomp_sem_getcount): New function.
1775 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
1776 (omp_fulfill_event): Likewise.
1778 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
1780 * fortran.c (omp_fulfill_event_): New.
1781 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
1782 (struct gomp_team): Add task_detach_queue and task_detach_count
1784 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
1785 * libgomp_g.h (GOMP_task): Add extra argument.
1786 * omp.h.in (enum omp_event_handle_t): New.
1787 (omp_fulfill_event): New.
1788 * omp_lib.f90.in (omp_event_handle_kind): New.
1789 (omp_fulfill_event): New.
1790 * omp_lib.h.in (omp_event_handle_kind): New.
1791 (omp_fulfill_event): Declare.
1792 * priority_queue.c (priority_tree_find): New.
1793 (priority_list_find): New.
1794 (priority_queue_find): New.
1795 * priority_queue.h (priority_queue_predicate): New.
1796 (priority_queue_find): New.
1797 * task.c (gomp_init_task): Initialize detach field.
1798 (task_fulfilled_p): New.
1799 (GOMP_task): Add detach argument. Ignore detach argument if
1800 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
1801 field. Copy address of completion_sem into detach argument and
1802 into the start of the data record. Wait for detach event if task
1804 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
1805 Remove completed tasks and requeue dependent tasks.
1806 (omp_fulfill_event): New.
1807 * team.c (gomp_new_team): Initialize task_detach_queue and
1808 task_detach_count fields.
1809 (free_team): Free task_detach_queue field.
1810 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
1811 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
1812 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
1813 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
1814 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
1815 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
1816 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
1817 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
1818 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
1819 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
1820 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
1821 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
1823 2021-01-15 Jakub Jelinek <jakub@redhat.com>
1826 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
1827 be added through preprocessor check on
1828 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
1830 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
1833 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
1835 * configure: Regenerate.
1836 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
1839 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
1841 * configure: Re-generate.
1843 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
1845 * configure: Re-generate.
1847 2021-01-05 Julian Brown <julian@codesourcery.com>
1849 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
1850 (struct ptx_device): Add omp_stacks struct.
1851 (nvptx_open_device): Initialise cached-stacks housekeeping info.
1852 (nvptx_close_device): Free cached stacks block and mutex.
1853 (nvptx_stacks_free): New function.
1854 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
1855 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
1856 (nvptx_stacks_alloc): Rename to...
1857 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
1858 size or smaller is required.
1859 (nvptx_stacks_free): Remove.
1860 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
1861 during kernel execution.
1863 2021-01-01 Jakub Jelinek <jakub@redhat.com>
1865 * libgomp.texi: Bump @copying's copyright year.
1867 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
1869 * libgomp.texi (Top): Avoid bad "up" link.
1871 2020-12-18 Jakub Jelinek <jakub@redhat.com>
1873 * testsuite/libgomp.c/task-6.c: New test.
1875 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
1877 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
1878 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
1880 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
1882 * testsuite/libgomp.fortran/scan-1.f90: New test.
1884 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
1887 * configure: Regenerate.
1889 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
1891 * configure: Regenerate.
1893 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
1895 * testsuite/libgomp.oacc-c++/cache-1.C: New.
1896 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
1898 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
1900 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
1903 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
1905 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
1906 (reserved): Delete unused define.
1908 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
1910 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
1911 Tcl 8.5-specific behavior.
1912 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1914 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1916 * env.c (gomp_global_icv): Remove nest_var field. Add
1917 max_active_levels_var field.
1918 (gomp_max_active_levels_var): Remove.
1919 (parse_boolean): Return true on success.
1920 (handle_omp_display_env): Express OMP_NESTED in terms of
1921 max_active_levels_var. Change format specifier for
1922 max_active_levels_var.
1923 (initialize_env): Set max_active_levels_var from
1924 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
1926 * icv.c (omp_set_nested): Express in terms of
1927 max_active_levels_var.
1928 (omp_get_nested): Likewise.
1929 (omp_set_max_active_levels): Use max_active_levels_var field instead
1930 of gomp_max_active_levels_var.
1931 (omp_get_max_active_levels): Likewise.
1932 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
1933 max_active_levels_var field.
1934 (gomp_supported_active_levels): Set to UCHAR_MAX.
1935 (gomp_max_active_levels_var): Delete.
1936 * libgomp.texi (omp_get_nested): Update documentation.
1937 (omp_set_nested): Likewise.
1938 (OMP_MAX_ACTIVE_LEVELS): Likewise.
1939 (OMP_NESTED): Likewise.
1940 (OMP_NUM_THREADS): Likewise.
1941 (OMP_PROC_BIND): Likewise.
1942 * parallel.c (gomp_resolve_num_threads): Replace reference
1943 to nest_var with max_active_levels_var. Use max_active_levels_var
1944 field instead of gomp_max_active_levels_var.
1946 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
1948 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
1949 nvptx_usleep; use also for device={arch(gcn)}.
1951 2020-11-14 Jakub Jelinek <jakub@redhat.com>
1953 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
1954 (foo): Add tests for non-VLA private and firstprivate clauses on
1956 (bar): Likewise. Remove taking of address from private/firstprivate
1958 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
1959 (foo): Add p, q, px and s arguments. Add tests for array reductions
1960 and for non-VLA private and firstprivate clauses on omp task.
1962 (main): Adjust foo caller. Don't call bar.
1964 2020-11-13 Gergö Barany <gergo@codesourcery.com>
1965 Thomas Schwinge <thomas@codesourcery.com>
1967 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1969 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1971 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1973 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
1974 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1976 2020-11-13 Gergö Barany <gergo@codesourcery.com>
1977 Thomas Schwinge <thomas@codesourcery.com>
1980 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
1982 2020-11-13 Jakub Jelinek <jakub@redhat.com>
1984 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
1985 for array reductions.
1986 (main): Adjust foo callers.
1988 2020-11-12 Jakub Jelinek <jakub@redhat.com>
1990 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
1991 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
1992 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
1993 * allocator.c (omp_aligned_alloc): New for now static function,
1994 add alignment argument and handle it.
1995 (omp_alloc): Reimplement using omp_aligned_alloc.
1996 (GOMP_alloc, GOMP_free): New functions.
1997 (omp_free): Add ialias.
1998 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
1999 * testsuite/libgomp.c++/allocate-1.C: New test.
2001 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
2004 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
2006 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
2008 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
2010 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
2011 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
2012 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
2013 (goacc_enter_data_internal): Likewise.
2014 * target.c (gomp_map_vars_internal):
2015 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
2016 of gomp_attach_pointer for OpenMP cases.
2017 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
2018 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
2019 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
2021 2020-11-05 Ulrich Drepper <drepper@redhat.com>
2022 Kwok Cheung Yeung <kcy@codesourcery.com>
2024 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
2025 * Makefile.in: Regenerate.
2026 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
2027 pragmas to ignore -Wdeprecated-declarations warnings.
2029 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
2030 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
2031 and omp_get_nested with __GOMP_DEPRECATED_5_0.
2032 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
2034 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
2036 * testsuite/libgomp.c/affinity-1.c: Likewise.
2037 * testsuite/libgomp.c/affinity-2.c: Likewise.
2038 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
2039 * testsuite/libgomp.c/lib-1.c: Likewise.
2040 * testsuite/libgomp.c/nested-1.c: Likewise.
2041 * testsuite/libgomp.c/nested-2.c: Likewise.
2042 * testsuite/libgomp.c/nested-3.c: Likewise.
2043 * testsuite/libgomp.c/pr32362-1.c: Likewise.
2044 * testsuite/libgomp.c/pr32362-2.c: Likewise.
2045 * testsuite/libgomp.c/pr32362-3.c: Likewise.
2046 * testsuite/libgomp.c/pr35549.c: Likewise.
2047 * testsuite/libgomp.c/pr42942.c: Likewise.
2048 * testsuite/libgomp.c/pr61200.c: Likewise.
2049 * testsuite/libgomp.c/sort-1.c: Likewise.
2050 * testsuite/libgomp.c/target-5.c: Likewise.
2051 * testsuite/libgomp.c/target-6.c: Likewise.
2052 * testsuite/libgomp.c/teams-1.c: Likewise.
2053 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
2054 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
2055 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
2056 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
2057 * testsuite/libgomp.fortran/lib1.f90: Likewise.
2058 * testsuite/libgomp.fortran/lib2.f: Likewise.
2059 * testsuite/libgomp.fortran/nested1.f90: Likewise.
2060 * testsuite/libgomp.fortran/teams1.f90: Likewise.
2062 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
2065 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
2066 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
2067 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2069 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
2073 * testsuite/lib/libgomp.exp (libgomp_init): Set
2074 'gcc_warning_prefix', 'gcc_error_prefix'.
2076 2020-10-30 Jakub Jelinek <jakub@redhat.com>
2078 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
2079 even in field_tgt_clear initializer.
2081 2020-10-28 Jakub Jelinek <jakub@redhat.com>
2083 * testsuite/libgomp.c/target-42.c: New test.
2085 2020-10-28 Jakub Jelinek <jakub@redhat.com>
2086 Tom de Vries <tdevries@suse.de>
2089 * testsuite/libgomp.c/usleep.h: New file.
2090 * testsuite/libgomp.c/target-32.c: Include usleep.h.
2091 (main): Use tgt_usleep instead of usleep.
2092 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
2093 (main): Use tgt_usleep instead of usleep.
2095 2020-10-28 Jakub Jelinek <jakub@redhat.com>
2098 * testsuite/libgomp.c/declare-variant-1.c: New test.
2100 2020-10-22 Jakub Jelinek <jakub@redhat.com>
2102 * testsuite/libgomp.c/target-41.c: New test.
2104 2020-10-22 Jakub Jelinek <jakub@redhat.com>
2106 * icv.c (omp_get_initial_device): Remove including corresponding
2108 * icv-device.c (omp_get_initial_device): New function. Return
2109 gomp_get_num_devices (). Add ialias.
2110 * target.c (resolve_device): Don't fail with
2111 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
2112 gomp_get_num_devices ().
2113 (omp_target_alloc, omp_target_free, omp_target_is_present,
2114 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
2115 omp_target_disassociate_ptr, omp_pause_resource): Use
2116 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
2117 first use in the functions, in uses dominated by the
2118 gomp_get_num_devices call use num_devices_openmp instead.
2119 * libgomp.texi (omp_get_initial_device): Document.
2120 * config/gcn/icv-device.c (omp_get_initial_device): New function.
2122 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
2123 * testsuite/libgomp.c/target-40.c: New test.
2125 2020-10-21 Jakub Jelinek <jakub@redhat.com>
2127 * env.c (parse_target_offload): Change new_offload var type to int,
2128 preinitialize to -1, remove found var and test new_offload != -1
2131 2020-10-20 Jakub Jelinek <jakub@redhat.com>
2133 * target.c (gomp_target_init): Inside of the function, use automatic
2134 variables corresponding to num_devices, num_devices_openmp and devices
2135 global variables and update the globals only at the end of the
2138 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
2140 * env.c (gomp_target_offload_var): New.
2141 (parse_target_offload): New.
2142 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
2143 (initialize_env): Parse OMP_TARGET_OFFLOAD.
2144 * libgomp.h (gomp_target_offload_t): New.
2145 (gomp_target_offload_var): New.
2146 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
2147 * target.c (resolve_device): Generate error if device not found and
2148 offloading is mandatory.
2149 (gomp_target_fallback): Generate error if offloading is mandatory.
2150 (GOMP_target): Add argument in call to gomp_target_fallback.
2151 (GOMP_target_ext): Likewise.
2152 (gomp_target_data_fallback): Generate error if offloading is mandatory.
2153 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
2154 (GOMP_target_data_ext): Likewise.
2155 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
2156 (gomp_target_init): Return early if offloading is disabled.
2158 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2160 * libgomp.texi (omp_get_max_active_levels): Modify description.
2161 (omp_get_supported_active_levels): Make descriptions consistent.
2163 2020-10-14 Jakub Jelinek <jakub@redhat.com>
2165 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
2167 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
2169 * env.c (gomp_max_active_levels_var): Initialize to
2170 gomp_supported_active_levels.
2171 (initialize_env): Limit gomp_max_active_levels_var to be at most
2172 equal to gomp_supported_active_levels.
2173 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
2174 (omp_get_supported_active_levels_): New.
2175 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
2176 to at most equal to gomp_supported_active_levels.
2177 (omp_get_supported_active_levels): New.
2178 * libgomp.h (gomp_supported_active_levels): New.
2179 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
2180 omp_get_supported_active_levels_.
2181 * libgomp.texi (omp_get_supported_active_levels): New.
2182 (omp_set_max_active_levels): Update. Add reference to
2183 omp_get_supported_active_levels.
2184 * omp.h.in (omp_get_supported_active_levels): New.
2185 * omp_lib.f90.in (omp_get_supported_active_levels): New.
2186 * omp_lib.h.in (omp_get_supported_active_levels): New.
2187 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
2188 against omp_get_supported_active_levels.
2189 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
2191 2020-10-11 Clement Chigot <clement.chigot@atos.net>
2193 * config/t-aix: Delete and recreate libgomp before creating
2196 2020-10-08 Tom de Vries <tdevries@suse.de>
2199 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
2202 2020-10-06 Tom de Vries <tdevries@suse.de>
2204 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
2206 2020-10-06 Tom de Vries <tdevries@suse.de>
2209 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
2211 2020-10-05 Tom de Vries <tdevries@suse.de>
2214 * testsuite/libgomp.fortran/pr95654.f90: New test.
2216 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
2218 * Makefile.in: Regenerate with automake 1.15.1.
2219 * aclocal.m4: Likewise.
2220 * configure: Likewise.
2221 * testsuite/Makefile.in: Likewise.
2223 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
2225 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
2228 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
2230 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
2232 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
2234 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
2235 total number of threads is one.
2236 (gomp_team_barrier_wake): Likewise.
2237 (gomp_team_barrier_wait_end): Likewise.
2238 (gomp_team_barrier_wait_cancel_end): Likewise.
2239 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
2240 (gomp_team_barrier_wake): Likewise.
2241 (gomp_team_barrier_wait_end): Likewise.
2242 (gomp_team_barrier_wait_cancel_end): Likewise.
2243 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
2245 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
2248 * testsuite/libgomp.c++/pr96390.C: New test.
2249 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
2251 2020-09-27 Clement Chigot <clement.chigot@atos.net>
2253 * config/t-aix: Use $(AR) without -X32_64.
2255 2020-09-25 Jakub Jelinek <jakub@redhat.com>
2257 * testsuite/libgomp.c/loop-25.c: New test.
2259 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
2262 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
2264 2020-09-22 Tom de Vries <tdevries@suse.de>
2266 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
2269 2020-09-16 Nathan Sidwell <nathan@acm.org>
2271 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
2273 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
2276 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
2278 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
2281 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
2282 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
2283 (gomp_map_vars_existing): Update call to it.
2284 (gomp_map_fields_existing): Likewise
2285 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
2286 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
2288 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
2290 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
2291 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
2293 2020-09-14 Tom de Vries <tdevries@suse.de>
2295 * config/nvptx/atomic.c: New file. Add
2296 __sync_val_compare_and_swap_16.
2297 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
2298 target offload_target_nvptx.
2300 2020-09-08 Julian Brown <julian@codesourcery.com>
2302 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
2303 iteration-ordering assumptions.
2305 2020-09-08 Julian Brown <julian@codesourcery.com>
2307 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
2308 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2310 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
2312 * plugin/plugin-nvptx.c (nvptx_free):
2313 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
2314 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
2317 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
2319 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
2321 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
2323 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
2325 2020-08-13 Jakub Jelinek <jakub@redhat.com>
2327 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
2328 * testsuite/libgomp.c/loop-23.c (main): Likewise.
2329 * testsuite/libgomp.c/loop-24.c: New test.
2331 2020-08-08 Jakub Jelinek <jakub@redhat.com>
2332 Tobias Burnus <tobias@codesourcery.com>
2335 * testsuite/libgomp.fortran/pr93553.f90: New test.
2337 2020-08-05 Jakub Jelinek <jakub@redhat.com>
2339 * testsuite/libgomp.c/loop-22.c: New test.
2340 * testsuite/libgomp.c/loop-23.c: New test.
2342 2020-08-05 Jakub Jelinek <jakub@redhat.com>
2345 * testsuite/libgomp.c/teams-3.c: New test.
2346 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
2348 (N(test)): Use it before all N(f*) calls.
2349 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
2350 (main): Don't call all test_* functions from within
2351 #pragma omp teams reduction(|:err), call them directly.
2353 2020-08-04 Tom de Vries <tdevries@suse.de>
2356 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
2357 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
2359 2020-08-03 Julian Brown <julian@codesourcery.com>
2360 Thomas Schwinge <thomas@codesourcery.com>
2362 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
2363 shared-memory devices. Extend with further checking.
2365 2020-08-03 Martin Jambor <mjambor@suse.cz>
2367 * plugin/Makefrag.am: Remove configuration of HSA plugin.
2368 * aclocal.m4: Regenerated.
2369 * Makefile.in: Regenerated.
2370 * config.h.in: Regenerated.
2371 * configure: Regenerated.
2372 * plugin/configfrag.ac: Likewise.
2373 * plugin/hsa_ext_finalize.h: Removed.
2374 * plugin/plugin-hsa.c: Likewise.
2375 * testsuite/Makefile.in: Regenerated.
2376 * testsuite/lib/libgomp.exp
2377 (offload_target_to_openacc_device_type): Remove hsa case.
2378 (check_effective_target_hsa_offloading_selected_nocache): Removed
2379 (check_effective_target_hsa_offloading_selected): Likewise.
2380 (libgomp_init): Do not add -Wno-hsa to additional_flags.
2381 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
2382 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
2383 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
2384 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
2385 * testsuite/libgomp.hsa.c/c.exp: Likewise.
2386 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
2387 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
2388 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
2389 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
2390 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
2391 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
2392 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
2393 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
2394 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
2395 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
2396 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
2397 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
2398 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
2399 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
2400 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
2401 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
2402 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
2403 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
2404 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
2406 2020-07-27 Julian Brown <julian@codesourcery.com>
2407 Thomas Schwinge <thomas@codesourcery.com>
2409 * libgomp.h (struct target_var_desc): Rename do_detach field to
2411 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
2412 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
2413 (goacc_enter_data_internal): Don't affect reference counts
2414 for attach mappings.
2415 (goacc_exit_data_internal): Don't affect reference counts for detach
2417 * target.c (gomp_map_vars_existing): Don't affect reference counts for
2419 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
2420 mark attach mappings.
2421 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
2422 reference count for attach mappings.
2423 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
2424 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2425 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2426 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
2428 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
2429 gracefully in no-finalize mode.
2430 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
2432 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
2434 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
2436 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2437 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2439 2020-07-23 Julian Brown <julian@codesourcery.com>
2440 Thomas Schwinge <thomas@codesourcery.com>
2442 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
2443 finalization for detach operation.
2444 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
2447 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
2449 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
2450 * libgomp_f.h.in (omp_check_defines): Check whether
2451 sizeof of determined Fortran kind and C typedef match.
2452 * omp_lib.f90.in: Add omp_depened_kind.
2453 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
2454 * configure: Regenerate.
2455 * Makefile.in: Regenerate.
2456 * testsuite/Makefile.in: Regenerate.
2458 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
2460 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
2461 gcc/testsuite/c-c++-common/gomp/.
2462 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
2463 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
2464 from gcc/testsuite/gfortran.dg/gomp/.
2465 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
2467 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
2469 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
2470 * omp_lib.h.in: Likewise.
2472 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
2475 * testsuite/libgomp.c/pr95620.c: New test.
2477 2020-07-16 Julian Brown <julian@codesourcery.com>
2478 Thomas Schwinge <thomas@codesourcery.com>
2480 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
2481 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
2483 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
2485 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
2486 avoid conversion on 32bit systems from 32bit to 64bit due
2487 to -fdefault-integer-8.
2489 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
2491 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
2492 variables; add character(kind=4) tests; update TODO comment.
2494 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
2496 * allocator.c: Add ialias for omp_init_allocator and
2497 omp_destroy_allocator.
2498 * configure.ac: Set INTPTR_T_KIND.
2499 * configure: Regenerate.
2500 * Makefile.in: Regenerate.
2501 * testsuite/Makefile.in: Regenerate.
2502 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
2503 omp_set_default_allocator_, omp_get_default_allocator_): New
2504 functions and ialias_redirect.
2505 * icv.c: Add ialias for omp_set_default_allocator and
2506 omp_get_default_allocator.
2507 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
2508 omp_destroy_allocator_, omp_set_default_allocator_ and
2509 omp_get_default_allocator_.
2510 * omp_lib.f90.in: Add allocator traits parameters, declare
2511 allocator routines and add related kind parameters.
2512 * omp_lib.h.in: Likewise.
2513 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
2514 * testsuite/libgomp.fortran/alloc-1.F90: New test.
2515 * testsuite/libgomp.fortran/alloc-2.F90: New test.
2516 * testsuite/libgomp.fortran/alloc-3.F: New test.
2517 * testsuite/libgomp.fortran/alloc-4.f90: New test.
2518 * testsuite/libgomp.fortran/alloc-5.f90: New test.
2520 2020-07-14 Tom de Vries <tom@codesourcery.com>
2521 Cesar Philippidis <cesar@codesourcery.com>
2522 Thomas Schwinge <thomas@codesourcery.com>
2523 Kwok Cheung Yeung <kcy@codesourcery.com>
2525 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
2527 (acc_init_1): Set acc_init_thread to pthread_self (). Set
2528 acc_init_state to initializing at the start, and to initialized at the
2530 (self_initializing_p): New function.
2531 (acc_get_device_type): Return acc_device_none if called by thread that
2532 is currently executing acc_init_1.
2533 * libgomp.texi (acc_get_device_type): Update documentation.
2534 (Implementation Status and Implementation-Defined Behavior): Likewise.
2535 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
2537 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
2539 * config/t-aix: Set BITS from compiler cpp macro.
2541 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
2543 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
2545 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
2548 * testsuite/libgomp.fortran/target-map-1.f90: New test.
2550 2020-07-14 Jakub Jelinek <jakub@redhat.com>
2552 * testsuite/libgomp.c/loop-21.c: New test.
2554 2020-07-13 Julian Brown <julian@codesourcery.com>
2555 Thomas Schwinge <thomas@codesourcery.com>
2557 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
2559 2020-07-10 Julian Brown <julian@codesourcery.com>
2560 Thomas Schwinge <thomas@codesourcery.com>
2562 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
2564 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
2565 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
2567 (acc_unmap_data): Update comment.
2568 (goacc_map_var_existing, goacc_enter_datum): Adjust for
2569 dynamic_refcount semantics.
2570 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
2571 Adjust for dynamic_refcount semantics.
2572 (goacc_enter_data_internal): Implement "present" case of dynamic
2573 memory-map handling here. Update "non-present" case for
2574 dynamic_refcount semantics.
2575 (goacc_exit_data_internal): Use goacc_exit_datum_1.
2576 * target.c (gomp_map_vars_internal): Remove
2577 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
2579 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
2580 (gomp_load_image_to_device): Substitute dynamic_refcount for
2582 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
2583 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
2584 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
2585 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
2586 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
2588 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
2590 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
2592 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
2593 Remove stale comment.
2594 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
2595 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
2596 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2597 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2598 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2599 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
2601 2020-07-10 Julian Brown <julian@codesourcery.com>
2602 Thomas Schwinge <thomas@codesourcery.com>
2604 * oacc-mem.c (goacc_map_var_existing): New function.
2605 (goacc_enter_datum): Use above function.
2606 (goacc_exit_datum_1): New function.
2607 (goacc_exit_datum): Use above function.
2609 2020-07-09 Julian Brown <julian@codesourcery.com>
2610 Thomas Schwinge <thomas@codesourcery.com>
2613 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
2614 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
2616 2020-07-09 Julian Brown <julian@codesourcery.com>
2618 * oacc-mem.c (find_group_last): Group data-movement clauses
2619 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
2620 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
2622 2020-07-09 Jakub Jelinek <jakub@redhat.com>
2624 * testsuite/libgomp.c/loop-19.c: New test.
2625 * testsuite/libgomp.c/loop-20.c: New test.
2627 2020-07-09 Jakub Jelinek <jakub@redhat.com>
2629 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
2630 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
2631 it. Remove __omp_alloctrait_value_max__.
2632 * allocator.c (omp_init_allocator): Handle omp_atv_default for
2633 omp_atk_alignment and omp_atk_pool_size.
2635 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
2637 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
2638 behavior for 'GOMP_MAP_FORCE_FROM'.
2639 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
2641 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
2643 * oacc-mem.c (goacc_exit_data_internal): Remove
2644 'GOMP_MAP_ALWAYS_FROM' handling.
2646 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
2648 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
2649 'scan-assembler' with 'scan-offload-rtl'.
2650 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
2651 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
2652 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
2653 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
2655 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
2657 * target.c (gomp_map_vars_existing): Assert 'kind !=
2659 (gomp_map_vars_internal): Clean up.
2661 2020-06-27 Jakub Jelinek <jakub@redhat.com>
2663 * testsuite/libgomp.c/loop-17.c: New test.
2664 * testsuite/libgomp.c/loop-18.c: New test.
2666 2020-06-26 Marek Polacek <polacek@redhat.com>
2668 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
2670 2020-06-23 Alexandre Oliva <oliva@adacore.com>
2672 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
2673 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
2675 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
2677 * Makefile.am: Use -include.
2678 * Makefile.in: Regenerate.
2680 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
2682 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
2683 * Makefile.in: Regenerate
2684 * configure.ac (tmake_file): Substitute.
2685 * configure: Regenerate.
2686 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
2687 * config/t-aix: New file.
2689 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
2692 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
2695 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
2697 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
2698 variant for HSA_RUNTIME_LIB name.
2699 (find_executable_symbol_1): Delete.
2700 (find_executable_symbol): Delete.
2701 (init_kernel_properties): Add ".kd" suffix to symbol names.
2702 (find_load_offset): Delete.
2703 (create_and_finalize_hsa_program): Remove relocation handling.
2705 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
2707 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
2709 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
2713 * testsuite/libgomp.fortran/target-var.f90: New test.
2715 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
2716 Julian Brown <julian@codesourcery.com>
2718 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
2721 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
2722 Julian Brown <julian@codesourcery.com>
2724 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2727 2020-06-05 Julian Brown <julian@codesourcery.com>
2729 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
2730 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
2732 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2734 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2735 Evaluate 'copyfrom' individually for each entry.
2736 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
2738 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2740 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2741 Evaluate 'finalize' individually for each entry.
2742 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
2743 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
2746 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2748 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
2750 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
2752 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2753 Julian Brown <julian@codesourcery.com>
2755 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
2757 (acc_unmap_data, goacc_exit_data_internal): Restore
2758 'is_tgt_unmapped' checking.
2759 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
2761 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
2762 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
2763 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2764 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2765 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2766 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
2768 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2769 Julian Brown <julian@codesourcery.com>
2771 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
2773 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2776 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
2778 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2781 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
2784 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2785 Julian Brown <julian@codesourcery.com>
2787 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
2789 (acc_map_data): Clean up accordingly.
2791 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2793 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
2794 of over-eager 'finalize' clause.
2795 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
2797 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
2798 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
2799 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2800 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2801 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2802 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
2803 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
2804 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
2806 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2808 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
2810 2020-06-04 Julian Brown <julian@codesourcery.com>
2812 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
2814 (goacc_detach_internal): Likewise.
2816 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2818 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
2820 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
2821 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
2822 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
2823 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
2824 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
2826 2020-06-02 Jakub Jelinek <jakub@redhat.com>
2828 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
2831 2020-05-30 Jakub Jelinek <jakub@redhat.com>
2833 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
2835 2020-05-30 Jakub Jelinek <jakub@redhat.com>
2837 * allocator.c (omp_alloc): For size == 0, return NULL early.
2839 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
2842 * configure: Regenerated.
2844 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
2847 * testsuite/libgomp.fortran/async_io_9.f90: New test.
2849 2020-05-19 Jakub Jelinek <jakub@redhat.com>
2851 * omp.h.in (omp_uintptr_t): New typedef.
2852 (__GOMP_UINTPTR_T_ENUM): Define.
2853 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
2854 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
2855 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
2856 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
2857 omp_get_default_allocator, omp_alloc, omp_free): Declare.
2858 * libgomp.h (struct gomp_team_state): Add def_allocator field.
2859 (gomp_def_allocator): Declare.
2860 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
2861 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
2862 omp_alloc and omp_free.
2863 * team.c (gomp_team_start): Copy over ts.def_allocator.
2864 * env.c (gomp_def_allocator): New variable.
2865 (parse_wait_policy): Adjust function comment.
2866 (parse_allocator): New function.
2867 (handle_omp_display_env): Print OMP_ALLOCATOR.
2868 (initialize_env): Call parse_allocator.
2869 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
2870 * allocator.c: New file.
2871 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
2873 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
2874 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
2875 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
2876 * Makefile.in: Regenerated.
2878 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
2881 * configure: Regenerated.
2883 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
2886 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
2888 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
2890 * configure: Regenerated.
2892 2020-05-14 Jakub Jelinek <jakub@redhat.com>
2894 * testsuite/libgomp.c-c++-common/target-40.c: New test.
2896 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
2899 * testsuite/libgomp.fortran/pr66199-3.f90: New.
2900 * testsuite/libgomp.fortran/pr66199-4.f90: New.
2901 * testsuite/libgomp.fortran/pr66199-5.f90: New.
2902 * testsuite/libgomp.fortran/pr66199-6.f90: New.
2903 * testsuite/libgomp.fortran/pr66199-7.f90: New.
2904 * testsuite/libgomp.fortran/pr66199-8.f90: New.
2905 * testsuite/libgomp.fortran/pr66199-9.f90: New.
2907 2020-05-12 Jakub Jelinek <jakub@redhat.com>
2909 * testsuite/libgomp.c/target-39.c: New test.
2911 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
2913 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
2914 * openacc.f90 (acc_device_current): Likewise.
2915 * openacc.h (acc_device_current): Likewise.
2916 * openacc_lib.h (acc_device_current): Likewise.
2919 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
2920 'dg-allow-blank-lines-in-output'.
2922 * oacc-init.c (get_openacc_name): Handle 'gcn'.
2923 * testsuite/lib/libgomp.exp
2924 (offload_target_to_openacc_device_type) [amdgcn*]: Return
2925 'radeon'. Adjust all users.
2926 (check_effective_target_openacc_amdgcn_accel_present): Rename
2928 (check_effective_target_openacc_radeon_accel_present): ... this.
2930 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
2931 (check_effective_target_openacc_radeon_accel_selected): ... this.
2934 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
2937 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
2941 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
2943 (GOMP_OFFLOAD_init_device): Check return values from both calls to
2944 hsa_agent_iterate_regions.
2946 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
2949 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
2952 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
2955 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
2958 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
2961 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
2963 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
2966 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
2968 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
2970 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
2972 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
2974 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
2976 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
2978 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
2980 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
2982 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
2984 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
2986 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
2988 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
2990 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
2992 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
2994 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
2996 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
2998 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
3000 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
3002 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
3004 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
3006 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
3008 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
3010 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
3012 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
3014 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
3016 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
3018 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
3020 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
3022 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
3024 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
3026 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
3028 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
3031 2020-04-10 Julian Brown <julian@codesourcery.com>
3032 Thomas Schwinge <thomas@codesourcery.com>
3035 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
3037 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
3039 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
3041 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
3043 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
3045 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
3047 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
3049 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
3051 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
3053 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
3055 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
3057 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
3059 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
3061 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
3063 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
3065 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
3068 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
3070 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
3073 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
3076 * libgomp.oacc-c++/declare-pr94120.C: New.
3078 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
3080 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
3082 * configure: Regenerate.
3083 * testsuite/libgomp-site-extra.exp.in: New file.
3084 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
3086 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
3088 * testsuite/Makefile.in: Regenerate.
3090 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
3092 PR tree-optimization/89713
3094 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
3096 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
3098 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
3100 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
3101 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
3103 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
3106 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
3108 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
3111 * target.c (gomp_load_image_to_device): Fix link
3114 2020-03-19 Jakub Jelinek <jakub@redhat.com>
3117 * testsuite/libgomp.c++/pr93931.C: New test.
3119 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
3121 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
3122 dg-allow-blank-lines-in-output.
3124 2020-03-18 Julian Brown <julian@codesourcery.com>
3125 Tobias Burnus <tobias@codesourcery.com>
3127 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
3128 it work concurrently.
3130 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
3132 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
3133 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
3134 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
3136 2020-03-14 Jakub Jelinek <jakub@redhat.com>
3139 * testsuite/libgomp.c/pr93566.c: New test.
3141 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
3143 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
3144 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
3145 integer(acc_device_property) for the type of the return value of
3148 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
3150 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
3151 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
3152 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
3153 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
3154 (acc_set_device_num): Fix Fortran argument name, use same name for C.
3155 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
3156 corrections; add note about the previous interface and named constant.
3157 (OpenACC library and environment variables): Fix two typos.
3158 * openacc.f90: Use for all procedures the argument names from the spec
3159 as for …_h they are user visible.
3160 (openacc_kinds): Rename acc_device_property to
3161 acc_device_property_kinds and change value to int32 ; and update users.
3162 Re-add acc_device_property for for backward compatibility.
3163 (acc_get_property_string_h): Clean up as acc_device_property_kind
3165 (acc_get_property_h): Likewise and return c_size_t instead of
3166 acc_device_property.
3167 (openacc): Also export acc_device_property_kinds.
3168 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
3169 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
3170 handling; check against /= 0 instead of == 1 to match C.
3171 * openacc_lib.h: Use for all procedures the argument names from the spec
3172 as for …_h they are user visible. Place !GCC$ into the first column to
3173 be active also for fixed-form souce form.
3174 (acc_device_current, acc_device_property_kind, acc_device_property,
3175 acc_property_memory, acc_property_free_memory, acc_property_name,
3176 acc_property_vendor, acc_property_driver): New named constants.
3177 (acc_get_property, acc_get_property_string): New generic interface.
3179 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
3182 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
3183 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
3185 (gomp_target_task_fn): Assert "devicep->async_run_func".
3186 (clear_unsupported_flags): New function to remove unsupported flags
3187 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
3188 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
3189 * testsuite/libgomp.c/target-33.c:
3190 Remove xfail for offload_target_nvptx.
3191 * testsuite/libgomp.c/target-34.c: Likewise.
3193 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
3195 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
3196 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
3197 * testsuite/libgomp.c/target-34.c: Likewise.
3198 * testsuite/libgomp.c/target-link-1.c: Add xfail for
3199 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
3201 2020-02-09 Jakub Jelinek <jakub@redhat.com>
3203 * testsuite/libgomp.c/target-38.c: New test.
3205 2020-02-06 Jakub Jelinek <jakub@redhat.com>
3208 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
3210 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
3212 * testsuite/lib/libgomp.exp
3213 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
3214 and not as 'source' argument to libgomp_target_compile.
3216 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
3218 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
3219 (gcn_gfx801_s): Remove.
3220 (isa_hsa_name): Remove gfx801.
3221 (isa_gcc_name): Remove gfx801/carizzo.
3222 (isa_code): Remove gfx801.
3224 2020-02-03 Julian Brown <julian@codesourcery.com>
3225 Tobias Burnus <tobias@codesourcery.com>
3227 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
3228 and *_finalize variants; document acc_attach and acc_detach; update
3229 references from OpenACC 2.0 to 2.6.
3230 * openacc.f90 (openacc_version): Update to 201711.
3231 * openacc_lib.h (openacc_version): Update to 201711.
3232 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
3233 openacc_version to 201711.
3234 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3236 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
3238 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
3239 and vgpr_count fields.
3240 (struct kernel_info): Add a field for a hsa_kernel_description.
3241 (run_kernel): Reduce the number of threads/workers if the requested
3242 number would require too many VGPRs.
3243 (init_basic_kernel_info): Initialize description field with
3244 the hsa_kernel_description entry for the kernel.
3246 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
3249 * plugin/configfrag.ac (enable_offload_targets): Skip
3250 HSA and GCN plugin besides -m32 also for -mx32.
3251 * configure: Regenerate.
3253 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
3255 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
3257 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
3259 * plugin-gcn.c (struct agent_info): Add fields "name" and
3261 (GOMP_OFFLOAD_init_device): ... and init from here.
3262 (struct hsa_context_info): Add field "driver_version_s" ...
3263 (init_hsa_contest): ... and init from here.
3264 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
3266 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
3267 Enable test execution for amdgcn and host offloading targets.
3268 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
3269 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
3270 (expect_device_properties): Split function into ...
3271 (expect_device_string_properties): ... this new function ...
3272 (expect_device_memory): ... and this new function.
3273 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
3276 2020-01-28 Julian Brown <julian@codesourcery.com>
3278 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
3279 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
3280 component/non-component variable refs in a single directive.
3281 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
3283 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
3285 * configure.ac: Handle `--with-toolexeclibdir='.
3286 * Makefile.in: Regenerate.
3287 * aclocal.m4: Regenerate.
3288 * configure: Regenerate.
3289 * testsuite/Makefile.in: Regenerate.
3291 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
3293 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
3294 (expect_device_properties): Remove "expected_free_mem" argument,
3295 change "expected_total_mem" argument type to size_t;
3296 change types of acc_get_property results to size_t,
3297 adapt format strings.
3298 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
3299 Use %zu instead of %zd to print size_t values.
3300 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
3302 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
3303 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
3305 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
3307 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
3309 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
3312 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
3314 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
3315 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
3316 Adjust test dimensions for amdgcn.
3317 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
3318 gang/worker/vector expectations dynamically.
3319 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
3321 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
3322 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
3323 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
3324 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
3325 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
3326 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
3327 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
3328 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
3329 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
3330 (acc_gang): Recognise acc_device_radeon.
3331 (acc_worker): Likewise.
3332 (acc_vector): Likewise.
3333 (main): Set expectations for amdgcn.
3334 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
3335 (main): Adjust gang/worker/vector expectations dynamically.
3336 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
3337 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
3338 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
3339 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
3342 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
3344 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
3346 (openacc): Likewise.
3347 * openacc.f90 (openacc_kinds): Likewise.
3348 (openacc): Likewise.
3349 * openacc.h (acc_device_t): Likewise.
3350 * openacc_lib.h: Likewise.
3351 * testsuite/lib/libgomp.exp
3352 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
3353 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
3354 (cb_compute_construct_end): Likewise.
3355 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
3356 (cb_enqueue_launch_start): Likewise.
3357 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
3358 (cb_enter_data_end): Likewise.
3359 (cb_exit_data_start): Likewise.
3360 (cb_exit_data_end): Likewise.
3361 (cb_compute_construct_end): Likewise.
3362 (cb_enqueue_launch_start): Likewise.
3363 (cb_enqueue_launch_end): Likewise.
3364 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
3367 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
3369 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
3370 to use this instead of 'enum gomp_device_property'.
3371 (GOMP_OFFLOAD_get_property): Rename to...
3372 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
3373 * libgomp.h (struct gomp_device_descr): Move
3374 'GOMP_OFFLOAD_openacc_get_property'...
3375 (struct acc_dispatch_t): ... here. Adjust all users.
3376 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
3378 * target.c (gomp_map_vars_internal)
3379 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
3382 2020-01-10 Jakub Jelinek <jakub@redhat.com>
3385 * libgomp.h (gomp_print_string): Change return type from void to int.
3386 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
3387 not all characters have been written.
3389 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
3391 * libgomp.texi: Fix typos, use https.
3393 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
3395 * testsuite/libgomp.fortran/optional-map.f90: Add test for
3396 unallocated/disassociated actual arguments to nonallocatable/nonpointer
3397 dummy arguments; those are/shall be regarded as absent arguments.
3398 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
3399 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
3401 2020-01-01 Jakub Jelinek <jakub@redhat.com>
3403 Update copyright years.
3405 * libgomp.texi: Bump @copying's copyright year.
3407 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
3410 * oacc-init.c (goacc_runtime_deinitialize): New function.
3412 2019-12-28 Jakub Jelinek <jakub@redhat.com>
3415 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
3416 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
3418 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
3419 Frederik Harwath <frederik@codesourcery.com>
3420 Thomas Schwinge <tschwinge@codesourcery.com>
3422 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
3423 * libgomp-plugin.h (gomp_device_property_value): New union.
3424 (gomp_device_property_value): New prototype.
3425 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
3427 (acc_device_property_t): New enum.
3428 (acc_get_property, acc_get_property_string): New prototypes.
3429 * oacc-init.c (acc_get_device_type): Also assert that result
3430 is not `acc_device_current'.
3431 (get_property_any, acc_get_property, acc_get_property_string):
3433 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
3434 `acc_property_memory', `acc_property_free_memory',
3435 `acc_property_name', `acc_property_vendor' and
3436 `acc_property_driver' constants. Add `acc_device_property' data
3438 (openacc_internal): Add `acc_get_property' and
3439 `acc_get_property_string' interfaces. Add `acc_get_property_h',
3440 `acc_get_property_string_h', `acc_get_property_l' and
3441 `acc_get_property_string_l'.
3442 * oacc-host.c (host_get_property): New function.
3443 (host_dispatch): Wire it.
3444 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
3445 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
3446 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
3447 * libgomp.texi (OpenACC Runtime Library Routines): Add
3449 (acc_get_property): New node.
3450 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
3452 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
3453 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
3454 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
3456 (GOMP_OFFLOAD_get_property): New function.
3457 (struct ptx_device): Add new field "name".
3458 (cuda_driver_version_s): Add new static variable ...
3459 (nvptx_init): ... and init from here.
3461 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
3462 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
3463 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
3464 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
3465 with test helper functions.
3467 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
3469 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
3471 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
3474 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
3476 * target.c (gomp_map_vars_internal): Restore 'omp declare target
3479 2019-12-19 Julian Brown <julian@codesourcery.com>
3481 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
3482 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
3483 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
3485 2019-12-19 Julian Brown <julian@codesourcery.com>
3486 Cesar Philippidis <cesar@codesourcery.com>
3488 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
3489 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
3490 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
3491 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
3492 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
3493 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
3494 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
3495 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
3496 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
3497 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
3498 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
3499 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
3500 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
3502 2019-12-19 Julian Brown <julian@codesourcery.com>
3504 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
3505 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
3506 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
3507 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
3508 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
3509 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
3510 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
3511 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
3512 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
3513 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
3514 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
3515 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
3517 2019-12-19 Julian Brown <julian@codesourcery.com>
3519 * libgomp.h (struct target_var_desc): Add do_detach flag.
3520 * oacc-init.c (acc_shutdown_1): Free aux block if present.
3521 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
3522 struct components. Tidy up and add some new checks.
3523 (goacc_enter_data_internal): Update call to find_group_last.
3524 (goacc_exit_data_internal): Support detach operations and
3526 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
3527 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
3528 attach/detach in enter/exit data detection code.
3529 * target.c (gomp_map_vars_existing): Initialise do_detach field of
3531 (gomp_map_vars_internal): Support attach.
3532 (gomp_unmap_vars_internal): Support detach.
3534 2019-12-19 Julian Brown <julian@codesourcery.com>
3535 Thomas Schwinge <thomas@codesourcery.com>
3537 * libgomp.h (struct splay_tree_aux): Add attach_count field.
3538 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
3539 * libgomp.map (OACC_2.6): New section. Add acc_attach,
3540 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
3541 acc_detach_finalize_async.
3542 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
3543 acc_detach, acc_detach_async, acc_detach_finalize,
3544 acc_detach_finalize_async): New functions.
3545 * openacc.h (acc_attach, acc_attach_async, acc_detach,
3546 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
3548 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
3549 (gomp_remove_var_internal): Free attachment counts if present.
3550 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
3551 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
3553 2019-12-19 Julian Brown <julian@codesourcery.com>
3554 Cesar Philippidis <cesar@codesourcery.com>
3556 * libgomp.h (gomp_map_val): Add prototype.
3557 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
3558 open-coding device-address calculation.
3559 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
3562 2019-12-19 Julian Brown <julian@codesourcery.com>
3564 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
3565 field for virtual_refcount.
3566 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
3567 (gomp_free_memmap): Remove prototype.
3568 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
3569 instead of calling gomp_free_memmap.
3570 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
3572 (acc_unmap_data): Open code instead of forcing target_mem_desc's
3573 to_free field to NULL then calling gomp_unmap_vars. Handle
3574 REFCOUNT_INFINITY on target blocks.
3575 (goacc_enter_data): Rename to...
3576 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
3577 handling for mapping groups. Use virtual_refcount instead of
3578 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
3579 map_map_vars_async call. Re-do lookup for target pointer return value.
3580 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
3581 renamed goacc_enter_datum function.
3582 (goacc_exit_data): Rename to...
3583 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
3584 (acc_delete, acc_delete_async, acc_delete_finalize,
3585 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
3586 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
3587 goacc_exit_datum function.
3588 (gomp_acc_remove_pointer, find_pointer): Remove functions.
3589 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
3591 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
3592 goacc_exit_data_internal helper functions.
3593 * target.c (gomp_map_vars_internal): Handle
3594 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
3596 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
3597 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
3598 virtual_refcount field instead of dynamic_refcount.
3599 (gomp_free_memmap): Remove function.
3600 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
3601 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
3602 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
3604 2019-12-19 Julian Brown <julian@codesourcery.com>
3605 Thomas Schwinge <thomas@codesourcery.com>
3607 * libgomp.h (struct splay_tree_aux): New.
3608 (struct splay_tree_key_s): Replace link_key field with aux pointer.
3609 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
3611 (gomp_remove_var_internal): Free aux block if present.
3612 (gomp_load_image_to_device): Zero-initialise aux field instead of
3614 (omp_target_associate_pointer): Zero-initialise aux field.
3616 2019-12-18 Jakub Jelinek <jakub@redhat.com>
3619 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
3621 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
3624 2019-12-19 Julian Brown <julian@codesourcery.com>
3625 Maciej W. Rozycki <macro@codesourcery.com>
3626 Tobias Burnus <tobias@codesourcery.com>
3627 Thomas Schwinge <thomas@codesourcery.com>
3629 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
3630 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
3631 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
3632 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
3633 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
3634 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
3635 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
3636 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
3637 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
3639 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
3641 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
3643 (goacc_insert_pointer): ... from here, "present" case.
3644 (goacc_insert_pointer): Inline function into...
3645 (GOACC_enter_exit_data): ... here, and simplify.
3647 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
3649 (goacc_insert_pointer): ... from here, "not present" case.
3651 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
3654 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
3655 'goacc_enter_data', 'goacc_exit_data'.
3657 * oacc-mem.c (delete_copyout): Refactor into...
3658 (goacc_exit_data): ... this. Adjust all users.
3660 * oacc-mem.c (present_create_copy): Refactor into...
3661 (goacc_enter_data): ... this. Adjust all users.
3663 * target.c (gomp_unmap_vars_internal): Add a safeguard to
3666 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
3667 like 'GOMP_MAP_FROM'.
3672 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
3674 (GOACC_enter_exit_data): Simplify accordingly.
3675 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
3677 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
3678 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
3680 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
3682 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
3683 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
3685 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
3687 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
3689 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
3690 'finalize' handling.
3693 * oacc-mem.c (acc_map_data, present_create_copy)
3694 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
3695 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
3696 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
3697 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
3698 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
3699 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
3700 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
3701 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
3704 * target.c (gomp_unmap_tgt): Make it 'static'.
3705 * libgomp.h (gomp_unmap_tgt): Remove.
3707 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
3710 * testsuite/libgomp.c/pr86416-1.c: New.
3711 * testsuite/libgomp.c/pr86416-2.c: New.
3713 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
3715 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
3716 all symbols as public except for the 'use …, only' imported symbol,
3718 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
3719 all symbols from module openacc_kinds as PUBLIC
3720 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
3722 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
3724 2019-12-13 Julian Brown <julian@codesourcery.com>
3728 * libgomp.h (gomp_remove_var_async): Add prototype.
3729 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
3731 * target.c (gomp_unref_tgt): Change return type to bool, indicating
3732 whether target_mem_desc was unmapped.
3733 (gomp_unref_tgt_void): New.
3734 (gomp_remove_var): Reimplement in terms of...
3735 (gomp_remove_var_internal): ...this new helper function.
3736 (gomp_remove_var_async): New, implemented using above helper function.
3737 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
3740 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
3742 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
3743 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3744 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
3745 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
3746 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
3748 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
3749 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
3751 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
3753 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
3754 as public except for the 'use …, only' imported symbol, which is
3756 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
3757 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
3758 attributes for acc_copyout_finalize and acc_delete_finalize.
3760 2019-12-11 Jakub Jelinek <jakub@redhat.com>
3763 * testsuite/libgomp.fortran/atomic1.f90: New test.
3765 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
3768 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
3769 reference counting for structured 'REFCOUNT_INFINITY'. Add some
3771 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
3772 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
3773 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
3774 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
3775 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3777 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
3778 * oacc-mem.c: ... here.
3779 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
3780 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
3781 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
3783 * libgomp_g.h: Update.
3785 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
3786 * oacc-async.c: ... here.
3787 * oacc-int.h (goacc_wait): Declare.
3788 * libgomp_g.h: Update
3791 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
3793 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
3795 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
3797 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
3799 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
3801 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
3804 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
3805 Julian Brown <julian@codesourcery.com>
3807 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
3808 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
3810 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
3812 * omp_lib.h.in: Fix spelling of function declaration
3813 omp_get_cancell(l)ation.
3814 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
3816 * env.c: Fix comment typos.
3817 * oacc-host.c: Likewise.
3818 * ordered.c: Likewise.
3821 * config/gcn/task.c: Likewise.
3822 * config/gcn/team.c: Likewise.
3823 * config/nvptx/task.c: Likewise.
3824 * config/nvptx/team.c: Likewise.
3825 * plugin/plugin-gcn.c: Likewise.
3826 * testsuite/libgomp.fortran/jacobi.f: Likewise.
3827 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
3828 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
3830 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
3832 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
3833 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
3834 unnecessary 'dg-additional-options "-w"'.
3836 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
3837 Julian Brown <julian@codesourcery.com>
3842 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
3843 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
3845 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
3847 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
3849 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
3851 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
3854 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
3855 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
3857 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
3859 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
3861 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
3863 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
3865 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
3867 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
3868 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
3869 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
3870 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
3871 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
3872 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
3873 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3874 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3875 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
3876 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3879 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
3880 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
3881 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
3883 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
3885 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
3887 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
3888 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
3891 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
3893 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
3895 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
3897 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
3899 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
3900 ... with their content moved into, and extended in this new file.
3901 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
3903 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
3905 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
3907 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
3910 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
3913 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
3915 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
3917 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
3919 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
3921 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
3923 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
3924 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
3925 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
3926 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
3928 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
3929 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
3931 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
3933 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
3935 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
3936 Kwok Cheung Yeung <kcy@codesourcery.com>
3938 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
3939 if input it a NULL pointer.
3940 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
3941 diagnostic of NULL pointer.
3942 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
3943 * testsuite/libgomp.fortran/optional-map.f90: New.
3944 * testsuite/libgomp.fortran/use_device_addr-1.f90
3945 (test_dummy_opt_callee_1_absent): New.
3946 (test_dummy_opt_call_1): Call it.
3947 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
3948 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
3949 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
3950 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
3951 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
3952 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
3953 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
3954 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
3955 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
3956 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
3957 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
3958 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
3959 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
3960 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
3961 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
3962 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
3964 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
3966 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
3967 expect dg-output of 'Error termination.' for GCN.
3968 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3969 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3971 2019-12-04 Jakub Jelinek <jakub@redhat.com>
3974 * testsuite/libgomp.fortran/teams1.f90: New test.
3975 * testsuite/libgomp.fortran/teams2.f90: New test.
3977 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
3979 * oacc-init.c (acc_known_device_type): Add function.
3980 (unknown_device_type_error): Add function.
3981 (name_of_acc_device_t): Change to call unknown_device_type_error
3983 (resolve_device): Use acc_known_device_type.
3984 (acc_init): Fail if acc_device_t argument is not valid.
3985 (acc_shutdown): Likewise.
3986 (acc_get_num_devices): Likewise.
3987 (acc_set_device_type): Likewise.
3988 (acc_get_device_num): Likewise.
3989 (acc_set_device_num): Likewise.
3990 (acc_on_device): Add comment that argument validity is not checked.
3992 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
3994 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
3996 (check_effective_target_openacc_amdgcn_accel_present): New proc.
3997 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
3998 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
3999 * testsuite/libgomp.oacc-c/c.exp: Likewise.
4000 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4002 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
4005 * configure.tgt: Avoid IE tls on *-*-musl*.
4007 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
4009 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
4010 adding a common-block test case.
4012 2019-11-29 Jakub Jelinek <jakub@redhat.com>
4015 * testsuite/libgomp.c++/udr-20.C: New test.
4016 * testsuite/libgomp.c++/udr-21.C: New test.
4018 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
4020 * testsuite/lib/libgomp.exp
4021 (check_effective_target_offload_target_nvptx): New proc.
4022 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
4024 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
4025 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
4026 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
4028 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4030 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
4031 * testsuite/libgomp.c/pr39591-2.c: Likewise.
4032 * testsuite/libgomp.c/pr39591-3.c: Likewise.
4033 * testsuite/libgomp.c/private-1.c: Likewise.
4034 * testsuite/libgomp.c/task-1.c: Likewise.
4035 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
4037 2019-11-20 Julian Brown <julian@codesourcery.com>
4039 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
4041 (queue_push_launch): Lock aq->mutex before calling
4042 wait_for_queue_nonfull.
4043 (queue_push_callback): Likewise.
4044 (queue_push_asyncwait): Likewise.
4045 (queue_push_placeholder): Likewise.
4047 2019-11-20 Julian Brown <julian@codesourcery.com>
4049 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
4050 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
4051 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
4054 2019-11-20 Julian Brown <julian@codesourcery.com>
4058 * oacc-mem.c (present_create_copy): Fix device pointer return value in
4059 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
4060 in non-present/create case.
4061 (delete_copyout): Change error condition to fail only on copies outside
4062 of mapped block. Adjust error message accordingly.
4063 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
4064 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
4065 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
4067 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4068 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
4069 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
4071 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
4073 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
4074 libatomic in build-tree testing.
4076 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
4078 * testsuite/Makefile.in: Regenerate.
4080 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
4082 * testsuite/libgomp.c/target-print-1.c: New file.
4083 * testsuite/libgomp.fortran/target-print-1.f90: New file.
4084 * testsuite/libgomp.oacc-c/print-1.c: New file.
4085 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
4087 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4088 Kwok Cheung Yeung <kcy@codesourcery.com>
4089 Julian Brown <julian@codesourcery.com>
4090 Tom de Vries <tom@codesourcery.com>
4092 * plugin/Makefrag.am: Add amdgcn plugin support.
4093 * plugin/configfrag.ac: Likewise.
4094 * plugin/plugin-gcn.c: New file.
4095 * configure: Regenerate.
4096 * Makefile.in: Regenerate.
4097 * testsuite/Makefile.in: Regenerate.
4099 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4101 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
4102 and use team_malloc variants.
4103 (gomp_gcn_exit_kernel): Use team_free.
4104 * libgomp.h (TEAM_ARENA_SIZE): Define.
4105 (TEAM_ARENA_START): Define.
4106 (TEAM_ARENA_FREE): Define.
4107 (TEAM_ARENA_END): Define.
4108 (team_malloc): New function.
4109 (team_malloc_cleared): New function.
4110 (team_free): New function.
4111 * team.c (gomp_new_team): Initialize and use team_malloc.
4112 (free_team): Use team_free.
4113 (gomp_free_thread): Use team_free.
4114 (gomp_pause_host): Use team_free.
4115 * work.c (gomp_init_work_share): Use team_malloc.
4116 (gomp_fini_work_share): Use team_free.
4118 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4119 Kwok Cheung Yeung <kcy@codesourcery.com>
4120 Julian Brown <julian@codesourcery.com>
4121 Tom de Vries <tom@codesourcery.com>
4123 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
4124 * Makefile.in: Regenerate.
4125 * config.h.in (PLUGIN_GCN): Add new undef.
4126 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
4127 * config/gcn/affinity-fmt.c: New file.
4128 * config/gcn/bar.c: New file.
4129 * config/gcn/bar.h: New file.
4130 * config/gcn/doacross.h: New file.
4131 * config/gcn/icv-device.c: New file.
4132 * config/gcn/oacc-target.c: New file.
4133 * config/gcn/simple-bar.h: New file.
4134 * config/gcn/target.c: New file.
4135 * config/gcn/task.c: New file.
4136 * config/gcn/team.c: New file.
4137 * config/gcn/time.c: New file.
4138 * configure.ac: Add amdgcn*-*-*.
4139 * configure: Regenerate.
4140 * configure.tgt: Add amdgcn*-*-*.
4141 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
4142 * libgomp.h (gcn_thrs): Add amdgcn variant.
4143 (set_gcn_thrs): Likewise.
4144 (gomp_thread): Likewise.
4145 * oacc-int.h (goacc_thread): Likewise.
4146 * oacc-target.c: New file.
4147 * openacc.f90 (acc_device_gcn): New parameter.
4148 * openacc.h (acc_device_t): Add acc_device_gcn.
4149 * team.c (gomp_free_pool_helper): Add amdgcn support.
4151 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4152 Julian Brown <julian@codesourcery.com>
4154 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
4156 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
4158 * oacc-host.c (host_openacc_async_construct): Add device parameter.
4159 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
4162 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4164 * configure.tgt (nvptx*-*-*): Add "accel" directory.
4165 * config/nvptx/libgomp-plugin.c: Move ...
4166 * config/accel/libgomp-plugin.c: ... to here.
4167 * config/nvptx/lock.c: Move ...
4168 * config/accel/lock.c: ... to here.
4169 * config/nvptx/mutex.c: Move ...
4170 * config/accel/mutex.c: ... to here.
4171 * config/nvptx/mutex.h: Move ...
4172 * config/accel/mutex.h: ... to here.
4173 * config/nvptx/oacc-async.c: Move ...
4174 * config/accel/oacc-async.c: ... to here.
4175 * config/nvptx/oacc-cuda.c: Move ...
4176 * config/accel/oacc-cuda.c: ... to here.
4177 * config/nvptx/oacc-host.c: Move ...
4178 * config/accel/oacc-host.c: ... to here.
4179 * config/nvptx/oacc-init.c: Move ...
4180 * config/accel/oacc-init.c: ... to here.
4181 * config/nvptx/oacc-mem.c: Move ...
4182 * config/accel/oacc-mem.c: ... to here.
4183 * config/nvptx/oacc-plugin.c: Move ...
4184 * config/accel/oacc-plugin.c: ... to here.
4185 * config/nvptx/omp-lock.h: Move ...
4186 * config/accel/omp-lock.h: ... to here.
4187 * config/nvptx/openacc.f90: Move ...
4188 * config/accel/openacc.f90: ... to here.
4189 * config/nvptx/pool.h: Move ...
4190 * config/accel/pool.h: ... to here.
4191 * config/nvptx/proc.c: Move ...
4192 * config/accel/proc.c: ... to here.
4193 * config/nvptx/ptrlock.c: Move ...
4194 * config/accel/ptrlock.c: ... to here.
4195 * config/nvptx/ptrlock.h: Move ...
4196 * config/accel/ptrlock.h: ... to here.
4197 * config/nvptx/sem.c: Move ...
4198 * config/accel/sem.c: ... to here.
4199 * config/nvptx/sem.h: Move ...
4200 * config/accel/sem.h: ... to here.
4201 * config/nvptx/thread-stacksize.h: Move ...
4202 * config/accel/thread-stacksize.h: ... to here.
4204 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4205 Tobias Burnus <tobias@codesourcery.com>
4206 Frederik Harwath <frederik@codesourcery.com>
4207 Thomas Schwinge <thomas@codesourcery.com>
4210 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
4211 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
4212 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
4214 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4215 Kwok Cheung Yeung <kcy@codesourcery.com>
4217 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
4218 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
4220 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4222 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
4224 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
4226 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
4227 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
4229 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
4231 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
4232 Add expected warnings about missing reduction clauses.
4233 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
4235 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
4237 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4240 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
4242 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
4243 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
4244 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
4245 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
4246 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
4247 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
4249 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
4252 * testsuite/libgomp.fortran/allocatable2.f90: Use
4253 unique numbers with 'stop'.
4254 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
4255 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
4256 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
4257 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
4258 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
4260 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
4262 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
4263 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
4264 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
4265 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
4266 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
4267 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
4269 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
4271 * testsuite/libgomp.fortran/target9.f90: New.
4273 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
4275 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
4276 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
4277 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
4278 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
4279 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
4280 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
4281 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
4282 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
4283 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
4284 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
4285 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
4286 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
4287 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
4288 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
4289 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
4290 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
4291 * testsuite/libgomp.fortran/associate1.f90: Ditto.
4292 * testsuite/libgomp.fortran/associate2.f90: Ditto.
4293 * testsuite/libgomp.fortran/associate3.f90: Ditto.
4294 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
4295 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
4296 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
4297 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
4298 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
4299 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
4300 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
4301 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
4302 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
4303 * testsuite/libgomp.fortran/character1.f90: Ditto.
4304 * testsuite/libgomp.fortran/character2.f90: Ditto.
4305 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
4306 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
4307 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
4308 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
4309 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
4310 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
4311 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
4312 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
4313 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
4314 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
4315 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
4316 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
4317 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
4318 * testsuite/libgomp.fortran/do1.f90: Ditto.
4319 * testsuite/libgomp.fortran/do2.f90: Ditto.
4320 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
4321 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
4322 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
4323 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
4324 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
4325 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
4326 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
4327 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
4328 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
4329 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
4330 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
4331 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
4332 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
4333 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
4334 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
4335 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
4336 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
4337 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
4338 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
4339 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
4340 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
4341 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
4342 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
4343 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
4344 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
4345 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
4346 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
4347 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
4348 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
4349 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
4350 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
4351 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
4352 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
4353 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
4354 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
4355 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
4356 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
4357 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
4358 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
4359 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
4360 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
4361 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
4362 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
4363 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
4364 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
4365 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
4366 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
4367 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
4368 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
4369 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
4370 * testsuite/libgomp.fortran/lib1.f90: Ditto.
4371 * testsuite/libgomp.fortran/lib4.f90: Ditto.
4372 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
4373 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
4374 * testsuite/libgomp.fortran/nested1.f90: Ditto.
4375 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
4376 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
4377 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
4378 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
4379 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
4380 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
4381 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
4382 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
4383 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
4384 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
4385 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
4386 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
4387 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
4388 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
4389 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
4390 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
4391 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
4392 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
4393 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
4394 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
4395 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
4396 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
4397 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
4398 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
4399 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
4400 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
4401 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
4402 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
4403 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
4404 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
4405 * testsuite/libgomp.fortran/pr28390.f: Ditto.
4406 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
4407 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
4408 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
4409 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
4410 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4411 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
4412 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
4413 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
4414 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
4415 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
4416 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
4417 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
4418 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
4419 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
4420 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
4421 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
4422 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
4423 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
4424 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
4425 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
4426 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
4427 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
4428 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
4429 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
4430 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
4431 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
4432 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
4433 * testsuite/libgomp.fortran/reference1.f90: Ditto.
4434 * testsuite/libgomp.fortran/reference2.f90: Ditto.
4435 * testsuite/libgomp.fortran/retval1.f90: Ditto.
4436 * testsuite/libgomp.fortran/retval2.f90: Ditto.
4437 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
4438 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
4439 * testsuite/libgomp.fortran/simd1.f90: Ditto.
4440 * testsuite/libgomp.fortran/simd2.f90: Ditto.
4441 * testsuite/libgomp.fortran/simd3.f90: Ditto.
4442 * testsuite/libgomp.fortran/simd4.f90: Ditto.
4443 * testsuite/libgomp.fortran/simd5.f90: Ditto.
4444 * testsuite/libgomp.fortran/simd6.f90: Ditto.
4445 * testsuite/libgomp.fortran/simd7.f90: Ditto.
4446 * testsuite/libgomp.fortran/stack.f90: Ditto.
4447 * testsuite/libgomp.fortran/strassen.f90: Ditto.
4448 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
4449 * testsuite/libgomp.fortran/tabs2.f: Ditto.
4450 * testsuite/libgomp.fortran/target1.f90: Ditto.
4451 * testsuite/libgomp.fortran/target2.f90: Ditto.
4452 * testsuite/libgomp.fortran/target3.f90: Ditto.
4453 * testsuite/libgomp.fortran/target4.f90: Ditto.
4454 * testsuite/libgomp.fortran/target5.f90: Ditto.
4455 * testsuite/libgomp.fortran/target6.f90: Ditto.
4456 * testsuite/libgomp.fortran/target7.f90: Ditto.
4457 * testsuite/libgomp.fortran/target8.f90: Ditto.
4458 * testsuite/libgomp.fortran/task1.f90: Ditto.
4459 * testsuite/libgomp.fortran/task2.f90: Ditto.
4460 * testsuite/libgomp.fortran/task3.f90: Ditto.
4461 * testsuite/libgomp.fortran/task4.f90: Ditto.
4462 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4463 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4464 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
4465 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
4466 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
4467 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
4468 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
4469 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
4470 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
4471 * testsuite/libgomp.fortran/udr1.f90: Ditto.
4472 * testsuite/libgomp.fortran/udr10.f90: Ditto.
4473 * testsuite/libgomp.fortran/udr11.f90: Ditto.
4474 * testsuite/libgomp.fortran/udr12.f90: Ditto.
4475 * testsuite/libgomp.fortran/udr13.f90: Ditto.
4476 * testsuite/libgomp.fortran/udr14.f90: Ditto.
4477 * testsuite/libgomp.fortran/udr15.f90: Ditto.
4478 * testsuite/libgomp.fortran/udr2.f90: Ditto.
4479 * testsuite/libgomp.fortran/udr3.f90: Ditto.
4480 * testsuite/libgomp.fortran/udr4.f90: Ditto.
4481 * testsuite/libgomp.fortran/udr5.f90: Ditto.
4482 * testsuite/libgomp.fortran/udr6.f90: Ditto.
4483 * testsuite/libgomp.fortran/udr7.f90: Ditto.
4484 * testsuite/libgomp.fortran/udr8.f90: Ditto.
4485 * testsuite/libgomp.fortran/udr9.f90: Ditto.
4486 * testsuite/libgomp.fortran/vla1.f90: Ditto.
4487 * testsuite/libgomp.fortran/vla2.f90: Ditto.
4488 * testsuite/libgomp.fortran/vla3.f90: Ditto.
4489 * testsuite/libgomp.fortran/vla4.f90: Ditto.
4490 * testsuite/libgomp.fortran/vla5.f90: Ditto.
4491 * testsuite/libgomp.fortran/vla6.f90: Ditto.
4492 * testsuite/libgomp.fortran/vla7.f90: Ditto.
4493 * testsuite/libgomp.fortran/vla8.f90: Ditto.
4494 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4495 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4497 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
4499 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
4500 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
4501 Ditto; add 'dg-do run' for torture testing.
4502 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
4503 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
4504 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
4505 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
4506 * testsuite/libgomp.fortran/pr28390.f: Ditto.
4507 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4508 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
4509 * testsuite/libgomp.fortran/task2.f90: Ditto.
4510 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4511 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4512 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
4513 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
4514 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4515 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4517 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
4519 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
4520 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
4521 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
4522 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
4523 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
4524 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
4525 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
4526 Use 'stop' not abort().
4527 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
4528 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
4529 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
4530 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
4531 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
4532 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
4533 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
4534 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
4535 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
4536 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
4537 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
4538 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
4539 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
4540 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
4541 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
4542 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
4543 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
4545 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4547 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4549 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4551 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4553 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
4555 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
4557 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
4559 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
4561 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
4563 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
4565 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
4567 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
4569 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
4571 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
4572 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
4573 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
4574 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
4575 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
4576 Likewise and also add 'dg-do run'.
4577 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
4580 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
4581 Tobias Burnus <tobias@codesourcery.com>
4583 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
4584 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
4585 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
4587 2019-10-14 Jakub Jelinek <jakub@redhat.com>
4590 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
4593 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
4595 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
4596 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
4598 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
4601 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
4604 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
4607 * testsuite/libgomp.fortran/fortran.exp: Conditionally
4609 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
4611 2019-10-09 Jakub Jelinek <jakub@redhat.com>
4614 * target.c (gomp_map_vars_internal): Readd the previous
4615 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
4616 though do that just in the !not_found_cnt case.
4618 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
4620 * gfortran.dg/gomp/target-simd.f90: New.
4622 2019-10-02 Julian Brown <julian@codesourcery.com>
4623 Cesar Philippidis <cesar@codesourcery.com>
4625 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
4626 * target.c (FIELD_TGT_EMPTY): Define.
4627 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
4628 as switch instead of list of ifs.
4629 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
4631 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
4633 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
4634 include. Replace alloca () with __builtin_alloca ().
4635 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
4637 2019-10-01 Jakub Jelinek <jakub@redhat.com>
4639 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
4640 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
4641 * oacc-parallel.c: Don't include "libgomp_g.h".
4642 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
4643 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
4644 * aclocal.m4: Regenerated.
4645 * config.h.in: Regenerated.
4646 * configure: Regenerated.
4647 * Makefile.in: Regenerated.
4649 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
4651 * libgomp_g.h: Include stdint.h instead of gstdint.h.
4653 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
4655 * configure: Regenerate.
4657 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
4659 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
4660 string is initialized.
4662 2019-09-06 Florian Weimer <fweimer@redhat.com>
4664 * configure: Regenerate.
4666 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
4669 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
4670 scanning to conform to the GNU Coding Standards.
4671 * configure: Regenerate.
4673 2019-08-28 Jakub Jelinek <jakub@redhat.com>
4676 * testsuite/libgomp.c/scan-21.c: New test.
4677 * testsuite/libgomp.c/scan-22.c: New test.
4679 2019-08-27 Jakub Jelinek <jakub@redhat.com>
4682 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
4684 * testsuite/libgomp.c/scan-12.c: Likewise.
4685 * testsuite/libgomp.c/scan-13.c: Likewise.
4686 * testsuite/libgomp.c/scan-14.c: Likewise.
4687 * testsuite/libgomp.c/scan-15.c: Likewise.
4688 * testsuite/libgomp.c/scan-16.c: Likewise.
4689 * testsuite/libgomp.c/scan-17.c: Likewise.
4690 * testsuite/libgomp.c/scan-18.c: Likewise.
4691 * testsuite/libgomp.c/scan-19.c: Likewise.
4692 * testsuite/libgomp.c/scan-20.c: Likewise.
4693 * testsuite/libgomp.c++/scan-9.C: Likewise.
4694 * testsuite/libgomp.c++/scan-10.C: Likewise.
4695 * testsuite/libgomp.c++/scan-11.C: Likewise.
4696 * testsuite/libgomp.c++/scan-12.C: Likewise.
4697 * testsuite/libgomp.c++/scan-14.C: Likewise.
4698 * testsuite/libgomp.c++/scan-15.C: Likewise.
4699 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
4700 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
4701 * testsuite/libgomp.c++/scan-16.C: Likewise.
4703 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
4706 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
4707 -std=legacy so invalid code in the test case is accepted.
4709 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
4712 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
4715 2019-08-08 Jakub Jelinek <jakub@redhat.com>
4717 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
4718 perform the lookup in the first loop only if !not_found_cnt, otherwise
4719 perform lookups for it in the second loop guarded with
4720 if (not_found_cnt || has_firstprivate).
4721 * testsuite/libgomp.c/target-37.c: New test.
4722 * testsuite/libgomp.c++/target-22.C: New test.
4724 2019-08-07 Jakub Jelinek <jakub@redhat.com>
4726 * testsuite/libgomp.c/target-18.c (struct S): New type.
4727 (foo): Use use_device_addr clause instead of use_device_ptr clause
4728 where required by OpenMP 5.0, add further tests for both use_device_ptr
4729 and use_device_addr clauses.
4730 * testsuite/libgomp.c++/target-9.C (struct S): New type.
4731 (foo): Use use_device_addr clause instead of use_device_ptr clause
4732 where required by OpenMP 5.0, add further tests for both use_device_ptr
4733 and use_device_addr clauses. Add t and u arguments.
4734 (main): Adjust caller.
4736 2019-08-06 Jakub Jelinek <jakub@redhat.com>
4738 * testsuite/libgomp.c++/loop-13.C: New test.
4739 * testsuite/libgomp.c++/loop-14.C: New test.
4740 * testsuite/libgomp.c++/loop-15.C: New test.
4742 2019-07-31 Jakub Jelinek <jakub@redhat.com>
4745 * testsuite/libgomp.c++/for-27.C: New test.
4747 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
4749 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
4750 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
4752 2019-07-20 Jakub Jelinek <jakub@redhat.com>
4754 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
4756 2019-07-08 Jakub Jelinek <jakub@redhat.com>
4758 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
4759 * testsuite/libgomp.c++/scan-16.C: Likewise.
4761 2019-07-06 Jakub Jelinek <jakub@redhat.com>
4763 * testsuite/libgomp.c/scan-19.c: New test.
4764 * testsuite/libgomp.c/scan-20.c: New test.
4766 * testsuite/libgomp.c/scan-11.c: New test.
4767 * testsuite/libgomp.c/scan-12.c: New test.
4768 * testsuite/libgomp.c/scan-13.c: New test.
4769 * testsuite/libgomp.c/scan-14.c: New test.
4770 * testsuite/libgomp.c/scan-15.c: New test.
4771 * testsuite/libgomp.c/scan-16.c: New test.
4772 * testsuite/libgomp.c/scan-17.c: New test.
4773 * testsuite/libgomp.c/scan-18.c: New test.
4774 * testsuite/libgomp.c++/scan-9.C: New test.
4775 * testsuite/libgomp.c++/scan-10.C: New test.
4776 * testsuite/libgomp.c++/scan-11.C: New test.
4777 * testsuite/libgomp.c++/scan-12.C: New test.
4778 * testsuite/libgomp.c++/scan-13.C: New test.
4779 * testsuite/libgomp.c++/scan-14.C: New test.
4780 * testsuite/libgomp.c++/scan-15.C: New test.
4781 * testsuite/libgomp.c++/scan-16.C: New test.
4783 2019-07-04 Jakub Jelinek <jakub@redhat.com>
4785 * testsuite/libgomp.c/scan-9.c: New test.
4786 * testsuite/libgomp.c/scan-10.c: New test.
4788 2019-07-03 Jakub Jelinek <jakub@redhat.com>
4790 * testsuite/libgomp.c++/scan-1.C: New test.
4791 * testsuite/libgomp.c++/scan-2.C: New test.
4792 * testsuite/libgomp.c++/scan-3.C: New test.
4793 * testsuite/libgomp.c++/scan-4.C: New test.
4794 * testsuite/libgomp.c++/scan-5.C: New test.
4795 * testsuite/libgomp.c++/scan-6.C: New test.
4796 * testsuite/libgomp.c++/scan-7.C: New test.
4797 * testsuite/libgomp.c++/scan-8.C: New test.
4798 * testsuite/libgomp.c/scan-1.c: New test.
4799 * testsuite/libgomp.c/scan-2.c: New test.
4800 * testsuite/libgomp.c/scan-3.c: New test.
4801 * testsuite/libgomp.c/scan-4.c: New test.
4802 * testsuite/libgomp.c/scan-5.c: New test.
4803 * testsuite/libgomp.c/scan-6.c: New test.
4804 * testsuite/libgomp.c/scan-7.c: New test.
4805 * testsuite/libgomp.c/scan-8.c: New test.
4807 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
4809 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
4810 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
4813 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
4816 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
4818 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
4821 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
4824 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
4826 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
4827 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
4828 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
4829 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
4832 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
4835 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
4837 2019-06-16 Tom de Vries <tdevries@suse.de>
4839 PR tree-optimization/89376
4840 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
4842 2019-06-15 Tom de Vries <tdevries@suse.de>
4844 PR tree-optimization/89713
4845 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
4846 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
4848 2019-06-15 Jakub Jelinek <jakub@redhat.com>
4851 * testsuite/libgomp.c/pr90779.c: New test.
4852 * testsuite/libgomp.fortran/pr90779.f90: New test.
4854 2019-06-15 Tom de Vries <tdevries@suse.de>
4856 PR tree-optimization/90009
4857 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
4859 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
4861 PR tree-optimization/89713
4862 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
4864 2019-06-11 Jakub Jelinek <jakub@redhat.com>
4867 * testsuite/libgomp.c/pr90811.c: New test.
4869 2019-06-05 Jakub Jelinek <jakub@redhat.com>
4871 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
4872 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
4874 2019-06-04 Jakub Jelinek <jakub@redhat.com>
4876 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
4877 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
4878 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
4879 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
4881 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4883 * configure.ac: Call AX_COUNT_CPUS.
4884 Substitute CPU_COUNT.
4885 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
4887 * aclocal.m4: Regenerate.
4888 * configure: Regenerate.
4889 * Makefile.in, testsuite/Makefile.in: Regenerate.
4891 2019-05-29 Jakub Jelinek <jakub@redhat.com>
4893 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
4895 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
4896 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
4897 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
4899 2019-05-27 Jakub Jelinek <jakub@redhat.com>
4901 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
4903 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
4906 * work.c (gomp_init_work_share): Instead of aligning final ordered
4907 value to multiples of long long alignment, align to that the
4908 first part (ordered team ids) and if inline_ordered_team_ids
4909 is not on a long long alignment boundary within the structure,
4910 use __alignof__ (long long) - 1 pad size always.
4911 * loop.c (GOMP_loop_start): Fix *mem computation if
4912 inline_ordered_team_ids is not aligned on long long alignment boundary
4913 within the structure.
4914 * loop-ull.c (GOMP_loop_ull_start): Likewise.
4915 * sections.c (GOMP_sections2_start): Likewise.
4917 2019-05-24 Jakub Jelinek <jakub@redhat.com>
4919 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
4920 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
4923 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
4924 HAVE_INTTYPES_H is defined.
4925 (print_uint64_t): New typedef.
4926 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
4927 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
4928 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
4929 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
4930 before casting to void *.
4931 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
4932 * oacc-mem.c: Don't include config.h nor stdint.h.
4933 * target.c: Don't include config.h.
4934 * oacc-cuda.c: Likewise.
4935 * oacc-host.c: Don't include stdint.h.
4937 2019-05-20 Jakub Jelinek <jakub@redhat.com>
4940 * alloc.c (_GNU_SOURCE): Define.
4942 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
4944 * acc_prof.h: New file.
4945 * oacc-profiling.c: Likewise.
4946 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
4947 Add these, respectively.
4948 * Makefile.in: Regenerate.
4949 * env.c (initialize_env): Call goacc_profiling_initialize.
4950 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
4951 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
4952 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
4953 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
4954 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
4955 acc_prof_register, acc_prof_unregister, and acc_register_library.
4956 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
4957 GOMP_PLUGIN_goacc_thread.
4958 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
4959 prof_callbacks_enabled members.
4960 (goacc_prof_enabled, goacc_profiling_initialize)
4961 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
4962 (goacc_profiling_dispatch): Declare.
4963 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
4964 (GOACC_PROFILING_SETUP_P): Define.
4965 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
4966 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
4967 OpenACC Profiling Interface.
4968 * oacc-cuda.c (acc_get_current_cuda_device)
4969 (acc_get_current_cuda_context, acc_get_cuda_stream)
4970 (acc_set_cuda_stream): Likewise.
4971 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
4972 (acc_init, acc_set_device_type, acc_get_device_type)
4973 (acc_get_device_num, goacc_lazy_initialize): Likewise.
4974 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
4975 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
4976 (acc_unmap_data, present_create_copy, delete_copyout)
4977 (update_dev_host): Likewise.
4978 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
4979 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
4981 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
4982 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
4984 * libgomp.texi: Update.
4985 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
4987 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
4988 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4990 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
4992 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
4994 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
4997 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
4999 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
5000 (struct goacc_asyncqueue_list): Likewise.
5001 (goacc_aq): Likewise.
5002 (goacc_aq_list): Likewise.
5003 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
5004 (GOMP_OFFLOAD_openacc_async_test): Remove.
5005 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
5006 (GOMP_OFFLOAD_openacc_async_wait): Remove.
5007 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
5008 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
5009 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
5010 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
5011 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
5012 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
5013 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
5014 (GOMP_OFFLOAD_openacc_async_exec): Declare.
5015 (GOMP_OFFLOAD_openacc_async_construct): Declare.
5016 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
5017 (GOMP_OFFLOAD_openacc_async_test): Declare.
5018 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
5019 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
5020 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
5021 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
5022 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
5024 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
5025 (gomp_acc_insert_pointer): Adjust declaration.
5026 (gomp_copy_host2dev): New declaration.
5027 (gomp_copy_dev2host): Likewise.
5028 (gomp_map_vars_async): Likewise.
5029 (gomp_unmap_tgt): Likewise.
5030 (gomp_unmap_vars_async): Likewise.
5031 (gomp_fini_device): Likewise.
5033 * oacc-async.c (get_goacc_thread): New function.
5034 (get_goacc_thread_device): New function.
5035 (lookup_goacc_asyncqueue): New function.
5036 (get_goacc_asyncqueue): New function.
5037 (acc_async_test): Adjust code to use new async design.
5038 (acc_async_test_all): Likewise.
5039 (acc_wait): Likewise.
5040 (acc_wait_async): Likewise.
5041 (acc_wait_all): Likewise.
5042 (acc_wait_all_async): Likewise.
5043 (goacc_async_free): New function.
5044 (goacc_init_asyncqueues): Likewise.
5045 (goacc_fini_asyncqueues): Likewise.
5046 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
5048 (acc_set_cuda_stream): Likewise.
5049 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
5050 (host_openacc_register_async_cleanup): Remove.
5051 (host_openacc_async_exec): New function.
5052 (host_openacc_async_test): Adjust parameters.
5053 (host_openacc_async_test_all): Remove.
5054 (host_openacc_async_wait): Remove.
5055 (host_openacc_async_wait_async): Remove.
5056 (host_openacc_async_wait_all): Remove.
5057 (host_openacc_async_wait_all_async): Remove.
5058 (host_openacc_async_set_async): Remove.
5059 (host_openacc_async_synchronize): New function.
5060 (host_openacc_async_serialize): New function.
5061 (host_openacc_async_host2dev): New function.
5062 (host_openacc_async_dev2host): New function.
5063 (host_openacc_async_queue_callback): New function.
5064 (host_openacc_async_construct): New function.
5065 (host_openacc_async_destruct): New function.
5066 (struct gomp_device_descr host_dispatch): Remove initialization of old
5067 interface, add initialization of new async sub-struct.
5068 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
5069 (goacc_attach_host_thread_to_device): Remove old async code usage.
5070 * oacc-int.h (goacc_init_asyncqueues): New declaration.
5071 (goacc_fini_asyncqueues): Likewise.
5072 (goacc_async_copyout_unmap_vars): Likewise.
5073 (goacc_async_free): Likewise.
5074 (get_goacc_asyncqueue): Likewise.
5075 (lookup_goacc_asyncqueue): Likewise.
5076 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
5078 (present_create_copy): Adjust code to use new async design.
5079 (delete_copyout): Likewise.
5080 (update_dev_host): Likewise.
5081 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
5083 (gomp_acc_remove_pointer): Adjust code to use new async design.
5084 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
5086 (GOACC_enter_exit_data): Likewise.
5087 (goacc_wait): Likewise.
5088 (GOACC_update): Likewise.
5089 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
5090 when called, warn as obsolete in comment.
5091 * target.c (goacc_device_copy_async): New function.
5092 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
5093 add goacc_device_copy_async case.
5094 (gomp_copy_dev2host): Likewise.
5095 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
5096 (gomp_map_pointer): Likewise.
5097 (gomp_map_fields_existing): Likewise.
5098 (gomp_map_vars_internal): New always_inline function, renamed from
5100 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
5101 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
5102 passing goacc_asyncqueue argument.
5103 (gomp_unmap_tgt): Remove static, add attribute_hidden.
5104 (gomp_unref_tgt): New function.
5105 (gomp_unmap_vars_internal): New always_inline function, renamed from
5107 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
5108 (gomp_unmap_vars_async): Implement by calling
5109 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
5110 (gomp_fini_device): New function.
5111 (gomp_exit_data): Adjust gomp_copy_dev2host call.
5112 (gomp_load_plugin_for_device): Remove old interface, adjust to load
5113 new async interface.
5114 (gomp_target_fini): Adjust code to call gomp_fini_device.
5116 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
5117 (struct ptx_stream): Remove.
5118 (struct nvptx_thread): Remove current_stream field.
5119 (cuda_map_create): Remove.
5120 (cuda_map_destroy): Remove.
5125 (struct goacc_asyncqueue): Define.
5126 (struct nvptx_callback): Define.
5127 (struct ptx_free_block): Define.
5128 (struct ptx_device): Remove null_stream, active_streams, async_streams,
5129 stream_lock, and next fields.
5130 (enum ptx_event_type): Remove.
5131 (struct ptx_event): Remove.
5132 (ptx_event_lock): Remove.
5133 (ptx_events): Remove.
5134 (init_streams_for_device): Remove.
5135 (fini_streams_for_device): Remove.
5136 (select_stream_for_async): Remove.
5137 (nvptx_init): Remove ptx_events and ptx_event_lock references.
5138 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
5140 (nvptx_open_device): Add free_blocks initialization, remove
5141 init_streams_for_device call.
5142 (nvptx_close_device): Remove fini_streams_for_device call, add
5143 free_blocks destruct code.
5145 (event_add): Remove.
5146 (nvptx_exec): Adjust parameters and code.
5147 (nvptx_free): Likewise.
5148 (nvptx_host2dev): Remove.
5149 (nvptx_dev2host): Remove.
5150 (nvptx_set_async): Remove.
5151 (nvptx_async_test): Remove.
5152 (nvptx_async_test_all): Remove.
5153 (nvptx_wait): Remove.
5154 (nvptx_wait_async): Remove.
5155 (nvptx_wait_all): Remove.
5156 (nvptx_wait_all_async): Remove.
5157 (nvptx_get_cuda_stream): Remove.
5158 (nvptx_set_cuda_stream): Remove.
5159 (GOMP_OFFLOAD_alloc): Adjust code.
5160 (GOMP_OFFLOAD_free): Likewise.
5161 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
5162 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
5163 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
5164 (GOMP_OFFLOAD_openacc_async_wait): Remove.
5165 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
5166 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
5167 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
5168 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
5169 (cuda_free_argmem): New function.
5170 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
5171 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
5172 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
5173 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
5174 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
5175 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
5176 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
5177 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
5178 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
5179 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
5180 (cuda_callback_wrapper): New function.
5181 (cuda_memcpy_sanity_check): New function.
5182 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
5183 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
5184 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
5185 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
5187 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
5190 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
5192 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
5194 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
5196 2019-03-27 Kevin Buettner <kevinb@redhat.com>
5198 * team.c (gomp_team_start): Initialize pool->threads[0].
5200 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
5202 * testsuite/libgomp.oacc-c++/c++.exp: Specify
5203 "-foffload=$offload_target".
5204 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5205 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5206 * testsuite/lib/libgomp.exp
5207 (check_effective_target_openacc_nvidia_accel_configured): Remove,
5208 as (conceptually) merged into
5209 check_effective_target_openacc_nvidia_accel_selected. Adjust all
5212 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
5213 * testsuite/libgomp-test-support.exp.in: Adjust.
5214 * testsuite/lib/libgomp.exp: Likewise. Don't populate
5215 openacc_device_types_s.
5216 (offload_target_to_openacc_device_type): New proc.
5217 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
5218 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5219 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5220 * Makefile.in: Regenerate.
5221 * configure: Likewise.
5222 * testsuite/Makefile.in: Likewise.
5224 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
5225 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
5226 instead of OFFLOAD_TARGETS.
5227 * target.c (gomp_target_init): Adjust.
5228 * testsuite/libgomp-test-support.exp.in: Likewise.
5229 * testsuite/lib/libgomp.exp: Likewise. Populate
5230 openacc_device_types_s instead of offload_targets_s_openacc.
5231 (check_effective_target_openacc_nvidia_accel_selected)
5232 (check_effective_target_openacc_host_selected): Adjust.
5233 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
5234 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5235 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5236 * Makefile.in: Regenerate.
5237 * config.h.in: Likewise.
5238 * configure: Likewise.
5239 * testsuite/Makefile.in: Likewise.
5241 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
5242 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
5243 "offloading: supported, but hardware not accessible".
5244 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5245 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5247 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
5250 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
5252 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
5253 and related adjustment.
5255 2019-01-30 Jakub Jelinek <jakub@redhat.com>
5258 * testsuite/libgomp.c++/pr88988.C: New test.
5260 2019-01-28 Jakub Jelinek <jakub@redhat.com>
5263 * testsuite/libgomp.c/pr89002.c: New test.
5265 2019-01-28 Richard Biener <rguenther@suse.de>
5268 PR tree-optimization/86865
5269 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
5271 2019-01-24 Tom de Vries <tdevries@suse.de>
5273 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
5274 once instantiated_devices drops to 0.
5276 2019-01-23 Tom de Vries <tdevries@suse.de>
5279 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
5281 (nvptx_exec): Don't call map_push if mapnum == 0.
5282 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
5284 2019-01-23 Tom de Vries <tdevries@suse.de>
5288 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
5289 (map_fini): Remove "assert (!s->map->active)".
5290 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
5292 2019-01-23 Tom de Vries <tdevries@suse.de>
5295 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
5296 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
5298 2019-01-15 Tom de Vries <tdevries@suse.de>
5301 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
5304 2019-01-12 Tom de Vries <tdevries@suse.de>
5306 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
5307 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
5308 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
5309 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
5311 2019-01-12 Tom de Vries <tdevries@suse.de>
5313 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
5315 2019-01-12 Tom de Vries <tdevries@suse.de>
5317 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
5318 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
5319 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
5321 2019-01-12 Tom de Vries <tdevries@suse.de>
5324 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
5325 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
5327 2019-01-12 Tom de Vries <tdevries@suse.de>
5330 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
5331 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
5333 2019-01-12 Tom de Vries <tdevries@suse.de>
5335 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
5336 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
5337 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
5339 2019-01-12 Tom de Vries <tdevries@suse.de>
5341 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
5342 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
5343 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
5345 2019-01-12 Tom de Vries <tdevries@suse.de>
5347 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
5348 resources diagnostic.
5350 2019-01-12 Tom de Vries <tdevries@suse.de>
5352 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
5353 vector length to be 128.
5354 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
5355 length 2097152 to be reduced to 1024 instead of 32.
5357 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
5358 James Norris <jnorris@codesourcery.com>
5360 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
5361 Library Routines", and "Environment Variables".
5363 2019-01-11 Tom de Vries <tdevries@suse.de>
5365 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
5368 2019-01-11 Tom de Vries <tdevries@suse.de>
5370 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
5372 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
5373 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
5374 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
5375 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
5377 2019-01-11 Tom de Vries <tdevries@suse.de>
5379 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
5382 2019-01-10 Nathan Sidwell <nathan@acm.org>
5383 Julian Brown <julian@codesourcery.com>
5386 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
5387 * testsuite/libgomp.oacc-c++/pr71959.C: New.
5389 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5391 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
5394 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5396 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
5397 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
5400 2019-01-09 Tom de Vries <tdevries@suse.de>
5403 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
5404 #define instead of "const int".
5405 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
5406 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
5407 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
5408 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
5410 2019-01-09 Tom de Vries <tdevries@suse.de>
5412 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
5415 2019-01-07 Tom de Vries <tdevries@suse.de>
5417 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
5418 GOMP_OPENACC_DIM argument.
5420 2019-01-03 Tom de Vries <tdevries@suse.de>
5422 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
5423 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
5425 2019-01-01 Jakub Jelinek <jakub@redhat.com>
5427 Update copyright years.
5429 2019-01-01 Jakub Jelinek <jakub@redhat.com>
5431 * libgomp.texi: Bump @copying's copyright year.
5433 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
5435 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
5436 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
5437 (GOACC_declare): Redefine the "device" argument to "flags".
5439 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
5440 Cesar Philippidis <cesar@codesourcery.com>
5442 * target.c (struct gomp_coalesce_chunk): New structure.
5443 (struct gomp_coalesce_buf): Update the chunks member to use that
5444 type. Adjust all users.
5446 2018-12-19 Tom de Vries <tdevries@suse.de>
5448 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
5449 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
5450 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
5452 2018-12-19 Tom de Vries <tdevries@suse.de>
5454 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
5455 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
5456 gcc/testsuite/gcc.dg/goacc.
5457 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
5459 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
5460 Chung-Lin Tang <cltang@codesourcery.com>
5462 * oacc-mem.c (acc_present_or_create): Remove definition and change
5463 to alias of acc_create.
5464 (acc_present_or_copyin): Remove definition and change to alias of
5466 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
5467 of acc_present_or_create.
5468 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
5469 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5470 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5471 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5472 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5473 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5474 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5475 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5476 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5477 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5478 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5479 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5480 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5481 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5482 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5483 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5485 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
5488 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
5489 "identical parameters".
5490 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
5491 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
5494 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
5495 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
5498 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
5499 (nvptx_wait_async): Unseen async-argument is a no-op.
5500 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
5501 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
5502 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5503 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5504 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
5505 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
5506 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
5507 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
5508 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
5510 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
5511 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5513 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
5515 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
5516 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5517 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5519 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
5522 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
5523 (acc_set_cuda_stream): Clarify.
5524 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
5526 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
5528 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
5529 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
5530 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
5531 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5533 2018-12-14 Tom de Vries <tdevries@suse.de>
5535 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
5536 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
5537 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
5538 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
5539 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
5541 2018-12-13 Tom de Vries <tdevries@suse.de>
5543 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
5544 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
5545 * fortran.c (omp_display_affinity_): ... here.
5546 * libgomp.h (gomp_print_string): Declare.
5547 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
5548 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
5551 2018-12-13 Jakub Jelinek <jakub@redhat.com>
5554 * testsuite/libgomp.c++/for-24.C (results): Include it in
5555 omp declare target region.
5556 (main): Use map (always, tofrom: results) instead of
5557 map (tofrom: results).
5559 2018-12-12 Jakub Jelinek <jakub@redhat.com>
5562 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
5563 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
5565 * testsuite/libgomp.c-c++-common/for-16.c: New test.
5567 2018-12-12 Andreas Schwab <schwab@suse.de>
5569 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
5572 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
5575 * testsuite/libgomp.fortran/async_io_8.f90: New test.
5577 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
5578 Jakub Jelinek <jakub@redhat.com>
5580 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
5581 devicep->host2dev_func.
5583 2018-12-08 Jakub Jelinek <jakub@redhat.com>
5586 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
5587 tls_runtime effective target.
5588 (t): New threadprivate variable.
5589 (main): Set t in threads which execute iterations of the worksharing
5590 loop. Propagate that to the task after the loop and don't abort
5591 if the current taskgroup hasn't been cancelled.
5593 2018-12-02 Jakub Jelinek <jakub@redhat.com>
5595 * testsuite/libgomp.c/task-reduction-3.c: New test.
5597 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
5599 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
5602 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
5603 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
5605 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
5607 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
5609 2018-10-19 Richard Biener <rguenther@suse.de>
5611 PR tree-optimization/88182
5612 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
5614 2018-11-26 Jakub Jelinek <jakub@redhat.com>
5616 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
5617 (RUNTEST): Don't define.
5618 (RUNTESTDEFAULTFLAGS): Add.
5619 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
5620 (distclean-am): Depend on distclean-DEJAGNU.
5621 (check-am): If -j% option is present in MFLAGS and if
5622 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
5623 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
5624 * testsuite/Makefile.in: Regenerated.
5626 2018-11-26 Richard Biener <rguenther@suse.de>
5628 PR tree-optimization/88182
5629 * testsuite/libgomp.c++/pr88182.C: New testcase.
5631 2018-11-20 Jakub Jelinek <jakub@redhat.com>
5634 * config/mingw32/affinity-fmt.c: New file.
5636 2018-11-09 Jakub Jelinek <jakub@redhat.com>
5638 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
5639 (gomp_display_affinity): Use __builtin_choose_expr to handle
5640 properly handle argument having integral, or pointer or some other
5641 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
5642 with uint64_t type instead of %llx and unsigned long long.
5644 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
5645 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
5647 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5649 * affinity.c: Include <string.h>, <stdio.h>.
5650 (gomp_display_affinity_place): Remove cpusetp.
5651 * teams.c: Include <limits.h>.
5653 2018-11-08 Jakub Jelinek <jakub@redhat.com>
5655 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
5656 in_reduction clause for s[0].
5658 * affinity.c (gomp_display_affinity_place): New function.
5659 * affinity-fmt.c: New file.
5660 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
5661 * config/linux/affinity.c (gomp_display_affinity_place): New function.
5662 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
5663 Move these functions to ...
5664 * config/nvptx/teams.c: ... here. New file.
5665 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
5667 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
5669 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
5670 and _aligned_malloc.
5671 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
5672 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
5673 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
5674 gomp_affinity_format_len): New variables.
5675 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
5676 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
5677 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
5678 modifiers. Display (non-default) chunk sizes. Print
5679 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
5680 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
5681 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
5682 * fortran.c: Include stdio.h and string.h.
5683 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
5684 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
5685 (omp_set_affinity_format_, omp_get_affinity_format_,
5686 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
5687 omp_pause_resource_all_): New functions.
5688 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
5690 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
5692 * teams.c: ... here. New file.
5693 * libgomp_g.h: Include gstdint.h.
5694 (GOMP_loop_nonmonotonic_runtime_start,
5695 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
5696 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
5697 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
5698 GOMP_parallel_loop_nonmonotonic_runtime,
5699 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5700 GOMP_loop_ull_nonmonotonic_runtime_start,
5701 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
5702 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
5703 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5704 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
5705 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
5706 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5707 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
5708 GOMP_teams_reg): Declare.
5709 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
5710 gomp_aligned_alloc uses fallback implementation.
5711 (gomp_aligned_alloc, gomp_aligned_free): Declare.
5712 (enum gomp_schedule_type): Add GFS_MONOTONIC.
5713 (struct gomp_doacross_work_share): Add extra field.
5714 (struct gomp_work_share): Add task_reductions field.
5715 (struct gomp_taskgroup): Add workshare and reductions fields.
5716 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
5717 (gomp_thread_handle): New typedef.
5718 (gomp_display_affinity_place, gomp_set_affinity_format,
5719 gomp_display_string, gomp_display_affinity,
5720 gomp_display_affinity_thread): Declare.
5721 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
5722 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
5723 gomp_workshare_task_reduction_register): Declare.
5724 (gomp_team_start): Add taskgroup argument.
5725 (gomp_pause_host): Declare.
5726 (gomp_init_work_share, gomp_work_share_start): Change bool argument
5728 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
5729 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
5730 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
5731 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
5732 GOMP_loop_ull_doacross_start,
5733 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
5734 GOMP_loop_maybe_nonmonotonic_runtime_next,
5735 GOMP_loop_maybe_nonmonotonic_runtime_start,
5736 GOMP_loop_nonmonotonic_runtime_next,
5737 GOMP_loop_nonmonotonic_runtime_start,
5738 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5739 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
5740 GOMP_loop_ull_nonmonotonic_runtime_next,
5741 GOMP_loop_ull_nonmonotonic_runtime_start,
5742 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5743 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
5744 GOMP_taskgroup_reduction_register,
5745 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5746 GOMP_teams_reg and GOMP_taskwait_depend.
5747 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
5748 omp_{capture,display}_affinity{,_}, and
5749 omp_[gs]et_affinity_format{,_}.
5750 * loop.c: Include string.h.
5751 (GOMP_loop_runtime_next): Add ialias.
5752 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5753 (gomp_loop_static_start, gomp_loop_dynamic_start,
5754 gomp_loop_guided_start, gomp_loop_ordered_static_start,
5755 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
5756 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
5757 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
5758 or gomp_doacross_init callers.
5759 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
5760 GOMP_loop_doacross_start): New functions.
5761 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
5762 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
5763 Mask off GFS_MONOTONIC bit.
5764 (GOMP_loop_maybe_nonmonotonic_runtime_next,
5765 GOMP_loop_maybe_nonmonotonic_runtime_start,
5766 GOMP_loop_nonmonotonic_runtime_next,
5767 GOMP_loop_nonmonotonic_runtime_start,
5768 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5769 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
5771 (gomp_parallel_loop_start): Pass NULL as taskgroup to
5773 * loop_ull.c: Include string.h.
5774 (GOMP_loop_ull_runtime_next): Add ialias.
5775 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5776 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
5777 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
5778 gomp_loop_ull_ordered_dynamic_start,
5779 gomp_loop_ull_ordered_guided_start,
5780 gomp_loop_ull_doacross_static_start,
5781 gomp_loop_ull_doacross_dynamic_start,
5782 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
5783 and gomp_doacross_ull_init callers.
5784 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
5785 GOMP_loop_ull_doacross_start): New functions.
5786 (GOMP_loop_ull_runtime_start,
5787 GOMP_loop_ull_ordered_runtime_start,
5788 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
5789 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5790 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
5791 GOMP_loop_ull_nonmonotonic_runtime_next,
5792 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
5793 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
5794 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
5795 (omp_pause_resource_t, omp_depend_t): New typedefs.
5796 (enum omp_lock_hint_t): Renamed to ...
5797 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
5798 enumerators using numbers and omp_lock_hint_* as their aliases.
5799 (omp_lock_hint_t): New typedef. Rename to ...
5800 (omp_sync_hint_t): ... this.
5801 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
5802 omp_sync_hint_t instead of omp_lock_hint_t.
5803 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5804 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5806 (omp_target_is_present, omp_target_disassociate_ptr):
5807 Change first argument from void * to const void *.
5808 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
5809 from void * to const void *.
5810 (omp_target_associate_ptr): Change first and second arguments from
5811 void * to const void *.
5812 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
5813 omp_pause_hard): New parameters.
5814 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5815 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5817 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
5818 omp_pause_hard): New parameters.
5819 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5820 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5822 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
5823 EXTRA argument. If not needed to prepare array, if extra is 0,
5824 clear ws->doacross, otherwise allocate just doacross structure and
5825 extra payload. If array is needed, allocate also extra payload.
5826 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
5827 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
5829 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
5831 (GOMP_parallel): Likewise. Formatting fix.
5832 (GOMP_parallel_reductions): New function.
5833 (GOMP_cancellation_point): If taskgroup has workshare
5834 flag set, check cancelled of prev taskgroup if any.
5835 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
5836 on prev taskgroup if any.
5837 * sections.c: Include string.h.
5838 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5839 (GOMP_sections_start): Adjust gomp_work_share_start caller.
5840 (GOMP_sections2_start): New function.
5841 (GOMP_parallel_sections_start, GOMP_parallel_sections):
5842 Pass NULL as taskgroup to gomp_team_start.
5843 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
5844 gomp_work_share_start callers.
5845 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
5846 If taskgroup has workshare flag set, check cancelled on prev
5847 taskgroup if any. Guard all cancellation tests with
5848 gomp_cancel_var test.
5849 (omp_target_is_present, omp_target_disassociate_ptr):
5850 Change ptr argument from void * to const void *.
5851 (omp_target_memcpy): Change src argument from void * to const void *.
5852 (omp_target_memcpy_rect): Likewise.
5853 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
5854 instead of char * where needed.
5855 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
5856 from void * to const void *.
5857 (omp_pause_resource, omp_pause_resource_all): New functions.
5858 * task.c (gomp_task_handle_depend): Handle new depend array format
5859 in addition to the old. Handle mutexinoutset kinds the same as
5860 inout for now, handle unspecified kinds.
5861 (gomp_create_target_task): If taskgroup has workshare flag set, check
5862 cancelled on prev taskgroup if any. Guard all cancellation tests with
5863 gomp_cancel_var test. Handle new depend array format count in
5864 addition to the old.
5865 (GOMP_task): Likewise. Adjust function comment.
5866 (gomp_task_run_pre): If taskgroup has workshare flag set, check
5867 cancelled on prev taskgroup if any. Guard all cancellation tests with
5868 gomp_cancel_var test.
5869 (GOMP_taskwait_depend): New function.
5870 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
5871 format in addition to the old. Handle mutexinoutset kinds the same as
5872 inout for now, handle unspecified kinds. Fix a function comment typo.
5873 (gomp_taskgroup_init): New function.
5874 (GOMP_taskgroup_start): Use it.
5875 (gomp_reduction_register, gomp_create_artificial_team,
5876 GOMP_taskgroup_reduction_register,
5877 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5878 gomp_parallel_reduction_register,
5879 gomp_workshare_task_reduction_register,
5880 gomp_workshare_taskgroup_start,
5881 GOMP_workshare_task_reduction_unregister): New functions.
5882 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
5883 check cancelled on prev taskgroup if any. Guard all cancellation
5884 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
5885 by calling GOMP_taskgroup_reduction_register.
5886 * team.c (gomp_thread_attr): Remove comment.
5887 (struct gomp_thread_start_data): Add handle field.
5888 (gomp_thread_start): Call pthread_detach.
5889 (gomp_new_team): Adjust gomp_init_work_share caller.
5890 (gomp_free_pool_helper): Call pthread_detach.
5891 (gomp_team_start): Add taskgroup argument, initialize implicit
5892 tasks' taskgroup field to that. Don't call
5893 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
5894 (gomp_team_end): Determine nesting by thr->ts.level != 0
5895 rather than thr->ts.team != NULL.
5896 (gomp_pause_pool_helper, gomp_pause_host): New functions.
5897 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
5898 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
5899 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
5900 if more than 1 allocate also extra payload at the end of array. Never
5901 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
5902 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
5903 return true instead of ws.
5904 * Makefile.in: Regenerated.
5905 * configure: Regenerated.
5906 * config.h.in: Regenerated.
5907 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
5909 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
5910 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
5911 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
5912 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
5913 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
5914 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
5915 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
5916 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
5917 * testsuite/libgomp.c-c++-common/for-10.c: New test.
5918 * testsuite/libgomp.c-c++-common/for-11.c: New test.
5919 * testsuite/libgomp.c-c++-common/for-12.c: New test.
5920 * testsuite/libgomp.c-c++-common/for-13.c: New test.
5921 * testsuite/libgomp.c-c++-common/for-14.c: New test.
5922 * testsuite/libgomp.c-c++-common/for-15.c: New test.
5923 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
5924 define a different N(test), don't define N(f0) to N(f14), but instead
5925 define N(f20) to N(f34) using != comparisons.
5926 * testsuite/libgomp.c-c++-common/for-7.c: New test.
5927 * testsuite/libgomp.c-c++-common/for-8.c: New test.
5928 * testsuite/libgomp.c-c++-common/for-9.c: New test.
5929 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
5930 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
5931 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
5932 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
5933 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
5934 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
5935 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
5936 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
5937 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
5938 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
5939 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
5940 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
5941 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
5942 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
5943 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
5944 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
5945 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
5946 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
5947 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
5948 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
5949 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
5950 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
5951 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
5952 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
5953 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
5954 * testsuite/libgomp.c++/depend-1.C: New test.
5955 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
5956 * testsuite/libgomp.c++/depobj-1.C: New test.
5957 * testsuite/libgomp.c++/for-16.C: New test.
5958 * testsuite/libgomp.c++/for-21.C: New test.
5959 * testsuite/libgomp.c++/for-22.C: New test.
5960 * testsuite/libgomp.c++/for-23.C: New test.
5961 * testsuite/libgomp.c++/for-24.C: New test.
5962 * testsuite/libgomp.c++/for-25.C: New test.
5963 * testsuite/libgomp.c++/for-26.C: New test.
5964 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
5965 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
5966 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
5967 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
5968 * testsuite/libgomp.c++/task-reduction-10.C: New test.
5969 * testsuite/libgomp.c++/task-reduction-11.C: New test.
5970 * testsuite/libgomp.c++/task-reduction-12.C: New test.
5971 * testsuite/libgomp.c++/task-reduction-13.C: New test.
5972 * testsuite/libgomp.c++/task-reduction-14.C: New test.
5973 * testsuite/libgomp.c++/task-reduction-15.C: New test.
5974 * testsuite/libgomp.c++/task-reduction-16.C: New test.
5975 * testsuite/libgomp.c++/task-reduction-17.C: New test.
5976 * testsuite/libgomp.c++/task-reduction-18.C: New test.
5977 * testsuite/libgomp.c++/task-reduction-19.C: New test.
5978 * testsuite/libgomp.c/task-reduction-1.c: New test.
5979 * testsuite/libgomp.c++/task-reduction-1.C: New test.
5980 * testsuite/libgomp.c/task-reduction-2.c: New test.
5981 * testsuite/libgomp.c++/task-reduction-2.C: New test.
5982 * testsuite/libgomp.c++/task-reduction-3.C: New test.
5983 * testsuite/libgomp.c++/task-reduction-4.C: New test.
5984 * testsuite/libgomp.c++/task-reduction-5.C: New test.
5985 * testsuite/libgomp.c++/task-reduction-6.C: New test.
5986 * testsuite/libgomp.c++/task-reduction-7.C: New test.
5987 * testsuite/libgomp.c++/task-reduction-8.C: New test.
5988 * testsuite/libgomp.c++/task-reduction-9.C: New test.
5989 * testsuite/libgomp.c/teams-1.c: New test.
5990 * testsuite/libgomp.c/teams-2.c: New test.
5991 * testsuite/libgomp.c/thread-limit-4.c: New test.
5992 * testsuite/libgomp.c/thread-limit-5.c: New test.
5993 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
5995 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
5997 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
5998 acc_memcpy_to/from_device functions, now with async parameter.
5999 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
6000 (acc_memcpy_from_device): Likewise.
6001 (acc_memcpy_to_device_async): New API function.
6002 (acc_memcpy_from_device_async): Likewise.
6003 (present_create_copy): Add async parameter and async setting/unsetting.
6004 (acc_create): Adjust present_create_copy call.
6005 (acc_copyin): Likewise.
6006 (acc_present_or_create): Likewise.
6007 (acc_present_or_copyin): Likewise.
6008 (acc_create_async): New API function.
6009 (acc_copyin_async): New API function.
6010 (delete_copyout): Add async parameter and async setting/unsetting.
6011 (acc_delete): Adjust delete_copyout call.
6012 (acc_copyout): Likewise.
6013 (acc_delete_async): New API function.
6014 (acc_copyout_async): Likewise.
6015 (update_dev_host): Add async parameter and async setting/unsetting.
6016 (acc_update_device): Adjust update_dev_host call.
6017 (acc_update_self): Likewise.
6018 (acc_update_device_async): New API function.
6019 (acc_update_self_async): Likewise.
6020 * openacc.h (acc_copyin_async): Declare new API function.
6021 (acc_create_async): Likewise.
6022 (acc_copyout_async): Likewise.
6023 (acc_delete_async): Likewise.
6024 (acc_update_device_async): Likewise.
6025 (acc_update_self_async): Likewise.
6026 (acc_memcpy_to_device_async): Likewise.
6027 (acc_memcpy_from_device_async): Likewise.
6028 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
6029 (acc_copyin_async_64_h): New subroutine.
6030 (acc_copyin_async_array_h): New subroutine.
6031 (acc_create_async_32_h): New subroutine.
6032 (acc_create_async_64_h): New subroutine.
6033 (acc_create_async_array_h): New subroutine.
6034 (acc_copyout_async_32_h): New subroutine.
6035 (acc_copyout_async_64_h): New subroutine.
6036 (acc_copyout_async_array_h): New subroutine.
6037 (acc_delete_async_32_h): New subroutine.
6038 (acc_delete_async_64_h): New subroutine.
6039 (acc_delete_async_array_h): New subroutine.
6040 (acc_update_device_async_32_h): New subroutine.
6041 (acc_update_device_async_64_h): New subroutine.
6042 (acc_update_device_async_array_h): New subroutine.
6043 (acc_update_self_async_32_h): New subroutine.
6044 (acc_update_self_async_64_h): New subroutine.
6045 (acc_update_self_async_array_h): New subroutine.
6046 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
6047 (acc_copyin_async_64_h): New subroutine.
6048 (acc_copyin_async_array_h): New subroutine.
6049 (acc_create_async_32_h): New subroutine.
6050 (acc_create_async_64_h): New subroutine.
6051 (acc_create_async_array_h): New subroutine.
6052 (acc_copyout_async_32_h): New subroutine.
6053 (acc_copyout_async_64_h): New subroutine.
6054 (acc_copyout_async_array_h): New subroutine.
6055 (acc_delete_async_32_h): New subroutine.
6056 (acc_delete_async_64_h): New subroutine.
6057 (acc_delete_async_array_h): New subroutine.
6058 (acc_update_device_async_32_h): New subroutine.
6059 (acc_update_device_async_64_h): New subroutine.
6060 (acc_update_device_async_array_h): New subroutine.
6061 (acc_update_self_async_32_h): New subroutine.
6062 (acc_update_self_async_64_h): New subroutine.
6063 (acc_update_self_async_array_h): New subroutine.
6064 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
6065 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
6066 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
6067 acc_memcpy_to_device_async*, acc_update_device_async*, and
6068 acc_update_self_async* entries.
6069 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
6070 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
6071 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
6073 2018-10-31 Joseph Myers <joseph@codesourcery.com>
6076 * Makefile.am: Include multilib.am
6077 (AUTOMAKE_OPTIONS): Add info-in-builddir.
6078 (CLEANFILES): Remove libgomp.info.
6079 * configure.ac: Remove AC_PREREQ.
6080 * testsuite/Makefile.am (RUNTEST): Remove quotes.
6081 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
6084 2018-10-29 Joseph Myers <joseph@codesourcery.com>
6085 Julian Brown <julian@codesourcery.com>
6087 * testsuite/libgomp.oacc-c++/this.C: New.
6089 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
6091 * plugin/plugin-nvptx.c (struct cuda_map): New.
6092 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
6093 h_tail with (cuda_map *) map.
6094 (cuda_map_create): New function.
6095 (cuda_map_destroy): New function.
6096 (map_init): Update to use a linked list of cuda_map objects.
6097 (map_fini): Likewise.
6098 (map_pop): Likewise.
6099 (map_push): Likewise. Return CUdeviceptr instead of void.
6100 (init_streams_for_device): Remove stales references to ptx_stream
6102 (select_stream_for_async): Likewise.
6103 (nvptx_exec): Update call to map_init.
6105 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
6106 Julian Brown <julian@codesourcery.com>
6109 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
6111 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
6112 Thomas Koenig <tkoenig@gcc.gnu.org>
6115 * testsuite/libgomp.fortran/async_io_1.f90: New test.
6116 * testsuite/libgomp.fortran/async_io_2.f90: New test.
6117 * testsuite/libgomp.fortran/async_io_3.f90: New test.
6118 * testsuite/libgomp.fortran/async_io_4.f90: New test.
6119 * testsuite/libgomp.fortran/async_io_5.f90: New test.
6120 * testsuite/libgomp.fortran/async_io_6.f90: New test.
6121 * testsuite/libgomp.fortran/async_io_7.f90: New test.
6123 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
6124 Tom de Vries <tdevries@suse.de>
6127 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
6128 (cuOccupancyMaxPotentialBlockSize): Declare.
6129 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
6130 CUDA_ONE_CALL_MAYBE_NULL.
6131 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
6132 CUoccupancyB2DSize and declare
6133 cuOccupancyMaxPotentialBlockSize.
6134 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
6135 default num_gangs and num_workers when the driver supports it.
6137 2018-08-08 Tom de Vries <tdevries@suse.de>
6139 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
6140 CUDA_ONE_CALL_MAYBE_NULL.
6141 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
6142 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
6143 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
6146 2018-08-08 Tom de Vries <tdevries@suse.de>
6148 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
6149 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
6152 2018-08-08 Tom de Vries <tdevries@suse.de>
6154 * plugin/plugin-nvptx.c
6155 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
6156 (nvptx_open_device): Use
6157 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
6159 2018-08-08 Tom de Vries <tdevries@suse.de>
6161 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
6162 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
6164 2018-08-07 Tom de Vries <tdevries@suse.de>
6166 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
6167 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
6168 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
6169 corresponding call in CUDA_ONE_CALL. Add def/undef of
6170 CUDA_ONE_CALL_MAYBE_NULL.
6171 (CUDA_CALL_EXISTS): Define.
6173 2018-08-07 Tom de Vries <tdevries@suse.de>
6175 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
6176 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
6177 corresponding undefs right after.
6179 2018-08-04 Tom de Vries <tdevries@suse.de>
6181 * plugin/configfrag.ac: For --without-cuda-driver, set
6182 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
6183 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
6184 * configure: Regenerate.
6186 2018-08-02 Tom de Vries <tdevries@suse.de>
6189 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
6190 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
6191 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
6193 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
6194 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
6195 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
6197 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
6198 Thomas Schwinge <thomas@codesourcery.com>
6200 * config/nvptx/oacc-parallel.c: Truncate.
6202 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
6203 James Norris <jnorris@codesourcery.com>
6205 * plugin/plugin-nvptx.c (struct map): Removed.
6206 (map_init, map_pop): Remove use of struct map.
6207 (map_push): Likewise and change argument list.
6208 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
6210 2018-08-01 Tom de Vries <tdevries@suse.de>
6212 * plugin/cuda-lib.def: New file. Factor out of ...
6213 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
6214 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
6217 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6219 Revert 'AsyncI/O patch committed'.
6220 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
6221 Thomas Koenig <tkoenig@gcc.gnu.org>
6224 * testsuite/libgomp.fortran/async_io_1.f90: New test.
6225 * testsuite/libgomp.fortran/async_io_2.f90: New test.
6226 * testsuite/libgomp.fortran/async_io_3.f90: New test.
6227 * testsuite/libgomp.fortran/async_io_4.f90: New test.
6228 * testsuite/libgomp.fortran/async_io_5.f90: New test.
6229 * testsuite/libgomp.fortran/async_io_6.f90: New test.
6230 * testsuite/libgomp.fortran/async_io_7.f90: New test.
6232 2018-07-30 Tom de Vries <tdevries@suse.de>
6234 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
6235 (nvptx_exec): Ensure worker and vector default dims don't exceed
6236 targ_fn->max_threads_per_block.
6238 2018-07-30 Tom de Vries <tdevries@suse.de>
6240 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
6241 (nvptx_open_device): Init default_dims for device.
6242 (nvptx_exec): Use default_dims from device.
6244 2018-07-26 Jakub Jelinek <jakub@redhat.com>
6247 * testsuite/libgomp.c++/for-15.C (results): Include it in
6248 omp declare target region.
6249 (main): Use map (always, tofrom: results) instead of
6250 map (tofrom: results).
6253 * testsuite/libgomp.c/pr86660.c: New test.
6255 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
6256 Tom de Vries <tdevries@suse.de>
6258 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
6259 sufficient resources to launch a kernel, and give a hint on how to fix
6262 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
6263 Tom de Vries <tdevries@suse.de>
6265 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
6266 max_threads_per_block and max_threads_per_multiprocessor fields.
6267 (nvptx_open_device): Initialize new fields.
6268 (nvptx_exec): Use num_sms, and new fields.
6270 2018-07-26 Tom de Vries <tdevries@suse.de>
6272 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
6273 to correct locations. Remove xfail.
6275 2018-07-26 Tom de Vries <tdevries@suse.de>
6277 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
6278 acc_wait. Move acc_async_test calls to correct locations. Remove
6281 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
6282 Thomas Koenig <tkoenig@gcc.gnu.org>
6285 * testsuite/libgomp.fortran/async_io_1.f90: New test.
6286 * testsuite/libgomp.fortran/async_io_2.f90: New test.
6287 * testsuite/libgomp.fortran/async_io_3.f90: New test.
6288 * testsuite/libgomp.fortran/async_io_4.f90: New test.
6289 * testsuite/libgomp.fortran/async_io_5.f90: New test.
6290 * testsuite/libgomp.fortran/async_io_6.f90: New test.
6291 * testsuite/libgomp.fortran/async_io_7.f90: New test.
6293 2018-07-17 Jakub Jelinek <jakub@redhat.com>
6296 * testsuite/libgomp.c++/pr86542.C: New test.
6299 * testsuite/libgomp.c++/pr86539.C: New test.
6301 2018-07-11 Jakub Jelinek <jakub@redhat.com>
6304 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
6305 (results): Make sure the variable is not inside declare target region.
6306 (qux): Remove unused function.
6308 2018-07-10 Jakub Jelinek <jakub@redhat.com>
6311 * testsuite/libgomp.c++/for-15.C: New test.
6313 2018-06-26 Jakub Jelinek <jakub@redhat.com>
6316 * testsuite/libgomp.c++/pr86291.C: New test.
6318 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
6320 * libgomp.texi (Top): Move www.openmp.org to https.
6321 (Enabling OpenMP): Ditto.
6322 (omp_get_active_level): Ditto.
6323 (omp_get_ancestor_thread_num): Ditto.
6324 (omp_get_cancellation): Ditto.
6325 (omp_get_default_device): Ditto.
6326 (omp_get_dynamic): Ditto.
6327 (omp_get_level): Ditto.
6328 (omp_get_max_active_levels): Ditto.
6329 (omp_get_max_task_priority): Ditto.
6330 (omp_get_max_threads): Ditto.
6331 (omp_get_nested): Ditto.
6332 (omp_get_num_devices): Ditto.
6333 (omp_get_num_procs): Ditto.
6334 (omp_get_num_teams): Ditto.
6335 (omp_get_num_threads): Ditto.
6336 (omp_get_proc_bind): Ditto.
6337 (omp_get_schedule): Ditto.
6338 (omp_get_team_num): Ditto.
6339 (omp_get_team_size): Ditto.
6340 (omp_get_thread_limit): Ditto.
6341 (omp_get_thread_num): Ditto.
6342 (omp_in_parallel): Ditto.
6343 (omp_in_final): Ditto.
6344 (omp_is_initial_device): Ditto.
6345 (omp_set_default_device): Ditto.
6346 (omp_set_dynamic): Ditto.
6347 (omp_set_max_active_levels): Ditto.
6348 (omp_set_nested): Ditto.
6349 (omp_set_num_threads): Ditto.
6350 (omp_set_schedule): Ditto.
6351 (omp_init_lock): Ditto.
6352 (omp_set_lock): Ditto.
6353 (omp_test_lock): Ditto.
6354 (omp_unset_lock): Ditto.
6355 (omp_destroy_lock): Ditto.
6356 (omp_init_nest_lock): Ditto.
6357 (omp_set_nest_lock): Ditto.
6358 (omp_test_nest_lock): Ditto.
6359 (omp_unset_nest_lock): Ditto.
6360 (omp_destroy_nest_lock): Ditto.
6361 (omp_get_wtick): Ditto.
6362 (omp_get_wtime): Ditto.
6363 (OMP_CANCELLATION): Ditto.
6364 (OMP_DISPLAY_ENV): Ditto.
6365 (OMP_DEFAULT_DEVICE): Ditto.
6366 (OMP_DYNAMIC): Ditto.
6367 (OMP_MAX_ACTIVE_LEVELS): Ditto.
6368 (OMP_MAX_TASK_PRIORITY): Ditto.
6369 (OMP_NESTED): Ditto.
6370 (OMP_NUM_THREADS): Ditto.
6371 (OMP_PROC_BIND): Ditto.
6372 (OMP_PLACES): Ditto.
6373 (OMP_STACKSIZE): Ditto.
6374 (OMP_SCHEDULE): Ditto.
6375 (OMP_THREAD_LIMIT): Ditto.
6376 (OMP_WAIT_POLICY): Ditto.
6378 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
6379 James Norris <jnorris@codesourcery.com>
6380 Julian Brown <julian@codesourcery.com>
6381 Thomas Schwinge <thomas@codesourcery.com>
6382 Tom de Vries <tom@codesourcery.com>
6384 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
6385 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
6386 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
6387 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
6388 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
6389 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
6390 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
6391 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
6392 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
6393 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
6395 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6397 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6399 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
6401 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
6403 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6405 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
6407 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
6409 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
6411 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
6413 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
6415 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
6417 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
6419 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
6421 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
6423 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
6425 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
6427 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
6429 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
6431 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
6433 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
6435 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
6437 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
6439 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
6441 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
6443 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
6445 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
6447 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
6448 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
6449 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
6450 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
6451 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
6452 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
6453 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
6454 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
6455 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
6457 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
6459 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
6460 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
6461 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
6463 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
6464 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
6465 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
6467 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6469 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6471 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6473 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6475 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
6477 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
6479 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
6481 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
6483 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
6485 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
6487 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
6489 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
6491 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
6493 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
6495 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
6496 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
6497 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
6498 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
6499 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
6500 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
6501 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
6503 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
6504 Thomas Schwinge <thomas@codesourcery.com>
6505 Cesar Philippidis <cesar@codesourcery.com>
6507 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
6508 (gomp_acc_remove_pointer): Update declaration.
6509 (gomp_acc_declare_allocate): Declare.
6510 (gomp_remove_var): Declare.
6511 * libgomp.map (OACC_2.5): Define.
6512 * oacc-mem.c (acc_map_data): Update refcount.
6513 (acc_unmap_data): Likewise.
6514 (present_create_copy): Likewise.
6515 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
6516 (acc_copyin): Likewise.
6517 (FLAG_FINALIZE): Define.
6518 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
6519 (acc_delete_finalize): New function.
6520 (acc_delete_finalize_async): New function.
6521 (acc_copyout_finalize): New function.
6522 (acc_copyout_finalize_async): New function.
6523 (gomp_acc_insert_pointer): Update refcounts.
6524 (gomp_acc_remove_pointer): Return if data is not present on the
6526 * oacc-parallel.c (find_pset): Rename to find_pointer.
6527 (find_pointer): Add support for GOMP_MAP_POINTER.
6528 (handle_ftn_pointers): New function.
6529 (GOACC_parallel_keyed): Update refcounts of variables.
6530 (GOACC_enter_exit_data): Add support for finalized data mappings.
6531 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
6533 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
6534 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
6535 for GOMP_MAP_FORCE_FROM.
6536 * openacc.f90 (module openacc_internal): Add
6537 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
6538 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
6539 acc_copyout_finalize and acc_delete_finalize.
6540 (acc_copyout_finalize_32_h): New subroutine.
6541 (acc_copyout_finalize_64_h): New subroutine.
6542 (acc_copyout_finalize_array_h): New subroutine.
6543 (acc_delete_finalize_32_h): New subroutine.
6544 (acc_delete_finalize_64_h): New subroutine.
6545 (acc_delete_finalize_array_h): New subroutine.
6546 * openacc.h (acc_copyout_finalize): Declare.
6547 (acc_copyout_finalize_async): Declare.
6548 (acc_delete_finalize): Declare.
6549 (acc_delete_finalize_async): Declare.
6550 * openacc_lib.h (acc_copyout_finalize): New interface.
6551 (acc_delete_finalize): New interface.
6552 * target.c (gomp_map_vars): Update dynamic_refcount.
6553 (gomp_remove_var): New function.
6554 (gomp_unmap_vars): Use it.
6555 (gomp_unload_image_from_device): Likewise.
6556 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
6557 case to utilize OpenACC 2.5 data clause semantics.
6558 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6559 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6560 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6561 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6562 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6563 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6564 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6565 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6566 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6567 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
6568 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6569 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
6570 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
6571 utilize OpenACC 2.5 data clause semantics.
6572 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6573 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6574 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6575 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6576 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6577 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6578 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6579 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
6580 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
6582 2018-05-21 Janus Weil <janus@gcc.gnu.org>
6586 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
6587 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
6588 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
6589 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
6590 * testsuite/libgomp.fortran/task2.f90: Ditto.
6591 * testsuite/libgomp.fortran/vla1.f90: Ditto.
6592 * testsuite/libgomp.fortran/vla2.f90: Ditto.
6593 * testsuite/libgomp.fortran/vla3.f90: Ditto.
6594 * testsuite/libgomp.fortran/vla4.f90: Ditto.
6595 * testsuite/libgomp.fortran/vla5.f90: Ditto.
6596 * testsuite/libgomp.fortran/vla6.f90: Ditto.
6597 * testsuite/libgomp.fortran/vla8.f90: Ditto.
6598 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
6599 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
6601 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
6604 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
6606 2018-05-09 Tom de Vries <tom@codesourcery.com>
6609 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
6610 to GOACC_enter_exit_data.
6612 2018-05-09 Tom de Vries <tom@codesourcery.com>
6615 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
6616 (async_synchronous_p): New function.
6617 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
6619 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
6620 async_valid_stream_id_p.
6621 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
6622 * oacc-parallel.c (GOACC_parallel_keyed): Same.
6624 2018-05-07 Tom de Vries <tom@codesourcery.com>
6627 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
6628 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
6630 2018-05-03 Tom de Vries <tom@codesourcery.com>
6633 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
6634 extra_tool_flags if it contains an -foffload=-fdump-* flag.
6635 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
6636 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
6638 2018-05-02 Tom de Vries <tom@codesourcery.com>
6641 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
6642 GOMP_OPENACC_DIM ...
6643 * env.c (parse_gomp_openacc_dim): ... here. New function.
6644 (initialize_env): Call parse_gomp_openacc_dim.
6645 (goacc_default_dims): Define.
6646 * libgomp.h (goacc_default_dims): Declare.
6647 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
6648 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
6649 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
6650 GOMP_PLUGIN_acc_default_dim.
6651 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
6652 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
6654 2018-05-02 Tom de Vries <tom@codesourcery.com>
6657 * testsuite/libgomp.c++/udr-9.C: Update.
6658 * testsuite/libgomp.c++/atomic-16.C: Remove.
6659 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
6660 * testsuite/libgomp.c++/loop-13.C: Remove.
6661 * testsuite/libgomp.c++/loop-14.C: Remove.
6662 * testsuite/libgomp.c++/loop-15.C: Remove.
6663 * testsuite/libgomp.c++/monotonic-1.C: Remove.
6664 * testsuite/libgomp.c++/monotonic-2.C: Remove.
6665 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
6666 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
6667 * testsuite/libgomp.c++/ordered-1.C: Remove.
6668 * testsuite/libgomp.c++/pr45784.C: Remove.
6669 * testsuite/libgomp.c++/pr64824.C: Remove.
6670 * testsuite/libgomp.c++/pr64868.C: Remove.
6671 * testsuite/libgomp.c++/pr66199-1.C: Remove.
6672 * testsuite/libgomp.c++/pr66199-2.C: Remove.
6673 * testsuite/libgomp.c++/pr66199-3.C: Remove.
6674 * testsuite/libgomp.c++/pr66199-4.C: Remove.
6675 * testsuite/libgomp.c++/pr66199-5.C: Remove.
6676 * testsuite/libgomp.c++/pr66199-6.C: Remove.
6677 * testsuite/libgomp.c++/pr66199-7.C: Remove.
6678 * testsuite/libgomp.c++/pr66199-8.C: Remove.
6679 * testsuite/libgomp.c++/pr66199-9.C: Remove.
6680 * testsuite/libgomp.c++/pr69389.C: Remove.
6681 * testsuite/libgomp.c++/simd10.C: Remove.
6682 * testsuite/libgomp.c++/simd11.C: Remove.
6683 * testsuite/libgomp.c++/simd12.C: Remove.
6684 * testsuite/libgomp.c++/simd13.C: Remove.
6685 * testsuite/libgomp.c++/target-1.C: Remove.
6686 * testsuite/libgomp.c++/target-3.C: Remove.
6687 * testsuite/libgomp.c++/target-4.C: Remove.
6688 * testsuite/libgomp.c++/target-5.C: Remove.
6689 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
6690 * testsuite/libgomp.c++/taskloop-1.C: Remove.
6691 * testsuite/libgomp.c++/taskloop-2.C: Remove.
6692 * testsuite/libgomp.c++/taskloop-3.C: Remove.
6693 * testsuite/libgomp.c++/taskloop-4.C: Remove.
6694 * testsuite/libgomp.c++/udr-9.C: Remove.
6695 * testsuite/libgomp.c++/for-10.C: Remove.
6696 * testsuite/libgomp.c++/for-11.C: Remove.
6697 * testsuite/libgomp.c++/for-12.C: Remove.
6698 * testsuite/libgomp.c++/for-13.C: Remove.
6699 * testsuite/libgomp.c++/for-14.C: Remove.
6700 * testsuite/libgomp.c++/for-9.C: Remove.
6701 * testsuite/libgomp.c/atomic-18.c: Move ...
6702 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
6703 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
6704 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
6705 * testsuite/libgomp.c/loop-13.c: Move ...
6706 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
6707 * testsuite/libgomp.c/loop-14.c: Move ...
6708 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
6709 * testsuite/libgomp.c/loop-15.c: Remove.
6710 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
6711 * testsuite/libgomp.c/monotonic-1.c: Move ...
6712 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
6713 * testsuite/libgomp.c/monotonic-2.c: Move ...
6714 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
6715 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
6716 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
6717 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
6718 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
6719 * testsuite/libgomp.c/ordered-4.c: Move ...
6720 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
6721 * testsuite/libgomp.c/pr45784.c: Move ...
6722 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
6723 * testsuite/libgomp.c/pr64824.c: Move ...
6724 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
6725 * testsuite/libgomp.c/pr64868.c: Move ...
6726 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
6727 * testsuite/libgomp.c/pr66199-1.c: Move ...
6728 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
6729 * testsuite/libgomp.c/pr66199-2.c: Move ...
6730 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
6731 * testsuite/libgomp.c/pr66199-3.c: Move ...
6732 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
6733 * testsuite/libgomp.c/pr66199-4.c: Move ...
6734 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
6735 * testsuite/libgomp.c/pr66199-5.c: Move ...
6736 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
6737 * testsuite/libgomp.c/pr66199-6.c: Move ...
6738 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
6739 * testsuite/libgomp.c/pr66199-7.c: Move ...
6740 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
6741 * testsuite/libgomp.c/pr66199-8.c: Move ...
6742 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
6743 * testsuite/libgomp.c/pr66199-9.c: Move ...
6744 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
6745 * testsuite/libgomp.c/pr69389.c: Move ...
6746 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
6747 * testsuite/libgomp.c/simd-14.c: Move ...
6748 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
6749 * testsuite/libgomp.c/simd-15.c: Move ...
6750 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
6751 * testsuite/libgomp.c/simd-16.c: Move ...
6752 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
6753 * testsuite/libgomp.c/simd-17.c: Move ...
6754 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
6755 * testsuite/libgomp.c/target-1.c: Move ...
6756 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
6757 * testsuite/libgomp.c/target-10.c: Move ...
6758 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
6759 * testsuite/libgomp.c/target-13.c: Move ...
6760 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
6761 * testsuite/libgomp.c/target-2.c: Move ...
6762 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
6763 * testsuite/libgomp.c/taskgroup-1.c: Move ...
6764 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
6765 * testsuite/libgomp.c/taskloop-1.c: Move ...
6766 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
6767 * testsuite/libgomp.c/taskloop-2.c: Move ...
6768 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
6769 * testsuite/libgomp.c/taskloop-3.c: Move ...
6770 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
6771 * testsuite/libgomp.c/taskloop-4.c: Move ...
6772 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
6773 * testsuite/libgomp.c/udr-1.c: Move ...
6774 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
6775 * testsuite/libgomp.c/for-1.c: Move ...
6776 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
6777 * testsuite/libgomp.c/for-1.h: Move ...
6778 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
6779 * testsuite/libgomp.c/for-2.c: Move ...
6780 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
6781 * testsuite/libgomp.c/for-2.h: Move ...
6782 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
6783 * testsuite/libgomp.c/for-3.c: Move ...
6784 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
6785 * testsuite/libgomp.c/for-4.c: Move ...
6786 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
6787 * testsuite/libgomp.c/for-5.c: Move ...
6788 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
6789 * testsuite/libgomp.c/for-6.c: Move ...
6790 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
6792 2018-05-02 Tom de Vries <tom@codesourcery.com>
6795 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
6796 __builtin_goacc_parlevel_{id,size}.
6797 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
6798 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
6799 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
6800 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
6801 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
6802 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
6803 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
6804 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
6805 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
6806 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
6807 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
6808 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
6809 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
6810 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
6811 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
6812 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
6813 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
6814 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
6815 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
6816 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
6817 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
6818 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
6819 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
6821 2018-05-02 Tom de Vries <tom@codesourcery.com>
6824 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
6826 2018-05-02 Tom de Vries <tom@codesourcery.com>
6829 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
6831 2018-04-29 Julian Brown <julian@codesourcery.com>
6832 Tom de Vries <tom@codesourcery.com>
6835 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
6836 arbitrary order for iterations of atomic subtract check.
6838 2018-04-28 Tom de Vries <tom@codesourcery.com>
6841 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
6842 atomic capture results obtained in parallel loop to an array, instead of
6845 2018-04-26 Tom de Vries <tom@codesourcery.com>
6848 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
6849 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
6850 (process_GOMP_NVPTX_JIT): New function.
6851 (link_ptx): Use process_GOMP_NVPTX_JIT.
6853 2018-04-26 Richard Biener <rguenther@suse.de>
6854 Tom de Vries <tom@codesourcery.com>
6857 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
6859 2018-04-26 Tom de Vries <tom@codesourcery.com>
6862 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
6863 recursion depth from 25 to 23.
6864 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
6866 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
6868 * configure: Regenerated.
6870 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
6871 Tom de Vries <tom@codesourcery.com>
6874 * testsuite/libgomp.oacc-c++/ref-1.C: New.
6876 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
6879 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
6880 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6881 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6882 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
6883 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
6884 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
6887 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
6889 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
6891 2018-04-19 Jakub Jelinek <jakub@redhat.com>
6893 * configure: Regenerated.
6895 2018-04-18 David Malcolm <dmalcolm@redhat.com>
6898 * configure: Regenerate.
6900 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
6901 Tom de Vries <tom@codesourcery.com>
6904 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
6905 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
6907 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
6911 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
6912 test from gfortran.dg to here.
6914 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
6916 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
6917 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
6919 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
6922 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
6923 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
6925 2018-04-05 Tom de Vries <tom@codesourcery.com>
6928 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
6930 2018-03-26 Tom de Vries <tom@codesourcery.com>
6932 PR tree-optimization/85063
6933 * testsuite/libgomp.c/switch-conversion-2.c: New test.
6934 * testsuite/libgomp.c/switch-conversion.c: New test.
6935 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
6936 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
6938 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
6941 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
6942 call abort by STOP n.
6943 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
6944 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
6945 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
6946 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
6947 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
6948 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
6949 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
6950 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
6951 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
6952 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
6953 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
6954 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
6955 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
6956 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
6957 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
6958 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
6959 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
6960 * testsuite/libgomp.fortran/associate1.f90: Likewise.
6961 * testsuite/libgomp.fortran/associate2.f90: Likewise.
6962 * testsuite/libgomp.fortran/associate3.f90: Likewise.
6963 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
6964 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
6965 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
6966 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
6967 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
6968 * testsuite/libgomp.fortran/character1.f90: Likewise.
6969 * testsuite/libgomp.fortran/character2.f90: Likewise.
6970 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
6971 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
6972 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
6973 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
6974 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
6975 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
6976 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
6977 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
6978 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
6979 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
6980 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
6981 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
6982 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
6983 * testsuite/libgomp.fortran/do1.f90: Likewise.
6984 * testsuite/libgomp.fortran/do2.f90: Likewise.
6985 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
6986 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
6987 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
6988 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
6989 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
6990 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
6991 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
6992 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
6993 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
6994 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
6995 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
6996 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
6997 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
6998 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
6999 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
7000 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
7001 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
7002 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
7003 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
7004 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
7005 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
7006 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
7007 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
7008 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
7009 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
7010 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
7011 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
7012 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
7013 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
7014 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
7015 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
7016 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
7017 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
7018 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
7019 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
7020 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
7021 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
7022 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
7023 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
7024 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
7025 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
7026 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
7027 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
7028 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
7029 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
7030 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
7031 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
7032 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
7033 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
7034 * testsuite/libgomp.fortran/lib1.f90: Likewise.
7035 * testsuite/libgomp.fortran/lib2.f: Likewise.
7036 * testsuite/libgomp.fortran/lib3.f: Likewise.
7037 * testsuite/libgomp.fortran/lib4.f90: Likewise.
7038 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
7039 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
7040 * testsuite/libgomp.fortran/nested1.f90: Likewise.
7041 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
7042 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
7043 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
7044 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
7045 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
7046 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
7047 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
7048 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
7049 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
7050 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
7051 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
7052 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
7053 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
7054 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
7055 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
7056 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
7057 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
7058 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
7059 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
7060 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7061 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
7062 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
7063 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
7064 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
7065 * testsuite/libgomp.fortran/pr25162.f: Likewise.
7066 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
7067 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
7068 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
7069 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
7070 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
7071 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
7072 * testsuite/libgomp.fortran/pr28390.f: Likewise.
7073 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
7074 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
7075 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
7076 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
7077 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
7078 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
7079 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
7080 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
7081 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
7082 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
7083 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
7084 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
7085 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
7086 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
7087 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
7088 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
7089 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
7090 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
7091 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
7092 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
7093 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
7094 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
7095 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
7096 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
7097 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
7098 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
7099 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
7100 * testsuite/libgomp.fortran/reference1.f90: Likewise.
7101 * testsuite/libgomp.fortran/reference2.f90: Likewise.
7102 * testsuite/libgomp.fortran/retval1.f90: Likewise.
7103 * testsuite/libgomp.fortran/retval2.f90: Likewise.
7104 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
7105 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
7106 * testsuite/libgomp.fortran/simd1.f90: Likewise.
7107 * testsuite/libgomp.fortran/simd2.f90: Likewise.
7108 * testsuite/libgomp.fortran/simd3.f90: Likewise.
7109 * testsuite/libgomp.fortran/simd4.f90: Likewise.
7110 * testsuite/libgomp.fortran/simd5.f90: Likewise.
7111 * testsuite/libgomp.fortran/simd6.f90: Likewise.
7112 * testsuite/libgomp.fortran/simd7.f90: Likewise.
7113 * testsuite/libgomp.fortran/stack.f90: Likewise.
7114 * testsuite/libgomp.fortran/strassen.f90: Likewise.
7115 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
7116 * testsuite/libgomp.fortran/tabs2.f: Likewise.
7117 * testsuite/libgomp.fortran/target1.f90: Likewise.
7118 * testsuite/libgomp.fortran/target2.f90: Likewise.
7119 * testsuite/libgomp.fortran/target3.f90: Likewise.
7120 * testsuite/libgomp.fortran/target4.f90: Likewise.
7121 * testsuite/libgomp.fortran/target5.f90: Likewise.
7122 * testsuite/libgomp.fortran/target6.f90: Likewise.
7123 * testsuite/libgomp.fortran/target7.f90: Likewise.
7124 * testsuite/libgomp.fortran/target8.f90: Likewise.
7125 * testsuite/libgomp.fortran/task1.f90: Likewise.
7126 * testsuite/libgomp.fortran/task2.f90: Likewise.
7127 * testsuite/libgomp.fortran/task3.f90: Likewise.
7128 * testsuite/libgomp.fortran/task4.f90: Likewise.
7129 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
7130 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
7131 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
7132 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
7133 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
7134 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
7135 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
7136 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
7137 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
7138 * testsuite/libgomp.fortran/udr1.f90: Likewise.
7139 * testsuite/libgomp.fortran/udr10.f90: Likewise.
7140 * testsuite/libgomp.fortran/udr11.f90: Likewise.
7141 * testsuite/libgomp.fortran/udr12.f90: Likewise.
7142 * testsuite/libgomp.fortran/udr13.f90: Likewise.
7143 * testsuite/libgomp.fortran/udr14.f90: Likewise.
7144 * testsuite/libgomp.fortran/udr15.f90: Likewise.
7145 * testsuite/libgomp.fortran/udr2.f90: Likewise.
7146 * testsuite/libgomp.fortran/udr3.f90: Likewise.
7147 * testsuite/libgomp.fortran/udr4.f90: Likewise.
7148 * testsuite/libgomp.fortran/udr5.f90: Likewise.
7149 * testsuite/libgomp.fortran/udr6.f90: Likewise.
7150 * testsuite/libgomp.fortran/udr7.f90: Likewise.
7151 * testsuite/libgomp.fortran/udr8.f90: Likewise.
7152 * testsuite/libgomp.fortran/udr9.f90: Likewise.
7153 * testsuite/libgomp.fortran/vla1.f90: Likewise.
7154 * testsuite/libgomp.fortran/vla2.f90: Likewise.
7155 * testsuite/libgomp.fortran/vla3.f90: Likewise.
7156 * testsuite/libgomp.fortran/vla4.f90: Likewise.
7157 * testsuite/libgomp.fortran/vla5.f90: Likewise.
7158 * testsuite/libgomp.fortran/vla6.f90: Likewise.
7159 * testsuite/libgomp.fortran/vla7.f90: Likewise.
7160 * testsuite/libgomp.fortran/vla8.f90: Likewise.
7161 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
7162 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
7163 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7164 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
7165 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7166 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7167 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7168 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
7169 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
7170 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
7171 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
7172 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
7173 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
7174 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
7175 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
7176 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
7177 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7178 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
7179 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
7180 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
7181 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
7182 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
7183 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
7184 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
7185 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
7186 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
7187 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
7188 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
7189 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7190 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
7191 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
7192 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7193 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7194 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7195 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7196 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7197 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
7198 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
7199 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
7200 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
7201 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
7202 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
7203 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
7204 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
7205 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
7206 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
7207 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
7208 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
7209 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
7210 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
7211 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
7212 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
7213 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
7214 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7215 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
7216 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
7217 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
7218 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
7219 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
7220 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
7221 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
7222 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
7223 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
7224 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
7225 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
7226 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7227 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
7228 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7229 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
7230 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
7231 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
7232 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
7233 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
7234 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
7235 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
7236 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
7237 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
7238 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7239 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7240 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7241 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
7242 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7243 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
7244 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
7245 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
7246 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
7247 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
7248 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
7249 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
7250 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
7251 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
7252 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
7253 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
7254 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
7256 2018-03-20 Richard Biener <rguenther@suse.de>
7258 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
7259 parallelizable loop.
7261 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
7264 * configure: Regenerate.
7266 2018-02-16 Jakub Jelinek <jakub@redhat.com>
7269 * libgomp.fortran/pr84418-1.f90: New test.
7270 * libgomp.fortran/pr84418-2.f90: New test.
7272 2018-02-14 Jakub Jelinek <jakub@redhat.com>
7275 * testsuite/libgomp.fortran/threadprivate4.f90: Add
7276 -std=f2003 -fall-intrinsics into dg-additional-options.
7278 2018-02-08 Martin Jambor <mjambor@suse.cz>
7280 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
7283 2018-02-08 Martin Jambor <mjambor@suse.cz>
7285 * testsuite/libgomp.hsa.c/staticvar.c: New test.
7287 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7289 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
7290 [__cplusplus]: Declare extern "C".
7292 2018-02-07 Tom de Vries <tom@codesourcery.com>
7295 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
7297 2018-01-29 Christoph Spiel <cspiel@freenet.de>
7298 Jakub Jelinek <jakub@redhat.com>
7301 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
7302 instead of omp_lock_t.
7304 2018-01-25 Tom de Vries <tom@codesourcery.com>
7307 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
7309 2018-01-24 Tom de Vries <tom@codesourcery.com>
7312 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
7314 2018-01-24 Tom de Vries <tom@codesourcery.com>
7317 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
7319 2018-01-19 Tom de Vries <tom@codesourcery.com>
7320 Cesar Philippidis <cesar@codesourcery.com>
7323 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
7324 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
7326 2018-01-03 Jakub Jelinek <jakub@redhat.com>
7328 Update copyright years.
7330 * libgomp.texi: Bump @copying's copyright year.
7332 2017-12-30 Tom de Vries <tom@codesourcery.com>
7335 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
7336 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
7338 2017-12-27 Tom de Vries <tom@codesourcery.com>
7341 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
7342 (test_nonstatic): Fix return type to workaround PR83046.
7344 2017-12-05 Jakub Jelinek <jakub@redhat.com>
7347 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
7348 j suffix instead of i.
7349 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
7352 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
7354 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
7355 call to acc_wait (1).
7357 2017-11-24 Jakub Jelinek <jakub@redhat.com>
7360 * testsuite/libgomp.fortran/pr81304.f90: New test.
7362 2017-11-23 Jakub Jelinek <jakub@redhat.com>
7365 * libgomp.fortran/pr81841.f90: New test.
7367 2017-11-22 Jakub Jelinek <jakub@redhat.com>
7370 * target.c (gomp_target_init): Compute lengths just once and
7371 use them in both malloc size and subsequent copying.
7373 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
7375 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
7376 * acinclude.m4: Add cet.m4.
7377 * configure: Regenerate.
7378 * Makefile.in: Likewise.
7379 * testsuite/Makefile.in: Likewise.
7381 2017-11-15 Tom de Vries <tom@codesourcery.com>
7383 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
7384 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
7385 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
7386 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
7387 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
7388 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
7390 2017-11-14 Tom de Vries <tom@codesourcery.com>
7392 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
7395 2017-11-07 Jakub Jelinek <jakub@redhat.com>
7398 * testsuite/libgomp.c++/pr82835.C: New test.
7400 2017-11-06 Martin Liska <mliska@suse.cz>
7402 * testsuite/libgomp.c++/loop-2.C: Return a value
7403 for functions with non-void return type, or change type to void,
7404 or add -Wno-return-type for test.
7405 * testsuite/libgomp.c++/loop-4.C: Likewise.
7406 * testsuite/libgomp.c++/parallel-1.C: Likewise.
7407 * testsuite/libgomp.c++/shared-1.C: Likewise.
7408 * testsuite/libgomp.c++/single-1.C: Likewise.
7409 * testsuite/libgomp.c++/single-2.C: Likewise.
7411 2017-10-31 Tom de Vries <tom@codesourcery.com>
7413 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
7414 "do {} while (false)".
7415 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
7416 after HSA_DEBUG call.
7418 2017-10-28 Jakub Jelinek <jakub@redhat.com>
7420 * target.c (struct gomp_coalesce_buf): New type.
7421 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
7422 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
7423 (gomp_copy_host2dev): Add CBUF argument, if copying into
7424 the cached ranges, memcpy into buffer instead of copying
7426 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
7427 Add CBUF argument, pass it through to other calls.
7428 (gomp_map_vars): Aggregate copies from host to device if small enough
7429 and with small enough gaps in between into memcpy into a buffer and
7430 fewer host to device copies from the buffer.
7431 (gomp_update): Adjust gomp_copy_host2dev caller.
7433 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
7435 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
7437 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7438 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7439 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7440 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7442 2017-10-16 Tom de Vries <tom@codesourcery.com>
7444 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
7445 openacc_nvidia_accel_selected.
7446 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
7447 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
7448 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
7449 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
7450 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
7451 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
7452 openacc_nvidia_accel_selected. Skip for shared memory device.
7453 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
7454 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
7456 2017-10-09 Martin Jambor <mjambor@suse.cz>
7459 * testsuite/libgomp.hsa.c/pr82416.c: New test.
7461 2017-10-07 Tom de Vries <tom@codesourcery.com>
7463 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
7464 Remove acc_device_nvidia references.
7465 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
7468 2017-10-05 Tom de Vries <tom@codesourcery.com>
7470 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
7471 vector_length(32) clause from acc parallel directive.
7472 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
7474 2017-10-04 Tom de Vries <tom@codesourcery.com>
7476 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
7477 (main): Reduce sum of arr elements. Assert that hres is exactly
7478 representable in 32-bit floating point.
7479 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
7480 (main): Reduce sum of arr elements. Assert that hres and hmres are
7481 exactly representable in 32-bit floating point.
7482 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
7484 2017-09-28 Tom de Vries <tom@codesourcery.com>
7486 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
7488 * testsuite/libgomp.c++/pr69393.C: Same.
7489 * testsuite/libgomp.c++/taskloop-1.C: Same.
7490 * testsuite/libgomp.c++/taskloop-3.C: Same.
7491 * testsuite/libgomp.c++/taskloop-4.C: Same.
7492 * testsuite/libgomp.c/for-4.c: Same.
7493 * testsuite/libgomp.c/pr66199-3.c: Same.
7494 * testsuite/libgomp.c/pr66199-4.c: Same.
7495 * testsuite/libgomp.c/pr66199-6.c: Same.
7496 * testsuite/libgomp.c/taskloop-1.c: Same.
7497 * testsuite/libgomp.c/taskloop-3.c: Same.
7498 * testsuite/libgomp.c/taskloop-4.c: Same.
7499 * testsuite/libgomp.fortran/aligned1.f03: Same.
7500 * testsuite/libgomp.fortran/condinc1.f: Same.
7501 * testsuite/libgomp.fortran/condinc3.f90: Same.
7502 * testsuite/libgomp.fortran/crayptr1.f90: Same.
7503 * testsuite/libgomp.fortran/crayptr2.f90: Same.
7504 * testsuite/libgomp.fortran/crayptr3.f90: Same.
7505 * testsuite/libgomp.fortran/omp_cond1.f: Same.
7506 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
7507 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
7508 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
7509 * testsuite/libgomp.fortran/recursion1.f90: Same.
7510 * testsuite/libgomp.fortran/target2.f90: Same.
7511 * testsuite/libgomp.fortran/target5.f90: Same.
7512 * testsuite/libgomp.fortran/task3.f90: Same.
7514 2017-09-28 Tom de Vries <tom@codesourcery.com>
7516 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
7517 vector_length(32) clause from acc parallel directive.
7518 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
7520 2017-09-27 Tom de Vries <tom@codesourcery.com>
7522 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
7523 Remove acc_device_nvidia references.
7525 2017-09-16 Tom de Vries <tom@codesourcery.com>
7528 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
7530 2017-09-14 Tom de Vries <tom@codesourcery.com>
7532 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
7533 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
7534 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
7535 * testsuite/libgomp.c/c.exp: Include test-cases from
7536 libgomp.c-c++-common.
7537 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
7540 2017-09-14 Jakub Jelinek <jakub@redhat.com>
7543 * testsuite/libgomp.c++/pr81314.C: New test.
7545 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
7547 * libgomp.texi (Top): www.openacc.org now uses https.
7548 (Enabling OpenACC): Ditto.
7549 (acc_get_num_devices): Ditto.
7550 (acc_set_device_type): Ditto.
7551 (acc_get_device_type): Ditto.
7552 (acc_set_device_num): Ditto.
7553 (acc_get_device_num): Ditto.
7554 (acc_async_test): Ditto.
7555 (acc_async_test_all): Ditto.
7557 (acc_wait_all): Ditto.
7558 (acc_wait_all_async): Ditto.
7559 (acc_wait_async): Ditto.
7561 (acc_shutdown): Ditto.
7562 (acc_on_device): Ditto.
7563 (acc_malloc): Ditto.
7565 (acc_copyin): Ditto.
7566 (acc_present_or_copyin): Ditto.
7567 (acc_create): Ditto.
7568 (acc_present_or_create): Ditto.
7569 (acc_copyout): Ditto.
7570 (acc_delete): Ditto.
7571 (acc_update_device): Ditto.
7572 (acc_update_self): Ditto.
7573 (acc_map_data): Ditto.
7574 (acc_unmap_data): Ditto.
7575 (acc_deviceptr): Ditto.
7576 (acc_hostptr): Ditto.
7577 (acc_is_present): Ditto.
7578 (acc_memcpy_to_device): Ditto.
7579 (acc_memcpy_from_device): Ditto.
7580 (acc_get_current_cuda_device): Ditto.
7581 (acc_get_current_cuda_context): Ditto.
7582 (acc_get_cuda_stream): Ditto.
7583 (acc_set_cuda_stream): Ditto.
7584 (ACC_DEVICE_TYPE): Ditto.
7585 (ACC_DEVICE_NUM): Ditto.
7586 (OpenACC Library Interoperability): Ditto.
7588 2017-08-09 Jakub Jelinek <jakub@redhat.com>
7591 * testsuite/libgomp.c/pr81687-1.c: New test.
7592 * testsuite/libgomp.c/pr81687-2.c: New test.
7594 2017-08-07 Jakub Jelinek <jakub@redhat.com>
7597 * testsuite/libgomp.c/pr69389.c: New test.
7598 * testsuite/libgomp.c++/pr69389.C: New test.
7600 2017-08-07 Tom de Vries <tom@codesourcery.com>
7603 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
7604 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
7606 2017-07-27 Jakub Jelinek <jakub@redhat.com>
7609 * testsuite/libgomp.c/pr45784.c: New test.
7610 * testsuite/libgomp.c++/pr45784.C: New test.
7612 2017-07-19 Tom de Vries <tom@codesourcery.com>
7614 * testsuite/libgomp.oacc-c/vec.c: New test.
7616 2017-07-03 Tom de Vries <tom@codesourcery.com>
7618 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
7620 2017-06-27 Tom de Vries <tom@codesourcery.com>
7622 * plugin/plugin-nvptx.c (notify_var): New function.
7623 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
7625 2017-06-27 Tom de Vries <tom@codesourcery.com>
7627 * env.c (parse_unsigned_long_1): Factor out of ...
7628 (parse_unsigned_long): ... here.
7629 (parse_int_1): Factor out of ...
7630 (parse_int): ... here.
7631 (parse_int_secure): New function.
7632 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
7633 * secure_getenv.h: Factor out of ...
7634 * plugin/plugin-hsa.c: ... here.
7635 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
7637 2017-06-21 Jakub Jelinek <jakub@redhat.com>
7640 * testsuite/libgomp.c++/pr81130.C: New test.
7642 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7644 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
7646 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
7647 dg-xfail-run-if default args.
7649 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
7651 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
7652 * testsuite/libgomp.c/pr39591-3.c: Likewise.
7654 2017-05-30 Jakub Jelinek <jakub@redhat.com>
7657 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
7658 (gomp_affinity_init_level): Use it. Always analyze the core and thread
7659 sibling lists, depending on level just pick up what CPUs to put
7660 together into a place vs. whether add multiple ordered places.
7662 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
7664 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
7665 * libgomp.map (OACC_2.0.1): Add these.
7666 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
7667 for "acc_wait", and "acc_wait_all", respectively.
7668 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
7669 for "acc_wait", and "acc_wait_all", respectively.
7670 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
7671 * libgomp.texi (acc_wait, acc_wait_all): Update.
7672 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
7673 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
7674 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7676 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
7677 acc_present_or_copyin and acc_present_or_create procedures,
7679 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
7680 generally different variants of OpenACC Runtime Library functions.
7681 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7683 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
7684 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7686 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
7687 of preprocessor definitions.
7688 * libgomp.h (strong_alias): Guard by "#ifdef
7689 HAVE_ATTRIBUTE_ALIAS".
7690 * oacc-mem.c: Provide "acc_pcreate" as alias for
7691 "acc_present_or_create", and "acc_pcopyin" as alias for
7692 "acc_present_or_copyin".
7693 * libgomp.map: New version "OACC_2.0.1".
7694 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
7695 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
7697 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
7700 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
7701 when disabling nvptx offloading.
7703 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
7705 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
7706 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
7707 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
7709 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
7710 * testsuite/lib/libgomp.exp
7711 (check_effective_target_openacc_nvidia_accel_configured): New
7713 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
7714 (check_effective_target_c++): New procs.
7715 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
7716 (check_effective_target_c++): Likewise.
7718 2017-05-22 Jakub Jelinek <jakub@redhat.com>
7721 * testsuite/libgomp.c/pr80809-2.c: New test.
7722 * testsuite/libgomp.c/pr80809-3.c: New test.
7725 * testsuite/libgomp.c/pr80809-1.c: New test.
7728 * testsuite/libgomp.c/pr80853.c: New test.
7730 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
7732 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
7733 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
7734 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7735 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7736 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
7738 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
7739 Debug output for failure.
7741 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7743 * testsuite/lib/libgomp.exp: Load scanlang.exp.
7745 2017-04-27 Jakub Jelinek <jakub@redhat.com>
7748 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
7749 bootstrap compare failures.
7751 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
7753 * testsuite/libgomp.c/target-36.c: New testcase.
7755 2017-04-13 Jakub Jelinek <jakub@redhat.com>
7757 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
7760 2017-04-11 Jakub Jelinek <jakub@redhat.com>
7763 * testsuite/libgomp.c/pr80394.c: New test.
7765 2017-04-04 Jakub Jelinek <jakub@redhat.com>
7768 * config/posix/thread-stacksize.h: New file.
7769 * config/darwin/thread-stacksize.h: New file.
7770 * config/nvptx/thread-stacksize.h: New file.
7771 * env.c: Include thread-stacksize.h.
7772 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
7773 instead of 0. Call pthread_attr_setstacksize even if
7774 GOMP_DEFAULT_STACKSIZE is non-zero.
7776 2017-03-30 Jakub Jelinek <jakub@redhat.com>
7778 * env.c (initialize_env): Initialize stacksize to 0.
7780 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
7783 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
7785 2017-03-08 Jakub Jelinek <jakub@redhat.com>
7788 * testsuite/libgomp.c/pr79940.c: New test.
7790 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7792 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
7794 Add __float128 options.
7796 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
7798 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
7799 hppa*-*-* dg-skip-if directive.
7801 2017-02-09 Jakub Jelinek <jakub@redhat.com>
7803 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
7804 dg-skip-if directive into a comment.
7806 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
7807 Chung-Lin Tang <cltang@codesourcery.com>
7809 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
7810 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
7811 add additional case.
7812 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
7813 "openacc_nvidia_accel_selected".
7814 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
7815 Add num_workers(8) clause.
7817 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
7819 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
7821 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
7822 include complex.h on hppa*-*-hpux*.
7823 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
7825 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
7827 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
7829 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
7830 GOMP_OFFLOAD_openacc_exec. Adjust all users.
7831 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
7832 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
7833 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
7834 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
7835 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
7836 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
7837 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
7838 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
7840 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
7842 * libgomp-plugin.h: #include <stdbool.h>.
7843 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
7844 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
7845 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
7846 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
7847 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
7848 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
7849 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
7850 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
7851 (GOMP_OFFLOAD_openacc_register_async_cleanup)
7852 (GOMP_OFFLOAD_openacc_async_test)
7853 (GOMP_OFFLOAD_openacc_async_test_all)
7854 (GOMP_OFFLOAD_openacc_async_wait)
7855 (GOMP_OFFLOAD_openacc_async_wait_async)
7856 (GOMP_OFFLOAD_openacc_async_wait_all)
7857 (GOMP_OFFLOAD_openacc_async_wait_all_async)
7858 (GOMP_OFFLOAD_openacc_async_set_async)
7859 (GOMP_OFFLOAD_openacc_create_thread_data)
7860 (GOMP_OFFLOAD_openacc_destroy_thread_data)
7861 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
7862 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
7863 (GOMP_OFFLOAD_openacc_get_cuda_stream)
7864 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
7865 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
7867 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
7868 (GOMP_OFFLOAD_unload_image): Fix argument types.
7870 2017-01-26 Jakub Jelinek <jakub@redhat.com>
7872 * testsuite/lib/libgomp.exp
7873 (check_effective_target_hsa_offloading_selected_nocache): Fix up
7874 check_compile invocation. Fix up removal of executable. Drop
7875 bogus "2>&1" argument.
7877 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
7880 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
7881 Martin Jambor <mjambor@suse.cz>
7883 * plugin/hsa.h: Moved to top level include.
7884 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
7886 2017-01-21 Jakub Jelinek <jakub@redhat.com>
7889 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
7890 of cat to get version from BASE-VER file.
7891 * testsuite/Makefile.in: Regenerated.
7893 2017-01-19 Jakub Jelinek <jakub@redhat.com>
7895 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
7898 2017-01-17 Jakub Jelinek <jakub@redhat.com>
7900 * plugin/hsa.h: Add GCC runtime library exception.
7901 * plugin/hsa_ext_finalize.h: Likewise.
7903 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
7904 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
7905 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
7906 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
7907 plugin/include/cuda as include dir and -ldl instead of -lcuda as
7908 library to link ptx plugin against.
7909 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
7910 (CUDA_CALLS): Define.
7911 (cuda_lib, cuda_lib_inited): New variables.
7912 (init_cuda_lib): New function.
7913 (CUDA_CALL_PREFIX): Define.
7914 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
7915 (CUDA_CALL): Use FN instead of (FN).
7916 (CUDA_CALL_NOCHECK): Define.
7917 (cuda_error, fini_streams_for_device, select_stream_for_async,
7918 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
7919 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
7920 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
7921 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
7923 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
7925 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
7926 Use CUDA_CALL_NOCHECK.
7927 * plugin/cuda/cuda.h: New file.
7928 * config.h.in: Regenerated.
7929 * configure: Regenerated.
7932 * configure.ac: Add GCC_BASE_VER.
7933 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
7934 get version from BASE-VER file.
7935 * testsuite/Makefile.in: Regenerated.
7936 * configure: Regenerated.
7937 * Makefile.in: Regenerated.
7939 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7942 * Makefile.am: Make fincludedir multilib-aware.
7943 * Makefile.in: Regenerate.
7945 2017-01-01 Jakub Jelinek <jakub@redhat.com>
7947 Update copyright years.
7949 * libgomp.texi: Bump @copying's copyright year.
7951 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
7953 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
7954 pthread_spinlock_t instead of gomp_mutex_t lock.
7955 (gomp_get_thread_pool): Likewise.
7956 (gomp_release_thread_pool): Likewise.
7957 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
7960 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
7962 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
7963 thread pool in case nthreads == 1.
7965 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
7967 * config/nvptx/env.c: Delete.
7968 * icv.c: Move definitions of ICV variables back ...
7969 * env.c: ...here. Do not compile environment-related functionality if
7970 LIBGOMP_OFFLOADED_ONLY is set.
7972 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
7974 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
7975 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
7976 * configure: Regenerate.
7977 * config.h.in: Likewise.
7979 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
7981 * Makefile.in: Regenerate with automake-1.11.6.
7982 * aclocal.m4: Likewise.
7983 * configure: Likewise.
7984 * testsuite/Makefile.in: Likewise.
7986 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
7988 * config/nvptx/critical.c: Delete to use generic implementation.
7990 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
7992 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
7993 ../../affinity.c as fallback.
7994 * config/nvptx/affinity.c: Delete to use fallback implementation.
7996 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
7997 Jakub Jelinek <jakub@redhat.com>
7998 Dmitry Melnik <dm@ispras.ru>
8000 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
8001 * Makefile.in. Regenerate.
8002 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
8003 (LIBGOMP_USE_PTHREADS): ...here; new define.
8004 * configure: Regenerate.
8005 * config.h.in: Likewise.
8006 * config/posix/affinity.c: Move to...
8007 * affinity.c: ...here (new file). Guard use of Pthreads-specific
8008 interface by LIBGOMP_USE_PTHREADS.
8009 * critical.c: Split out GOMP_atomic_{start,end} into...
8010 * atomic.c: ...here (new file).
8011 * env.c: Split out ICV definitions into...
8012 * icv.c: ...here (new file) and...
8013 * icv-device.c: ...here. New file.
8014 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
8015 (gomp_destroy_lock_30): Ditto.
8016 (gomp_set_lock_30): Ditto.
8017 (gomp_unset_lock_30): Ditto.
8018 (gomp_test_lock_30): Ditto.
8019 (gomp_init_nest_lock_30): Ditto.
8020 (gomp_destroy_nest_lock_30): Ditto.
8021 (gomp_set_nest_lock_30): Ditto.
8022 (gomp_unset_nest_lock_30): Ditto.
8023 (gomp_test_nest_lock_30): Ditto.
8025 * config/nvptx/lock.c: New.
8026 * config/nvptx/bar.c: New.
8027 * config/nvptx/bar.h: New.
8028 * config/nvptx/doacross.h: New.
8029 * config/nvptx/error.c: New.
8030 * config/nvptx/icv-device.c: New.
8031 * config/nvptx/mutex.h: New.
8032 * config/nvptx/pool.h: New.
8033 * config/nvptx/proc.c: New.
8034 * config/nvptx/ptrlock.h: New.
8035 * config/nvptx/sem.h: New.
8036 * config/nvptx/simple-bar.h: New.
8037 * config/nvptx/target.c: New.
8038 * config/nvptx/task.c: New.
8039 * config/nvptx/team.c: New.
8040 * config/nvptx/time.c: New.
8041 * config/posix/simple-bar.h: New.
8042 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
8043 (gomp_num_teams_var): Declare.
8044 (struct gomp_thread_pool): Change threads_dock member to
8045 gomp_simple_barrier_t.
8046 [__nvptx__] (gomp_thread): New implementation.
8047 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
8048 (gomp_thread_destructor): Ditto.
8049 (gomp_init_thread_affinity): Ditto.
8050 * team.c: Guard uses of Pthreads-specific interfaces by
8051 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
8052 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
8053 * config/nvptx/alloc.c: Delete.
8054 * config/nvptx/barrier.c: Ditto.
8055 * config/nvptx/fortran.c: Ditto.
8056 * config/nvptx/iter.c: Ditto.
8057 * config/nvptx/iter_ull.c: Ditto.
8058 * config/nvptx/loop.c: Ditto.
8059 * config/nvptx/loop_ull.c: Ditto.
8060 * config/nvptx/ordered.c: Ditto.
8061 * config/nvptx/parallel.c: Ditto.
8062 * config/nvptx/priority_queue.c: Ditto.
8063 * config/nvptx/sections.c: Ditto.
8064 * config/nvptx/single.c: Ditto.
8065 * config/nvptx/splay-tree.c: Ditto.
8066 * config/nvptx/work.c: Ditto.
8067 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
8068 -foffload=-lgfortran in addition to -lgfortran.
8069 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
8070 * plugin/plugin-nvptx.c: Include <limits.h>.
8071 (struct targ_fn_descriptor): Add new fields.
8072 (struct ptx_device): Ditto. Set them...
8073 (nvptx_open_device): ...here.
8074 (nvptx_adjust_launch_bounds): New.
8075 (nvptx_host2dev): Allow NULL 'nvthd'.
8076 (nvptx_dev2host): Ditto.
8077 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
8078 (link_ptx): Adjust log sizes.
8079 (nvptx_host2dev): Allow NULL 'nvthd'.
8080 (nvptx_dev2host): Ditto.
8081 (nvptx_set_clocktick): New. Use it...
8082 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
8084 (GOMP_OFFLOAD_dev2dev): New.
8085 (nvptx_adjust_launch_bounds): New.
8086 (nvptx_stacks_size): New.
8087 (nvptx_stacks_alloc): New.
8088 (nvptx_stacks_free): New.
8089 (GOMP_OFFLOAD_run): New.
8090 (GOMP_OFFLOAD_async_run): New (stub).
8092 2016-11-23 Martin Jambor <mjambor@suse.cz>
8094 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
8095 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
8096 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8098 2016-11-23 Martin Liska <mliska@suse.cz>
8099 Martin Jambor <mjambor@suse.cz>
8101 * plugin/hsa.h: New file.
8102 * plugin/hsa_ext_finalize.h: New file.
8103 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
8104 header file unistd.h, and functions secure_getenv, __secure_getenv,
8105 getuid, geteuid, getgid and getegid.
8106 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
8108 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
8109 Handle various cases of secure_getenv presence, add an implementation
8110 when we can test effective UID and GID.
8111 (struct hsa_runtime_fn_info): New structure.
8112 (hsa_runtime_fn_info hsa_fns): New variable.
8113 (hsa_runtime_lib): Likewise.
8114 (support_cpu_devices): Likewise.
8115 (init_enviroment_variables): Load newly introduced ENV
8117 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
8118 (hsa_fatal): Likewise.
8119 (DLSYM_FN): New macro.
8120 (init_hsa_runtime_functions): New function.
8121 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
8122 structure. Depending on environment, also allow CPU devices.
8123 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
8124 (get_kernarg_memory_region): Likewise.
8125 (GOMP_OFFLOAD_init_device): Likewise.
8126 (destroy_hsa_program): Likewise.
8127 (init_basic_kernel_info): New function.
8128 (GOMP_OFFLOAD_load_image): Use it.
8129 (create_and_finalize_hsa_program): Call hsa run-time functions via
8131 (create_single_kernel_dispatch): Likewise.
8132 (release_kernel_dispatch): Likewise.
8133 (init_single_kernel): Likewise.
8134 (parse_target_attributes): Allow up multiple HSA grid dimensions.
8135 (get_group_size): New function.
8136 (run_kernel): Likewise.
8137 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
8138 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
8140 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
8141 * testsuite/libgomp-test-support.exp.in: Likewise.
8142 * Makefile.in: Regenerated.
8143 * aclocal.m4: Likewise.
8144 * config.h.in: Likewise.
8145 * configure: Likewise.
8146 * testsuite/Makefile.in: Likewise.
8148 2016-11-15 Martin Jambor <mjambor@suse.cz>
8149 Alexander Monakov <amonakov@ispras.ru>
8151 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
8152 mapping clauses to target constructs.
8153 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
8155 2016-11-15 Matthias Klose <doko@ubuntu.com>
8157 * configure: Regenerate.
8159 2016-11-10 Jakub Jelinek <jakub@redhat.com>
8161 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
8162 * omp_lib.h.in (openmp_version): Likewise.
8163 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
8165 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8167 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
8168 (fib_wrapper): Add map(from: x) clause.
8169 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
8171 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
8172 (accum): Add map(tmp) clause.
8173 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
8174 (accum): Add map(tofrom: tmp) clause.
8175 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
8176 (gramSchmidt): Likewise.
8177 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
8178 map(tofrom: sum) clause.
8179 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
8180 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
8181 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
8182 only allowed on the loop iterator.
8183 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
8184 * testsuite/libgomp.fortran/taskloop2.f90: New test.
8185 * testsuite/libgomp.fortran/taskloop4.f90: New test.
8186 * testsuite/libgomp.fortran/doacross1.f90: New test.
8187 * testsuite/libgomp.fortran/doacross3.f90: New test.
8188 * testsuite/libgomp.fortran/taskloop1.f90: New test.
8189 * testsuite/libgomp.fortran/taskloop3.f90: New test.
8190 * testsuite/libgomp.fortran/doacross2.f90: New test.
8191 * testsuite/libgomp.c/doacross-1.c (main): Add missing
8192 #pragma omp atomic read.
8193 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
8194 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
8196 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
8197 Nathan Sidwell <nathan@acm.org>
8199 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
8200 to determine default geometry.
8201 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
8204 2016-11-01 Jakub Jelinek <jakub@redhat.com>
8206 * hashtab.h: Use standard GPLv3 with runtime exception
8209 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
8211 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
8212 size when allocating new thread.
8214 2016-09-14 Marek Polacek <polacek@redhat.com>
8216 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
8218 2016-08-19 Jakub Jelinek <jakub@redhat.com>
8221 * testsuite/libgomp.fortran/pr71014.f90: New test.
8223 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
8226 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
8227 firstprivate clauses.
8228 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
8230 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
8231 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
8232 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
8233 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8234 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
8235 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8236 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
8237 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
8238 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
8239 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
8240 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
8241 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
8243 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
8246 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
8248 2016-08-08 Jakub Jelinek <jakub@redhat.com>
8251 * testsuite/libgomp.c++/pr58706.C: New test.
8253 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
8255 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
8256 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
8257 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
8259 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
8260 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
8262 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
8264 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
8265 test, and don't hardcode -O0.
8267 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
8269 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
8271 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
8273 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
8276 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
8279 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
8280 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
8282 2016-07-01 Jakub Jelinek <jakub@redhat.com>
8285 * testsuite/libgomp.fortran/associate3.f90: New test.
8287 2016-06-17 Jakub Jelinek <jakub@redhat.com>
8289 * testsuite/libgomp.c++/target-21.C: New test.
8291 2016-06-16 Jakub Jelinek <jakub@redhat.com>
8293 * testsuite/libgomp.c++/target-20.C: New test.
8295 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
8296 Cesar Philippidis <cesar@codesourcery.com>
8299 * libgomp.oacc-c/nested-function-1.c: New file.
8300 * libgomp.oacc-c/nested-function-2.c: Likewise.
8301 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
8302 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
8303 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
8305 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
8308 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
8309 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
8310 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
8312 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
8314 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
8315 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
8317 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
8320 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
8322 2016-05-26 Jakub Jelinek <jakub@redhat.com>
8324 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
8325 instead of invalid schedule(static, 0).
8326 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
8328 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
8330 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
8331 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
8332 parameter, use to set async stream around call to gomp_unmap_vars,
8333 call gomp_unmap_vars() with 'do_copyfrom' set to true.
8334 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
8335 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
8336 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
8337 (event_add): Add int parameter, initialize 'val' field when
8338 adding new ptx_event struct.
8339 (nvptx_evec): Adjust event_add() call arguments.
8340 (nvptx_host2dev): Likewise.
8341 (nvptx_dev2host): Likewise.
8342 (nvptx_wait_async): Likewise.
8343 (nvptx_wait_all_async): Likewise.
8344 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
8345 pass to event_add() call.
8346 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
8348 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
8349 call openacc.register_async_cleanup_func() hook.
8350 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
8351 * target.c (gomp_copy_from_async): Delete function.
8352 (gomp_map_vars): Remove async_refcount.
8353 (gomp_unmap_vars): Likewise.
8354 (gomp_load_image_to_device): Likewise.
8355 (omp_target_associate_ptr): Likewise.
8356 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
8357 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
8358 (gomp_copy_from_async): Remove.
8360 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
8362 * target.c (gomp_device_copy): New function.
8363 (gomp_copy_host2dev): Likewise.
8364 (gomp_copy_dev2host): Likewise.
8365 (gomp_free_device_memory): Likewise.
8366 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
8367 (gomp_map_pointer): Likewise.
8368 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
8369 NULL value from alloc_func plugin hook.
8370 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
8371 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
8372 (gomp_unmap_vars): Likewise.
8373 (gomp_update): Adjust to call gomp_copy_dev2host and
8374 gomp_copy_host2dev functions.
8375 (gomp_unload_image_from_device): Handle false value from
8376 unload_image_func plugin hook.
8377 (gomp_init_device): Handle false value from init_device_func
8379 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
8380 (omp_target_free): Adjust to call gomp_free_device_memory.
8381 (omp_target_memcpy): Handle return values from host2dev_func,
8382 dev2host_func, and dev2dev_func plugin hooks.
8383 (omp_target_memcpy_rect_worker): Likewise.
8384 (gomp_target_fini): Handle false value from fini_device_func
8386 * libgomp.h (struct gomp_device_descr): Adjust return type of
8387 init_device_func, fini_device_func, unload_image_func, free_func,
8388 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
8389 * oacc-init.c (acc_shutdown_1): Handle false value from
8390 fini_device_func plugin hook.
8391 * oacc-host.c (host_init_device): Change return type to bool.
8392 (host_fini_device): Likewise.
8393 (host_unload_image): Likewise.
8394 (host_free): Likewise.
8395 (host_dev2host): Likewise.
8396 (host_host2dev): Likewise.
8397 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
8398 (acc_memcpy_to_device): Likewise.
8399 (acc_memcpy_from_device): Likewise.
8400 (delete_copyout): Add libfnname parameter, handle free_func
8401 hook fatal error case.
8402 (acc_delete): Adjust delete_copyout call.
8403 (acc_copyout): Likewise.
8404 (update_dev_host): Move gomp_mutex_unlock to after
8405 host2dev/dev2host hook calls.
8407 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
8408 to 'hsa_error_msg', for clarity.
8409 (hsa_fatal): Likewise.
8410 (hsa_error): New function.
8411 (init_hsa_context): Change return type to bool, adjust to return
8413 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
8415 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
8416 return false on error.
8417 (get_agent_info): Adjust to return NULL on error.
8418 (destroy_hsa_program): Change return type to bool, adjust to
8419 return false on error.
8420 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
8421 (destroy_module): Change return type to bool, adjust to
8422 return false on error.
8423 (GOMP_OFFLOAD_unload_image): Likewise.
8424 (GOMP_OFFLOAD_fini_device): Likewise.
8425 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
8426 (GOMP_OFFLOAD_free): Change to return false when called.
8427 (GOMP_OFFLOAD_dev2host): Likewise.
8428 (GOMP_OFFLOAD_host2dev): Likewise.
8429 (GOMP_OFFLOAD_dev2dev): Likewise.
8431 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
8432 (CUDA_CALL): Likewise.
8433 (CUDA_CALL_ASSERT): Likewise.
8434 (map_init): Change return type to bool, use CUDA_CALL* macros.
8435 (map_fini): Likewise.
8436 (init_streams_for_device): Change return type to bool, adjust
8438 (fini_streams_for_device): Change return type to bool, adjust
8440 (select_stream_for_async): Release stream_lock before calls to
8441 GOMP_PLUGIN_fatal, adjust call to map_init.
8442 (nvptx_init): Use CUDA_CALL* macros.
8443 (nvptx_attach_host_thread_to_device): Change return type to bool,
8444 use CUDA_CALL* macros.
8445 (nvptx_open_device): Use CUDA_CALL* macros.
8446 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
8448 (nvptx_get_num_devices): Use CUDA_CALL* macros.
8449 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
8450 (nvptx_exec): Use CUDA_CALL* macros.
8451 (nvptx_alloc): Use CUDA_CALL* macros.
8452 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
8453 (nvptx_host2dev): Likewise.
8454 (nvptx_dev2host): Likewise.
8455 (nvptx_wait): Use CUDA_CALL* macros.
8456 (nvptx_wait_async): Likewise.
8457 (nvptx_wait_all): Likewise.
8458 (nvptx_wait_all_async): Likewise.
8459 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
8460 use CUDA_CALL* macros, adjust call to map_fini.
8461 (GOMP_OFFLOAD_init_device): Change return type to bool,
8462 adjust code accordingly.
8463 (GOMP_OFFLOAD_fini_device): Likewise.
8464 (GOMP_OFFLOAD_load_image): Adjust calls to
8465 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
8466 use CUDA_CALL* macros.
8467 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
8469 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
8470 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
8471 handle error return.
8472 (GOMP_OFFLOAD_dev2host): Likewise.
8473 (GOMP_OFFLOAD_host2dev): Likewise.
8474 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
8475 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
8477 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
8479 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
8480 (acc_free): Likewise.
8481 (acc_memcpy_to_device): Likewise.
8482 (acc_memcpy_from_device): Likewise.
8483 (acc_deviceptr): Likewise.
8484 (acc_hostptr): Likewise.
8485 (acc_is_present): Likewise.
8486 (acc_map_data): Likewise.
8487 (acc_unmap_data): Likewise.
8488 (present_create_copy): Likewise.
8489 (delete_copyout): Likewise.
8490 (update_dev_host): Likewise.
8491 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
8492 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
8493 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
8494 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8495 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
8496 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
8497 it only runs on nvptx targets.
8498 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8499 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8500 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8501 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8502 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8503 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8504 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8505 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8506 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8507 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8508 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8509 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8510 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8511 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8512 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8513 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8514 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8515 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8516 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8517 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8518 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8519 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8520 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8522 2016-05-23 Martin Jambor <mjambor@suse.cz>
8524 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
8526 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
8528 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
8529 to gomp_init_targets_once.
8530 (acc_set_device_type): Remove !cached_base_dev condition on call to
8531 gomp_init_targets_once, move call to before acc_device_lock acquire,
8533 (acc_get_device_num): Remove !cached_base_dev condition on call to
8534 gomp_init_targets_once.
8535 (acc_set_device_num): Likewise.
8537 2016-05-16 Martin Jambor <mjambor@suse.cz>
8539 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
8541 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
8543 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
8544 expected partitioning.
8546 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
8549 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
8550 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
8551 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
8553 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
8555 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
8558 2016-04-19 Jakub Jelinek <jakub@redhat.com>
8561 * testsuite/libgomp.c/pr70680-1.c: New test.
8562 * testsuite/libgomp.c/pr70680-2.c: New test.
8564 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
8566 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
8567 pass parameter variables to subroutines.
8569 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
8572 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
8574 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
8577 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
8578 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8580 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
8582 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
8583 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
8584 GOACC_declare prototype.
8586 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
8587 Merge this file, and...
8588 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
8589 ... this file, and...
8590 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
8591 ... this file, and...
8592 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
8593 ... this file, and...
8594 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
8595 ... this file, and...
8596 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
8597 ... this file, and...
8598 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
8599 ... this file, and...
8600 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
8601 ... this file, and...
8602 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
8603 ... this file, and...
8604 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
8605 ... this file, and...
8606 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
8607 ... this file, and...
8608 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
8609 ... this file, and...
8610 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
8611 ... this file into...
8612 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
8615 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8616 Make failure observable.
8618 2016-04-12 Jakub Jelinek <jakub@redhat.com>
8620 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
8622 * target.c (gomp_target_fallback_firstprivate,
8623 gomp_target_unshare_firstprivate): Removed.
8624 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
8625 before waiting for dependencies.
8626 (gomp_target_task_fn): Don't copy firstprivate vars here.
8627 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
8628 firstprivate_copies here.
8629 (gomp_create_target_task): Don't initialize firstprivate_copies field.
8630 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
8631 explicit/implicit firstprivate.
8633 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
8637 PR tree-optimization/70373
8641 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
8643 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
8645 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
8647 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
8649 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
8651 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
8653 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
8655 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
8657 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
8659 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
8660 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
8661 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
8662 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
8664 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
8666 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
8668 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
8670 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
8672 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
8673 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
8674 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
8675 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
8676 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
8677 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
8679 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8680 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8681 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8682 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8683 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
8684 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
8685 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
8686 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
8687 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
8688 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8689 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8690 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8691 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8692 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8693 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
8695 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
8696 James Norris <jnorris@codesourcery.com>
8697 Nathan Sidwell <nathan@codesourcery.com>
8698 Julian Brown <julian@codesourcery.com>
8699 Cesar Philippidis <cesar@codesourcery.com>
8700 Chung-Lin Tang <cltang@codesourcery.com>
8701 Tom de Vries <tom@codesourcery.com>
8703 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
8704 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8705 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8706 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
8707 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8708 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8709 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8710 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
8711 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8713 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
8715 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
8717 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
8718 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
8719 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
8720 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
8722 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
8724 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
8725 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
8726 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
8727 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
8728 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
8729 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
8730 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
8731 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
8732 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
8733 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
8735 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
8736 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
8737 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
8739 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
8741 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
8743 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
8745 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
8747 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
8748 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
8749 ... this new file. Update.
8750 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
8751 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
8752 ... this new file. Update.
8753 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
8754 file. Incorporate...
8755 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
8757 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
8759 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
8761 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
8763 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
8765 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
8766 set-torture-options.
8768 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
8770 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
8772 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8773 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
8774 -fno-builtin-acc_on_device instead of -O0.
8775 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
8777 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
8778 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
8780 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
8781 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
8782 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
8783 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
8784 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
8785 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
8786 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
8787 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
8788 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
8789 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
8790 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
8791 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
8792 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
8793 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
8794 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
8795 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
8796 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
8797 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
8799 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
8801 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
8804 2016-03-24 Martin Liska <mliska@suse.cz>
8806 * plugin/plugin-hsa.c (packet_store_release): New function
8807 that is taken from the HSA runtime manual.
8808 (GOMP_OFFLOAD_run): Use the function.
8810 2016-03-23 Jakub Jelinek <jakub@redhat.com>
8813 * testsuite/libgomp.c++/pr70376.C: New test.
8815 2016-03-23 Tom de Vries <tom@codesourcery.com>
8817 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
8818 initialization of lresult and lvresult.
8819 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
8821 2016-03-23 James Norris <jnorris@codesourcery.com>
8822 Daichi Fukuoka <dc-fukuoka@sgi.com>
8825 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
8826 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
8827 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8828 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
8830 2016-03-23 Martin Liska <mliska@suse.cz>
8833 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
8834 argument just in case a dispatched kernel uses that argument.
8836 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
8838 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
8839 -ftree-parallelize-loops/-fopenacc changes.
8840 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
8842 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
8844 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
8846 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
8848 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
8849 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
8851 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
8853 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
8854 always_ld_library_path the path to libgcc_s.
8856 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
8859 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
8861 2016-03-09 Tom de Vries <tom@codesourcery.com>
8863 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
8864 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
8865 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
8867 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
8868 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
8869 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
8870 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
8872 2016-03-07 Martin Jambor <mjambor@suse.cz>
8874 * testsuite/lib/libgomp.exp
8875 (check_effective_target_hsa_offloading_selected_nocache): New.
8876 (check_effective_target_hsa_offloading_selected): Likewise.
8877 * testsuite/libgomp.hsa.c/c.exp: Likewise.
8878 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
8879 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
8880 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
8881 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
8882 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
8883 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
8884 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
8885 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
8886 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
8887 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
8888 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
8889 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
8890 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
8891 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
8892 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
8893 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
8895 2016-03-07 Martin Jambor <mjambor@suse.cz>
8897 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
8898 non-shared memory accelerators.
8899 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
8900 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
8901 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
8902 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
8903 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
8904 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
8905 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
8906 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
8907 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
8909 2016-03-07 Martin Jambor <mjambor@suse.cz>
8911 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
8914 2016-03-02 Jakub Jelinek <jakub@redhat.com>
8917 * testsuite/libgomp.c++/pr69555-1.C: New test.
8918 * testsuite/libgomp.c++/pr69555-2.C: New test.
8920 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
8921 Martin Jambor <mjambor@suse.cz>
8923 * testsuite/lib/libgomp.exp
8924 (check_effective_target_offload_device_shared_as): New proc.
8925 * testsuite/libgomp.c++/declare_target-1.C: New test.
8927 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
8930 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
8932 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
8934 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
8935 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
8937 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
8938 -ftree-parallelize-loops/-fopenacc changes.
8939 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
8940 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
8942 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
8944 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
8946 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
8948 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
8950 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
8952 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
8954 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
8955 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
8957 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
8958 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
8960 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
8961 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
8964 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
8966 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
8968 2016-02-19 Jakub Jelinek <jakub@redhat.com>
8971 * testsuite/libgomp.c/pr69805.c: New test.
8973 2016-02-16 Tom de Vries <tom@codesourcery.com>
8976 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
8978 2016-02-09 Tom de Vries <tom@codesourcery.com>
8980 PR tree-optimization/69599
8981 * testsuite/libgomp.c/omp-nested-3.c: New test.
8982 * testsuite/libgomp.c/pr46032-2.c: New test.
8983 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
8984 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
8986 2016-02-09 Tom de Vries <tom@codesourcery.com>
8989 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
8991 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
8993 * testsuite/libgomp.c/target-31.c: Fix testcase.
8995 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
8997 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
8999 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
9000 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
9001 reduction and map clauses.
9002 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
9004 2016-02-02 James Norris <jnorris@codesourcery.com>
9006 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
9008 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
9010 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
9011 * oacc-parallel.c (GOACC_host_data): Remove function definition.
9013 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
9016 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
9018 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
9019 (hsa_kmt_lib): Set variables.
9020 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
9021 always_ld_library_path.
9022 * Makefile.in: Regenerate.
9023 * configure: Likewise.
9024 * testsuite/Makefile.in: Likewise.
9026 * plugin/configfrag.ac (offload_additional_options)
9027 (offload_additional_lib_paths): Don't amend for hsa offloading.
9028 * configure: Regenerate.
9030 * plugin/configfrag.ac: Don't configure for offloading target if
9031 we don't build the corresponding plugin.
9032 * configure: Regenerate.
9034 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
9036 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
9037 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
9039 2016-01-26 Tom de Vries <tom@codesourcery.com>
9041 PR tree-optimization/69110
9042 * testsuite/libgomp.c/pr69110.c: New test.
9044 2016-01-25 Richard Biener <rguenther@suse.de>
9047 * testsuite/libgomp.c++/pr69393.C: New testcase.
9049 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
9051 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
9052 function wasn't mapped to the device with non-shared memory.
9054 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
9056 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
9058 2016-01-19 Martin Jambor <mjambor@suse.cz>
9059 Martin Liska <mliska@suse.cz>
9061 * plugin/Makefrag.am: Add HSA plugin requirements.
9062 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
9063 (HSA_RUNTIME_LIB): Likewise.
9064 (HSA_RUNTIME_CPPFLAGS): Likewise.
9065 (HSA_RUNTIME_INCLUDE): New substitution.
9066 (HSA_RUNTIME_LIB): Likewise.
9067 (HSA_RUNTIME_LDFLAGS): Likewise.
9068 (hsa-runtime): New configure option.
9069 (hsa-runtime-include): Likewise.
9070 (hsa-runtime-lib): Likewise.
9071 (PLUGIN_HSA): New substitution variable.
9072 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
9074 (PLUGIN_HSA_CPPFLAGS): Likewise.
9075 (PLUGIN_HSA_LDFLAGS): Likewise.
9076 (PLUGIN_HSA_LIBS): Likewise.
9077 Check that we have access to HSA run-time.
9078 * libgomp-plugin.h (offload_target_type): New element
9079 OFFLOAD_TARGET_TYPE_HSA.
9080 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
9082 (bool gomp_create_target_task): Updated.
9083 (gomp_device_descr): Extra parameter of run_func and async_run_func,
9084 new field can_run_func.
9085 * libgomp_g.h (GOMP_target_ext): Update prototype.
9086 * oacc-host.c (host_run): Added a new parameter args.
9087 * target.c (calculate_firstprivate_requirements): New function.
9088 (copy_firstprivate_data): Likewise.
9089 (gomp_target_fallback_firstprivate): Use them.
9090 (gomp_target_unshare_firstprivate): New function.
9091 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
9093 (GOMP_target): Do host fallback for all shared memory devices. Do not
9094 pass any args to plugins.
9095 (GOMP_target_ext): Introduce device-specific argument parameter args.
9096 Allow host fallback if device shares memory. Do not remap data if
9097 device has shared memory.
9098 (gomp_target_task_fn): Likewise. Also treat shared memory devices
9099 like host fallback for mappings.
9100 (GOMP_target_data): Treat shared memory devices like host fallback.
9101 (GOMP_target_data_ext): Likewise.
9102 (GOMP_target_update): Likewise.
9103 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
9104 gomp_create_target_task.
9105 (GOMP_target_enter_exit_data): Likewise.
9106 (omp_target_alloc): Treat shared memory devices like host fallback.
9107 (omp_target_free): Likewise.
9108 (omp_target_is_present): Likewise.
9109 (omp_target_memcpy): Likewise.
9110 (omp_target_memcpy_rect): Likewise.
9111 (omp_target_associate_ptr): Likewise.
9112 (gomp_load_plugin_for_device): Also load can_run.
9113 * task.c (GOMP_PLUGIN_target_task_completion): Free
9114 firstprivate_copies.
9115 (gomp_create_target_task): Accept new argument args and store it to
9117 * plugin/plugin-hsa.c: New file.
9119 2016-01-18 Tom de Vries <tom@codesourcery.com>
9121 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
9122 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
9123 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
9124 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
9125 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
9126 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
9127 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
9128 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
9129 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
9130 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
9131 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
9133 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
9135 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
9136 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
9137 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
9138 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
9139 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
9140 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
9141 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
9142 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
9144 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
9146 2016-01-15 Jakub Jelinek <jakub@redhat.com>
9148 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
9150 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
9152 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
9154 2016-01-12 James Norris <jnorris@codesourcery.com>
9156 * libgomp.texi: Updates for OpenACC.
9158 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
9160 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
9162 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
9165 * testsuite/libgomp.fortran/pr66680.f90: New test.
9167 2016-01-07 Jakub Jelinek <jakub@redhat.com>
9170 * testsuite/libgomp.c/pr68960.c: New test.
9172 2016-01-06 Nathan Sidwell <nathan@acm.org>
9174 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
9175 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
9177 2016-01-04 Jakub Jelinek <jakub@redhat.com>
9179 Update copyright years.
9181 * libgomp.texi: Bump @copying's copyright year.
9183 2015-12-31 Nathan Sidwell <nathan@acm.org>
9185 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
9186 dg-additional-options syntax.
9187 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
9188 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
9189 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
9190 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
9191 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
9192 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
9193 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
9194 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
9195 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
9196 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
9197 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
9198 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
9199 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
9200 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
9201 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
9202 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
9203 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
9204 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
9206 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
9208 * libgomp.h (REFCOUNT_LINK): Define.
9209 (struct splay_tree_key_s): Add link_key.
9210 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
9211 Replace target address of the pointer with target address of newly
9212 mapped object in the splay tree. Set link pointer on target to the
9213 device address of the mapped object.
9214 (gomp_unmap_vars): Restore target address of the pointer in the splay
9215 tree for REFCOUNT_LINK objects after unmapping.
9216 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
9217 declare target link" objects.
9218 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
9219 "omp declare target link" objects, which were mapped for the image.
9220 (gomp_exit_data): Restore target address of the pointer in the splay
9221 tree for REFCOUNT_LINK objects after unmapping.
9222 * testsuite/libgomp.c/target-link-1.c: New file.
9224 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
9226 * libgomp.h (gomp_device_state): New enum.
9227 (struct gomp_device_descr): Replace is_initialized with state.
9228 (gomp_fini_device): Remove declaration.
9229 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
9230 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
9231 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
9232 (acc_set_device_type): Use state instead of is_initialized.
9233 (acc_set_device_num): Likewise.
9234 * target.c (resolve_device): Use state instead of is_initialized.
9235 Do not initialize finalized device.
9236 (gomp_map_vars): Do nothing if device is finalized.
9237 (gomp_unmap_vars): Likewise.
9238 (gomp_update): Likewise.
9239 (GOMP_offload_register_ver): Use state instead of is_initialized.
9240 (GOMP_offload_unregister_ver): Likewise.
9241 (gomp_init_device): Likewise.
9242 (gomp_unload_device): Likewise.
9243 (gomp_fini_device): Remove.
9244 (gomp_get_target_fn_addr): Do nothing if device is finalized.
9245 (GOMP_target): Go to host fallback if device is finalized.
9246 (GOMP_target_ext): Likewise.
9247 (gomp_exit_data): Do nothing if device is finalized.
9248 (gomp_target_task_fn): Go to host fallback if device is finalized.
9249 (gomp_target_fini): New static function.
9250 (gomp_target_init): Use state instead of is_initialized.
9251 Call gomp_target_fini at exit.
9253 2015-12-09 Tom de Vries <tom@codesourcery.com>
9255 PR tree-optimization/68716
9256 * testsuite/libgomp.c/omp-nested-2.c: New test.
9258 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
9260 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
9261 target openacc_nvidia_accel_selected.
9262 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
9263 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
9264 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
9265 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
9267 2015-12-01 Julian Brown <julian@codesourcery.com>
9268 James Norris <James_Norris@mentor.com>
9270 * oacc-parallel.c (GOACC_host_data): New function.
9271 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
9272 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
9273 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
9274 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
9275 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
9276 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
9277 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
9279 2015-11-30 James Norris <jnorris@codesourcery.com>
9280 Cesar Philippidis <cesar@codesourcery.com>
9283 * libgomp.oacc-fortran/routine-5.f90: New test.
9284 * libgomp.oacc-fortran/routine-7.f90: New test.
9285 * libgomp.oacc-fortran/routine-9.f90: New test.
9287 2015-11-30 Tom de Vries <tom@codesourcery.com>
9289 PR tree-optimization/46032
9290 * testsuite/libgomp.c/pr46032.c: New test.
9292 2015-11-27 Jakub Jelinek <jakub@redhat.com>
9295 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
9296 (gomp_create_target_task): Call it before freeing
9297 GOMP_TARGET_TASK_DATA tasks.
9300 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
9301 in between case label and OpenMP standalone directives.
9302 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
9304 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
9306 * configure: Regenerate.
9308 2015-11-26 Jakub Jelinek <jakub@redhat.com>
9310 * testsuite/libgomp.c/target-35.c: New test.
9312 2015-11-22 James Norris <jnorris@codesourcery.com>
9313 Cesar Philippidis <cesar@codesourcery.com>
9315 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
9316 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
9317 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
9318 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
9319 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
9321 2015-11-20 Jakub Jelinek <jakub@redhat.com>
9324 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
9325 * testsuite/libgomp.c/reduction-12.c: Likewise.
9326 * testsuite/libgomp.c++/reduction-11.C: Likewise.
9327 * testsuite/libgomp.c++/reduction-12.C: Likewise.
9329 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
9331 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
9332 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
9333 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
9334 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
9335 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
9337 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9338 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9340 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
9342 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
9343 worker & gang cases.
9344 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
9346 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
9348 * config/nvptx/priority_queue.c: New file.
9350 2015-11-14 Jakub Jelinek <jakub@redhat.com>
9352 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
9355 2015-11-14 Jakub Jelinek <jakub@redhat.com>
9356 Aldy Hernandez <aldyh@redhat.com>
9357 Ilya Verbin <ilya.verbin@intel.com>
9359 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
9360 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
9361 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
9362 iterators or IV by chunk size.
9363 * parallel.c (gomp_resolve_num_threads): Don't assume that
9364 if thr->ts.team is non-NULL, then pool must be non-NULL.
9365 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
9366 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
9367 GOMP_PLUGIN_target_task_completion.
9368 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
9369 * Makefile.in: Regenerate.
9370 * libgomp.h: Shuffle prototypes and forward definitions around so
9371 priority queues can be defined.
9372 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
9373 (enum gomp_target_task_state): New enum.
9374 (struct gomp_target_task): Add state, tgt, task and team fields.
9375 (gomp_create_target_task): Change return type to bool, add
9377 (gomp_target_task_fn): Change return type to bool.
9378 (struct gomp_device_descr): Add async_run_func.
9379 (struct gomp_task): Remove children, next_child, prev_child,
9380 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
9382 (struct gomp_taskgroup): Remove children.
9383 Add taskgroup_queue.
9384 (struct gomp_team): Change task_queue type to a priority queue.
9385 (splay_compare): Define inline.
9386 (priority_queue_offset): New.
9387 (priority_node_to_task): New.
9388 (task_to_priority_node): New.
9389 * oacc-mem.c: Do not include splay-tree.h.
9390 * priority_queue.c: New file.
9391 * priority_queue.h: New file.
9392 * splay-tree.c: Do not include splay-tree.h.
9393 (splay_tree_foreach_internal): New.
9394 (splay_tree_foreach): New.
9395 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
9396 (splay_tree_callback): Define typedef.
9397 * target.c (splay_compare): Move to libgomp.h.
9398 (GOMP_target): Don't adjust *thr in any way around running offloaded
9400 (GOMP_target_ext): Likewise. Handle target nowait.
9401 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
9402 return value from gomp_create_target_task, if false, fallthrough
9403 as if no dependencies exist.
9404 (gomp_target_task_fn): Change return type to bool, return true
9405 if the task should have another part scheduled later. Handle
9407 (gomp_load_plugin_for_device): Initialize async_run.
9408 * task.c (gomp_init_task): Initialize children_queue.
9409 (gomp_clear_parent_in_list): New.
9410 (gomp_clear_parent_in_tree): New.
9411 (gomp_clear_parent): Handle priorities.
9412 (GOMP_task): Likewise.
9413 (priority_queue_move_task_first,
9414 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
9416 (gomp_create_target_task): Use priority queues. Change return type
9417 to bool, add state argument, return false if for async
9418 {{enter,exit} data,update} constructs no dependencies need to be
9419 waited for, handle target nowait. Set task->fn to NULL instead of
9420 gomp_target_task_fn.
9421 (verify_children_queue): Remove.
9422 (priority_list_upgrade_task): New.
9423 (priority_queue_upgrade_task): New.
9424 (verify_task_queue): Remove.
9425 (priority_list_downgrade_task): New.
9426 (priority_queue_downgrade_task): New.
9427 (gomp_task_run_pre): Use priority queues.
9428 Abstract code out to priority_queue_downgrade_task.
9429 (gomp_task_run_post_handle_dependers): Use priority queues.
9430 (gomp_task_run_post_remove_parent): Likewise.
9431 (gomp_task_run_post_remove_taskgroup): Likewise.
9432 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
9434 (GOMP_taskwait): Likewise.
9435 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
9436 priority-queue_upgrade_task.
9437 (GOMP_taskgroup_start): Use priority queues.
9438 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
9439 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
9441 * taskloop.c (GOMP_taskloop): Handle priorities.
9442 * team.c (gomp_new_team): Call priority_queue_init.
9443 (free_team): Call priority_queue_free.
9444 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
9445 team created for target nowait in implicit parallel region.
9446 (gomp_team_start): For nested check, test thr->ts.level instead of
9447 thr->ts.team != NULL.
9448 * testsuite/libgomp.c/doacross-3.c: New test.
9449 * testsuite/libgomp.c/ordered-5.c: New test.
9450 * testsuite/libgomp.c/priority.c: New test.
9451 * testsuite/libgomp.c/target-31.c: New test.
9452 * testsuite/libgomp.c/target-32.c: New test.
9453 * testsuite/libgomp.c/target-33.c: New test.
9454 * testsuite/libgomp.c/target-34.c: New test.
9456 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
9458 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
9460 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
9463 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
9465 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
9466 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
9468 2015-11-12 James Norris <jnorris@codesourcery.com>
9469 Joseph Myers <joseph@codesourcery.com>
9471 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
9472 * oacc-parallel.c (GOACC_declare): New function.
9473 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
9474 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
9475 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
9476 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
9477 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
9479 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
9481 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
9483 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
9485 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
9486 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
9488 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
9490 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
9493 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
9495 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
9496 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
9497 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
9498 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
9499 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
9501 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
9503 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
9504 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
9506 2015-11-05 Jakub Jelinek <jakub@redhat.com>
9507 Ilya Verbin <ilya.verbin@intel.com>
9509 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
9510 GOMP_loop_nonmonotonic_dynamic_start,
9511 GOMP_loop_nonmonotonic_guided_next,
9512 GOMP_loop_nonmonotonic_guided_start,
9513 GOMP_loop_ull_nonmonotonic_dynamic_next,
9514 GOMP_loop_ull_nonmonotonic_dynamic_start,
9515 GOMP_loop_ull_nonmonotonic_guided_next,
9516 GOMP_loop_ull_nonmonotonic_guided_start,
9517 GOMP_parallel_loop_nonmonotonic_dynamic,
9518 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
9519 (GOMP_target_41): Renamed to ...
9520 (GOMP_target_ext): ... this. Add num_teams and thread_limit
9522 (GOMP_target_data_41): Renamed to ...
9523 (GOMP_target_data_ext): ... this.
9524 (GOMP_target_update_41): Renamed to ...
9525 (GOMP_target_update_ext): ... this.
9526 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
9527 GOMP_target_data_ext and GOMP_target_update_ext instead of
9528 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
9529 Export GOMP_loop_nonmonotonic_dynamic_next,
9530 GOMP_loop_nonmonotonic_dynamic_start,
9531 GOMP_loop_nonmonotonic_guided_next,
9532 GOMP_loop_nonmonotonic_guided_start,
9533 GOMP_loop_ull_nonmonotonic_dynamic_next,
9534 GOMP_loop_ull_nonmonotonic_dynamic_start,
9535 GOMP_loop_ull_nonmonotonic_guided_next,
9536 GOMP_loop_ull_nonmonotonic_guided_start,
9537 GOMP_parallel_loop_nonmonotonic_dynamic and
9538 GOMP_parallel_loop_nonmonotonic_guided.
9539 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
9540 GOMP_parallel_loop_nonmonotonic_guided,
9541 GOMP_loop_nonmonotonic_dynamic_start,
9542 GOMP_loop_nonmonotonic_guided_start,
9543 GOMP_loop_nonmonotonic_dynamic_next,
9544 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
9545 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
9546 GOMP_loop_ull_nonmonotonic_guided_start,
9547 GOMP_loop_ull_nonmonotonic_dynamic_next,
9548 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
9549 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
9551 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
9552 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
9553 Use gomp_map_val function.
9554 (gomp_target_fallback_firstprivate): New static function.
9555 (GOMP_target_41): Renamed to ...
9556 (GOMP_target_ext): ... this. Add num_teams and thread_limit
9557 arguments. Move firstprivate fallback handling into a new
9559 (GOMP_target_data_41): Renamed to ...
9560 (GOMP_target_data_ext): ... this.
9561 (GOMP_target_update_41): Renamed to ...
9562 (GOMP_target_update_ext): ... this.
9563 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
9564 gomp_map_0len_lookup instead of gomp_map_lookup.
9565 (omp_target_is_present): Use gomp_map_0len_lookup instead of
9567 * testsuite/libgomp.c/target-28.c: Likewise.
9568 * testsuite/libgomp.c/monotonic-1.c: New test.
9569 * testsuite/libgomp.c/monotonic-2.c: New test.
9570 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
9571 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
9572 * testsuite/libgomp.c/pr66199-5.c: New test.
9573 * testsuite/libgomp.c/pr66199-6.c: New test.
9574 * testsuite/libgomp.c/pr66199-7.c: New test.
9575 * testsuite/libgomp.c/pr66199-8.c: New test.
9576 * testsuite/libgomp.c/pr66199-9.c: New test.
9577 * testsuite/libgomp.c/reduction-11.c: New test.
9578 * testsuite/libgomp.c/reduction-12.c: New test.
9579 * testsuite/libgomp.c/reduction-13.c: New test.
9580 * testsuite/libgomp.c/reduction-14.c: New test.
9581 * testsuite/libgomp.c/reduction-15.c: New test.
9582 * testsuite/libgomp.c/target-12.c (main): Adjust for
9583 omp_target_is_present change for one-past-last element.
9584 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
9585 the same var is both mapped and privatized.
9586 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
9587 handling of zero-length array sections.
9588 * testsuite/libgomp.c/target-28.c: New test.
9589 * testsuite/libgomp.c/target-29.c: New test.
9590 * testsuite/libgomp.c/target-30.c: New test.
9591 * testsuite/libgomp.c/target-teams-1.c: New test.
9592 * testsuite/libgomp.c++/member-6.C: New test.
9593 * testsuite/libgomp.c++/member-7.C: New test.
9594 * testsuite/libgomp.c++/monotonic-1.C: New test.
9595 * testsuite/libgomp.c++/monotonic-2.C: New test.
9596 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
9597 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
9598 * testsuite/libgomp.c++/pr66199-3.C: New test.
9599 * testsuite/libgomp.c++/pr66199-4.C: New test.
9600 * testsuite/libgomp.c++/pr66199-5.C: New test.
9601 * testsuite/libgomp.c++/pr66199-6.C: New test.
9602 * testsuite/libgomp.c++/pr66199-7.C: New test.
9603 * testsuite/libgomp.c++/pr66199-8.C: New test.
9604 * testsuite/libgomp.c++/pr66199-9.C: New test.
9605 * testsuite/libgomp.c++/reduction-11.C: New test.
9606 * testsuite/libgomp.c++/reduction-12.C: New test.
9607 * testsuite/libgomp.c++/target-13.C: New test.
9608 * testsuite/libgomp.c++/target-14.C: New test.
9609 * testsuite/libgomp.c++/target-15.C: New test.
9610 * testsuite/libgomp.c++/target-16.C: New test.
9611 * testsuite/libgomp.c++/target-17.C: New test.
9612 * testsuite/libgomp.c++/target-18.C: New test.
9613 * testsuite/libgomp.c++/target-19.C: New test.
9615 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
9617 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
9619 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9620 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9621 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9622 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9623 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
9624 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9625 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
9626 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
9627 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9628 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
9629 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
9630 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
9631 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
9632 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
9634 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
9636 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
9637 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
9638 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
9639 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
9640 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
9641 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
9642 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
9643 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
9645 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
9647 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
9648 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
9649 (GOMP_OFFLOAD_openacc_parallel): Likewise.
9650 * oacc-host.c (host_openacc_exec): Likewise.
9651 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
9653 2015-11-03 Julian Brown <julian@codesourcery.com>
9654 Thomas Schwinge <thomas@codesourcery.com>
9656 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
9657 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
9658 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
9660 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
9661 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
9663 2015-11-03 James Norris <jnorris@codesourcery.com>
9665 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
9667 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
9669 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
9670 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
9671 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
9672 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
9673 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
9675 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
9677 * openacc.h (enum acc_device_t): Reformat. Ensure layout
9679 (enum acc_async_t): Reformat.
9680 (acc_on_device): Declare compatible with builtin and provide C++
9682 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
9684 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
9685 Cesar Philippidis <cesar@codesourcery.com>
9687 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
9688 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
9689 ... this. Add a description of the test at the top of the file.
9690 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
9691 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
9692 ... this. Add a description of the test at the top of the file.
9694 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
9696 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
9697 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
9698 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
9699 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
9700 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
9701 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
9703 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9705 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
9708 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
9711 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
9713 2015-10-27 James Norris <jnorris@codesourcery.com>
9715 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
9716 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
9718 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
9720 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
9721 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
9723 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
9724 acc_device_nvidia usage.
9725 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
9726 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
9727 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
9729 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
9730 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
9733 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
9737 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
9738 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
9740 2015-10-23 Tom de Vries <tom@codesourcery.com>
9743 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
9745 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
9747 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
9749 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9751 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
9752 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
9754 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
9755 to 0 when mapnum is 0.
9757 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
9759 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
9760 Cast to int from int32_t.
9762 2015-10-13 Jakub Jelinek <jakub@redhat.com>
9763 Aldy Hernandez <aldyh@redhat.com>
9764 Ilya Verbin <ilya.verbin@intel.com>
9766 * config/linux/affinity.c (omp_get_place_num_procs,
9767 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
9768 * config/linux/doacross.h: New file.
9769 * config/posix/affinity.c (omp_get_place_num_procs,
9770 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
9771 * config/posix/doacross.h: New file.
9772 * env.c: Include gomp-constants.h.
9773 (struct gomp_task_icv): Rename run_sched_modifier to
9774 run_sched_chunk_size.
9775 (gomp_max_task_priority_var): New variable.
9776 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
9777 (handle_omp_display_env): Change _OPENMP value from 201307 to
9778 201511. Print OMP_MAX_TASK_PRIORITY.
9779 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
9780 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
9781 chunk_size and run_sched_modifier to run_sched_chunk_size.
9782 (omp_get_max_task_priority, omp_get_initial_device,
9783 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
9784 omp_get_partition_place_nums): New functions.
9785 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
9786 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
9788 (omp_get_num_places_, omp_get_place_num_procs_,
9789 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
9790 omp_get_place_proc_ids_8_, omp_get_place_num_,
9791 omp_get_partition_num_places_, omp_get_partition_place_nums_,
9792 omp_get_partition_place_nums_8_, omp_get_initial_device_,
9793 omp_get_max_task_priority_): New functions.
9794 * libgomp_g.h (GOMP_loop_doacross_static_start,
9795 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
9796 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
9797 GOMP_loop_ull_doacross_dynamic_start,
9798 GOMP_loop_ull_doacross_guided_start,
9799 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
9800 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
9801 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
9802 GOMP_target_data_41, GOMP_target_update_41,
9803 GOMP_target_enter_exit_data): New prototypes.
9804 (GOMP_task): Add prototype argument.
9805 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
9806 (struct gomp_doacross_work_share): New type.
9807 (struct gomp_work_share): Add doacross field.
9808 (struct gomp_task_icv): Rename run_sched_modifier to
9809 run_sched_chunk_size.
9810 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
9811 GOMP_TASK_UNDEFERRED. Add comments.
9812 (struct gomp_task_depend_entry): Add comments.
9813 (struct gomp_task): Likewise.
9814 (struct gomp_taskgroup): Likewise.
9815 (struct gomp_target_task): New type.
9816 (struct gomp_team): Add comment.
9817 (gomp_get_place_proc_ids_8, gomp_doacross_init,
9818 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
9819 gomp_create_target_task, gomp_target_task_fn): New prototypes.
9820 (struct target_var_desc): New type.
9821 (struct target_mem_desc): Adjust comment. Use struct
9822 target_var_desc instead of splay_tree_key for list.
9823 (REFCOUNT_INFINITY): Define.
9824 (struct splay_tree_key_s): Remove copy_from field.
9825 (struct gomp_device_descr): Add dev2dev_func field.
9826 (enum gomp_map_vars_kind): New enum.
9827 (gomp_map_vars): Add one argument.
9828 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
9829 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
9830 omp_get_place_num_procs, omp_get_place_num_procs_,
9831 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
9832 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
9833 omp_get_place_num_, omp_get_partition_num_places,
9834 omp_get_partition_num_places_, omp_get_partition_place_nums,
9835 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
9836 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
9837 omp_target_free, omp_target_is_present, omp_target_memcpy,
9838 omp_target_memcpy_rect, omp_target_associate_ptr and
9839 omp_target_disassociate_ptr.
9840 (GOMP_4.0.2): Renamed to ...
9841 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
9842 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
9843 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
9844 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
9845 GOMP_loop_doacross_static_start, GOMP_doacross_post,
9846 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
9847 GOMP_loop_ull_doacross_guided_start,
9848 GOMP_loop_ull_doacross_runtime_start,
9849 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
9850 GOMP_doacross_ull_wait.
9851 * libgomp.texi: Document omp_get_max_task_priority.
9852 Rename modifier argument to chunk_size for omp_set_schedule and
9853 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
9854 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
9855 to run_sched_chunk_size renaming.
9856 (GOMP_loop_ordered_runtime_start): Likewise.
9857 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
9858 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
9859 GOMP_parallel_loop_runtime_start): New functions.
9860 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
9861 to run_sched_chunk_size renaming.
9862 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
9863 GOMP_loop_doacross_guided_start): New functions or aliases.
9864 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
9865 run_sched_modifier to run_sched_chunk_size renaming.
9866 (GOMP_loop_ull_ordered_runtime_start): Likewise.
9867 (gomp_loop_ull_doacross_static_start,
9868 gomp_loop_ull_doacross_dynamic_start,
9869 gomp_loop_ull_doacross_guided_start,
9870 GOMP_loop_ull_doacross_runtime_start): New functions.
9871 (GOMP_loop_ull_doacross_static_start,
9872 GOMP_loop_ull_doacross_dynamic_start,
9873 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
9874 * oacc-mem.c (acc_map_data, present_create_copy,
9875 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
9877 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
9878 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
9879 instead of false to gomp_map_vars.
9880 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
9881 * omp.h.in (omp_lock_hint_t): New type.
9882 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
9883 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
9884 omp_get_place_num, omp_get_partition_num_places,
9885 omp_get_partition_place_nums, omp_get_initial_device,
9886 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
9887 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
9888 omp_target_associate_ptr, omp_target_disassociate_ptr): New
9890 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
9891 (omp_lock_hint_none, omp_lock_hint_uncontended,
9892 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
9893 omp_lock_hint_speculative): New parameters.
9894 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
9895 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
9896 omp_get_place_num, omp_get_partition_num_places,
9897 omp_get_partition_place_nums, omp_get_initial_device,
9898 omp_get_max_task_priority): New interfaces.
9899 (omp_set_schedule, omp_get_schedule): Rename modifier argument
9901 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
9902 (omp_lock_hint_none, omp_lock_hint_uncontended,
9903 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
9904 omp_lock_hint_speculative): New parameters.
9905 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
9906 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
9907 omp_get_place_num, omp_get_partition_num_places,
9908 omp_get_partition_place_nums, omp_get_initial_device,
9909 omp_get_max_task_priority): New functions and subroutines.
9910 * ordered.c: Include stdarg.h and string.h.
9911 (MAX_COLLAPSED_BITS): Define.
9912 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
9913 gomp_doacross_ull_init, GOMP_doacross_ull_post,
9914 GOMP_doacross_ull_wait): New functions.
9915 * target.c: Include errno.h.
9916 (resolve_device): If device is not initialized, call
9917 gomp_init_device on it.
9918 (gomp_map_lookup): New function.
9919 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
9920 Don't bump refcount if REFCOUNT_INFINITY. Handle
9921 GOMP_MAP_ALWAYS_TO_P.
9922 (get_kind): Rename is_openacc argument to short_mapkind.
9923 (gomp_map_pointer): Use gomp_map_lookup.
9924 (gomp_map_fields_existing): New function.
9925 (gomp_map_vars): Rename is_openacc argument to short_mapkind
9926 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
9927 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
9928 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
9929 Adjust for tgt->list changed type and copy_from living in there.
9930 (gomp_copy_from_async): Adjust for tgt->list changed type and
9931 copy_from living in there.
9932 (gomp_unmap_vars): Likewise.
9933 (gomp_update): Likewise. Rename is_openacc argument to
9934 short_mapkind. Don't fail if object is not mapped.
9935 (gomp_load_image_to_device): Initialize refcount to
9937 (gomp_target_fallback): New function.
9938 (gomp_get_target_fn_addr): Likewise.
9939 (GOMP_target): Adjust gomp_map_vars caller, use
9940 gomp_get_target_fn_addr and gomp_target_fallback.
9941 (GOMP_target_41): New function.
9942 (gomp_target_data_fallback): New function.
9943 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
9944 (GOMP_target_data_41): New function.
9945 (GOMP_target_update): Adjust gomp_update caller.
9946 (GOMP_target_update_41): New function.
9947 (gomp_exit_data, GOMP_target_enter_exit_data,
9948 gomp_target_task_fn, omp_target_alloc, omp_target_free,
9949 omp_target_is_present, omp_target_memcpy,
9950 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
9951 omp_target_associate_ptr, omp_target_disassociate_ptr,
9952 gomp_load_plugin_for_device): New functions.
9953 * task.c: Include gomp-constants.h. Include taskloop.c
9954 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
9955 (gomp_task_handle_depend): New function.
9956 (GOMP_task): Use it. Add priority argument. Use
9957 gomp-constant.h constants instead of hardcoded numbers.
9958 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
9959 (gomp_create_target_task): New function.
9960 (verify_children_queue, verify_taskgroup_queue,
9961 verify_task_queue): New functions.
9962 (gomp_task_run_pre): Call verify_*_queue functions.
9963 If an upcoming tied task is about to leave the sibling or
9964 taskgroup queues in an invalid state, adjust appropriately.
9965 Remove taskgroup argument. Add comments.
9966 (gomp_task_run_post_handle_dependers): Add comments.
9967 (gomp_task_run_post_remove_parent): Likewise.
9968 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
9969 (GOMP_taskwait): Likewise. Add comments.
9970 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
9971 problem such that the first non parent_depends_on task does not
9972 end up at the end of the children queue.
9973 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
9974 GOMP_TASK_UNDEFERRED.
9975 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
9976 * taskloop.c: New file.
9977 * testsuite/lib/libgomp.exp
9978 (check_effective_target_offload_device_nonshared_as): New proc.
9979 * testsuite/libgomp.c/affinity-2.c: New test.
9980 * testsuite/libgomp.c/doacross-1.c: New test.
9981 * testsuite/libgomp.c/doacross-2.c: New test.
9982 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
9983 Add map clause to target.
9984 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
9985 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
9986 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
9987 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
9988 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
9990 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
9991 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
9992 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
9993 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
9994 not defined. Use those where needed.
9995 * testsuite/libgomp.c/for-4.c: New test.
9996 * testsuite/libgomp.c/for-5.c: New test.
9997 * testsuite/libgomp.c/for-6.c: New test.
9998 * testsuite/libgomp.c/linear-1.c: New test.
9999 * testsuite/libgomp.c/ordered-4.c: New test.
10000 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
10001 only allowed on the loop iterator.
10002 * testsuite/libgomp.c/pr66199-3.c: New test.
10003 * testsuite/libgomp.c/pr66199-4.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/target-1.c (fn2, fn3, fn4): Add
10010 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
10011 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
10012 * testsuite/libgomp.c/target-11.c: New test.
10013 * testsuite/libgomp.c/target-12.c: New test.
10014 * testsuite/libgomp.c/target-13.c: New test.
10015 * testsuite/libgomp.c/target-14.c: New test.
10016 * testsuite/libgomp.c/target-15.c: New test.
10017 * testsuite/libgomp.c/target-16.c: New test.
10018 * testsuite/libgomp.c/target-17.c: New test.
10019 * testsuite/libgomp.c/target-18.c: New test.
10020 * testsuite/libgomp.c/target-19.c: New test.
10021 * testsuite/libgomp.c/target-20.c: New test.
10022 * testsuite/libgomp.c/target-21.c: New test.
10023 * testsuite/libgomp.c/target-22.c: New test.
10024 * testsuite/libgomp.c/target-23.c: New test.
10025 * testsuite/libgomp.c/target-24.c: New test.
10026 * testsuite/libgomp.c/target-25.c: New test.
10027 * testsuite/libgomp.c/target-26.c: New test.
10028 * testsuite/libgomp.c/target-27.c: New test.
10029 * testsuite/libgomp.c/taskloop-1.c: New test.
10030 * testsuite/libgomp.c/taskloop-2.c: New test.
10031 * testsuite/libgomp.c/taskloop-3.c: New test.
10032 * testsuite/libgomp.c/taskloop-4.c: New test.
10033 * testsuite/libgomp.c++/ctor-13.C: New test.
10034 * testsuite/libgomp.c++/doacross-1.C: New test.
10035 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
10036 Replace offload_device with offload_device_nonshared_as.
10037 * testsuite/libgomp.c++/for-12.C: New test.
10038 * testsuite/libgomp.c++/for-13.C: New test.
10039 * testsuite/libgomp.c++/for-14.C: New test.
10040 * testsuite/libgomp.c++/linear-1.C: New test.
10041 * testsuite/libgomp.c++/member-1.C: New test.
10042 * testsuite/libgomp.c++/member-2.C: New test.
10043 * testsuite/libgomp.c++/member-3.C: New test.
10044 * testsuite/libgomp.c++/member-4.C: New test.
10045 * testsuite/libgomp.c++/member-5.C: New test.
10046 * testsuite/libgomp.c++/ordered-1.C: New test.
10047 * testsuite/libgomp.c++/reduction-5.C: New test.
10048 * testsuite/libgomp.c++/reduction-6.C: New test.
10049 * testsuite/libgomp.c++/reduction-7.C: New test.
10050 * testsuite/libgomp.c++/reduction-8.C: New test.
10051 * testsuite/libgomp.c++/reduction-9.C: New test.
10052 * testsuite/libgomp.c++/reduction-10.C: New test.
10053 * testsuite/libgomp.c++/reference-1.C: New test.
10054 * testsuite/libgomp.c++/simd14.C: New test.
10055 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
10056 * testsuite/libgomp.c++/target-5.C: New test.
10057 * testsuite/libgomp.c++/target-6.C: New test.
10058 * testsuite/libgomp.c++/target-7.C: New test.
10059 * testsuite/libgomp.c++/target-8.C: New test.
10060 * testsuite/libgomp.c++/target-9.C: New test.
10061 * testsuite/libgomp.c++/target-10.C: New test.
10062 * testsuite/libgomp.c++/target-11.C: New test.
10063 * testsuite/libgomp.c++/target-12.C: New test.
10064 * testsuite/libgomp.c++/taskloop-1.C: New test.
10065 * testsuite/libgomp.c++/taskloop-2.C: New test.
10066 * testsuite/libgomp.c++/taskloop-3.C: New test.
10067 * testsuite/libgomp.c++/taskloop-4.C: New test.
10068 * testsuite/libgomp.c++/taskloop-5.C: New test.
10069 * testsuite/libgomp.c++/taskloop-6.C: New test.
10070 * testsuite/libgomp.c++/taskloop-7.C: New test.
10071 * testsuite/libgomp.c++/taskloop-8.C: New test.
10072 * testsuite/libgomp.c++/taskloop-9.C: New test.
10073 * testsuite/libgomp.fortran/affinity1.f90: New test.
10074 * testsuite/libgomp.fortran/affinity2.f90: New test.
10076 2015-10-13 Tom de Vries <tom@codesourcery.com>
10078 PR tree-optimization/67476
10079 * testsuite/libgomp.c/autopar-3.c: New test.
10080 * testsuite/libgomp.c/autopar-4.c: New test.
10081 * testsuite/libgomp.c/autopar-5.c: New test.
10082 * testsuite/libgomp.c/autopar-6.c: New test.
10083 * testsuite/libgomp.c/autopar-7.c: New test.
10084 * testsuite/libgomp.c/autopar-8.c: New test.
10086 2015-10-12 James Norris <jnorris@codesourcery.com>
10088 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
10091 2015-10-09 David Malcolm <dmalcolm@redhat.com>
10093 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
10094 using load_gcc_lib.
10096 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
10098 * oacc-ptx.h: Remove file, moving its content into...
10099 * config/nvptx/fortran.c: ... here...
10100 * config/nvptx/oacc-init.c: ..., here...
10101 * config/nvptx/oacc-parallel.c: ..., and here.
10102 * config/nvptx/openacc.f90: New file.
10103 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
10104 (link_ptx): Don't link in predefined bits of PTX code.
10106 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
10107 Bernd Schmidt <bernds@codesourcery.com>
10109 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
10110 (struct targ_ptx_obj): New.
10111 (nvptx_tdata): Move earlier, change data format.
10112 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
10114 (GOMP_OFFLOAD_load_image): Adjust.
10116 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10118 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
10119 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
10120 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
10121 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
10122 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10123 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10124 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10125 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10126 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10127 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10128 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10129 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
10130 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
10131 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10132 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10133 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10134 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
10135 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10136 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10137 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10138 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10139 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10140 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
10141 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
10142 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10143 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10144 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
10145 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10146 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10147 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
10148 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
10149 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
10150 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
10151 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
10152 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10153 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10154 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10155 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10156 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10157 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10158 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10159 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10160 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
10161 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
10162 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
10163 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
10164 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
10165 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
10166 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
10167 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
10168 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
10169 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
10170 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
10171 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
10172 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
10173 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10174 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10175 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10176 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10177 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10178 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10179 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10180 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10182 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
10184 * oacc-init.c (acc_on_device): Force optimization level.
10186 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
10188 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
10189 (cuda_errlist): Delete.
10190 (cuda_error): Reimplement.
10192 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
10194 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
10196 * libgomp.map (GOACC_parallel_keyed): New.
10197 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
10199 (GOACC_parallel_keyed): New interface. Lose geometry arguments
10200 and take keyed varargs list. Adjust call to exec_func.
10201 (GOACC_parallel): Force host fallback.
10202 * libgomp_g.h (GOACC_parallel): Remove.
10203 (GOACC_parallel_keyed): Declare.
10204 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
10205 (struct targ_gn_descriptor): Replace name field with launch field.
10206 (nvptx_exec): Lose separate geometry args, take array. Process
10207 dynamic dimensions and adjust.
10208 (struct nvptx_tdata): Replace fn_names field with fn_descs.
10209 (GOMP_OFFLOAD_load_image): Adjust for change in function table
10211 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
10213 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
10216 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
10219 * oacc-int.h (goacc_host_init): Add declaration.
10220 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
10221 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
10223 2015-09-08 Aditya Kumar <hiraditya@msn.com>
10224 Sebastian Pop <s.pop@samsung.com>
10226 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
10228 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
10229 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
10230 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
10231 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
10232 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
10234 2015-09-03 Jakub Jelinek <jakub@redhat.com>
10236 * configure.tgt: Add missing ;; in between nvptx and rtems
10239 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
10241 * config/posix/pool.h (gomp_adjust_thread_attr): New.
10242 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
10243 (gomp_thread_pool_reservoir): Add priority member.
10244 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
10246 (parse_thread_pools): Likewise.
10247 * team.c (gomp_team_start): Call configuration provided
10248 gomp_adjust_thread_attr(). Destroy thread attributes if
10250 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
10252 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
10254 * config/posix/pool.h: New.
10255 * config/rtems/pool.h: Likewise.
10256 * config/rtems/proc.c: Likewise.
10257 * libgomp.h (gomp_thread_destructor): Declare.
10258 * team.c: Include configuration provided "pool.h".
10259 (gomp_get_thread_pool): Define in configuration.
10260 (gomp_team_end): Call configuration defined
10261 gomp_release_thread_pool().
10263 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
10265 * config/rtems/bar.c: New.
10266 * config/rtems/bar.h: Likewise.
10267 * config/rtems/mutex.c: Likewise.
10268 * config/rtems/mutex.h: Likewise.
10269 * config/rtems/sem.c: Likewise.
10270 * config/rtems/sem.h: Likewise.
10271 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
10272 <sys/lock.h> header file.
10273 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
10274 supported by Newlib.
10275 * configure: Regenerate.
10277 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
10279 * team.c (gomp_new_thread_pool): Delete and move content to ...
10280 (gomp_get_thread_pool): ... new function. Allocate and
10281 initialize thread pool on demand.
10282 (get_last_team): Use gomp_get_thread_pool().
10283 (gomp_team_start): Delete thread pool initialization.
10285 2015-09-03 Tom de Vries <tom@codesourcery.com>
10287 PR tree-optimization/65637
10288 * testsuite/libgomp.c/autopar-2.c: New test.
10290 2015-08-29 Tom de Vries <tom@codesourcery.com>
10292 PR tree-optimization/46193
10293 * testsuite/libgomp.c/pr46193.c: New test.
10295 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
10298 * libgomp.map: Add 4.0.2 version.
10299 * target.c (offload_image_descr): Add version field.
10300 (gomp_load_image_to_device): Add version argument. Adjust plugin
10301 call. Improve load mismatch diagnostic.
10302 (gomp_unload_image_from_device): Add version argument. Adjust plugin
10304 (GOMP_offload_regster): Make stub function, move bulk to ...
10305 (GOMP_offload_register_ver): ... here. Process version argument.
10306 (GOMP_offload_unregister): Make stub function, move bulk to ...
10307 (GOMP_offload_unregister_ver): ... here. Process version argument.
10308 (gomp_init_device): Process version field.
10309 (gomp_unload_device): Process version field.
10310 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
10311 macros. Check plugin version.
10312 * libgomp.h (gomp_device_descr): Add version function field. Adjust
10313 loader and unloader types.
10314 * oacc-host.c: Include gomp-constants.h.
10315 (host_version): New.
10316 (host_load_image, host_unload_image): Adjust.
10317 (host_dispatch): Add host_version.
10318 * plugin/plugin-nvptx.c: Include gomp-constants.h.
10319 (GOMP_OFFLOAD_version): New.
10320 (GOMP_OFFLOAD_load_image): Add version arg and check it.
10321 (GOMP_OFFLOAD_unload_image): Likewise.
10322 * plugin/plugin-host.c: Include gomp-constants.h.
10323 (GOMP_OFFLOAD_version): New.
10324 (GOMP_OFFLOAD_load_image): Add version arg.
10325 (GOMP_OFFLOAD_unload_image): Likewise.
10327 2015-08-24 Tom de Vries <tom@codesourcery.com>
10329 PR tree-optimization/65468
10330 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
10332 2015-08-24 Tom de Vries <tom@codesourcery.com>
10334 PR tree-optimization/65468
10335 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
10337 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
10341 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
10342 (gomp_iter_guided_next): Idem.
10343 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
10344 (gomp_iter_ull_guided_next): Idem.
10345 * config/linux/wait.h (do_spin): Idem.
10347 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10349 * libgomp-plugin.h (enum offload_target_type): Remove
10350 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
10351 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
10352 * openacc.h (enum acc_device_t): Likewise.
10353 * openacc_lib.h: Likewise.
10354 * oacc-init.c (name_of_acc_device_t): Don't handle it.
10355 (acc_on_device): Just use __builtin_acc_on_device.
10356 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
10357 of acc_on_device builtin.
10358 * plugin/plugin-host.h: Remove file.
10359 * plugin/plugin-host.c: Likewise, but salvage some content into...
10360 * oacc-host.c: ... this file.
10361 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
10362 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
10363 * Makefile.in: Regenerate.
10364 * configure: Likewise.
10365 * testsuite/lib/libgomp.exp
10366 (check_effective_target_openacc_host_nonshm_selected): Remove.
10367 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
10368 ACC_DEVICE_TYPE=host_nonshm.
10369 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10370 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10371 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
10372 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
10373 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
10374 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
10376 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10377 Jakub Jelinek <jakub@redhat.com>
10379 * config/nvptx/affinity.c: New file.
10380 * config/nvptx/alloc.c: Likewise.
10381 * config/nvptx/bar.c: Likewise.
10382 * config/nvptx/barrier.c: Likewise.
10383 * config/nvptx/critical.c: Likewise.
10384 * config/nvptx/env.c: Likewise.
10385 * config/nvptx/error.c: Likewise.
10386 * config/nvptx/fortran.c: Likewise.
10387 * config/nvptx/iter.c: Likewise.
10388 * config/nvptx/iter_ull.c: Likewise.
10389 * config/nvptx/libgomp-plugin.c: Likewise.
10390 * config/nvptx/lock.c: Likewise.
10391 * config/nvptx/loop.c: Likewise.
10392 * config/nvptx/loop_ull.c: Likewise.
10393 * config/nvptx/mutex.c: Likewise.
10394 * config/nvptx/oacc-async.c: Likewise.
10395 * config/nvptx/oacc-cuda.c: Likewise.
10396 * config/nvptx/oacc-host.c: Likewise.
10397 * config/nvptx/oacc-init.c: Likewise.
10398 * config/nvptx/oacc-mem.c: Likewise.
10399 * config/nvptx/oacc-parallel.c: Likewise.
10400 * config/nvptx/oacc-plugin.c: Likewise.
10401 * config/nvptx/omp-lock.h: Likewise.
10402 * config/nvptx/ordered.c: Likewise.
10403 * config/nvptx/parallel.c: Likewise.
10404 * config/nvptx/proc.c: Likewise.
10405 * config/nvptx/ptrlock.c: Likewise.
10406 * config/nvptx/sections.c: Likewise.
10407 * config/nvptx/sem.c: Likewise.
10408 * config/nvptx/single.c: Likewise.
10409 * config/nvptx/splay-tree.c: Likewise.
10410 * config/nvptx/target.c: Likewise.
10411 * config/nvptx/task.c: Likewise.
10412 * config/nvptx/team.c: Likewise.
10413 * config/nvptx/time.c: Likewise.
10414 * config/nvptx/work.c: Likewise.
10415 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
10416 * configure: Regenerate.
10417 * configure.tgt (config_path): Set to "nvptx" for target
10420 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10422 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
10424 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
10426 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
10427 (cuda_errlist): Constify.
10428 (errmsg): Move into ...
10429 (cuda_error): ... here. Make smaller.
10430 (_XSTR, _STR): Delete.
10431 (cuda_synames): Delete.
10432 (verify_device_library): Delete.
10433 (nvptx_init): Don't call it.
10435 2015-07-28 Tom de Vries <tom@codesourcery.com>
10437 * testsuite/libgomp.c/uns-outer-4.c: New test.
10439 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
10441 * testsuite/libgomp.c/pr66714.c: New test.
10443 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
10446 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
10447 (fib_ref): New function.
10448 (fib): Correct corner cases in the recursion.
10449 (main): Replace the non-simd loop with fib_ref call.
10450 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
10452 (fibonacci): Lower the parameter N to 30. Correct accordingly check
10453 for the last array element value. Replace the non-simd loop with
10454 fib_ref call. Remove redundant b_ref array. Remove the comparison
10455 of the last array element with according Fibonacci sequence element.
10456 (fib): Correct corner cases in the recursion.
10458 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
10460 * target.c (gomp_offload_image_to_device): Rename to ...
10461 (gomp_load_image_to_device): ... here.
10462 (GOMP_offload_register): Adjust call.
10463 (gomp_init_device): Likewise.
10464 (gomp_unload_image_from_device): New. Broken out of ...
10465 (GOMP_offload_unregister): ... here. Call it.
10466 (gomp_unload_device): New.
10467 * libgomp.h (gomp_unload_device): Declare.
10468 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
10471 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
10473 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
10475 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
10477 (goacc_waits): Move !num_waits handling to ...
10478 (GOACC_wait): ... here, the only caller that might have zero waits.
10480 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
10481 (struct ptx_image_data): Move earlier, add fns field.
10482 (struct ptx_device): Add images and image_lock fields.
10483 (ptx_images, ptx_image_lock): Delete.
10484 (nvptx_open_device): Initialize images and image_lock fields.
10485 (nvptx_close_device): Destroy image_lock.
10486 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
10487 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
10490 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
10492 * target.c (GOMP_offload_register): Use int for device type arg.
10493 (GOMP_offload_unregister): Likewise.
10495 * target.c (struct_offload_image_descr): Constify host_table.
10496 (gomp_offload_image_to_device): Likewise.
10497 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
10499 * libgomp.h (gomp_device_descr): Constify target data arguments.
10500 * target.c (struct offload_image_descr): Constify target_data.
10501 (gomp_offload_image_to_device): Likewise.
10502 (GOMP_offload_register): Likewise.
10503 (GOMP_offload_unregister): Likewise.
10504 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
10505 GOMP_OFFLOAD_unload_image): Constify target data.
10506 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
10507 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
10509 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
10511 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
10512 Workaround driver library const error.
10513 (struct nvptx_tdata, nvptx_tdata_t): New.
10514 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
10517 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
10519 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
10520 of EPS parameter from integer to real.
10521 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
10522 type of EPS parameter from integer to real.
10524 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
10526 * team.c (get_last_team): New.
10527 (gomp_new_team): Recycle last non-nested team if possible.
10528 (gomp_team_end): Move team work share list free lock destruction
10530 (free_team): ... here.
10532 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
10534 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
10535 and ref from int to double. Replaced their comparison with
10536 an inequality of their difference and EPS.
10537 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
10538 comparison of pri and a reference number with an inequality of their
10539 difference and EPS.
10540 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
10541 the comparison of sum and sum_ref with an inequality of their
10542 difference and EPS.
10543 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
10544 the comparison of pri and a reference number with an inequality of
10545 their difference and EPS.
10547 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
10549 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
10550 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
10551 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
10552 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
10553 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
10554 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
10555 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
10556 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
10557 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
10558 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
10559 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
10560 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
10561 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
10563 (vec_mult): Likewise. Add #pragma omp taskwait.
10564 (main): Adjust caller.
10565 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
10566 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
10567 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
10568 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
10569 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
10570 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
10571 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
10572 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
10573 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
10574 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
10575 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
10576 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
10577 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
10578 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
10579 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
10580 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
10581 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
10582 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
10583 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
10584 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
10585 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
10586 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
10587 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
10588 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
10589 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
10590 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
10591 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
10592 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
10593 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
10594 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
10595 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
10596 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
10597 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
10598 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
10599 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
10600 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
10601 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
10602 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
10603 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
10604 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
10605 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
10606 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
10607 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
10608 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
10609 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
10610 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
10611 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
10612 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
10613 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
10614 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
10615 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
10616 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
10617 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
10618 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
10619 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
10620 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
10621 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
10622 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
10623 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
10624 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
10625 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
10626 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
10627 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
10628 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
10629 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
10630 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
10631 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
10632 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
10633 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
10634 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
10635 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
10636 (vec_mult): Add !$omp taskwait.
10637 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
10638 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
10639 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
10640 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
10641 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
10642 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
10643 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
10644 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
10645 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
10646 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
10647 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
10648 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
10649 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
10650 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
10651 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
10652 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
10653 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
10654 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
10655 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
10656 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
10657 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
10658 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
10659 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
10660 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
10661 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
10662 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
10663 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
10664 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
10665 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
10666 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
10667 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
10668 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
10669 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
10670 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
10671 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
10672 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
10673 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
10674 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
10675 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
10676 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
10677 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
10678 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
10679 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
10680 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
10681 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
10682 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
10683 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
10684 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
10685 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
10686 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
10687 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
10688 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
10689 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
10690 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
10691 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
10692 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
10693 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
10694 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
10695 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
10696 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
10697 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
10698 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
10699 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
10700 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
10701 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
10702 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
10703 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
10705 2015-07-10 Tom de Vries <tom@codesourcery.com>
10707 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
10708 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
10710 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
10713 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
10714 in a 64-bit configuration.
10715 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
10716 offloading testing if no such device is available.
10717 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10718 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10720 2015-07-08 Tom de Vries <tom@codesourcery.com>
10722 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
10724 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10726 2015-07-07 Tom de Vries <tom@codesourcery.com>
10728 PR tree-optimization/66642
10729 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
10730 iteration count case.
10731 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
10732 function, factor out of ...
10733 (main): ... here. Test low iteration count case.
10735 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
10737 * libgomp.h (gomp_thread_pool): Comment last_team field.
10739 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
10741 * testsuite/libgomp.c++/pr66702-1.C: Require
10742 vect_simd_clones effective target.
10743 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
10745 2015-06-30 Tom de Vries <tom@codesourcery.com>
10747 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
10748 already set. Use DEFAULT_CFLAGS in dg-runtest.
10749 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
10752 2015-06-30 Tom de Vries <tom@codesourcery.com>
10754 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
10755 already set. Use DEFAULT_CFLAGS in dg-runtest.
10756 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
10757 * testsuite/libgomp.c++/pr64824.C: Same.
10758 * testsuite/libgomp.c++/pr64868.C: Same.
10759 * testsuite/libgomp.c++/pr66199-1.C: Same.
10760 * testsuite/libgomp.c++/pr66199-2.C: Same.
10761 * testsuite/libgomp.c++/target-2.C: Same.
10762 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
10763 -std=<standard> option.
10764 * testsuite/libgomp.c++/udr-11.C: Same.
10765 * testsuite/libgomp.c++/udr-12.C: Same.
10766 * testsuite/libgomp.c++/udr-13.C: Same.
10767 * testsuite/libgomp.c++/udr-14.C: Same.
10768 * testsuite/libgomp.c++/udr-15.C: Same.
10769 * testsuite/libgomp.c++/udr-16.C: Same.
10770 * testsuite/libgomp.c++/udr-17.C: Same.
10771 * testsuite/libgomp.c++/udr-18.C: Same.
10772 * testsuite/libgomp.c++/udr-19.C: Same.
10773 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
10774 * testsuite/libgomp.c++/simd-1.C: Same.
10775 * testsuite/libgomp.c++/simd-2.C: Same.
10776 * testsuite/libgomp.c++/simd-3.C: Same.
10777 * testsuite/libgomp.c++/simd-4.C: Same.
10778 * testsuite/libgomp.c++/simd-5.C: Same.
10779 * testsuite/libgomp.c++/simd-6.C: Same.
10780 * testsuite/libgomp.c++/simd-7.C: Same.
10781 * testsuite/libgomp.c++/simd-8.C: Same.
10782 * testsuite/libgomp.c++/simd-9.C: Same.
10783 * testsuite/libgomp.c++/simd10.C: Same.
10784 * testsuite/libgomp.c++/simd11.C: Same.
10785 * testsuite/libgomp.c++/simd12.C: Same.
10786 * testsuite/libgomp.c++/simd13.C: Same.
10788 2015-06-30 Jakub Jelinek <jakub@redhat.com>
10790 PR middle-end/66702
10791 * testsuite/libgomp.c++/pr66702-1.C: New test.
10792 * testsuite/libgomp.c++/pr66702-2.C: New test.
10794 2015-06-30 Tom de Vries <tom@codesourcery.com>
10796 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
10797 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
10798 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
10799 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
10801 2015-06-30 Tom de Vries <tom@codesourcery.com>
10803 PR tree-optimization/66652
10804 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
10805 using restrict pointers.
10806 (main): Add arguments to calls to f.
10807 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10809 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
10811 * configure.ac: Fix check for header <sys/sysctl.h>.
10812 * configure: Regenerate.
10813 * config.h.in: Likewise.
10815 2015-06-23 Tom de Vries <tom@codesourcery.com>
10817 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
10819 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
10821 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
10823 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
10827 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
10828 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10830 2015-06-15 Tom de Vries <tom@codesourcery.com>
10832 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
10833 dg-additional-options for any remaining options.
10834 * testsuite/libgomp.c/atomic-2.c: Same.
10835 * testsuite/libgomp.c/atomic-4.c: Same.
10836 * testsuite/libgomp.c/atomic-5.c: Same.
10837 * testsuite/libgomp.c/atomic-6.c: Same.
10838 * testsuite/libgomp.c/autopar-1.c: Same.
10839 * testsuite/libgomp.c/copyin-1.c: Same.
10840 * testsuite/libgomp.c/copyin-2.c: Same.
10841 * testsuite/libgomp.c/copyin-3.c: Same.
10842 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
10843 * testsuite/libgomp.c/nestedfn-5.c: Same.
10844 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
10845 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
10846 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
10847 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10848 * testsuite/libgomp.c/pr32362-1.c: Same.
10849 * testsuite/libgomp.c/pr32362-2.c: Same.
10850 * testsuite/libgomp.c/pr32362-3.c: Same.
10851 * testsuite/libgomp.c/pr39591-1.c: Same.
10852 * testsuite/libgomp.c/pr39591-2.c: Same.
10853 * testsuite/libgomp.c/pr39591-3.c: Same.
10854 * testsuite/libgomp.c/pr58392.c: Same.
10855 * testsuite/libgomp.c/pr58756.c: Same.
10856 * testsuite/libgomp.c/simd-1.c: Same.
10857 * testsuite/libgomp.c/simd-10.c: Same.
10858 * testsuite/libgomp.c/simd-11.c: Same.
10859 * testsuite/libgomp.c/simd-12.c: Same.
10860 * testsuite/libgomp.c/simd-13.c: Same.
10861 * testsuite/libgomp.c/simd-14.c: Same.
10862 * testsuite/libgomp.c/simd-15.c: Same.
10863 * testsuite/libgomp.c/simd-2.c: Same.
10864 * testsuite/libgomp.c/simd-3.c: Same.
10865 * testsuite/libgomp.c/simd-4.c: Same.
10866 * testsuite/libgomp.c/simd-5.c: Same.
10867 * testsuite/libgomp.c/simd-6.c: Same.
10868 * testsuite/libgomp.c/simd-7.c: Same.
10869 * testsuite/libgomp.c/simd-8.c: Same.
10870 * testsuite/libgomp.c/simd-9.c: Same.
10872 2015-06-15 Tom de Vries <tom@codesourcery.com>
10874 * testsuite/libgomp.c/pr35625.c: Fix typo.
10876 2015-06-15 Tom de Vries <tom@codesourcery.com>
10878 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
10880 * testsuite/libgomp.c/atomic-3.c: Same.
10881 * testsuite/libgomp.c/debug-1.c: Same.
10882 * testsuite/libgomp.c/nqueens-1.c: Same.
10883 * testsuite/libgomp.c/pr26171.c: Same.
10884 * testsuite/libgomp.c/pr48591.c: Same.
10885 * testsuite/libgomp.c/pr64824.c: Same.
10886 * testsuite/libgomp.c/pr64868.c: Same.
10887 * testsuite/libgomp.c/pr66133.c: Same.
10888 * testsuite/libgomp.c/pr66199-1.c: Same.
10889 * testsuite/libgomp.c/pr66199-2.c: Same.
10890 * testsuite/libgomp.c/target-8.c: Same.
10892 2015-06-15 Tom de Vries <tom@codesourcery.com>
10894 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
10896 * testsuite/libgomp.c/for-1.c: Same.
10897 * testsuite/libgomp.c/for-2.c: Same.
10898 * testsuite/libgomp.c/for-3.c: Same.
10899 * testsuite/libgomp.c/pr35625.c: Same.
10900 * testsuite/libgomp.c/pr39154.c: Same.
10901 * testsuite/libgomp.c/simd-16.c: Same.
10902 * testsuite/libgomp.c/simd-17.c: Same.
10904 2015-06-13 Tom de Vries <tom@codesourcery.com>
10906 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
10908 2015-06-13 Tom de Vries <tom@codesourcery.com>
10910 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
10911 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10912 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
10914 (main): Use N instead of hardcoded constants.
10916 2015-06-05 Tom de Vries <tom@codesourcery.com>
10918 merge from gomp4 branch:
10919 2015-05-28 Tom de Vries <tom@codesourcery.com>
10921 PR tree-optimization/65443
10922 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
10923 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
10924 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
10926 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10928 * testsuite/libgomp.graphite/bounds.c: Adjust for
10929 cleanup-tree-dump removal.
10930 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
10931 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
10932 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
10933 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
10934 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
10935 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
10936 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10937 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10938 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10939 * testsuite/libgomp.graphite/pr41118.c: Likewise.
10941 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
10943 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
10944 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
10945 (futex_wake) [!__x86_64__]: Ditto.
10947 2015-05-28 Julian Brown <julian@codesourcery.com>
10949 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
10950 function comment. Only call gomp_fatal if new argument is true.
10951 (acc_dev_num_out_of_range): New function.
10952 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
10953 acc_dev_num_out_of_range as appropriate.
10954 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
10955 (acc_get_device_num, acc_set_device_num): Update calls to
10957 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
10960 2015-05-28 Julian Brown <julian@codesourcery.com>
10963 * oacc-init.c (plugin/plugin-host.h): Include.
10964 (acc_on_device): Check whether we're in an offloaded region for
10966 plugin. Don't use __builtin_acc_on_device.
10967 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
10968 nonshm_exec flag in thread-local data.
10969 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
10970 data for host_nonshm plugin.
10971 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
10972 for host_nonshm plugin.
10973 * plugin/plugin-host.h: New.
10975 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
10977 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
10979 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
10981 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
10983 (FUTEX_PRIVATE_FLAG): Remove L suffix.
10984 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
10987 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
10989 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
10991 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
10993 * target.c (gomp_map_pointer): New function abstracting out
10994 GOMP_MAP_POINTER handling.
10995 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
10996 gomp_map_pointer().
10998 2015-05-19 Jakub Jelinek <jakub@redhat.com>
11000 PR middle-end/66199
11001 * testsuite/libgomp.c/pr66199-1.c: New test.
11002 * testsuite/libgomp.c/pr66199-2.c: New test.
11003 * testsuite/libgomp.c++/pr66199-1.C: New test.
11004 * testsuite/libgomp.c++/pr66199-2.C: New test.
11005 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
11006 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
11008 2015-05-19 Julian Brown <julian@codesourcery.com>
11010 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
11013 2015-05-13 Jakub Jelinek <jakub@redhat.com>
11015 PR middle-end/66133
11016 * testsuite/libgomp.c/pr66133.c: New test.
11018 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
11020 * Makefile.in: Regenerated with automake-1.11.6.
11021 * aclocal.m4: Likewise.
11022 * config.h.in: Likewise.
11023 * configure: Likewise.
11024 * testsuite/Makefile.in: Likewise.
11026 2015-05-08 Jason Merrill <jason@redhat.com>
11028 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
11031 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
11033 2015-05-06 Julian Brown <julian@codesourcery.com>
11035 * oacc-init.c (acc_device_lock): Add explanatory comment.
11036 (resolve_device): Add comment about locking requirement.
11037 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
11038 gomp_init_device and gomp_fini_device calls.
11039 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
11040 (acc_get_device_num, acc_set_device_num): Add locking around
11041 resolve_device and gomp_init_device calls.
11043 2015-05-06 Julian Brown <julian@codesourcery.com>
11045 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
11046 goacc_thread_lock on error paths.
11047 * oacc-mem.c (lookup_host): Remove locking from function. Note
11048 locking requirement for caller in function comment.
11049 (lookup_dev): Likewise.
11050 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
11051 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
11052 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
11055 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
11059 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
11060 don't expect "0x" prefix for "%p" format specifier, don't expect
11061 "(nil)" for NULL pointer.
11062 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11063 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11064 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11065 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11066 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11067 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11068 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11069 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11070 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11071 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11072 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11073 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11074 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11075 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11076 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11077 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11078 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11079 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11080 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11081 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11082 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11083 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11084 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11085 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11086 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11087 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11088 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11089 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11090 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
11091 accurately specify what we're looking for.
11092 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11093 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11094 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11095 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11096 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11098 2015-04-30 James Norris <jnorris@codesourcery.com>
11101 * testsuite/lib/libgomp.exp
11102 (check_effective_target_openacc_host_selected)
11103 (check_effective_target_openacc_host_nonshm_selected): New
11105 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
11107 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11108 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11109 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11110 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11111 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11112 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11113 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11114 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11115 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11116 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11117 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11118 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11119 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11120 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11121 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11122 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11123 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11124 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11125 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11126 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11127 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11128 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11129 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11130 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11131 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11132 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11133 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11134 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11135 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11136 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11137 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11138 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11139 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11140 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11141 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11142 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11143 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11144 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11145 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11146 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11147 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11148 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11149 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11151 2015-04-08 Julian Brown <julian@codesourcery.com>
11153 * libgomp.h (target_mem_desc: Remove mem_map field.
11154 (acc_dispatch_t): Remove open_device_func, close_device_func,
11155 get_device_num_func, set_device_num_func, target_data members.
11156 Change create_thread_data_func argument to device number instead of
11158 * oacc-async.c (assert.h): Include.
11159 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
11160 (acc_wait_all, acc_wait_all_async): Use current host thread's
11161 active device, not base_dev.
11162 * oacc-cuda.c (acc_get_current_cuda_device)
11163 (acc_get_current_cuda_context, acc_get_cuda_stream)
11164 (acc_set_cuda_stream): Likewise.
11165 * oacc-host.c (host_dispatch): Don't set open_device_func,
11166 close_device_func, get_device_num_func or set_device_num_func.
11167 * oacc-init.c (base_dev, init_key): Remove.
11168 (cached_base_dev): New.
11169 (name_of_acc_device_t): New.
11170 (acc_init_1): Initialise default-numbered device, not zeroth.
11171 (acc_shutdown_1): Close all devices of a given type.
11172 (goacc_destroy_thread): Don't use base_dev.
11173 (lazy_open, lazy_init, lazy_init_and_open): Remove.
11174 (goacc_attach_host_thread_to_device): New.
11175 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
11176 (acc_get_num_devices): Don't use base_dev.
11177 (acc_set_device_type): Reimplement.
11178 (acc_get_device_type): Don't use base_dev.
11179 (acc_get_device_num): Tweak logic.
11180 (acc_set_device_num): Likewise.
11181 (acc_on_device): Use acc_get_device_type.
11182 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
11183 (goacc_lazy_initialize): Reimplement with acc_init and
11184 goacc_attach_host_thread_to_device.
11185 * oacc-int.h (goacc_thread): Add base_dev field.
11186 (base_dev): Remove extern declaration.
11187 (goacc_attach_host_thread_to_device): Add prototype.
11188 * oacc-mem.c (acc_malloc): Use current thread's device instead of
11190 (acc_free): Likewise.
11191 (acc_memcpy_to_device): Likewise.
11192 (acc_memcpy_from_device): Likewise.
11193 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
11194 goacc_lazy_initialize (throughout).
11195 (GOACC_parallel): Use tgt_offset to locate target functions.
11196 * target.c (gomp_map_vars): Don't set tgt->mem_map.
11197 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
11198 (gomp_load_plugin_for_device): Remove open_device, close_device,
11199 get_device_num, set_device_num openacc hook initialisation. Don't set
11200 openacc.target_data.
11201 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
11202 (GOMP_OFFLOAD_openacc_close_device)
11203 (GOMP_OFFLOAD_openacc_get_device_num)
11204 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
11205 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
11207 * plugin/plugin-nvptx.c (ptx_inited): Remove.
11208 (instantiated_devices, ptx_dev_lock): New.
11209 (struct ptx_image_data): New.
11210 (ptx_devices, ptx_images, ptx_image_lock): New.
11211 (fini_streams_for_device): Reorder cuStreamDestroy call.
11212 (nvptx_get_num_devices): Remove forward declaration.
11213 (nvptx_init): Change return type to bool.
11214 (nvptx_fini): Remove.
11215 (nvptx_attach_host_thread_to_device): New.
11216 (nvptx_open_device): Return struct ptx_device* instead of void*.
11217 (nvptx_close_device): Change argument type to struct ptx_device*,
11218 return type to void.
11219 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
11220 (kernel_target_data, kernel_host_table): Remove static globals.
11221 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
11222 (GOMP_OFFLOAD_init_device): Reimplement.
11223 (GOMP_OFFLOAD_fini_device): Likewise.
11224 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
11225 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
11226 (GOMP_OFFLOAD_host2dev): Use ORD argument.
11227 (GOMP_OFFLOAD_openacc_open_device)
11228 (GOMP_OFFLOAD_openacc_close_device)
11229 (GOMP_OFFLOAD_openacc_set_device_num)
11230 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
11231 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
11235 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
11237 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
11239 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
11240 * libgomp.h (struct gomp_memory_mapping): Remove.
11241 (struct target_mem_desc): Change type of mem_map from
11242 gomp_memory_mapping * to splay_tree_s *.
11243 (struct gomp_device_descr): Remove register_image_func, get_table_func.
11244 Add load_image_func, unload_image_func.
11245 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
11246 Remove offload_regions_registered.
11247 (gomp_init_tables): Remove.
11248 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
11250 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
11251 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
11252 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
11253 offload_regions_registered.
11254 Initialize load_image_func, unload_image_func, mem_map.root.
11255 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
11256 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
11257 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
11258 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
11259 gomp_memory_mapping *. Use dev's lock and splay_tree.
11260 (lookup_dev): Use dev's lock.
11261 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
11262 (acc_is_present): Likewise.
11263 (acc_map_data): Likewise.
11264 (acc_unmap_data): Likewise. Use dev's lock.
11265 (present_create_copy): Likewise.
11266 (delete_copyout): Pass dev to lookup_host instead of mem_map.
11267 (update_dev_host): Likewise.
11268 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
11269 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
11270 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
11271 (GOMP_OFFLOAD_get_table): Remove
11272 (GOMP_OFFLOAD_load_image): New function.
11273 (GOMP_OFFLOAD_unload_image): New function.
11274 * target.c (register_lock): New mutex for offload image registration.
11275 (num_devices): Do not guard with PLUGIN_SUPPORT.
11276 (gomp_realloc_unlock): New static function.
11277 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
11279 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
11280 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
11281 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
11283 (gomp_unmap_vars): Likewise.
11284 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
11285 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
11286 (gomp_offload_image_to_device): New static function.
11287 (GOMP_offload_register): Add mutex lock.
11288 Call gomp_offload_image_to_device for all initialized devices.
11289 Replace gomp_realloc with gomp_realloc_unlock.
11290 (GOMP_offload_unregister): New function.
11291 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
11292 get_table_func from the plugin with calls to init_device_func and
11293 gomp_offload_image_to_device.
11294 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
11296 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
11297 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
11298 (GOMP_target_data): Do not call gomp_init_tables.
11299 (GOMP_target_update): Likewise. Remove argument from gomp_update.
11300 (gomp_load_plugin_for_device): Replace register_image and get_table
11301 with load_image and unload_image in DLSYM ().
11302 (gomp_register_images_for_device): Remove function.
11303 (gomp_target_init): Do not initialize current_device.mem_map.*,
11304 current_device.offload_regions_registered.
11305 Remove call to gomp_register_images_for_device.
11306 Do not free offload_images and num_offload_images.
11308 2015-03-30 Jakub Jelinek <jakub@redhat.com>
11311 * testsuite/libgomp.fortran/pr65597.f90: New test.
11313 2015-03-27 Tom de Vries <tom@codesourcery.com>
11316 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
11317 (init, check): New function.
11318 (foo): Change return type to void.
11319 (main): Call init and check.
11321 2015-03-27 Tom de Vries <tom@codesourcery.com>
11324 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
11325 (foo): Use M for non-inner loops to scale down test-case.
11327 2015-03-25 Kai Tietz <ktietz@redhat.com>
11330 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
11331 (GOACC_data_start): Likewise.
11332 * target.c (gomp_map_vars): Likewise.
11334 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
11336 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
11339 2015-03-19 Jakub Jelinek <jakub@redhat.com>
11341 * testsuite/libgomp.c/target-10.c: New test.
11342 * testsuite/libgomp.c++/target-4.C: New test.
11344 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
11346 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
11347 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
11349 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
11351 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
11352 * configure.ac (*-*-rtems*): Assume Pthread is supported.
11353 (pthread.h): Check for this header file.
11354 * configure: Regenerate.
11356 2015-02-25 Tom de Vries <tom@codesourcery.com>
11358 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
11359 (check_reduction_op, check_reduction_macro, max, min):
11361 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
11363 (main): Use new functions.
11365 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
11367 * target.c (gomp_load_plugin_for_device): Use const char * instead of
11368 char * for variables holding dlerror return values.
11369 (DLSYM_OPT): Ditto.
11371 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
11373 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
11375 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
11376 Cesar Philippidis <cesar@codesourcery.com>
11378 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
11379 GOACC_ctaid, and GOACC_nctaid routines.
11381 2015-02-11 Jakub Jelinek <jakub@redhat.com>
11384 * testsuite/libgomp.c/atomic-18.c: New test.
11385 * testsuite/libgomp.c++/atomic-16.C: New test.
11387 2015-02-04 Jakub Jelinek <jakub@redhat.com>
11391 * testsuite/libgomp.c/pr64824.c: New test.
11392 * testsuite/libgomp.c/pr64868.c: New test.
11393 * testsuite/libgomp.c++/pr64824.C: New test.
11394 * testsuite/libgomp.c++/pr64868.C: New test.
11396 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
11399 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
11400 Link with -lpthread.
11401 * config/aix/plugin-suffix.h: Delete.
11403 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
11406 * configure.tgt (*-*-aix*): Use config_path "aix posix".
11407 (*-*-darwin*): Use config_path "bsd darwin posix".
11408 (*-*-hpux*): Use config_path "hpux posix".
11409 * target.c: Add include of plugin-suffix.h and use
11410 SONAME_SUFFIX macro.
11411 * config/aix/plugin-suffix.h: New file.
11412 * config/darwin/plugin-suffix.h: New file.
11413 * config/hpux/plugin-suffix.h: New file.
11414 * config/posix/plugin-suffix.h: New file.
11416 2015-01-23 Jakub Jelinek <jakub@redhat.com>
11418 PR middle-end/64734
11419 * libgomp.c/pr64734.c: New test.
11421 2015-01-23 Tom de Vries <tom@codesourcery.com>
11424 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
11426 2015-01-23 Tom de Vries <tom@codesourcery.com>
11429 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
11432 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
11435 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
11436 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
11437 formal parameter. Update all users.
11438 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
11439 Document unused formal parameter.
11441 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
11443 * oacc-parallel.c: Don't include <alloca.h>.
11444 (GOACC_parallel): Use gomp_alloca instead of alloca.
11446 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
11448 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
11450 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
11451 James Norris <jnorris@codesourcery.com>
11452 Tom de Vries <tom@codesourcery.com>
11453 Julian Brown <julian@codesourcery.com>
11454 Cesar Philippidis <cesar@codesourcery.com>
11455 Nathan Sidwell <nathan@codesourcery.com>
11456 Tobias Burnus <burnus@net-b.de>
11458 * Makefile.am (search_path): Add $(top_srcdir)/../include.
11459 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
11460 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
11461 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
11462 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
11463 Include $(top_srcdir)/plugin/Makefrag.am.
11464 (nodist_libsubinclude_HEADERS): Add openacc.h.
11465 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
11466 openacc.f90, openacc.mod, openacc_kinds.mod.
11467 (omp_lib.mod): Generalize into...
11468 (%.mod): ... this new rule.
11469 (openacc_kinds.mod, openacc.mod): New rules.
11470 * plugin/configfrag.ac: New file.
11471 * configure.ac: Move plugin/offloading support into it. Include
11472 it. Instantiate testsuite/libgomp-test-support.pt.exp.
11473 * plugin/Makefrag.am: New file.
11474 * testsuite/Makefile.am (OFFLOAD_TARGETS)
11475 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
11477 (libgomp-test-support.exp): New rule.
11478 (all-local): Depend on it.
11479 * Makefile.in: Regenerate.
11480 * testsuite/Makefile.in: Regenerate.
11481 * config.h.in: Likewise.
11482 * configure: Likewise.
11483 * configure.tgt: Harden shell syntax.
11484 * env.c: Include "oacc-int.h".
11485 (parse_acc_device_type): New function.
11486 (gomp_debug_var, goacc_device_type, goacc_device_num): New
11488 (initialize_env): Initialize those. Call
11489 goacc_runtime_initialize.
11490 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
11491 (gomp_fatal): Call gomp_vfatal.
11492 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
11493 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
11494 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
11495 (splay_tree_node, splay_tree, splay_tree_key)
11496 (struct target_mem_desc, struct splay_tree_key_s)
11497 (struct gomp_memory_mapping, struct acc_dispatch_t)
11498 (struct gomp_device_descr, gomp_acc_insert_pointer)
11499 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
11500 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
11501 (gomp_free_memmap, gomp_fini_device): New declarations.
11502 (gomp_vdebug, gomp_debug): New macros.
11503 Include "splay-tree.h".
11504 * libgomp.map (OACC_2.0): New symbol version. Use for
11505 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
11506 acc_set_device_type_h_, acc_get_device_type,
11507 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
11508 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
11509 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
11510 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
11511 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
11512 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
11513 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
11514 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
11515 acc_copyin_array_h_, acc_present_or_copyin,
11516 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
11517 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
11518 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
11519 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
11520 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
11521 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
11522 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
11523 acc_update_device, acc_update_device_32_h_,
11524 acc_update_device_64_h_, acc_update_device_array_h_,
11525 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
11526 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
11527 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
11528 acc_is_present_64_h_, acc_is_present_array_h_,
11529 acc_memcpy_to_device, acc_memcpy_from_device,
11530 acc_get_current_cuda_device, acc_get_current_cuda_context,
11531 acc_get_cuda_stream, acc_set_cuda_stream.
11532 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
11533 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
11534 GOACC_update, GOACC_wait, GOACC_get_thread_num,
11535 GOACC_get_num_threads.
11536 (GOMP_PLUGIN_1.0): New symbol version. Use for
11537 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
11538 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
11539 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
11540 GOMP_PLUGIN_acc_thread.
11541 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
11542 environment variable.
11543 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
11544 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
11545 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
11546 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
11547 (splay_tree_remove): New declarations.
11548 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
11549 (splay_tree_remove, splay_tree_lookup): Move into...
11550 * splay-tree.c: ... this new file.
11551 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
11552 (splay_tree_node, splay_tree, splay_tree_key)
11553 (struct target_mem_desc, struct splay_tree_key_s)
11554 (struct gomp_device_descr): Don't declare.
11555 (num_devices_openmp): New variable.
11556 (gomp_get_num_devices ): Use it.
11557 (gomp_init_targets_once): New function.
11558 (gomp_get_num_devices ): Use it.
11559 (get_kind, gomp_copy_from_async, gomp_free_memmap)
11560 (gomp_fini_device, gomp_register_image_for_device): New functions.
11561 (gomp_map_vars): Add devaddrs parameter.
11562 (gomp_update): Add mm parameter.
11563 (gomp_init_device): Move most of it into...
11564 (gomp_init_tables): ... this new function.
11565 (gomp_register_images_for_device): Remove function.
11566 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
11567 Make them hidden instead of static.
11568 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
11569 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
11570 (GOMP_target_end_data, GOMP_target_update)
11571 (gomp_load_plugin_for_device, gomp_target_init): Update for
11573 * oacc-async.c: New file.
11574 * oacc-cuda.c: Likewise.
11575 * oacc-host.c: Likewise.
11576 * oacc-init.c: Likewise.
11577 * oacc-int.h: Likewise.
11578 * oacc-mem.c: Likewise.
11579 * oacc-parallel.c: Likewise.
11580 * oacc-plugin.c: Likewise.
11581 * oacc-plugin.h: Likewise.
11582 * oacc-ptx.h: Likewise.
11583 * openacc.f90: Likewise.
11584 * openacc.h: Likewise.
11585 * openacc_lib.h: Likewise.
11586 * plugin/plugin-host.c: Likewise.
11587 * plugin/plugin-nvptx.c: Likewise.
11588 * libgomp-plugin.c: Likewise.
11589 * libgomp-plugin.h: Likewise.
11590 * libgomp_target.h: Remove file after merging content into the
11591 former file. Update all users.
11592 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
11593 (offload_targets_s, offload_targets_s_openacc): New variables.
11594 (check_effective_target_openacc_nvidia_accel_present)
11595 (check_effective_target_openacc_nvidia_accel_selected): New
11597 (libgomp_init): Update for OpenACC changes.
11598 * testsuite/libgomp-test-support.exp.in: New file.
11599 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
11600 * testsuite/libgomp.oacc-c/c.exp: Likewise.
11601 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
11602 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
11603 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
11604 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
11605 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
11606 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
11607 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
11608 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
11609 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
11610 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
11611 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
11612 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11613 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
11614 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
11615 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
11616 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
11617 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
11618 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
11619 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
11620 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
11621 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
11622 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
11623 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11624 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11625 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11626 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11627 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11628 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11629 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11630 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
11631 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
11632 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
11633 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
11634 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11635 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
11636 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11637 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
11638 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
11639 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
11640 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
11641 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11642 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11643 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11644 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
11645 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11646 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11647 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11648 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11649 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11650 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
11651 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11652 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11653 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11654 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11655 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11656 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11657 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11658 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
11659 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11660 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
11661 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11662 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11663 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11664 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
11665 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
11666 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11667 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11668 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11669 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
11670 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11671 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11672 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11673 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
11674 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
11675 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11676 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11677 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
11678 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
11679 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
11680 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
11681 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11682 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11683 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11684 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
11685 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
11686 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11687 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11688 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
11689 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
11690 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
11691 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
11692 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11693 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11694 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11695 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11696 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
11697 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11698 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11699 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
11700 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
11701 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
11702 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11703 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
11704 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
11705 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
11706 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
11707 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
11708 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11709 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
11710 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
11711 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11712 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
11713 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
11714 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11715 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
11716 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
11717 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
11718 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
11719 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
11720 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
11721 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
11722 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
11723 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
11724 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
11725 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
11726 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
11727 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
11728 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
11729 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
11730 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
11731 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11732 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
11733 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
11734 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11735 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11736 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11737 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11738 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
11740 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
11741 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
11742 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
11743 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
11744 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
11745 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11746 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11747 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11748 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11749 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11750 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11751 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11752 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11753 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11754 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11755 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11756 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11757 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11758 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11759 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11760 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11761 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11762 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11763 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11764 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11765 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11766 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11767 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11768 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11769 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11770 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11771 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11772 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11773 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11774 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11775 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11776 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11777 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11778 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11779 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11780 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11781 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11782 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11783 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11784 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11785 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11786 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11787 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11788 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11789 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11790 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11791 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11792 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11793 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11794 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11795 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11796 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11797 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11798 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11799 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11801 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
11802 Julian Brown <julian@codesourcery.com>
11803 David Malcolm <dmalcolm@redhat.com>
11805 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
11806 to "GNU Offloading and Multi Processing Runtime Library". Change
11808 * configure: Regenerate.
11809 * libgomp.texi: Update.
11811 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
11813 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
11815 * configure: Regenerate.
11817 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
11818 "intelmic" in $offload_targets.
11820 2015-01-05 Jakub Jelinek <jakub@redhat.com>
11822 Update copyright years.
11824 * libgomp.texi: Bump @copying's copyright year.
11826 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11828 * testsuite/lib/libgomp.exp: Load target-utils.exp.
11829 Move load of target-supports.exp earlier.
11831 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
11833 * testsuite/libgomp.c/target-9.c: New test.
11835 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
11837 * config.h.in: Regenerate.
11838 * configure: Regenerate.
11839 * configure.ac: Add GCC_CHECK_EMUTLS.
11840 * libgomp.h: Add check for USE_EMUTLS: this case
11841 is equal to HAVE_TLS.
11842 * team.c: Likewise.
11844 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
11846 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
11848 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
11849 Ilya Verbin <ilya.verbin@intel.com>
11851 * testsuite/libgomp.c/target-critical-1.c: New test.
11853 2014-11-26 Jakub Jelinek <jakub@redhat.com>
11855 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
11856 to dg-options unless expensive testing is on.
11857 (TESTITERS): Define to N if not defined.
11858 (main): Use TESTITERS instead of N.
11859 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
11860 dg-additional-options depending on whether expensive testing is on.
11861 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
11862 Decrease N to 100000 and CHUNKSZ to 10000.
11864 2014-11-24 Jakub Jelinek <jakub@redhat.com>
11867 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
11868 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
11870 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
11872 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
11874 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
11877 * configure: Regenerated.
11879 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
11881 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
11882 vect_simd_clones effective target.
11883 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
11885 2014-11-14 Jakub Jelinek <jakub@redhat.com>
11887 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
11888 of 32 as block_size.
11889 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
11890 instead of 32 as block_size.
11892 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
11893 Ilya Verbin <ilya.verbin@intel.com>
11895 * Makefile.in: Regenerate.
11896 * configure: Regenerate.
11897 * configure.ac: Set up offload_additional_options,
11898 offload_additional_lib_paths and offload_targets.
11899 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
11900 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
11901 * testsuite/Makefile.in: Regenerate.
11902 * testsuite/lib/libgomp.exp (libgomp_init): Append
11903 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
11904 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
11905 build directory to LD_LIBRARY_PATH for intelmic offload targets.
11907 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
11908 Ilya Verbin <ilya.verbin@intel.com>
11909 Kirill Yukhin <kirill.yukhin@intel.com>
11910 Ilya Tocar <ilya.tocar@intel.com>
11912 * testsuite/lib/libgomp.exp
11913 (check_effective_target_offload_device): New.
11914 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
11915 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
11916 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
11917 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
11918 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
11919 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
11920 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
11921 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
11922 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
11923 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
11924 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
11925 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
11926 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
11927 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
11928 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
11929 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
11930 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
11931 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
11932 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
11933 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
11934 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
11935 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
11936 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
11937 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
11938 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
11939 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
11940 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
11941 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
11942 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
11943 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
11944 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
11945 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
11946 * testsuite/libgomp.c/target-7.c: Fix test.
11947 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
11948 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
11949 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
11950 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
11951 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
11952 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
11953 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
11954 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
11955 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
11956 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
11957 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
11958 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
11959 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
11960 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
11961 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
11962 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
11963 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
11964 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
11965 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
11966 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
11967 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
11968 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
11969 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
11970 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
11971 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
11972 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
11973 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
11974 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
11975 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
11976 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
11977 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
11979 2014-11-13 Jakub Jelinek <jakub@redhat.com>
11980 Ilya Verbin <ilya.verbin@intel.com>
11981 Thomas Schwinge <thomas@codesourcery.com>
11982 Andrey Turetskiy <andrey.turetskiy@intel.com>
11984 * libgomp.map (GOMP_4.0.1): New symbol version.
11985 Add GOMP_offload_register.
11986 * libgomp_target.h: New file.
11987 * splay-tree.h: New file.
11988 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
11989 (gomp_target_init): New forward declaration.
11990 (gomp_is_initialized): New static variable.
11991 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
11992 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
11994 (offload_images, num_offload_images, devices, num_devices): New static
11996 (splay_compare): New static function.
11997 (struct gomp_device_descr): New structure.
11998 (gomp_get_num_devices): Call gomp_target_init.
11999 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
12000 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
12001 (GOMP_offload_register): New function.
12002 (GOMP_target): Arrange for host callback to be performed in a separate
12003 initial thread and contention group, inheriting ICVs from
12004 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
12005 Add device initialization and lookup for target function in splay tree.
12006 (GOMP_target_data): Add device initialization and call gomp_map_vars.
12007 (GOMP_target_end_data): Call gomp_unmap_vars.
12008 (GOMP_target_update): Add device initialization and call gomp_update.
12009 (gomp_load_plugin_for_device, gomp_register_images_for_device)
12010 (gomp_target_init): New static functions.
12012 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
12013 Thomas Schwinge <thomas@codesourcery.com>
12014 Ilya Verbin <ilya.verbin@intel.com>
12015 Andrey Turetskiy <andrey.turetskiy@intel.com>
12017 * config.h.in: Regenerate.
12018 * configure: Regenerate.
12019 * configure.ac: Check for libdl, required for plugin support.
12020 (PLUGIN_SUPPORT): Define if plugins are supported.
12021 (enable_offload_targets): Support Intel MIC targets.
12022 (OFFLOAD_TARGETS): List of target names suitable for offloading.
12024 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12027 * configure: Regenerate.
12029 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12031 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
12033 2014-10-06 Marek Polacek <polacek@redhat.com>
12035 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
12036 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
12037 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
12038 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
12040 2014-10-06 Marek Polacek <polacek@redhat.com>
12042 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
12043 * testsuite/libgomp.c/nqueens-1.c: Likewise.
12044 * testsuite/libgomp.c/pr26943-3.c: Likewise.
12045 * testsuite/libgomp.c/pr26943-4.c: Likewise.
12046 * testsuite/libgomp.c/pr36802-2.c: Likewise.
12047 * testsuite/libgomp.c/pr36802-3.c: Likewise.
12048 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
12049 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
12050 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
12051 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
12052 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
12053 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
12054 * testsuite/libgomp.c/omp-single-1.c: Likewise.
12055 * testsuite/libgomp.c/omp-single-2.c: Likewise.
12056 * testsuite/libgomp.c/omp_matvec.c: Likewise.
12057 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
12058 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
12059 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
12062 2014-10-03 Jakub Jelinek <jakub@redhat.com>
12065 * testsuite/libgomp.c/pr61200.c: New test.
12067 2014-09-18 Jakub Jelinek <jakub@redhat.com>
12070 * testsuite/libgomp.c++/pr63248.C: New test.
12072 2014-08-04 Jakub Jelinek <jakub@redhat.com>
12074 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
12075 is not zero, but taskgroup->children is NULL and there are
12076 any task->children, schedule those instead of waiting.
12077 * testsuite/libgomp.c/depend-6.c: New test.
12078 * testsuite/libgomp.c/depend-7.c: New test.
12079 * testsuite/libgomp.c/depend-8.c: New test.
12080 * testsuite/libgomp.c/depend-9.c: New test.
12081 * testsuite/libgomp.c/depend-10.c: New test.
12083 2014-08-01 Jakub Jelinek <jakub@redhat.com>
12085 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
12086 (struct gomp_taskwait): New type.
12087 (struct gomp_task): Add taskwait and parent_depends_on, remove
12088 in_taskwait and taskwait_sem fields.
12089 (gomp_finish_task): Don't destroy taskwait_sem.
12090 * task.c (gomp_init_task): Don't init in_taskwait, instead init
12091 taskwait and parent_depends_on.
12092 (GOMP_task): For if (0) tasks with depend clause that depend on
12093 earlier tasks don't defer them, instead call
12094 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
12095 Initialize redundant_out field, for redundant out entries just
12096 move them at the end of linked list instead of removing them
12097 completely, and set redundant_out flag instead of redundant.
12098 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
12100 (gomp_task_run_post_handle_dependers): If parent is in
12101 gomp_task_maybe_wait_for_dependencies and newly runnable task
12102 is not parent_depends_on, queue it in parent->children linked
12103 list after all runnable tasks with parent_depends_on set.
12104 Adjust for addition of taskwait indirection.
12105 (gomp_task_run_post_remove_parent): If parent is in
12106 gomp_task_maybe_wait_for_dependencies and task to be removed
12107 is parent_depends_on, decrement n_depend and if needed awake
12108 parent. Adjust for addition of taskwait indirection.
12109 (GOMP_taskwait): Adjust for addition of taskwait indirection.
12110 (gomp_task_maybe_wait_for_dependencies): New function.
12111 * testsuite/libgomp.c/depend-5.c: New test.
12113 2014-07-13 Tobias Burnus <burnus@net-b.de>
12115 * testsuite/libgomp.fortran/pr34020.f90: Make compile
12116 with TS 18508/Fortran 2015.
12118 2014-07-06 Marek Polacek <polacek@redhat.com>
12121 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
12123 2014-07-03 Jakub Jelinek <jakub@redhat.com>
12125 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
12126 matches regex $lang_source_re, add $lang_include_flags to options.
12127 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
12128 * testsuite/libgomp.c++/c++.exp: Likewise.
12129 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
12130 and lang_include_flags instead of adding -fintrinsic-modules-path= to
12132 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
12134 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
12136 * testsuite/libgomp.fortran/fortran.exp: Explain
12137 gfortran-dg-runtest usage.
12139 2014-06-25 Jakub Jelinek <jakub@redhat.com>
12141 * testsuite/libgomp.fortran/simd5.f90: New test.
12142 * testsuite/libgomp.fortran/simd6.f90: New test.
12143 * testsuite/libgomp.fortran/simd7.f90: New test.
12145 2014-06-24 Jakub Jelinek <jakub@redhat.com>
12147 * testsuite/libgomp.c/for-2.c: Define SC to static for
12148 #pragma omp for simd testing.
12149 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
12150 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
12152 * testsuite/libgomp.c/simd-14.c: New test.
12153 * testsuite/libgomp.c/simd-15.c: New test.
12154 * testsuite/libgomp.c/simd-16.c: New test.
12155 * testsuite/libgomp.c/simd-17.c: New test.
12156 * testsuite/libgomp.c++/for-10.C: Define SC to static for
12157 #pragma omp for simd testing.
12158 * testsuite/libgomp.c++/simd10.C: New test.
12159 * testsuite/libgomp.c++/simd11.C: New test.
12160 * testsuite/libgomp.c++/simd12.C: New test.
12161 * testsuite/libgomp.c++/simd13.C: New test.
12163 * testsuite/libgomp.fortran/aligned1.f03: New test.
12164 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
12165 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
12166 tasks with !$omp parallel !$omp single.
12167 * testsuite/libgomp.fortran/target8.f90: New test.
12168 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
12169 not to use trim in the combiner, instead call elemental function.
12170 (fn): New elemental function.
12171 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
12173 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
12175 * testsuite/libgomp.fortran/udr12.f90: New test.
12176 * testsuite/libgomp.fortran/udr13.f90: New test.
12177 * testsuite/libgomp.fortran/udr14.f90: New test.
12178 * testsuite/libgomp.fortran/udr15.f90: New test.
12180 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12182 * omp_lib.f90.in (openmp_version): Set to 201307.
12183 * omp_lib.h.in (openmp_version): Likewise.
12184 * testsuite/libgomp.c/target-8.c: New test.
12185 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
12186 and inbranch clauses.
12187 * testsuite/libgomp.fortran/depend-3.f90: New test.
12188 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
12190 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12191 * testsuite/libgomp.fortran/target1.f90: New test.
12192 * testsuite/libgomp.fortran/target2.f90: New test.
12193 * testsuite/libgomp.fortran/target3.f90: New test.
12194 * testsuite/libgomp.fortran/target4.f90: New test.
12195 * testsuite/libgomp.fortran/target5.f90: New test.
12196 * testsuite/libgomp.fortran/target6.f90: New test.
12197 * testsuite/libgomp.fortran/target7.f90: New test.
12199 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12202 * testsuite/libgomp.fortran/allocatable9.f90: New test.
12203 * testsuite/libgomp.fortran/allocatable10.f90: New test.
12204 * testsuite/libgomp.fortran/allocatable11.f90: New test.
12205 * testsuite/libgomp.fortran/allocatable12.f90: New test.
12206 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
12207 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
12208 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
12209 * testsuite/libgomp.fortran/associate1.f90: New test.
12210 * testsuite/libgomp.fortran/associate2.f90: New test.
12211 * testsuite/libgomp.fortran/procptr1.f90: New test.
12213 2014-06-06 Jakub Jelinek <jakub@redhat.com>
12215 * testsuite/libgomp.fortran/simd1.f90: New test.
12216 * testsuite/libgomp.fortran/udr1.f90: New test.
12217 * testsuite/libgomp.fortran/udr2.f90: New test.
12218 * testsuite/libgomp.fortran/udr3.f90: New test.
12219 * testsuite/libgomp.fortran/udr4.f90: New test.
12220 * testsuite/libgomp.fortran/udr5.f90: New test.
12221 * testsuite/libgomp.fortran/udr6.f90: New test.
12222 * testsuite/libgomp.fortran/udr7.f90: New test.
12223 * testsuite/libgomp.fortran/udr8.f90: New test.
12224 * testsuite/libgomp.fortran/udr9.f90: New test.
12225 * testsuite/libgomp.fortran/udr10.f90: New test.
12226 * testsuite/libgomp.fortran/udr11.f90: New test.
12228 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
12230 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
12231 vect_simd_clones effective target.
12232 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
12234 2014-05-21 Jakub Jelinek <jakub@redhat.com>
12236 PR middle-end/61252
12237 * testsuite/libgomp.c++/simd-9.C: New test.
12239 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
12241 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
12242 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
12243 texts according to their @menu entry positions.
12245 2014-05-11 Jakub Jelinek <jakub@redhat.com>
12247 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
12248 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
12249 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
12250 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
12251 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
12252 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
12253 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
12254 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
12255 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
12256 * testsuite/libgomp.fortran/depend-1.f90: New test.
12257 * testsuite/libgomp.fortran/depend-2.f90: New test.
12258 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
12259 * testsuite/libgomp.fortran/simd1.f90: New test.
12260 * testsuite/libgomp.fortran/simd2.f90: New test.
12261 * testsuite/libgomp.fortran/simd3.f90: New test.
12262 * testsuite/libgomp.fortran/simd4.f90: New test.
12263 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
12265 2014-05-02 Jakub Jelinek <jakub@redhat.com>
12267 * testsuite/libgomp.c/simd-10.c: New test.
12268 * testsuite/libgomp.c/simd-11.c: New test.
12269 * testsuite/libgomp.c/simd-12.c: New test.
12270 * testsuite/libgomp.c/simd-13.c: New test.
12272 2014-04-24 Jakub Jelinek <jakub@redhat.com>
12274 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
12275 atomic type clauses in any order and optional comma in between.
12276 * testsuite/libgomp.c++/atomic-15.C: Likewise.
12277 * testsuite/libgomp.c/atomic-17.c: Likewise.
12279 * testsuite/libgomp.c/simd-7.c: New test.
12280 * testsuite/libgomp.c/simd-8.c: New test.
12281 * testsuite/libgomp.c/simd-9.c: New test.
12282 * testsuite/libgomp.c/loop-16.c: New test.
12284 2014-04-02 Richard Henderson <rth@redhat.com>
12286 * config/linux/futex.h (futex_wait): Get error value from errno.
12287 (futex_wake): Likewise.
12289 2014-03-25 Jakub Jelinek <jakub@redhat.com>
12292 * testsuite/libgomp.c++/udr-11.C: New test.
12293 * testsuite/libgomp.c++/udr-12.C: New test.
12294 * testsuite/libgomp.c++/udr-13.C: New test.
12295 * testsuite/libgomp.c++/udr-14.C: New test.
12296 * testsuite/libgomp.c++/udr-15.C: New test.
12297 * testsuite/libgomp.c++/udr-16.C: New test.
12298 * testsuite/libgomp.c++/udr-17.C: New test.
12299 * testsuite/libgomp.c++/udr-18.C: New test.
12300 * testsuite/libgomp.c++/udr-19.C: New test.
12302 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12304 Update copyright years
12306 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12308 * hashtab.h: Use the standard form for the copyright notice.
12310 2014-01-02 Tobias Burnus <burnus@net-b.de>
12312 * libgomp.texi: Bump @copying's copyright year.
12314 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
12316 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
12317 alloca () with __builtin_alloca ().
12318 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
12319 * testsuite/libgomp.c/lock-3.c: Likewise.
12320 * testsuite/libgomp.c/pr48591.c: Likewise.
12322 2013-12-17 Jakub Jelinek <jakub@redhat.com>
12325 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
12328 2013-12-16 Jakub Jelinek <jakub@redhat.com>
12331 * testsuite/libgomp.c/pr58756.c: New test.
12333 2013-12-12 Jakub Jelinek <jakub@redhat.com>
12336 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
12339 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
12341 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
12343 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
12344 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
12345 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
12346 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
12349 * libgomp_g.h: Include <stddef.h> for size_t.
12351 * libgomp.spec.in: Update comment about libgomp's dependencies.
12352 * configure.ac: Likewise.
12353 * configure: Regenerate.
12355 2013-10-16 Tobias Burnus <burnus@net-b.de>
12357 * libgomp.texi: (Runtime Library Routines): Update references for
12358 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
12359 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
12360 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
12361 (Environment Variables): Update references for OpenMP 4.0. Add
12362 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
12363 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
12366 2013-10-14 Jakub Jelinek <jakub@redhat.com>
12368 * env.c (parse_bind_var): Initialize value to avoid
12369 (false positive) warning.
12371 2013-10-12 Jakub Jelinek <jakub@redhat.com>
12374 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
12376 (gomp_init_num_threads): Move i variable declaration into
12377 #ifdef CPU_ALLOC_SIZE block.
12378 * config/linux/affinity.c (gomp_affinity_init_level): Test
12379 gomp_places_list_len == 0 rather than gomp_places_list == 0
12380 when checking for topology reading error.
12381 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
12382 * env.c (parse_affinity): Add ignore argument, if true, don't populate
12383 gomp_places_list, only parse env var and always return false.
12384 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
12385 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
12386 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
12387 and either of these variables were parsed correctly into a places
12390 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
12391 Jakub Jelinek <jakub@redhat.com>
12393 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
12394 of 5 loopfn matches.
12395 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
12396 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
12397 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
12398 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
12399 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
12400 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12401 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12402 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
12404 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
12406 * Makefile.am (omp_lib.mod): Streamline rule.
12407 * Makefile.in: Regenerate.
12409 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
12412 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
12413 * testsuite/libgomp.fortran/lib1.f90: Likewise.
12414 * testsuite/libgomp.fortran/lib2.f: Likewise.
12415 * testsuite/libgomp.fortran/lib3.f: Likewise.
12417 * configure.ac: Typo fix.
12418 * configure: Regenerate.
12420 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
12421 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12423 * omp.h.in: Don't touch the user's namespace.
12425 2013-10-11 Jakub Jelinek <jakub@redhat.com>
12426 Tobias Burnus <burnus@net-b.de>
12427 Richard Henderson <rth@redhat.com>
12429 * target.c: New file.
12430 * Makefile.am (libgomp_la_SOURCES): Add target.c.
12431 * Makefile.in: Regenerated.
12432 * libgomp_g.h (GOMP_task): Add depend argument.
12433 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12434 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12435 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
12436 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12437 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12438 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
12439 GOMP_taskgroup_start, GOMP_taskgroup_end,
12440 GOMP_parallel_sections): New prototypes.
12441 * fortran.c (omp_is_initial_device): Add ialias_redirect.
12442 (omp_is_initial_device_): New function.
12443 (ULP, STR1, STR2, ialias_redirect): Removed.
12444 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
12445 omp_set_default_device_8_, omp_get_default_device_,
12446 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
12448 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12449 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12450 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
12452 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
12453 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
12454 omp_set_default_device, omp_set_default_device_,
12455 omp_set_default_device_8_, omp_get_default_device,
12456 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
12457 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
12458 omp_get_team_num_): Export @@OMP_4.0.
12459 * team.c (struct gomp_thread_start_data): Add place field.
12460 (gomp_thread_start): Clear thr->thread_pool and
12461 thr->task before returning. Use gomp_team_barrier_wait_final
12462 instead of gomp_team_barrier_wait. Initialize thr->place.
12463 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
12464 team_cancelled and task_queued_count fields.
12465 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
12466 before calling pthread_exit.
12467 (gomp_free_thread): No longer static. Use
12468 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
12469 (gomp_team_start): Add flags argument. Set
12470 thr->thread_pool->threads_busy to nthreads immediately after creating
12471 new pool. Use gomp_managed_threads_lock instead of
12472 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
12473 (gomp_team_end): Use gomp_managed_threads_lock instead of
12474 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
12475 of gomp_team_barrier_wait. If team->team_cancelled, call
12476 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
12477 rather than thr->ts.work_share.
12478 (initialize_team): Don't call gomp_sem_init here.
12479 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
12481 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
12482 * env.c (gomp_global_icv): Add default_device_var, target_data and
12483 bind_var initializers.
12484 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12485 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12486 gomp_places_list_len): New variables.
12487 (parse_bind_var, parse_one_place, parse_places_var): New functions.
12488 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
12490 (gomp_cancel_var): New global variable.
12491 (parse_int): New function.
12492 (handle_omp_display_env): New function.
12493 (initialize_env): Use it. Initialize default_device_var.
12494 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
12495 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
12496 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
12497 been successfully parsed (and call gomp_init_affinity in that case).
12498 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12499 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12500 omp_get_team_num, omp_is_initial_device): New functions.
12501 * libgomp.h: Include stdlib.h.
12502 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
12504 (struct target_mem_desc): Forward declare.
12505 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
12506 and thread_limit_var fields.
12507 (gomp_get_num_devices): New prototype.
12508 (gomp_cancel_var): New extern decl.
12509 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
12510 team_cancelled and task_queued_count fields. Add comments about
12511 task_{,queued_,running_}count.
12512 (gomp_cancel_kind): New enum.
12513 (gomp_work_share_end_cancel): New prototype.
12514 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
12515 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
12517 (struct gomp_taskgroup): New type.
12518 (struct gomp_task_depend_entry,
12519 struct gomp_dependers_vec): New types.
12520 (gomp_finish_task): Free depend_hash if non-NULL.
12521 (struct gomp_team_state): Add place_partition_off
12522 and place_partition_len fields.
12523 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12524 gomp_places_list_len): New extern decls.
12525 (struct gomp_thread): Add place field.
12526 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12527 (gomp_init_thread_affinity): Add place argument.
12528 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12529 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12530 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12531 gomp_affinity_init_level, gomp_affinity_print_place): New
12533 (gomp_team_start): Add flags argument.
12534 (gomp_thread_limit_var, gomp_remaining_threads_count,
12535 gomp_remaining_threads_lock): Remove.
12536 (gomp_managed_threads_lock): New variable.
12537 (struct gomp_thread_pool): Add threads_busy field.
12538 (gomp_free_thread): New prototype.
12539 * task.c: Include hashtab.h.
12540 (hash_entry_type): New typedef.
12541 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
12542 (gomp_init_task): Clear dependers, depend_hash, depend_count,
12543 copy_ctors_done and taskgroup fields.
12544 (GOMP_task): Add depend argument, handle depend clauses. If
12545 gomp_team_barrier_cancelled or if it's taskgroup has been
12546 cancelled, don't queue or start new tasks. Set copy_ctors_done
12547 field if needed. Initialize taskgroup field. If copy_ctors_done
12548 and already cancelled, don't discard the task. If taskgroup is
12549 non-NULL, enqueue the task into taskgroup queue. Increment
12550 num_children field in taskgroup. Increment task_queued_count.
12551 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
12552 gomp_task_run_post_remove_taskgroup): New inline functions.
12553 (gomp_task_run_post_handle_depend_hash,
12554 gomp_task_run_post_handle_dependers,
12555 gomp_task_run_post_handle_depend): New functions.
12556 (GOMP_taskwait): Use them. If more than one new tasks
12557 have been queued, wake other threads if needed.
12558 (gomp_barrier_handle_tasks): Likewise. If
12559 gomp_team_barrier_cancelled, don't start any new tasks, just free
12561 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
12563 (omp_proc_bind_kind, omp_proc_bind_false,
12564 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
12565 omp_proc_bind_spread): New params.
12566 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12567 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12568 omp_get_team_num, omp_is_initial_device): New interfaces.
12569 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
12570 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
12571 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
12572 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
12573 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
12574 useless use omp_lib_kinds.
12575 * omp.h.in (omp_proc_bind_t): New typedef.
12576 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12577 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12578 omp_get_team_num, omp_is_initial_device): New prototypes.
12579 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
12580 through to gomp_team_start.
12581 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
12582 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
12583 Adjust gomp_parallel_loop_start callers.
12584 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12585 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12586 GOMP_loop_end_cancel): New functions.
12587 (GOMP_parallel_end): Add ialias_redirect.
12588 * hashtab.h: New file.
12589 * libgomp.texi (Environment Variables): Minor cleanup,
12590 update section refs to OpenMP 4.0rc2.
12591 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
12592 environment variables.
12593 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
12594 team->work_shares_to_free to thr->ts.work_share before calling
12596 (gomp_work_share_end_cancel): New function.
12597 * config/linux/proc.c: Include errno.h.
12598 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
12599 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
12600 sizeof (cpu_set_t) to determine number of iterations. Fix up check
12601 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
12602 gomp_cpuset_size is sizeof (cpu_set_t).
12603 (gomp_init_num_threads): Initialize gomp_cpuset_size,
12604 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
12605 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
12606 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
12607 contain any logical CPUs.
12608 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
12609 is NULL. Use gomp_cpusetp instead of &cpuset and pass
12610 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
12611 pthread_getaffinity_np. Check gomp_places_list instead of
12612 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
12613 * config/linux/bar.c (gomp_barrier_wait_end,
12614 gomp_barrier_wait_last): Use BAR_* defines.
12615 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
12616 from state where needed. Set work_share_cancelled to 0 on last
12618 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
12619 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
12621 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
12622 Add cpusetsize argument.
12623 (gomp_cpuset_size, gomp_cpusetp): Declare.
12624 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
12625 (affinity_counter): Remove.
12626 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
12627 if CPU_ALLOC_SIZE isn't defined.
12628 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
12629 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
12630 bind current thread to the first place.
12631 (gomp_init_thread_affinity): Rewritten. Add place argument, just
12632 pthread_setaffinity_np to gomp_places_list[place].
12633 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12634 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12635 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12636 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
12637 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
12638 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
12639 (gomp_barrier_t): Add awaited_final field.
12640 (gomp_barrier_init): Initialize awaited_final field.
12641 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
12642 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
12644 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
12646 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
12647 gomp_team_barrier_cancelled): New inline functions.
12648 (gomp_barrier_last_thread,
12649 gomp_team_barrier_set_task_pending,
12650 gomp_team_barrier_clear_task_pending,
12651 gomp_team_barrier_set_waiting_for_tasks,
12652 gomp_team_barrier_waiting_for_tasks,
12653 gomp_team_barrier_done): Use BAR_* defines.
12654 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
12655 (gomp_barrier_wait_end): Use BAR_* defines.
12656 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
12657 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
12659 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
12660 gomp_team_barrier_cancel): New functions.
12661 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
12663 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12664 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12665 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12666 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
12667 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
12668 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
12669 (gomp_barrier_t): Add cancellable field.
12670 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
12671 gomp_team_barrier_cancel): New prototypes.
12672 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
12673 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
12674 gomp_team_barrier_cancelled): New inline functions.
12675 (gomp_barrier_wait_start, gomp_barrier_last_thread,
12676 gomp_team_barrier_set_task_pending,
12677 gomp_team_barrier_clear_task_pending,
12678 gomp_team_barrier_set_waiting_for_tasks,
12679 gomp_team_barrier_waiting_for_tasks,
12680 gomp_team_barrier_done): Use BAR_* defines.
12681 * barrier.c (GOMP_barrier_cancel): New function.
12682 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
12683 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
12684 omp_proc_bind_spread): New params.
12685 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12686 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12687 omp_get_team_num, omp_is_initial_device): New externals.
12688 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
12690 (gomp_resolve_num_threads): Adjust for thread_limit now being in
12691 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
12692 infinity. If not nested, just return minimum of max_num_threads
12693 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
12694 to the returned value. Otherwise, don't update atomically
12695 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
12696 (GOMP_parallel_end): Adjust for thread_limit now being in
12697 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
12698 infinity. Adjust threads_busy in the pool rather than
12699 gomp_remaining_threads_count. Remember team->nthreads and call
12700 gomp_team_end before adjusting threads_busy, if not nested
12701 afterwards, just set it to 1 non-atomically. Add ialias.
12702 (GOMP_parallel_start): Adjust gomp_team_start caller.
12703 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
12704 * testsuite/libgomp.c/affinity-1.c: New test.
12705 * testsuite/libgomp.c/atomic-15.c: New test.
12706 * testsuite/libgomp.c/atomic-16.c: New test.
12707 * testsuite/libgomp.c/atomic-17.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/depend-1.c: New test.
12717 * testsuite/libgomp.c/depend-2.c: New test.
12718 * testsuite/libgomp.c/depend-3.c: New test.
12719 * testsuite/libgomp.c/depend-4.c: New test.
12720 * testsuite/libgomp.c/for-1.c: New test.
12721 * testsuite/libgomp.c/for-1.h: New file.
12722 * testsuite/libgomp.c/for-2.c: New test.
12723 * testsuite/libgomp.c/for-2.h: New file.
12724 * testsuite/libgomp.c/for-3.c: New test.
12725 * testsuite/libgomp.c/pr58392.c: New test.
12726 * testsuite/libgomp.c/simd-1.c: New test.
12727 * testsuite/libgomp.c/simd-2.c: New test.
12728 * testsuite/libgomp.c/simd-3.c: New test.
12729 * testsuite/libgomp.c/simd-4.c: New test.
12730 * testsuite/libgomp.c/simd-5.c: New test.
12731 * testsuite/libgomp.c/simd-6.c: New test.
12732 * testsuite/libgomp.c/target-1.c: New test.
12733 * testsuite/libgomp.c/target-2.c: New test.
12734 * testsuite/libgomp.c/target-3.c: New test.
12735 * testsuite/libgomp.c/target-4.c: New test.
12736 * testsuite/libgomp.c/target-5.c: New test.
12737 * testsuite/libgomp.c/target-6.c: New test.
12738 * testsuite/libgomp.c/target-7.c: New test.
12739 * testsuite/libgomp.c/taskgroup-1.c: New test.
12740 * testsuite/libgomp.c/thread-limit-1.c: New test.
12741 * testsuite/libgomp.c/thread-limit-2.c: New test.
12742 * testsuite/libgomp.c/thread-limit-3.c: New test.
12743 * testsuite/libgomp.c/udr-1.c: New test.
12744 * testsuite/libgomp.c/udr-2.c: New test.
12745 * testsuite/libgomp.c/udr-3.c: New test.
12746 * testsuite/libgomp.c++/affinity-1.C: New test.
12747 * testsuite/libgomp.c++/atomic-10.C: New test.
12748 * testsuite/libgomp.c++/atomic-11.C: New test.
12749 * testsuite/libgomp.c++/atomic-12.C: New test.
12750 * testsuite/libgomp.c++/atomic-13.C: New test.
12751 * testsuite/libgomp.c++/atomic-14.C: New test.
12752 * testsuite/libgomp.c++/atomic-15.C: New test.
12753 * testsuite/libgomp.c++/cancel-for-1.C: New test.
12754 * testsuite/libgomp.c++/cancel-for-2.C: New test.
12755 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
12756 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
12757 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
12758 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
12759 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
12760 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
12761 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
12762 * testsuite/libgomp.c++/cancel-test.h: New file.
12763 * testsuite/libgomp.c++/for-9.C: New test.
12764 * testsuite/libgomp.c++/for-10.C: New test.
12765 * testsuite/libgomp.c++/for-11.C: New test.
12766 * testsuite/libgomp.c++/simd-1.C: New test.
12767 * testsuite/libgomp.c++/simd-2.C: New test.
12768 * testsuite/libgomp.c++/simd-3.C: New test.
12769 * testsuite/libgomp.c++/simd-4.C: New test.
12770 * testsuite/libgomp.c++/simd-5.C: New test.
12771 * testsuite/libgomp.c++/simd-6.C: New test.
12772 * testsuite/libgomp.c++/simd-7.C: New test.
12773 * testsuite/libgomp.c++/simd-8.C: New test.
12774 * testsuite/libgomp.c++/target-1.C: New test.
12775 * testsuite/libgomp.c++/target-2.C: New test.
12776 * testsuite/libgomp.c++/target-2-aux.cc: New file.
12777 * testsuite/libgomp.c++/target-3.C: New test.
12778 * testsuite/libgomp.c++/taskgroup-1.C: New test.
12779 * testsuite/libgomp.c++/udr-1.C: New test.
12780 * testsuite/libgomp.c++/udr-2.C: New test.
12781 * testsuite/libgomp.c++/udr-3.C: New test.
12782 * testsuite/libgomp.c++/udr-4.C: New test.
12783 * testsuite/libgomp.c++/udr-5.C: New test.
12784 * testsuite/libgomp.c++/udr-6.C: New test.
12785 * testsuite/libgomp.c++/udr-7.C: New test.
12786 * testsuite/libgomp.c++/udr-8.C: New test.
12787 * testsuite/libgomp.c++/udr-9.C: New test.
12789 2013-09-20 Jakub Jelinek <jakub@redhat.com>
12792 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
12795 2013-09-20 Alan Modra <amodra@gmail.com>
12797 * configure: Regenerate.
12799 2013-09-19 Jakub Jelinek <jakub@redhat.com>
12801 * testsuite/libgomp.c/sections-2.c: New test.
12803 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
12805 * testsuite/libgomp.fortran/strassen.f90:
12806 Add dg-skip-if aarch64_tiny.
12808 2013-06-20 Iain Sandoe <iain@codesourcery.com>
12809 Cesar Philippidis <cesar@codesourcery.com>
12811 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
12812 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
12813 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
12814 * testsuite/libgomp.fortran/fortran.exp: Likewise.
12815 * testsuite/libgomp.graphite/graphite.exp: Likewise.
12816 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
12817 Use dg-runtest rather than gfortran-dg-runtest.
12819 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
12821 * testsuite/libgomp.c/icv-2.c: Extend current handling of
12822 Linux-based x86 systems to cover all GNU systems.
12823 * testsuite/libgomp.c/lock-3.c: Likewise.
12824 * testsuite/libgomp.c/pr48591.c: Likewise.
12826 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
12828 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
12829 GNU/Hurd, as done for Linux-based systems.
12831 * config/posix/ptrlock.h: Fix comment.
12833 2013-05-27 Tobias Burnus <burnus@net-b.de>
12836 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
12837 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
12838 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
12839 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
12840 omp_destroy_nest_lock): Correct arguments to match the one in
12842 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
12843 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
12844 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
12845 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
12847 2013-05-16 Jakub Jelinek <jakub@redhat.com>
12849 * testsuite/libgomp.c/loop-13.c: New test.
12850 * testsuite/libgomp.c/loop-14.c: New test.
12851 * testsuite/libgomp.c/loop-15.c: New test.
12852 * testsuite/libgomp.c++/loop-13.C: New test.
12853 * testsuite/libgomp.c++/loop-14.C: New test.
12854 * testsuite/libgomp.c++/loop-15.C: New test.
12856 2013-02-06 Jakub Jelinek <jakub@redhat.com>
12858 PR middle-end/56217
12859 * testsuite/libgomp.c++/pr56217.C: New test.
12861 2013-02-01 Alan Modra <amodra@gmail.com>
12863 * task.c (GOMP_task, GOMP_taskwait): Comment.
12865 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
12866 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
12869 * config/linux/wait.h (do_spin): Use atomic load for addr.
12870 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
12871 for intptr and ptrlock.
12872 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
12875 2013-01-22 Alan Modra <amodra@gmail.com>
12879 * task.c (GOMP_task): Revert 2011-12-09 change.
12880 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
12881 barrier to read task->children..
12882 (gomp_barrier_handle_tasks): ..and matching atomic store with
12883 release barrier here when setting parent->children to NULL.
12885 2013-01-16 Jakub Jelinek <jakub@redhat.com>
12886 Tobias Burnus <burnus@net-b.de>
12889 * testsuite/libgomp.fortran/fortran.exp: Use
12890 -fintrinsic-modules-path= instead of
12891 -fintrinsic-modules-path.
12893 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
12895 Update copyright years.
12897 2012-12-19 Tobias Burnus <burnus@net-b.de>
12899 * testsuite/libgomp.fortran/fortran.exp: Set
12900 -fintrinsic-modules-path.
12902 2012-12-19 Tobias Burnus <burnus@net-b.de>
12904 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
12905 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
12907 2012-11-21 Jakub Jelinek <jakub@redhat.com>
12910 * team.c (gomp_free_thread): Decrease gomp_managed_threads
12911 if pool had any threads_used.
12913 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
12915 * testsuite/libgomp.c++/pr24455.C: Use
12916 -Wl,-undefined,dynamic_lookup on darwin.
12918 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
12920 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
12922 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
12924 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
12926 2012-10-23 Ian Bolton <ian.bolton@arm.com>
12927 Jim MacArthur <jim.macarthur@arm.com>
12928 Marcus Shawcroft <marcus.shawcroft@arm.com>
12929 Nigel Stephens <nigel.stephens@arm.com>
12930 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12931 Richard Earnshaw <rearnsha@arm.com>
12932 Sofiane Naci <sofiane.naci@arm.com>
12933 Stephen Thomas <stephen.thomas@arm.com>
12934 Tejas Belagod <tejas.belagod@arm.com>
12935 Yufeng Zhang <yufeng.zhang@arm.com>
12937 * configure.tgt: Add AArch64.
12939 2012-10-04 Jason Merrill <jason@redhat.com>
12941 * testsuite/libgomp.c++/tls-init1.C: New.
12943 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
12945 * configure: Regenerated.
12947 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
12949 * config/linux/mips/futex.h (sys_futex0): Change to static
12950 function with noinline, nomips16 attributes under MIPS16. Adjust
12951 asm statement to place 'li v0,SYS_futex' immediately before
12954 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
12956 * libgomp.texi (Library Index): Renamed from "Index" to prevent
12957 conflict with index.html on case-insensitive file systems.
12959 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
12961 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
12962 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
12964 2012-07-02 Richard Guenther <rguenther@suse.de>
12965 Michael Matz <matz@suse.de>
12966 Tobias Grosser <tobias@grosser.es>
12967 Sebastian Pop <sebpop@gmail.com>
12969 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
12970 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
12971 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12972 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12974 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
12976 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
12978 2012-06-22 Richard Guenther <rguenther@suse.de>
12980 Merge from graphite branch
12981 2012-01-13 Tobias Grosser <tobias@grosser.es>
12983 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
12984 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
12986 2012-06-07 Jakub Jelinek <jakub@redhat.com>
12988 PR middle-end/53580
12989 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
12990 use GOMP_barrier () call instead.
12991 * testsuite/libgomp.c/pr26943-3.c: Likewise.
12992 * testsuite/libgomp.c/pr26943-4.c: Likewise.
12993 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
12994 call GOMP_barrier instead.
12995 * testsuite/libgomp.fortran/vla5.f90: Likewise.
12997 2012-06-06 Jakub Jelinek <jakub@redhat.com>
13000 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
13001 argument to memset call.
13003 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
13005 * configure: Regenerated.
13007 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
13009 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
13011 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
13014 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
13016 2012-03-22 Jakub Jelinek <jakub@redhat.com>
13018 PR middle-end/52547
13019 * testsuite/libgomp.c/pr52547.c: New test.
13021 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13023 * testsuite/lib/libgomp.exp: load fortran-modules.exp
13025 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13027 * configure.tgt (mips-sgi-irix6*): Remove.
13029 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13031 * configure.tgt (alpha*-dec-osf*): Remove.
13033 * config/osf/sem.h: Remove.
13034 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
13036 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
13038 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
13040 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13043 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
13044 Remove ENABLE_SYMVERS_SOL2.
13045 * configure: Regenerate.
13046 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
13047 (PREPROCESS): New variable.
13048 (libgomp.ver): New target.
13049 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
13050 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
13051 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
13053 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
13054 * Makefile.in: Regenerate.
13056 2012-02-14 Walter Lee <walt@tilera.com>
13058 * configure.tgt: Handle tilegx and tilepro.
13059 * config/linux/tile/futex.h: New file.
13061 2012-02-08 Richard Guenther <rguenther@suse.de>
13063 PR tree-optimization/46886
13064 * testsuite/libgomp.c/pr46886.c: New testcase.
13066 2012-01-25 Matthias Klose <doko@ubuntu.com>
13068 * config/linux/arm: Remove empty directory.
13069 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
13071 2011-12-09 Alan Modra <amodra@gmail.com>
13074 * task.c (GOMP_taskwait): Don't access task->children outside of
13075 task_lock mutex region.
13076 (GOMP_task): Likewise.
13078 2011-12-06 Jakub Jelinek <jakub@redhat.com>
13081 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
13083 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
13084 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
13085 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
13086 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
13087 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
13089 2011-12-02 Alan Modra <amodra@gmail.com>
13091 * config/linux/affinity.c: Use atomic rather than sync builtin.
13092 * config/linux/lock.c: Likewise.
13093 * config/linux/ptrlock.h: Likewise.
13094 * config/linux/ptrlock.c: Likewise.
13095 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
13096 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
13097 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
13098 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
13099 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
13100 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
13101 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
13102 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
13103 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
13104 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
13106 2011-11-30 Alan Modra <amodra@gmail.com>
13109 * config/linux/bar.h: Use atomic rather than sync builtins.
13110 * config/linux/bar.c: Likewise. Add missing acquire
13111 synchronisation on generation field.
13112 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
13115 2011-11-30 Alan Modra <amodra@gmail.com>
13117 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
13118 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
13119 * config/linux/mutex.h: Use atomic rather than sync builtins.
13120 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
13121 * config/linux/omp-lock.h: Comment fix.
13122 * config/linux/arm/mutex.h: Delete.
13123 * config/linux/powerpc/mutex.h: Delete.
13124 * config/linux/ia64/mutex.h: Delete.
13125 * config/linux/mips/mutex.h: Delete.
13127 2011-11-30 Alan Modra <amodra@gmail.com>
13130 * config/linux/sem.h: Rewrite.
13131 * config/linux/sem.c: Rewrite.
13133 2011-11-28 Richard Henderson <rth@redhat.com>
13135 * libgomp.h (enum memmodel): New.
13137 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
13139 * configure: Regenerate.
13141 2011-10-10 Matthias Klose <doko@ubuntu.com>
13143 * config/posix95: Remove empty directory.
13145 2011-08-26 Jakub Jelinek <jakub@redhat.com>
13147 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
13149 2011-08-19 Jakub Jelinek <jakub@redhat.com>
13152 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
13153 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
13155 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13157 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
13159 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13162 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
13164 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
13166 * config/linux/proc.h: New.
13167 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
13168 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
13169 (gomp_init_num_threads): Update call to cpuset_popcount.
13170 (get_num_procs): Ditto.
13171 * config/linux/affinity.c (gomp_init_affinity): Call
13172 gomp_cpuset_popcount.
13174 2011-08-02 Jakub Jelinek <jakub@redhat.com>
13178 * omp.h.in (omp_in_final): New prototype.
13179 * omp_lib.f90.in (omp_in_final): New interface.
13180 (omp_integer_kind, omp_logical_kind): Remove
13181 and replace all its uses in the module with 4.
13182 (openmp_version): Change to 201107.
13183 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
13184 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
13185 kind for the parameters.
13186 (omp_in_final): New external.
13187 (openmp_version): Change to 201107.
13188 * task.c (omp_in_final): New function.
13189 (gomp_init_task): Initialize final_task.
13190 (GOMP_task): Remove unused attribute from flags. Handle final
13192 (GOMP_taskyield): New function.
13193 (omp_in_final): Return true if if (false) or final (true) task
13194 or descendant of final (true).
13195 * fortran.c (omp_in_final_): New function.
13196 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
13197 (GOMP_3.0): Export GOMP_taskyield.
13198 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
13200 (parse_unsigned_long_list): New function.
13201 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
13202 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
13203 even if parse_affinity returned false.
13204 * config/linux/affinity.c (gomp_init_affinity): Handle
13205 gomp_cpu_affinity_len == 0.
13206 * libgomp_g.h (GOMP_taskyield): New prototype.
13207 * libgomp.h (struct gomp_task): Add final_task field.
13208 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
13209 * team.c (gomp_team_start): Override new task's nthreads_var icv
13210 if list form OMP_NUM_THREADS has been used and it has value for
13211 the new nesting level.
13213 * testsuite/libgomp.c/atomic-11.c: New test.
13214 * testsuite/libgomp.c/atomic-12.c: New test.
13215 * testsuite/libgomp.c/atomic-13.c: New test.
13216 * testsuite/libgomp.c/atomic-14.c: New test.
13217 * testsuite/libgomp.c/reduction-6.c: New test.
13218 * testsuite/libgomp.c/task-5.c: New test.
13219 * testsuite/libgomp.c++/atomic-2.C: New test.
13220 * testsuite/libgomp.c++/atomic-3.C: New test.
13221 * testsuite/libgomp.c++/atomic-4.C: New test.
13222 * testsuite/libgomp.c++/atomic-5.C: New test.
13223 * testsuite/libgomp.c++/atomic-6.C: New test.
13224 * testsuite/libgomp.c++/atomic-7.C: New test.
13225 * testsuite/libgomp.c++/atomic-8.C: New test.
13226 * testsuite/libgomp.c++/atomic-9.C: New test.
13227 * testsuite/libgomp.c++/task-8.C: New test.
13228 * testsuite/libgomp.c++/reduction-4.C: New test.
13229 * testsuite/libgomp.fortran/allocatable7.f90: New test.
13230 * testsuite/libgomp.fortran/allocatable8.f90: New test.
13231 * testsuite/libgomp.fortran/crayptr3.f90: New test.
13232 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
13233 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
13234 * testsuite/libgomp.fortran/pointer1.f90: New test.
13235 * testsuite/libgomp.fortran/pointer2.f90: New test.
13236 * testsuite/libgomp.fortran/task4.f90: New test.
13238 2011-08-02 Tobias Burnus <burnus@net-b.de>
13240 * libgomp.texi: Update OpenMP spec references to 3.1.
13241 (omp_in_final,OMP_PROC_BIND): New sections.
13242 (OMP_NUM_THREADS): Document that the value can be now a list.
13243 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
13245 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
13247 * config/linux/x86/futex.h: Check __x86_64__ instead of
13250 2011-07-29 Jakub Jelinek <jakub@redhat.com>
13252 PR middle-end/49897
13253 PR middle-end/49898
13254 * testsuite/libgomp.c/pr49897-1.c: New test.
13255 * testsuite/libgomp.c/pr49897-2.c: New test.
13256 * testsuite/libgomp.c/pr49898-1.c: New test.
13257 * testsuite/libgomp.c/pr49898-2.c: New test.
13259 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
13261 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
13262 for ia32 instead of ilp32.
13264 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
13265 * testsuite/libgomp.c/atomic-6.c: Likewise.
13267 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
13269 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
13270 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
13272 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13275 * config/osf/sem.h: New file.
13276 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
13278 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13281 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
13284 2011-07-15 Jakub Jelinek <jakub@redhat.com>
13286 * config/linux/wait.h (do_spin): New inline, largely copied
13287 from do_wait, just don't do futex_wait here, instead return true if
13289 (do_wait): Implement using do_spin.
13290 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
13292 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
13293 __sync_bool_compare_and_swap, pass the oldval to
13294 gomp_mutex_lock_slow.
13295 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
13296 If all mutex contenders are just spinning and not sleeping, don't
13297 change state to 2 unnecessarily. Optimize the loop when state has
13298 already become 2 to use just one atomic operation per loop instead
13300 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
13302 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
13303 __sync_bool_compare_and_swap, pass the oldval to
13304 gomp_mutex_lock_slow.
13306 2011-06-22 Jakub Jelinek <jakub@redhat.com>
13309 * iter.c (gomp_iter_static_next): For chunk size 0
13310 only use n ceil/ nthreads size for the first
13311 n % nthreads threads in the team instead of
13312 all threads except for the last few ones which
13313 get less work or none at all.
13314 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
13315 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
13316 chunk argument, set run_sched_modifier to 0 for static
13317 resp. 1 for other kinds. If chunk argument is 0
13318 and not static, set value to 1.
13320 2011-05-19 Jakub Jelinek <jakub@redhat.com>
13323 * testsuite/libgomp.c++/pr49043.C: New test.
13326 * testsuite/libgomp.c++/pr48869.C: New test.
13328 2011-05-06 Jakub Jelinek <jakub@redhat.com>
13331 * fortran.c: Include limits.h.
13333 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
13335 (omp_set_num_threads_8_, omp_set_schedule_8_,
13336 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
13337 omp_get_team_size_8_): Use TO_INT macro.
13338 * testsuite/libgomp.fortran/pr48894.f90: New test.
13340 2011-04-13 Jakub Jelinek <jakub@redhat.com>
13342 PR middle-end/48591
13343 * testsuite/libgomp.c/pr48591.c: New test.
13345 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13348 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
13349 * configure: Regenerate.
13351 2011-02-27 Jakub Jelinek <jakub@redhat.com>
13354 * testsuite/libgomp.fortran/task3.f90: New test.
13356 2011-02-24 Tobias Burnus <burnus@net-b.de>
13358 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
13360 2011-02-23 Jakub Jelinek <jakub@redhat.com>
13363 * libgomp.texi (omp_get_wtime): Don't say time in the past
13364 must be Unix Epoch.
13366 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13369 * testsuite/libgomp.fortran/fortran.exp: Check for both
13370 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
13371 but $blddir != "", still append ${blddir}/${lang_library_path}
13372 to ld_library_path.
13374 2011-02-16 Tobias Burnus <burnus@net-b.de>
13377 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
13378 of libquadmath.a before adding its libpath to ldflags.
13380 2011-02-14 Jakub Jelinek <jakub@redhat.com>
13383 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
13384 to FUTEX_WAIT futex syscall.
13385 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
13387 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13389 * configure: Regenerate.
13391 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
13394 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
13396 2011-01-16 Gerald Pfeifer
13398 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
13400 2010-12-14 Jakub Jelinek <jakub@redhat.com>
13403 * libgomp.fortran/allocatable6.f90: New test.
13405 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13407 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
13408 * configure: Regenerate.
13410 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
13414 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
13415 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
13416 * aclocal.m4: Regenerate.
13417 * configure: Regenerate.
13418 * Makefile.in: Regenerate.
13419 * testsuite/Makefile.in: Regenerate.
13421 2010-12-02 Jakub Jelinek <jakub@redhat.com>
13424 * libgomp.fortran/pr46753.f90: New test.
13427 * env.c (initialize_env): Default to spin count 300000
13428 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
13432 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
13433 at the end if sync builtins aren't supported.
13435 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13437 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
13439 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13441 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
13443 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
13445 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
13447 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13448 Tobias Burnus <burnus@net-b.de>
13452 * configure: Regenerate.
13454 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
13456 * config/linux/futex.h: New.
13457 * config/linux/arm/mutex.h: New.
13458 * configure.tgt (arm*-*-linux*): Add config path.
13460 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
13462 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13464 2010-09-23 Tobias Burnus <burnus@net-b.de>
13466 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
13467 Change Fortran datatype to LOGICAL.
13468 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
13469 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
13471 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13473 * configure: Regenerate.
13475 2010-07-26 Jakub Jelinek <jakub@redhat.com>
13477 * libgomp.texi: Add function keyword to a couple of Fortran
13478 interfaces, use integer instead of int for Fortran.
13480 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
13482 * libgomp.texi: Fix spelling and pasto problems throughout.
13483 Adjust prototypes to match code.
13485 2010-07-24 Tobias Burnus <burnus@net-b.de>
13487 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
13488 silence -fwhole-file warning.
13490 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13492 * configure.tgt (*-*-solaris2.[56]*): Removed.
13494 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13496 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
13497 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
13498 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
13499 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
13500 targetting solaris2*.
13501 * configure: Regenerate.
13502 * config.h.in: Regenerate.
13504 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
13505 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
13506 Add libgomp_version_dep.
13507 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
13509 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
13510 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
13511 * Makefile.in: Regenerate.
13513 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
13514 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13515 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
13516 to common block, protected by
13517 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13519 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
13521 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
13523 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
13526 * configure: Regenerate.
13528 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13531 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
13532 * configure: Regenerate.
13533 * Makefile.in: Regenerate.
13534 * testsuite/Makefile.in: Regenerate.
13536 2010-04-26 Jakub Jelinek <jakub@redhat.com>
13539 * testsuite/libgomp.c/pr43893.c: New test.
13540 * testsuite/libgomp.c++/pr43893.C: New test.
13542 2010-04-21 Jakub Jelinek <jakub@redhat.com>
13544 PR middle-end/43570
13545 * testsuite/libgomp.fortran/vla8.f90: New test.
13547 2010-04-20 Jakub Jelinek <jakub@redhat.com>
13550 * config/linux/affinity.c (gomp_init_affinity): Decrease
13551 gomp_available_cpus if affinity mask confines the process to fewer
13553 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
13554 non-NULL, just return gomp_available_cpus.
13557 * sections.c (gomp_sections_init): Initialize ws->mode.
13559 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13561 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
13562 not unused bar variable.
13563 * configure: Regenerate.
13565 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13567 * Makefile.in: Regenerate.
13568 * aclocal.m4: Regenerate.
13569 * testsuite/Makefile.in: Regenerate.
13571 2010-03-22 Jakub Jelinek <jakub@redhat.com>
13574 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
13575 (initialize_env): Adjust callers.
13576 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
13577 when the argument is 0.
13579 * testsuite/libgomp.c/pr42942.c: New test.
13581 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
13583 PR middle-end/42644
13584 PR middle-end/42130
13585 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13586 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
13588 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13590 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
13591 * testsuite/libgomp.c++/task-6.C: Likewise.
13593 2010-01-28 Steve Ellcey <sje@cup.hp.com>
13595 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
13597 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
13599 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
13600 * configure: Regenerate.
13602 2010-01-26 Jakub Jelinek <jakub@redhat.com>
13605 * testsuite/libgomp.fortran/allocatable5.f90: New test.
13607 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
13609 * configure.ac: Test for executability of GFORTRAN.
13610 * configure: Regenerate.
13612 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13614 * configure: Regenerate.
13616 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
13619 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
13621 2010-01-03 Richard Guenther <rguenther@suse.de>
13623 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
13625 2009-12-23 Sebastian Pop <sebpop@gmail.com>
13627 * testsuite/libgomp.graphite/pr4118.c: New.
13629 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
13631 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
13632 for darwin, protect the test with require-effective-target tls_runtime.
13633 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
13635 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
13638 * testsuite/lib/libgomp.exp: Provide -B options to allow for
13639 link spec %s substitutions for static libraries.
13641 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
13644 * libgomp.graphite/force-parallel-2.c: Reduce array size.
13646 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13648 * Makefile.in: Regenerate.
13649 * configure: Regenerate.
13650 * testsuite/Makefile.in: Regenerate.
13652 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
13654 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
13655 settings for LC_ALL and LANG.
13657 2009-11-25 Jakub Jelinek <jakub@redhat.com>
13660 * testsuite/libgomp.fortran/pr42162.f90: New test.
13662 2009-11-13 Jakub Jelinek <jakub@redhat.com>
13664 PR middle-end/42029
13665 * testsuite/libgomp.c/pr42029.c: New test.
13667 2009-10-26 Jakub Jelinek <jakub@redhat.com>
13669 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
13670 *s. Accept ld version without text in ()s.
13671 * configure: Regenerated.
13673 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
13675 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
13677 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13680 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
13681 or a hyphen (happens with fortran language disabled).
13682 * configure: Regenerate.
13684 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13686 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
13687 use sed script portable to Solaris /bin/sed for extracting ld
13689 * configure: Regenerate.
13691 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
13693 * testsuite/libgomp.graphite/bounds.c: New test.
13695 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13697 * Makefile.am (libgomp_la_LINK): New.
13698 * Makefile.in: Regenerate.
13700 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13702 * configure.ac (AC_PREREQ): Bump to 2.64.
13704 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13706 * Makefile.am (install-html, install-pdf): Remove.
13707 * Makefile.in: Regenerate.
13709 * Makefile.in: Regenerate.
13710 * aclocal.m4: Regenerate.
13711 * config.h.in: Regenerate.
13712 * configure: Regenerate.
13713 * testsuite/Makefile.in: Regenerate.
13715 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13717 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
13718 * Makefile.in: Regenerate.
13720 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
13722 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
13723 * Makefile.in: Regenerate.
13725 2009-08-19 Tobias Burnus <burnus@net-b.de>
13728 omp_lib.h.in: Fix -std=f95 errors.
13730 2009-08-14 David Edelsohn <edelsohn@gnu.org>
13732 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
13733 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
13734 * testsuite/libgomp.graphite/graphite.exp: New.
13736 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
13738 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
13741 2009-08-04 David Daney <ddaney@caviumnetworks.com>
13743 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
13744 needed memory barrier semantics.
13745 * config/linux/mips/mutex.h: New file.
13747 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13749 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
13751 2009-07-16 Joseph Myers <joseph@codesourcery.com>
13753 * configure: Regenerate.
13755 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
13760 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
13761 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
13762 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
13764 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
13766 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
13767 options when choosing a multilib.
13769 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
13771 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
13772 ld_library_path. Use add_path. Add just find_libgcc_s to
13773 ld_library_path, not every libgcc multilib directory.
13774 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
13775 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
13776 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
13778 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
13780 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
13782 * Makefile.am (LTLDFLAGS): Define.
13784 * Makefile.in: Regenerate.
13786 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
13789 * testsuite/libgomp.fortran/fortran.exp: Don't link with
13790 libgfortranbegin, check existence of libgfortran.a instead of
13791 libgfortranbegin.a.
13793 2009-05-20 Jakub Jelinek <jakub@redhat.com>
13796 * team.c (gomp_thread_start): Destroy thr->release semaphore.
13797 (gomp_free_pool_helper): Likewise.
13799 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
13800 Jakub Jelinek <jakub@redhat.com>
13803 * testsuite/libgomp.fortran/workshare2.f90: New test.
13805 2009-04-09 Nick Clifton <nickc@redhat.com>
13807 * iter.c: Change copyright header to refer to version 3 of the
13808 GNU General Public License with version 3.1 of the GCC Runtime
13809 Library Exception and to point readers at the COPYING3 and
13810 COPYING3.RUNTIME files and the FSF's license web page.
13811 * alloc.c: Likewise.
13812 * barrier.c: Likewise.
13813 * config/bsd/proc.c: Likewise.
13814 * config/linux/affinity.c: Likewise.
13815 * config/linux/alpha/futex.h: Likewise.
13816 * config/linux/bar.c: Likewise.
13817 * config/linux/bar.h: Likewise.
13818 * config/linux/ia64/futex.h: Likewise.
13819 * config/linux/ia64/mutex.h: Likewise.
13820 * config/linux/lock.c: Likewise.
13821 * config/linux/mips/futex.h: Likewise.
13822 * config/linux/mutex.c: Likewise.
13823 * config/linux/mutex.h: Likewise.
13824 * config/linux/powerpc/futex.h: Likewise.
13825 * config/linux/proc.c: Likewise.
13826 * config/linux/ptrlock.c: Likewise.
13827 * config/linux/ptrlock.h: Likewise.
13828 * config/linux/s390/futex.h: Likewise.
13829 * config/linux/sem.c: Likewise.
13830 * config/linux/sem.h: Likewise.
13831 * config/linux/sparc/futex.h: Likewise.
13832 * config/linux/wait.h: Likewise.
13833 * config/linux/x86/futex.h: Likewise.
13834 * config/mingw32/proc.c: Likewise.
13835 * config/mingw32/time.c: Likewise.
13836 * config/posix/affinity.c: Likewise.
13837 * config/posix/bar.c: Likewise.
13838 * config/posix/bar.h: Likewise.
13839 * config/posix/lock.c: Likewise.
13840 * config/posix/mutex.h: Likewise.
13841 * config/posix/proc.c: Likewise.
13842 * config/posix/ptrlock.h: Likewise.
13843 * config/posix/sem.c: Likewise.
13844 * config/posix/sem.h: Likewise.
13845 * config/posix/time.c: Likewise.
13846 * config/posix95/lock.c: Likewise.
13847 * critical.c: Likewise.
13849 * error.c: Likewise.
13850 * fortran.c: Likewise.
13851 * iter_ull.c: Likewise.
13852 * libgomp.h: Likewise.
13853 * libgomp_f.h.in: Likewise.
13854 * libgomp_g.h: Likewise.
13855 * loop.c: Likewise.
13856 * loop_ull.c: Likewise.
13857 * omp.h.in: Likewise.
13858 * omp_lib.f90.in: Likewise.
13859 * omp_lib.h.in: Likewise.
13860 * ordered.c: Likewise.
13861 * parallel.c: Likewise.
13862 * sections.c: Likewise.
13863 * single.c: Likewise.
13864 * task.c: Likewise.
13865 * team.c: Likewise.
13866 * work.c: Likewise.
13868 2009-04-09 Jakub Jelinek <jakub@redhat.com>
13870 * testsuite/config/default.exp: Change copyright header to refer to
13871 version 3 of the GNU General Public License and to point readers
13872 at the COPYING3 file and the FSF's license web page.
13874 2009-04-08 Jakub Jelinek <jakub@redhat.com>
13876 PR middle-end/39573
13877 * libgomp.c++/pr39573.C: New test.
13879 2009-04-01 Jakub Jelinek <jakub@redhat.com>
13882 * testsuite/libgomp.c/pr39591-1.c: New test.
13883 * testsuite/libgomp.c/pr39591-2.c: New test.
13884 * testsuite/libgomp.c/pr39591-3.c: New test.
13886 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
13888 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
13889 * testsuite/libgomp.c/atomic-6.c: Ditto.
13891 2009-03-23 Jakub Jelinek <jakub@redhat.com>
13894 * testsuite/libgomp.c/loop-12.c: New test.
13895 * testsuite/libgomp.c/loop-11.c: New test.
13896 * testsuite/libgomp.c++/loop-11.C: New test.
13897 * testsuite/libgomp.c++/loop-12.C: New test.
13898 * testsuite/libgomp.c++/for-8.C: New test.
13900 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13902 * configure: Regenerate.
13904 2009-02-11 Jakub Jelinek <jakub@redhat.com>
13906 PR middle-end/39154
13907 * testsuite/libgomp.c/pr39154.c: New test.
13909 2009-01-30 Ian Lance Taylor <iant@google.com>
13911 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
13912 libgomp_ld_is_gold. Get gold version number.
13913 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
13914 * configure: Rebuild.
13916 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
13918 * testsuite/lib/libgomp.exp: Add -B option for targets that
13919 use libgfortran.a%s in their specs.
13921 2009-01-07 Jakub Jelinek <jakub@redhat.com>
13924 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
13925 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
13926 HAVE_AS_SYMVER_DIRECTIVE is not defined.
13927 * configure: Regenerated.
13928 * config.h.in: Likewise.
13930 2008-12-28 Jakub Jelinek <jakub@redhat.com>
13933 * testsuite/libgomp.c/pr38650.c: New test.
13934 * testsuite/libgomp.c++/pr38650.C: New test.
13936 2008-12-27 Jakub Jelinek <jakub@redhat.com>
13938 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
13940 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
13942 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
13944 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13946 * configure: Regenerate.
13948 2008-12-08 Jakub Jelinek <jakub@redhat.com>
13950 PR middle-end/36802
13951 * testsuite/libgomp.c/pr36802-1.c: New test.
13952 * testsuite/libgomp.c/pr36802-2.c: New test.
13953 * testsuite/libgomp.c/pr36802-3.c: New test.
13955 2008-12-01 Janis Johnson <janis187@us.ibm.com>
13958 * config/linux/powerpc/mutex.h: New.
13960 2008-12-01 Jakub Jelinek <jakub@redhat.com>
13963 * testsuite/libgomp.c++/for-7.C: New test.
13966 * testsuite/libgomp.c++/for-6.C: New test.
13968 2008-11-26 Janis Johnson <janis187@us.ibm.com>
13971 * testsuite/lib/libgomp.exp: Include new timeout library files.
13972 (libgomp_target_compile): Set timeout value from new proc.
13974 2008-11-13 Steve Ellcey <sje@cup.hp.com>
13977 * config/linux/ia64/mutex.h: New.
13979 2008-11-04 Tobias Burnus <burnus@net-b.de>
13982 * libgomp.texi (Runtime library routines, environment variables):
13983 Update for OpenMP version 3.0.
13985 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
13986 Steve Ellcey <sje@cup.hp.com>
13988 * configure: Regenerate for new libtool.
13989 * Makefile.in: Ditto.
13990 * testsuite/Makefile.in: Ditto.
13992 2008-09-19 Jakub Jelinek <jakub@redhat.com>
13993 Andreas Tobler <a.tobler@schweiz.org>
13995 * config/bsd/proc.c: New file.
13996 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
13997 * configure.ac: Check for header <sys/sysctl.h>
13998 * configure: Regenerate.
13999 * config.h.in: Likewise.
14001 2008-09-05 Janis Johnson <janis187@us.ibm.com>
14003 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
14005 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
14007 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
14008 * Makefile.in: Regenerated.
14009 * testsuite/Makefile.in: Regenerated.
14011 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
14013 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
14014 depend on blddir if blddir exists.
14015 (libgomp_target_compile): Likewise.
14016 * testsuite/libgomp.c++/c++.exp: Likewise.
14017 * testsuite/libgomp.fortran/fortran.exp: Likewise.
14019 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14021 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
14022 Do not list GPL as Invariant Section.
14024 2008-07-28 Ilie Garbacea <ilie@mips.com>
14025 Chao-ying Fu <fu@mips.com>
14027 * configure.tgt: Enable futex for MIPS.
14028 * config/linux/mips/futex.h: New file.
14030 2008-07-16 Jakub Jelinek <jakub@redhat.com>
14032 * team.c (gomp_team_end): Free team immediately if it has
14035 2008-07-08 David Edelsohn <edelsohn@gnu.org>
14037 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
14038 * testsuite/libgomp.fortran/fortran.exp: Same.
14039 * testsuite/libgomp.c/c.exp: Same.
14040 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
14041 directory to library path first.
14043 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
14045 * env.c (parse_stacksize): Add cast to avoid warning.
14046 (parse_spincount): Likewise.
14048 2008-06-27 Jakub Jelinek <jakub@redhat.com>
14050 * testsuite/libgomp.c/loop-10.c: New test.
14051 * libgomp.c/loop-3.c (main): Add lastprivate clause.
14052 * libgomp.c++/loop-6.C (main): Likewise.
14055 * testsuite/libgomp.c/debug-1.c: New test.
14057 2008-06-19 Jakub Jelinek <jakub@redhat.com>
14059 * testsuite/libgomp.c/nqueens-1.c: New test.
14062 * testsuite/libgomp.c++/task-7.C: New function.
14064 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14066 * configure: Regenerate.
14068 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14070 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
14071 mutex when HAVE_SYNC_BUILTINS isn't defined.
14073 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14075 * libgomp.texi (omp_test_lock): Fix typo.
14077 2008-06-12 Tobias Burnus <burnus@net-b.de>
14079 * omp_lib.f90.in: Add "implicit none".
14081 2008-06-12 Jakub Jelinek <jakub@redhat.com>
14083 PR middle-end/36506
14084 * testsuite/libgomp.c/reduction-5.c: New test.
14086 2008-06-11 Jakub Jelinek <jakub@redhat.com>
14088 * libgomp.h (struct gomp_task): Add in_tied_task field.
14089 * task.c (gomp_init_task): Initialize it.
14090 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
14091 unconditionally. Don't call gomp_team_barrier_wake if
14092 current task is implicit or if(0) from implicit and number of
14093 running tasks is equal to nthreads - 1.
14096 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
14097 omp_get_team_size_8): Fix pastos.
14100 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
14101 * configure: Regenerated.
14102 * config.h.in: Regenerated.
14103 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
14106 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
14109 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
14110 (GOMP_loop_ull_dynamic_start): Likewise.
14111 (GOMP_loop_ull_guided_start): Likewise.
14112 (GOMP_loop_ull_ordered_static_start): Likewise.
14113 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
14114 (GOMP_loop_ull_ordered_guided_start): Likewise.
14116 2008-06-06 Jakub Jelinek <jakub@redhat.com>
14117 Richard Henderson <rth@redhat.com>
14118 Ulrich Drepper <drepper@redhat.com>
14119 Jakob Blomer <jakob.blomer@ira.uka.de>
14121 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
14122 Substitute also OMP_*LOCK_25*.
14123 * configure: Regenerated.
14124 * config.h.in: Regenerated.
14125 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
14126 ptrlock.c and task.c.
14127 * Makefile.in: Regenerated.
14128 * testsuite/Makefile.in: Regenerated.
14129 * task.c: New file.
14130 * loop_ull.c: New file.
14131 * iter_ull.c: New file.
14132 * libgomp.h: Include ptrlock.h.
14133 (enum gomp_task_kind): New type.
14134 (struct gomp_team): Add task_lock, task_queue, task_count,
14135 task_running_count, single_count fields. Add
14136 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
14137 Remove work_share_lock, generation_mask,
14138 oldest_live_gen, num_live_gen and init_work_shares fields, add
14139 work work_share_list_alloc, work_share_list_free and work_share_chunk
14140 fields. Change work_shares from pointer to pointers into an array.
14141 Change ordered_release field into gomp_sem_t ** from flexible array
14142 member. Add implicit_task and initial_work_shares fields.
14143 Move close to the end of the struct.
14144 (struct gomp_team_state): Add single_count, last_work_share,
14145 active_level and level fields, remove work_share_generation.
14146 (gomp_barrier_handle_tasks): New prototype.
14147 (gomp_finish_task): New inline function.
14148 (struct gomp_work_share): Move chunk_size, end, incr into
14149 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
14150 next_ll fields. Reshuffle fields. Add next_alloc,
14151 next_ws, next_free and inline_ordered_team_ids fields, change
14152 ordered_team_ids into pointer from flexible array member.
14153 Add mode field. Put lock and next into a different cache line
14154 from most of the write-once fields.
14155 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
14156 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
14157 gomp_iter_ull_guided_next): New prototypes.
14158 (gomp_new_icv): New prototype.
14159 (struct gomp_thread): Add thread_pool and task fields.
14160 (struct gomp_thread_pool): New type.
14161 (gomp_new_team): New prototype.
14162 (gomp_team_start): Change type of last argument.
14163 (gomp_new_work_share): Removed.
14164 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
14165 (gomp_work_share_init_done): New static inline.
14166 (gomp_throttled_spin_count_var, gomp_available_cpus,
14167 gomp_managed_threads): New extern decls.
14168 (gomp_init_task): New prototype.
14169 (gomp_spin_count_var): New extern var decl.
14170 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
14171 or no alias support, or if not PIC.
14172 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
14173 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
14174 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
14175 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
14176 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
14177 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
14178 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
14179 gomp_test_nest_lock_25): New prototypes.
14180 (omp_lock_symver, strong_alias): Define.
14181 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
14183 (gomp_end_task): New.
14184 (struct gomp_task_icv, gomp_global_icv): New.
14185 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
14186 (struct gomp_task): New.
14187 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
14188 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
14190 (gomp_schedule_type): Reorder enum to match
14192 * team.c (struct gomp_thread_start_data): Add thread_pool and task
14194 (gomp_thread_start): Add gomp_team_barrier_wait call.
14195 For non-nested case remove clearing of docked thread thr fields.
14196 Use pool fields instead of global gomp_* variables. Use
14197 gomp_barrier_wait_last when needed. Initialize ts.active_level.
14198 Create tasks for each member thread.
14199 (free_team): Only destroy team barrier, task_lock here and free it.
14200 (gomp_free_thread): Free last_team if non-NULL.
14201 (gomp_team_end): Call gomp_team_barrier_wait instead of
14202 gomp_barrier_wait. For nested case call one extra
14203 gomp_barrier_wait. Move here some destruction from free_team.
14204 Call free_team on pool->last_team if any, rather than freeing
14205 current team. Destroy work_share_list_free_lock ifndef
14206 HAVE_SYNC_BUILTINS.
14207 (gomp_new_icv): New function.
14208 (gomp_threads, gomp_threads_size, gomp_threads_used,
14209 gomp_threads_dock): Removed.
14210 (gomp_thread_destructor): New variable.
14211 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
14213 (gomp_team_start): Create new pool if current thread doesn't have
14214 one. Use pool fields instead of global gomp_* variables.
14215 Initialize thread_pool field for new threads. Clear single_count.
14216 Change last argument from ws to team, don't create
14217 new team, set ts.work_share to &team->work_shares[0] and clear
14218 ts.last_work_share. Don't clear ts.work_share_generation.
14219 If number of threads changed, adjust atomically gomp_managed_threads.
14220 Use gomp_init_task instead of gomp_new_task,
14221 set thr->task to the corresponding implicit_task array entry.
14222 Create tasks for each member thread. Initialize ts.level.
14223 (initialize_team): Call pthread_key_create on
14224 gomp_thread_destructor.
14225 (team_destructor): New function.
14226 (new_team): Removed.
14227 (gomp_new_team): New function.
14228 (free_team): Free gomp_work_share blocks chained through next_alloc,
14229 instead of freeing work_shares and destroying work_share_lock.
14230 (gomp_team_end): Call gomp_fini_work_share. If number of threads
14231 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
14232 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
14233 of gomp_barrier_wait.
14234 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
14235 instead of gomp_barrier_wait. Call gomp_work_share_init_done
14236 if gomp_work_share_start returned true. Don't unlock ws->lock.
14237 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
14238 of gomp_barrier_wait.
14239 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
14240 gomp_work_share_init_done if gomp_work_share_start returned true.
14241 Don't unlock ws->lock.
14242 * work.c: Include stddef.h.
14243 (free_work_share): Use work_share_list_free_lock instead
14244 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
14245 Call gomp_fini_work_share and then either free ws if orphaned, or
14246 put it into work_share_list_free list of the current team.
14247 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
14249 (gomp_work_share_start, gomp_work_share_end,
14250 gomp_work_share_end_nowait): Rewritten.
14251 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
14252 (openmp_version): Set to 200805.
14253 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
14254 omp_sched_guided, omp_sched_auto): New parameters.
14255 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14256 omp_set_max_active_levels, omp_get_max_active_levels,
14257 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14258 omp_get_active_level): New interfaces.
14259 * omp_lib.h.in (openmp_version): Set to 200805.
14260 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
14261 omp_sched_guided, omp_sched_auto): New parameters.
14262 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14263 omp_set_max_active_levels, omp_get_max_active_levels,
14264 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14265 omp_get_active_level): New externals.
14266 * loop.c: Include limits.h.
14267 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
14269 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
14270 Likewise. Use gomp_icv.
14271 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
14272 ts.static_trip here.
14273 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
14274 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
14275 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
14276 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
14277 don't unlock ws->lock, otherwise lock it.
14278 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
14279 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
14280 (gomp_parallel_loop_start): Call gomp_new_team instead of
14281 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
14282 Adjust gomp_team_start caller. Pass 0 as second argument to
14283 gomp_resolve_num_threads.
14284 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
14285 If adding ws->chunk_size nthreads + 1 times after end won't
14286 overflow, set ws->mode to 1.
14287 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
14288 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
14289 GOMP_loop_ull_ordered_static_start,
14290 GOMP_loop_ull_ordered_dynamic_start,
14291 GOMP_loop_ull_ordered_guided_start,
14292 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
14293 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
14294 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
14295 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
14296 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
14298 * libgomp.map: Export lock routines also @@OMP_2.0.
14299 (GOMP_loop_ordered_dynamic_first,
14300 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
14301 GOMP_loop_ordered_static_first): Remove.
14302 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
14303 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
14304 GOMP_loop_ull_ordered_dynamic_next,
14305 GOMP_loop_ull_ordered_dynamic_start,
14306 GOMP_loop_ull_ordered_guided_next,
14307 GOMP_loop_ull_ordered_guided_start,
14308 GOMP_loop_ull_ordered_runtime_next,
14309 GOMP_loop_ull_ordered_runtime_start,
14310 GOMP_loop_ull_ordered_static_next,
14311 GOMP_loop_ull_ordered_static_start,
14312 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
14313 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
14314 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
14315 (omp_set_schedule, omp_get_schedule,
14316 omp_get_thread_limit, omp_set_max_active_levels,
14317 omp_get_max_active_levels, omp_get_level,
14318 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
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_):
14325 New exports @@OMP_3.0.
14326 * omp.h.in (omp_sched_t): New type.
14327 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14328 omp_set_max_active_levels, omp_get_max_active_levels,
14329 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14330 omp_get_active_level): New prototypes.
14331 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
14332 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
14333 gomp_thread_limit_var, gomp_remaining_threads_count,
14334 gomp_remaining_threads_lock): New variables.
14335 (parse_spincount): New function.
14336 (initialize_env): Call gomp_init_num_threads unconditionally.
14337 Initialize gomp_available_cpus. Call parse_spincount,
14338 initialize gomp_{,throttled_}spin_count_var
14339 depending on presence and value of OMP_WAIT_POLICY and
14340 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
14341 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
14342 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
14343 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
14344 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
14345 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
14346 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
14347 (gomp_global_icv): New.
14348 (parse_schedule): Use it. Parse "auto".
14349 (omp_set_num_threads): Use gomp_icv.
14350 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
14352 (omp_get_max_threads): Move from parallel.c.
14353 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14354 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
14356 (parse_stacksize, parse_wait_policy): New functions.
14357 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
14358 both wrappers for compatibility and new locks.
14359 (omp_set_schedule, omp_get_schedule,
14360 omp_get_thread_limit, omp_set_max_active_levels,
14361 omp_get_max_active_levels, omp_get_level,
14362 omp_get_ancestor_thread_num, omp_get_team_size,
14363 omp_get_active_level): New ialias_redirect.
14364 (omp_set_schedule_, omp_set_schedule_8_,
14365 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
14366 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
14367 omp_get_max_active_levels_, omp_get_level_,
14368 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
14369 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
14371 * parallel.c: Include limits.h.
14372 (gomp_resolve_num_threads): Add count argument. Rewritten.
14373 (GOMP_parallel_start): Call gomp_new_team and pass that as last
14374 argument to gomp_team_start. Pass 0 as second argument to
14375 gomp_resolve_num_threads.
14376 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
14377 if gomp_thread_limit_var != ULONG_MAX.
14378 (omp_in_parallel): Implement using ts.active_level.
14379 (omp_get_max_threads): Move to env.c.
14380 (omp_get_level, omp_get_ancestor_thread_num,
14381 omp_get_team_size, omp_get_active_level): New functions,
14383 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
14384 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
14385 gomp_iter_dynamic_next instead of the _locked variant and don't take
14386 lock around it, otherwise acquire it before calling
14387 gomp_iter_dynamic_next_locked.
14388 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
14389 gomp_iter_dynamic_next instead of the _locked variant and don't take
14391 (GOMP_parallel_sections_start): Call gomp_new_team instead of
14392 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
14393 Adjust gomp_team_start caller. Pass count as second argument to
14394 gomp_resolve_num_threads, don't adjust num_threads after the call.
14396 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
14397 ws->chunk_size by incr.
14398 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
14400 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
14402 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
14403 (omp_check_defines): Check even the compat defines.
14404 * config/linux/ptrlock.c: New file.
14405 * config/linux/ptrlock.h: New file.
14406 * config/linux/wait.h: New file.
14407 * config/posix/ptrlock.c: New file.
14408 * config/posix/ptrlock.h: New file.
14409 * config/linux/bar.h (gomp_team_barrier_wait,
14410 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14411 (gomp_team_barrier_set_task_pending,
14412 gomp_team_barrier_clear_task_pending,
14413 gomp_team_barrier_set_waiting_for_tasks,
14414 gomp_team_barrier_waiting_for_tasks,
14415 gomp_team_barrier_done): New inlines.
14416 (gomp_barrier_t): Rewritten.
14417 (gomp_barrier_state_t): New typedef.
14418 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
14419 gomp_barrier_wait_start): Rewritten.
14420 (gomp_barrier_wait_end): Change second argument to
14421 gomp_barrier_state_t.
14422 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14424 * config/linux/bar.c: Include wait.h instead of libgomp.h and
14426 (gomp_barrier_wait_end): Rewritten.
14427 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14428 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
14429 * config/posix/bar.h (gomp_barrier_t): Add generation field.
14430 (gomp_barrier_state_t): New typedef.
14431 (gomp_team_barrier_wait,
14432 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14433 (gomp_barrier_wait_start): Or all but low 2 bits from generation
14434 into the return value. Return gomp_barrier_state_t.
14435 (gomp_team_barrier_set_task_pending,
14436 gomp_team_barrier_clear_task_pending,
14437 gomp_team_barrier_set_waiting_for_tasks,
14438 gomp_team_barrier_waiting_for_tasks,
14439 gomp_team_barrier_done): New inlines.
14440 (gomp_barrier_wait_end): Change second argument to
14441 gomp_barrier_state_t.
14442 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14444 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
14445 (gomp_barrier_wait_end): Change second argument to
14446 gomp_barrier_state_t.
14447 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14448 gomp_team_barrier_wake): New functions.
14449 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
14451 (gomp_futex_wake, gomp_futex_wait): New variables.
14452 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
14453 * config/linux/lock.c: Rewrite to make locks task owned,
14454 for backwards compatibility provide the old entrypoints
14455 if symbol versioning. Include wait.h instead of libgomp.h and
14457 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
14458 * config/posix95/lock.c: Rewrite to make locks task owned,
14459 for backwards compatibility provide the old entrypoints
14460 if symbol versioning.
14461 * config/posix/lock.c: Rewrite to make locks task owned,
14462 for backwards compatibility provide the old entrypoints
14463 if symbol versioning.
14464 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
14465 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
14466 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
14467 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14468 (sys_futex0): Return error code.
14469 (futex_wake, futex_wait): If ENOSYS was returned, clear
14470 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14471 (cpu_relax, atomic_write_barrier): New static inlines.
14472 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14473 (futex_wake, futex_wait): If ENOSYS was returned, clear
14474 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14475 (cpu_relax, atomic_write_barrier): New static inlines.
14476 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14477 (sys_futex0): Return error code.
14478 (futex_wake, futex_wait): If ENOSYS was returned, clear
14479 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14480 (cpu_relax, atomic_write_barrier): New static inlines.
14481 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14482 (sys_futex0): Return error code.
14483 (futex_wake, futex_wait): If ENOSYS was returned, clear
14484 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14485 (cpu_relax, atomic_write_barrier): New static inlines.
14486 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14487 (sys_futex0): Return error code.
14488 (futex_wake, futex_wait): If ENOSYS was returned, clear
14489 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14490 (cpu_relax, atomic_write_barrier): New static inlines.
14491 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14492 (sys_futex0): Return error code.
14493 (futex_wake, futex_wait): If ENOSYS was returned, clear
14494 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14495 (cpu_relax, atomic_write_barrier): New static inlines.
14496 * config/linux/sem.c: Include wait.h instead of libgomp.h and
14498 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
14499 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
14500 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
14502 (omp_nest_lock_t): Change owner into void *, add lock field.
14503 * config/posix95/omp-lock.h: Include semaphore.h.
14504 (omp_lock_25_t, omp_nest_lock_25_t): New types.
14505 (omp_lock_t): Use sem_t instead of mutex if semaphores
14507 (omp_nest_lock_t): Likewise. Change owner to void *.
14508 * config/posix/omp-lock.h: Include semaphore.h.
14509 (omp_lock_25_t, omp_nest_lock_25_t): New types.
14510 (omp_lock_t): Use sem_t instead of mutex if semaphores
14512 (omp_nest_lock_t): Likewise. Add owner field.
14514 2008-06-06 Jakub Jelinek <jakub@redhat.com>
14516 * testsuite/libgomp.c/collapse-1.c: New test.
14517 * testsuite/libgomp.c/collapse-2.c: New test.
14518 * testsuite/libgomp.c/collapse-3.c: New test.
14519 * testsuite/libgomp.c/icv-1.c: New test.
14520 * testsuite/libgomp.c/icv-2.c: New test.
14521 * testsuite/libgomp.c/lib-2.c: New test.
14522 * testsuite/libgomp.c/lock-1.c: New test.
14523 * testsuite/libgomp.c/lock-2.c: New test.
14524 * testsuite/libgomp.c/lock-3.c: New test.
14525 * testsuite/libgomp.c/loop-4.c: New test.
14526 * testsuite/libgomp.c/loop-5.c: New test.
14527 * testsuite/libgomp.c/loop-6.c: New test.
14528 * testsuite/libgomp.c/loop-7.c: New test.
14529 * testsuite/libgomp.c/loop-8.c: New test.
14530 * testsuite/libgomp.c/loop-9.c: New test.
14531 * testsuite/libgomp.c/nested-3.c: New test.
14532 * testsuite/libgomp.c/nestedfn-6.c: New test.
14533 * testsuite/libgomp.c/sort-1.c: New test.
14534 * testsuite/libgomp.c/task-1.c: New test.
14535 * testsuite/libgomp.c/task-2.c: New test.
14536 * testsuite/libgomp.c/task-3.c: New test.
14537 * testsuite/libgomp.c/task-4.c: New test.
14538 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
14539 to C++ testsuite default compiler options.
14540 * testsuite/libgomp.c++/collapse-1.C: New test.
14541 * testsuite/libgomp.c++/collapse-2.C: New test.
14542 * testsuite/libgomp.c++/ctor-10.C: New test.
14543 * testsuite/libgomp.c++/for-1.C: New test.
14544 * testsuite/libgomp.c++/for-2.C: New test.
14545 * testsuite/libgomp.c++/for-3.C: New test.
14546 * testsuite/libgomp.c++/for-4.C: New test.
14547 * testsuite/libgomp.c++/for-5.C: New test.
14548 * testsuite/libgomp.c++/loop-8.C: New test.
14549 * testsuite/libgomp.c++/loop-9.C: New test.
14550 * testsuite/libgomp.c++/loop-10.C: New test.
14551 * testsuite/libgomp.c++/task-1.C: New test.
14552 * testsuite/libgomp.c++/task-2.C: New test.
14553 * testsuite/libgomp.c++/task-3.C: New test.
14554 * testsuite/libgomp.c++/task-4.C: New test.
14555 * testsuite/libgomp.c++/task-5.C: New test.
14556 * testsuite/libgomp.c++/task-6.C: New test.
14557 * testsuite/libgomp.fortran/allocatable1.f90: New test.
14558 * testsuite/libgomp.fortran/allocatable2.f90: New test.
14559 * testsuite/libgomp.fortran/allocatable3.f90: New test.
14560 * testsuite/libgomp.fortran/allocatable4.f90: New test.
14561 * testsuite/libgomp.fortran/collapse1.f90: New test.
14562 * testsuite/libgomp.fortran/collapse2.f90: New test.
14563 * testsuite/libgomp.fortran/collapse3.f90: New test.
14564 * testsuite/libgomp.fortran/collapse4.f90: New test.
14565 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
14566 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
14567 * testsuite/libgomp.fortran/lib4.f90: New test.
14568 * testsuite/libgomp.fortran/lock-1.f90: New test.
14569 * testsuite/libgomp.fortran/lock-2.f90: New test.
14570 * testsuite/libgomp.fortran/nested1.f90: New test.
14571 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
14572 * testsuite/libgomp.fortran/strassen.f90: New test.
14573 * testsuite/libgomp.fortran/tabs1.f90: New test.
14574 * testsuite/libgomp.fortran/tabs2.f: New test.
14575 * testsuite/libgomp.fortran/task1.f90: New test.
14576 * testsuite/libgomp.fortran/task2.f90: New test.
14577 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
14578 * testsuite/libgomp.fortran/vla5.f90: Likewise.
14579 * testsuite/libgomp.c/pr26943-2.c: Likewise.
14580 * testsuite/libgomp.c/pr26943-3.c: Likewise.
14581 * testsuite/libgomp.c/pr26943-4.c: Likewise.
14583 2008-05-23 Jakub Jelinek <jakub@redhat.com>
14586 * testsuite/libgomp.c++/ctor-11.C: New test.
14587 * testsuite/libgomp.c++/ctor-12.C: New test.
14589 2008-05-15 Janis Johnson <janis187@us.ibm.com>
14591 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
14593 2008-05-07 Jakub Jelinek <jakub@redhat.com>
14595 PR middle-end/36106
14596 * testsuite/libgomp.c/atomic-5.c: New test.
14597 * testsuite/libgomp.c/atomic-6.c: New test.
14598 * testsuite/libgomp.c/autopar-1.c: New test.
14600 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14602 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
14603 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
14604 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
14605 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
14606 * configure: Regenerate.
14607 * Makefile.in, testsuite/Makefile.in: Likewise.
14609 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
14612 * aclocal.m4: Regenerate.
14613 * configure: Regenerate.
14615 2008-03-18 Jakub Jelinek <jakub@redhat.com>
14617 PR middle-end/35611
14618 * testsuite/libgomp.c/atomic-4.c: New test.
14621 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
14622 (gomp_iter_guided_next): Likewise.
14623 * testsuite/libgomp.c/pr35625.c: New test.
14625 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14627 * aclocal.m4: Regenerate.
14628 * configure: Likewise.
14629 * Makefile.in: Likewise.
14630 * testsuite/Makefile.in: Likewise.
14632 2008-03-13 Jakub Jelinek <jakub@redhat.com>
14634 PR middle-end/35185
14635 * testsuite/libgomp.c++/pr35185.C: New test.
14637 2008-03-12 Jakub Jelinek <jakub@redhat.com>
14639 PR middle-end/35549
14640 * testsuite/libgomp.c/pr35549.c: New test.
14642 2008-03-06 Jakub Jelinek <jakub@redhat.com>
14644 * testsuite/libgomp.c/atomic-3.c: New test.
14646 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14649 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
14650 .F08 file suffixes.
14652 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
14655 * configure.ac: Add ACX_HEADER_STRING.
14656 * env.c: Include strings.h.
14657 * aclocal.m4: Regenerate.
14658 * config.h.in: Regenerate.
14659 * configure: Regenerate.
14660 * Makefile.in: Regenerate.
14661 * testsuite/Makefile.in: Regenerate.
14663 2008-02-15 Jakub Jelinek <jakub@redhat.com>
14665 PR middle-end/35196
14666 * testsuite/libgomp.c/pr35196.c: New test.
14668 PR middle-end/35130
14669 * testsuite/libgomp.fortran/pr35130.f90: New test.
14670 * testsuite/libgomp.c/pr35130.c: New test.
14672 2008-01-25 Jakub Jelinek <jakub@redhat.com>
14674 PR middle-end/33880
14675 * testsuite/libgomp.c/pr33880.c: New test.
14676 * testsuite/libgomp.fortran/pr33880.f90: New test.
14678 2008-01-24 David Edelsohn <edelsohn@gnu.org>
14680 * configure: Regenerate.
14682 2008-01-08 Jakub Jelinek <jakub@redhat.com>
14684 * configure.ac: Move futex checking into ../config/futex.m4.
14685 * configure: Rebuilt.
14686 * aclocal.m4: Rebuilt.
14687 * Makefile.in: Rebuilt.
14689 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
14690 2007-10-15 ../config/tls.m4 change.
14692 2007-12-19 Jakub Jelinek <jakub@redhat.com>
14695 * testsuite/libgomp.c/pr34513.c: New test.
14696 * testsuite/libgomp.c++/pr34513.C: New test.
14698 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
14701 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
14703 2007-12-04 Jakub Jelinek <jakub@redhat.com>
14705 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
14707 2007-12-03 Jakub Jelinek <jakub@redhat.com>
14709 * testsuite/libgomp.c/private-1.c: New test.
14711 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
14712 Paolo Bonzini <bonzini@gnu.org>
14714 * Makefile.am: Use space as vpath separator. Use 'vpath %'
14715 instead of 'VPATH ='.
14716 * Makefile.in: Regenerate.
14718 2007-11-23 Matthias Klose <doko@ubuntu.com>
14720 * configure.ac: Adjust makeinfo version check.
14721 * configure: Regenerate.
14723 2007-11-10 Jakub Jelinek <jakub@redhat.com>
14726 * testsuite/libgomp.fortran/pr34020.f90: New test.
14728 2007-11-06 Jakub Jelinek <jakub@redhat.com>
14731 * testsuite/libgomp.c++/atomic-1.C: New test.
14733 2007-10-25 Jakub Jelinek <jakub@redhat.com>
14736 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
14737 Make x and y integers rather than (implicit) reals. Add private (j)
14738 clause to the last omp parallel.
14740 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
14742 * configure: Regenerate following changes to ../config/tls.m4.
14744 2007-09-28 Jakub Jelinek <jakub@redhat.com>
14746 * testsuite/libgomp.fortran/stack.f90: New test.
14748 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
14750 * config/mingw32/proc.c: New file.
14752 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
14754 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
14755 (main): Use __get_cpuid to get i386 target fetaures.
14756 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
14757 (main): Use __get_cpuid to get x86_64 target fetaures.
14759 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
14762 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
14763 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
14765 2007-07-12 Jakub Jelinek <jakub@redhat.com>
14768 * testsuite/libgomp.fortran/pr32550.f90: New test.
14769 * testsuite/libgomp.fortran/crayptr2.f90: New test.
14771 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
14773 * aclocal.m4: Regenerated.
14775 2007-07-05 Tobias Burnus <burnus@net-b.de>
14778 * testsuite/libgomp.fortran/pr32359.f90: New.
14780 2007-07-02 Jakub Jelinek <jakub@redhat.com>
14783 * sections.c (GOMP_parallel_sections_start): Only decrease
14784 number of threads to COUNT if dyn_var is true.
14785 * testsuite/libgomp.c/pr32468.c: New test.
14787 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14790 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
14792 2007-06-21 Jakub Jelinek <jakub@redhat.com>
14794 PR middle-end/32362
14795 * testsuite/libgomp.c/pr32362-1.c: New test.
14796 * testsuite/libgomp.c/pr32362-2.c: New test.
14797 * testsuite/libgomp.c/pr32362-3.c: New test.
14799 2007-06-07 Jakub Jelinek <jakub@redhat.com>
14801 * team.c (gomp_team_start): Fix setting up thread_attr
14804 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
14806 * configure: Regenerate.
14808 2007-05-23 Steve Ellcey <sje@cup.hp.com>
14810 * Makefile.in: Regenerate.
14811 * configure: Regenerate.
14812 * aclocal.m4: Regenerate.
14813 * testsuite/Makefile.in: Regenerate.
14815 2007-05-04 Jakub Jelinek <jakub@redhat.com>
14817 * config/linux/proc.c: New file.
14820 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
14822 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
14824 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
14826 2007-04-16 Matthias Klose <doko@debian.org>
14828 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
14829 flags if not building with -m64.
14830 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
14831 flag for i?86-*-* targets, if current target matches -m64.
14833 2007-04-14 Steve Ellcey <sje@cup.hp.com>
14835 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
14836 * Makefile.in: Regenerate.
14838 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14841 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
14843 * testsuite/libgomp.fortran/fortran.exp: Likewise.
14845 2007-04-04 Jakub Jelinek <jakub@redhat.com>
14847 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
14849 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
14850 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
14851 (parse_affinity): New function.
14852 (initialize_env): Call it and gomp_init_affinity.
14853 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
14854 create new pthread_attr_t and call gomp_init_thread_affinity
14855 on it for each thread before passing the attribute to pthread_create.
14856 * config/linux/affinity.c: New file.
14857 * config/posix/affinity.c: New file.
14858 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
14859 * configure: Rebuilt.
14860 * config.h.in: Rebuilt.
14861 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
14862 * Makefile.in: Rebuilt.
14864 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
14866 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
14868 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
14869 and use it if found.
14871 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
14873 * testsuite/config/default.exp: New file.
14874 * testsuite/lib/libgomp.exp: New file.
14875 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
14876 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
14877 load_lib *, load_gcc_lib *): Move to libgomp.exp.
14878 (libgomp_load): Remove.
14879 * testsuite/lib/libgomp.exp (libgomp_init): Compute
14880 always_ld_library_path, not ld_library_path. Set additional_flags
14881 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
14882 (target_compile): Do not call libgomp_init. Append lang_library_path
14883 and lang_link_flags to options.
14884 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
14885 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
14887 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
14888 always_ld_library_path. Set LD_LIBRARY_PATH here.
14889 * testsuite/libgomp.fortran/fortran.exp: Ditto.
14890 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
14891 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
14893 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
14894 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
14895 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
14896 * testsuite/libgomp.c/pr29947-1.c: Ditto.
14897 * testsuite/libgomp.c/atomic-10.c: Ditto.
14899 2007-03-21 Jakub Jelinek <jakub@redhat.com>
14901 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
14902 dg-final cleanup-modules line.
14903 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
14904 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
14905 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
14906 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
14907 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
14908 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
14909 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
14911 2007-03-18 Andreas Schwab <schwab@suse.de>
14913 * acinclude.m4: Adjust regular expression for ld version
14915 * configure: Regenerate.
14917 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
14919 * Makefile.am: Add install-pdf target as copied from
14920 automake v1.10 rules.
14921 * Makefile.in: Regenerate
14923 2007-02-07 Jakub Jelinek <jakub@redhat.com>
14926 * configure: Regenerate.
14929 * testsuite/libgomp.c++/pr30703.C: New test.
14931 2007-02-02 Jakub Jelinek <jakub@redhat.com>
14934 2006-07-05 Eric Christopher <echristo@apple.com>
14935 * configure.ac: Depend addition of -pthread on host OS.
14936 * configure: Regenerate.
14938 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14940 * libgomp.texi: Fix spacing after abbreviations.
14942 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
14945 * configure.ac: Add check for makeinfo
14946 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
14947 if an appropriate version of makeinfo is found.
14948 * aclocal.m4: Regenerated.
14949 * configure: Regenerated.
14950 * Makefile.in: Regenerated.
14951 * testsuite/Makefile.in: Regenerated.
14953 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
14956 * libgomp.texi: More about implementation-dependent settings.
14958 2007-01-26 Tobias Burnus <burnus@net-b.de>
14960 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
14962 2007-01-24 Jakub Jelinek <jakub@redhat.com>
14964 PR middle-end/30494
14965 * testsuite/libgomp.c/pr30494.c: New test.
14967 2007-01-15 Tom Tromey <tromey@redhat.com>
14969 * configure: Rebuilt.
14970 * configure.ac: Fixed comment.
14972 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
14974 * libgomp.texi: Document implementation specific default values of
14975 environment variables.
14977 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
14980 * libgomp.texi: New file.
14981 * configure.ac: Add --enable-generated-files-in-srcdir option.
14982 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
14984 * Makefile.in: Regenerated.
14985 * config.h.in: Regenerated.
14986 * testsuite/Makefile.in: Regenerated.
14989 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
14992 * env.c (omp_set_num_threads): Set illegal thread count to 1.
14994 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
14996 * configure: Regenerate.
14998 2006-12-04 Jakub Jelinek <jakub@redhat.com>
15001 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
15002 start if there shouldn't be any loop iterations.
15003 (gomp_loop_ordered_static_start): Remove start == end test.
15004 * testsuite/libgomp.c/pr29947-1.c: New test.
15005 * testsuite/libgomp.c/pr29947-2.c: New test.
15007 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
15009 * configure.tgt: Force initial-exec TLS model on Linux only.
15011 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
15013 * configure: Regenerated.
15015 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
15017 * env.c (parse_schedule): Reject out of range values.
15018 (parse_unsigned_long): Reject out of range, negative or zero values.
15020 2006-10-29 Jakub Jelinek <jakub@redhat.com>
15023 * testsuite/libgomp.fortran/pr29629.f90: New test.
15025 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
15028 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
15029 * config/posix95: New directory.
15030 * config/posix95/omp-lock.h: New file.
15031 * config/posix95/lock.c: Likewise.
15033 2006-10-14 Geoffrey Keating <geoffk@apple.com>
15035 * aclocal.m4: Regenerate.
15036 * configure: Regenerate.
15038 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
15040 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
15043 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
15045 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
15047 * configure: Regenerate.
15048 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
15050 2006-09-26 Jakub Jelinek <jakub@redhat.com>
15052 PR middle-end/25261
15053 PR middle-end/28790
15054 * testsuite/libgomp.c/nestedfn-4.c: New test.
15055 * testsuite/libgomp.c/nestedfn-5.c: New test.
15056 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
15059 * testsuite/libgomp.fortran/condinc1.f: New test.
15060 * testsuite/libgomp.fortran/condinc2.f: New test.
15061 * testsuite/libgomp.fortran/condinc3.f90: New test.
15062 * testsuite/libgomp.fortran/condinc4.f90: New test.
15063 * testsuite/libgomp.fortran/condinc1.inc: New file.
15065 2006-09-18 Tom Tromey <tromey@redhat.com>
15067 * configure: Rebuilt.
15069 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
15072 PR preprocessor/14634
15073 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
15075 * configure: Regenerate.
15077 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
15079 * testsuite/libgomp.fortran/reduction3.f90: Change
15080 -2147483648 to -huge(i)-1 to avoid overflow.
15081 * testsuite/libgomp.fortran/reduction4.f90: Change
15082 Z'ffffffff' to not(0) to avoid overflow.
15084 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
15087 * Makefile.am (libsubincludedir): New.
15088 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
15089 * Makefile.in: Regenerate.
15091 2006-08-17 Jakub Jelinek <jakub@redhat.com>
15094 * env.c: Include ctype.h.
15095 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
15096 leading and/or trailing whitespace and compare strings case
15099 2006-07-16 Jakub Jelinek <jakub@redhat.com>
15102 * testsuite/libgomp.fortran/pr28390.f: New test.
15104 2006-07-05 Eric Christopher <echristo@apple.com>
15106 * configure.ac: Depend addition of -pthread on host OS.
15107 * configure: Regenerate.
15109 2006-06-21 Jakub Jelinek <jakub@redhat.com>
15111 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
15112 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
15115 2006-06-20 Jakub Jelinek <jakub@redhat.com>
15119 * configure.ac: If neither --enable-linux-futex nor
15120 --disable-linux-futex is passed, determine the default by checking
15121 for compiling and/or running against NPTL. With --enable-linux-futex,
15122 check if SYS_gettid and SYS_futex are defined.
15123 * configure: Rebuilt.
15125 2006-06-14 Richard Henderson <rth@redhat.com>
15128 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
15129 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
15131 2006-06-09 Richard Henderson <rth@redhat.com>
15133 * env.c (gomp_nthreads_var): Change to unsigned long.
15134 (gomp_run_sched_chunk): Likewise.
15135 (parse_unsigned_long): Rename from parse_num_threads and generalize.
15136 (initialize_env): Initialize gomp_thread_attr.
15137 * libgomp.h (gomp_nthreads_var): Update decl.
15138 (gomp_run_sched_chunk): Likewise.
15139 (gomp_thread_attr): Declare.
15140 * team.c (gomp_thread_attr): Export.
15141 (initialize_team): Don't initialize it.
15143 2006-06-09 Jakub Jelinek <jakub@redhat.com>
15146 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
15147 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
15149 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
15151 * config/mingw32/time.c: New file.
15152 * configure.tgt: Use it.
15154 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
15156 * Makefile.am: Add install-html target. Add install-html to .PHONY
15157 * Makefile.in: Regenerate.
15159 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15162 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
15163 * testsuite/libgomp.c/critical-1.c: Likewise.
15164 * testsuite/libgomp.c/loop-1.c: Likewise.
15165 * testsuite/libgomp.c/loop-2.c: Likewise.
15166 * testsuite/libgomp.c/single-1.c: Likewise.
15167 * testsuite/libgomp.c/ordered-1.c: Likewise.
15168 * testsuite/libgomp.c/ordered-2.c: Likewise.
15170 2006-05-15 Jakub Jelinek <jakub@redhat.com>
15172 PR middle-end/27416
15173 * libgomp.fortran/pr27416-1.f90: New test.
15175 2006-05-03 Jakub Jelinek <jakub@redhat.com>
15178 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
15179 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
15181 2006-05-02 Jakub Jelinek <jakub@redhat.com>
15184 * testsuite/libgomp.c/pr26943-1.c: New test.
15185 * testsuite/libgomp.c/pr26943-2.c: New test.
15186 * testsuite/libgomp.c/pr26943-3.c: New test.
15187 * testsuite/libgomp.c/pr26943-4.c: New test.
15188 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
15189 * testsuite/libgomp.c++/pr26943.C: New test.
15191 2006-05-02 Jakub Jelinek <jakub@redhat.com>
15193 PR middle-end/27337
15194 * testsuite/libgomp.c++/pr27337.C: New test.
15196 2006-04-26 Jakub Jelinek <jakub@redhat.com>
15199 * testsuite/libgomp.c/pr26171.c: New test.
15201 2006-04-25 Richard Henderson <rth@redhat.com>
15204 * configure.ac: Use GCC_CHECK_TLS.
15205 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
15206 * Makefile.in, aclocal.m4, configure: Regenerate.
15208 2006-04-10 Matthias Klose <doko@debian.org>
15210 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
15211 directory names containing underscores.
15213 2006-03-21 Jakub Jelinek <jakub@redhat.com>
15216 * testsuite/libgomp.c++/pr26691.C: New test.
15218 2006-03-13 Jakub Jelinek <jakub@redhat.com>
15220 * testsuite/libgomp.fortran/retval2.f90: New test.
15222 2006-03-09 Diego Novillo <dnovillo@redhat.com>
15224 * testsuite/libgomp.c++: New directory.
15226 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
15228 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
15229 * config/posix/sem.c: Implement the above.
15231 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
15233 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
15234 define HAVE_BROKEN_POSIX_SEMAPHORES.
15235 * configure: Rebuilt.
15236 * config.h.in: Rebuilt.
15238 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
15241 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
15242 for the other pthread check.
15243 * configure: Regenerate.
15244 * config.h.in: Regenerate.
15246 2006-02-15 Jakub Jelinek <jakub@redhat.com>
15250 * Makefile.am (fincludedir): New variable.
15251 (nodist_include_HEADERS): Remove Fortran files.
15252 (nodist_finclude_HEADERS): New variable.
15253 * Makefile.in: Regenerated.
15255 2006-02-13 Jakub Jelinek <jakub@redhat.com>
15257 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
15258 Remove tests for returning assumed character length arrays.
15260 2006-02-12 Roger Sayle <roger@eyesopen.com>
15261 John David Anglin <dave@hiauly1.hia.nrc.ca>
15264 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
15266 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
15268 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
15270 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
15272 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
15273 part of LD_LIBRARY_PATH manually.
15275 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
15278 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
15281 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
15284 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
15285 * configure.ac (PERL): Don't set.
15286 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
15287 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
15288 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
15289 * omp.h.in: Wrap the new configure substitutions with @ characters.
15290 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
15291 * aclocal.m4, configure, Makefile.in: Regenerate.
15292 * mkomp_h.pl: Delete.
15294 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
15297 * configure.ac: Use GCC_HEADER_STDINT.
15298 * libgomp.h: Include gstdint.h.
15299 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
15300 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
15302 2006-01-24 Richard Henderson <rth@redhat.com>
15305 * configure.ac: Add AM_MAINTAINER_MODE.
15306 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
15308 2006-01-24 Diego Novillo <dnovillo@redhat.com>
15310 * Makefile.in: Regenerate.
15311 * testsuite/Makefile.in: Regenerate.
15312 * aclocal.m4: Regenerate.
15314 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
15316 * config/posix/proc.c: Conditional include of sys/loadavg.h for
15318 * configure.ac: Add check for loadavg.h.
15319 (link_gomp): Adjust comment.
15320 * configure: Regenerate.
15321 * config.h.in: Regenerate.
15323 2006-01-21 Steve Ellcey <sje@cup.hp.com>
15326 * configure.ac: Remove check for alloca.h.
15327 * configure: Regenerate.
15328 * config.h.in: Regenerate.
15329 * libgomp.h: define gomp_alloca to be __builtin_alloca.
15330 * team.c: Remove use of alloca.h.
15331 Call gomp_alloca instead of alloca.
15333 2006-01-20 Steve Ellcey <sje@cup.hp.com>
15336 * team.c: Add include of alloca.h.
15337 * configure.ac: Add check for alloca.h.
15338 * configure: Regenerate.
15339 * config.h.in: Regenerate.
15341 2006-01-17 Jakub Jelinek <jakub@redhat.com>
15344 * testsuite/libgomp.fortran/pr25219.f90: New test.
15346 2005-12-05 Uros Bizjak <uros@kss-loka.si>
15348 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
15349 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
15350 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
15351 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
15352 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
15353 testsuite/libgomp.fortran/threadprivate1.f90,
15354 testsuite/libgomp.fortran/threadprivate2.f90,
15355 testsuite/libgomp.fortran/threadprivate3.f90,
15356 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
15357 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
15358 testsuite/libgomp.fortran/omp_parse3.f90: Change required
15359 effective-target to TLS runtime.
15361 * testsuite/libgomp.fortran/pr25162.f: Require
15362 effective-target TLS runtime.
15364 2005-12-01 Jakub Jelinek <jakub@redhat.com>
15366 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
15367 * testsuite/libgomp.c/nestedfn-3.c: New test.
15369 2005-11-30 Jakub Jelinek <jakub@redhat.com>
15372 * testsuite/libgomp.fortran/pr25162.f: New test.
15374 2005-11-28 Jakub Jelinek <jakub@redhat.com>
15376 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
15377 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
15379 2005-11-25 Jakub Jelinek <jakub@redhat.com>
15381 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
15382 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
15383 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
15384 single.c, team.c, work.c, config/linux/alpha/futex.h,
15385 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
15386 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
15387 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
15388 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
15389 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
15390 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
15391 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
15394 2005-11-18 Jakub Jelinek <jakub@redhat.com>
15396 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
15397 to nodist_noinst_HEADERS.
15398 * Makefile.in: Rebuilt.
15400 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
15401 add integer count field.
15402 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
15403 omp_nest_lock_t type change.
15404 (omp_init_nest_lock): Likewise. Initialize count to 0.
15405 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
15407 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
15409 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
15410 Increment count if successful and return the new nesting level.
15411 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
15412 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
15413 * testsuite/libgomp.c/lib-1.c: New test.
15414 * testsuite/libgomp.fortran/lib1.f90: New test.
15415 * testsuite/libgomp.fortran/lib2.f: New test.
15416 * testsuite/libgomp.fortran/lib3.f: New test.
15418 2005-11-17 Richard Henderson <rth@redhat.com>
15421 * Makefile.am (nodist_toolexeclib_HEADERS): New.
15422 * configure.ac (link_gomp): New. Substitute it.
15423 (AC_CONFIG_FILES): Add libgomp.spec.
15424 * libgomp.spec.in: New file.
15425 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
15426 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
15428 2005-11-18 Jakub Jelinek <jakub@redhat.com>
15430 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
15431 reduction(-:var) behaving the same as reduction(+:var).
15432 * testsuite/libgomp.c/reduction-4.c: New test.
15434 2005-11-15 Uros Bizjak <uros@kss-loka.si>
15436 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
15437 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
15438 testsuite/libgomp.c/copyin-3.c,
15439 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
15440 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
15441 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
15442 testsuite/libgomp.c++/pr24455.C,
15443 testsuite/libgomp.fortran/threadprivate1.f90,
15444 testsuite/libgomp.fortran/threadprivate2.f90,
15445 testsuite/libgomp.fortran/threadprivate3.f90,
15446 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
15447 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
15448 testsuite/libgomp.fortran/omp_parse3.f90: Require
15449 effective-target TLS.
15451 2005-11-14 Diego Novillo <dnovillo@redhat.com>
15455 2005-11-13 Jakub Jelinek <jakub@redhat.com>
15458 * team.c (initialize_team): Pass NULL rather than free as
15459 pthread_key_create destructor. Initialize thread specific data
15460 pointer in initial thread to a static local variable rather than
15463 2005-11-11 Uros Bizjak <uros@kss-loka.si>
15465 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
15466 its location to ld_library_path.
15468 2005-11-10 Diego Novillo <dnovillo@redhat.com>
15470 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
15472 2005-11-10 Diego Novillo <dnovillo@redhat.com>
15474 * testsuite/libgomp.c: Rename from libgomp.dg.
15476 2005-11-09 Diego Novillo <dnovillo@redhat.com>
15478 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
15479 threadprivate variable 'i'.
15481 2005-11-09 Jakub Jelinek <jakub@redhat.com>
15483 * config/linux/s390/futex.h: New file.
15484 * configure.tgt: Use it.
15486 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
15487 before the parallel.
15489 2005-11-08 Jakub Jelinek <jakub@redhat.com>
15492 * testsuite/libgomp.c++/master-1.C: New test.
15494 2005-11-07 Jakub Jelinek <jakub@redhat.com>
15496 * testsuite/libgomp.dg/copyin-3.c: New test.
15498 2005-11-07 Jakub Jelinek <jakub@redhat.com>
15500 * testsuite/libgomp.fortran/retval1.f90: New test.
15501 * testsuite/libgomp.fortran/vla7.f90: New test.
15503 2005-11-06 Jakub Jelinek <jakub@redhat.com>
15505 * testsuite/libgomp.fortran/vla2.f90: New test.
15506 * testsuite/libgomp.fortran/vla3.f90: New test.
15507 * testsuite/libgomp.fortran/vla4.f90: New test.
15508 * testsuite/libgomp.fortran/vla5.f90: New test.
15509 * testsuite/libgomp.fortran/vla6.f90: New test.
15511 2005-11-01 Jakub Jelinek <jakub@redhat.com>
15513 * config/linux/sparc/futex.h: New file.
15514 * configure.tgt: Use it.
15515 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
15517 * critical.c: Include stdlib.h.
15518 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
15519 ignoring return value.
15520 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
15521 LIBGOMP_CHECK_SYNC_BUILTINS check.
15522 * configure: Rebuilt.
15524 2005-10-31 Jakub Jelinek <jakub@redhat.com>
15526 * testsuite/libgomp.fortran/vla1.f90: New test.
15528 2005-10-31 Richard Henderson <rth@redhat.com>
15530 * testsuite/libgomp.fortran/character2.f90: Fix race condition
15531 setting 's' in different threads.
15533 2005-10-31 Jakub Jelinek <jakub@redhat.com>
15535 * libgomp.h (attribute_hidden, ialias): Define.
15536 * config/posix/proc.c (omp_get_num_procs): Add ialias.
15537 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
15538 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
15539 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15540 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15541 omp_test_lock, omp_test_nest_lock): Likewise.
15542 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
15543 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15544 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15545 omp_test_lock, omp_test_nest_lock): Likewise.
15546 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
15547 omp_get_dynamic, omp_get_nested): Likewise.
15548 * parallel.c (omp_get_num_threads, omp_get_max_threads,
15549 omp_get_thread_num, omp_in_parallel): Likewise.
15550 * fortran.c (ialias_redirect): Define.
15551 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
15552 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
15553 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
15554 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
15555 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
15556 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
15557 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
15558 omp_get_wtime): Add ialias_redirect.
15560 2005-10-30 Jakub Jelinek <jakub@redhat.com>
15562 * fortran.c: Include stdlib.h.
15564 2005-10-29 Jakub Jelinek <jakub@redhat.com>
15566 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
15567 * Makefile.in: Regenerated.
15569 2005-10-28 Jakub Jelinek <jakub@redhat.com>
15571 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
15572 * libgomp_f.h.in (omp_check_defines): New function.
15573 * env.c: Include libgomp_f.h.
15574 (initialize_env): Call omp_check_defines.
15576 * testsuite/libgomp.dg/copyin-2.c: New test.
15577 * testsuite/libgomp.c++/copyin-2.C: New test.
15578 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
15580 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
15581 * testsuite/libgomp.fortran/sharing2.f90: New test.
15583 * testsuite/libgomp.dg/copyin-1.c: New test.
15584 * testsuite/libgomp.c++/copyin-1.C: New test.
15586 2005-10-26 Jakub Jelinek <jakub@redhat.com>
15588 * testsuite/libgomp.fortran/crayptr1.f90: New test.
15590 * testsuite/libgomp.fortran/workshare1.f90: New test.
15592 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
15594 * libgomp.fortran/sharing1.f90: New test.
15596 2005-10-24 Jakub Jelinek <jakub@redhat.com>
15599 * testsuite/libgomp.c++/loop-7.C: New test.
15601 * testsuite/libgomp.dg/nestedfn-2.c: New test.
15603 * testsuite/libgomp.dg/nestedfn-1.c: New test.
15604 * testsuite/libgomp.fortran/reduction6.f90: New test.
15605 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
15607 2005-10-23 Richard Henderson <rth@redhat.com>
15609 * testsuite/libgomp.c++/ctor-1.C: New.
15610 * testsuite/libgomp.c++/ctor-2.C: New.
15611 * testsuite/libgomp.c++/ctor-3.C: New.
15612 * testsuite/libgomp.c++/ctor-4.C: New.
15613 * testsuite/libgomp.c++/ctor-5.C: New.
15614 * testsuite/libgomp.c++/ctor-6.C: New.
15615 * testsuite/libgomp.c++/ctor-7.C: New.
15616 * testsuite/libgomp.c++/ctor-8.C: New.
15617 * testsuite/libgomp.c++/ctor-9.C: New.
15619 2005-10-21 Diego Novillo <dnovillo@redhat.com>
15622 * testsuite/libgomp.c++/pr24455-1.C: New test.
15623 * testsuite/libgomp.c++/pr24455.C: New test.
15624 * testsuite/libgomp.dg/pr24455-1.c: New test.
15625 * testsuite/libgomp.dg/pr24455.c: New test.
15627 2005-10-20 Richard Henderson <rth@redhat.com>
15629 * testsuite/libgomp.c++/loop-6.C: New.
15630 * testsuite/libgomp.dg/loop-3.c: New.
15632 2005-10-20 Jakub Jelinek <jakub@redhat.com>
15634 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
15635 explicitly private.
15636 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
15639 2005-10-19 Diego Novillo <dnovillo@redhat.com>
15641 * testsuite/libgomp.fortran/jacobi.f: New test.
15643 2005-10-19 Richard Henderson <rth@redhat.com>
15645 * configure.tgt (i?86-linux): Default to with_arch instead of
15646 CFLAGS. Add -mtune to match target_cpu.
15647 (x86_64-linux): Tune to i686.
15649 * fortran.c (omp_test_nest_lock_): Fix typo.
15651 2005-10-19 Jakub Jelinek <jakub@redhat.com>
15653 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
15654 gomp_ordered_sync): Do nothing if team->nthreads == 1.
15655 * testsuite/libgomp.dg/ordered-3.c: New test.
15657 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
15658 Remove volatile keyword.
15660 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
15661 in COMMON block to avoid warnings on 64-bit targets.
15663 2005-10-18 Diego Novillo <dnovillo@redhat.com>
15665 * testsuite/libgomp.dg/shared-3.c: New test.
15667 2005-10-18 Jakub Jelinek <jakub@redhat.com>
15669 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
15670 * testsuite/libgomp.fortran/reduction5.f90: New test.
15672 2005-10-18 Jakub Jelinek <jakub@redhat.com>
15674 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
15676 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
15677 flush loop now that __sync_synchronize has proper memory barrier.
15678 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
15679 Add -ffixed-form to dg-options.
15681 2005-10-17 Diego Novillo <dnovillo@redhat.com>
15683 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
15684 from subdirectories.
15685 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
15686 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
15687 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
15688 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
15689 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
15690 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
15691 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
15692 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
15693 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
15694 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
15695 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
15696 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
15697 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
15698 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
15699 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
15700 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
15701 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
15702 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
15703 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
15704 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
15705 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
15706 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
15707 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
15708 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
15709 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
15711 2005-10-17 Jakub Jelinek <jakub@redhat.com>
15713 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
15714 lang_library_path exists. Use find instead of glob to gather tests.
15715 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
15717 2005-10-17 Diego Novillo <dnovillo@redhat.com>
15719 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
15720 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
15721 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
15722 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
15723 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
15724 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
15725 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
15726 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
15727 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
15728 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
15729 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
15730 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
15731 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
15733 2005-10-15 Jakub Jelinek <jakub@redhat.com>
15735 * testsuite/libgomp.dg/vla-1.c: New test.
15737 * testsuite/libgomp.fortran/reference2.f90: New test.
15739 * testsuite/libgomp.fortran/character2.f90: Remove explicit
15740 declaration of omp_get_thread_num.
15741 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
15744 * testsuite/libgomp.fortran/reduction1.f90: New test.
15745 * testsuite/libgomp.fortran/reduction2.f90: New test.
15746 * testsuite/libgomp.fortran/reduction3.f90: New test.
15747 * testsuite/libgomp.fortran/reduction4.f90: New test.
15749 2005-10-13 Richard Henderson <rth@redhat.com>
15751 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
15752 * Makefile.in: Regenerate.
15753 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
15754 * libgomp.h: Include bar.h.
15755 (struct gomp_barrier): Remove.
15756 (struct gomp_team): Add barrier. Replace master_barrier with
15757 master_release. Replace threads with ordered_release.
15758 (struct gomp_thread): Replace barrier with release.
15759 * ordered.c (gomp_ordered_first): Update for ordered_release change.
15760 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
15761 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
15762 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
15763 (GOMP_single_copy_end): Likewise.
15764 * team.c (gomp_threads_dock): New.
15765 (gomp_barrier_init, gomp_barrier_destroy): Remove.
15766 (gomp_thread_start): Use gomp_barrier_wait.
15767 (new_team, free_team): Update for gomp_team changes.
15768 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
15769 (gomp_team_end): Use gomp_barrier_wait.
15770 (initialize_team): Update for gomp_thread changes.
15771 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
15772 (gomp_work_share_end_nowait): Use atomic ops when available.
15773 * config/linux/bar.c, config/linux/bar.h: New files.
15774 * config/posix/bar.c, config/posix/bar.h: New files.
15776 2005-10-13 Jakub Jelinek <jakub@redhat.com>
15778 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
15779 * testsuite/libgomp.dg/single-2.c: New test.
15781 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
15782 lang_link_flags): Unset, so that they aren't inherited from previously
15785 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
15787 2005-10-12 Richard Henderson <rth@redhat.com>
15789 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
15790 (libgomp_init): Use lang_test_file, lang_library_path, and
15791 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
15793 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
15794 (lang_test_file, lang_link_flags): New.
15795 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
15797 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
15798 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
15799 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
15800 testsuite/libgomp.c++/parallel-1.C,
15801 testsuite/libgomp.c++/reduction-1.C,
15802 testsuite/libgomp.c++/reduction-2.C,
15803 testsuite/libgomp.c++/reduction-3.C,
15804 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
15805 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
15806 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
15807 New files, largely cribbed from the C testsuite.
15809 2005-10-12 Jakub Jelinek <jakub@redhat.com>
15811 * testsuite/libgomp.fortran/character1.f90: New test.
15812 * testsuite/libgomp.fortran/character2.f90: New test.
15814 * testsuite/libgomp.dg/nested-1.c: New test.
15815 * testsuite/libgomp.dg/nested-2.c: New test.
15816 * testsuite/libgomp.fortran/do1.f90: New test.
15817 * testsuite/libgomp.fortran/do2.f90: New test.
15819 * testsuite/libgomp.fortran/reference1.f90: New test.
15821 2005-10-11 Jakub Jelinek <jakub@redhat.com>
15823 * testsuite/libgomp.dg/reduction-1.c: New test.
15824 * testsuite/libgomp.dg/reduction-2.c: New test.
15825 * testsuite/libgomp.dg/reduction-3.c: New test.
15827 2005-10-10 Jakub Jelinek <jakub@redhat.com>
15829 * testsuite/libgomp.dg/atomic-1.c: New test.
15830 * testsuite/libgomp.dg/atomic-2.c: New test.
15832 2005-10-09 Richard Henderson <rth@redhat.com>
15834 * critical.c (atomic_lock): New.
15835 (initialize_critical): Initialize it.
15836 (GOMP_atomic_start, GOMP_atomic_end): New.
15837 * libgomp.map: Export them.
15838 * libgomp_g.h: Declare them.
15840 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
15842 2005-10-02 Richard Henderson <rth@redhat.com>
15844 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
15845 to XCFLAGS instead of CFLAGS.
15847 2005-09-30 Richard Henderson <rth@redhat.com>
15849 * configure.ac: Determine whether -pthread or -lpthread is needed.
15850 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
15851 * Makefile.in, configure: Rebuild.
15853 2005-09-28 Richard Henderson <rth@redhat.com>
15855 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
15856 * testsuite/libgomp.dg/omp-single-3.c: New test.
15858 2005-09-28 Diego Novillo <dnovillo@redhat.com>
15860 * testsuite/libgomp.dg/omp-single-2.c: New test.
15861 * testsuite/libgomp.dg/shared-2.c: Fix return code.
15863 2005-09-27 Richard Henderson <rth@redhat.com>
15865 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
15866 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
15868 2005-09-27 Jakub Jelinek <jakub@redhat.com>
15870 * testsuite/libgomp.dg/omp-loop03.c: New test.
15872 2005-09-27 Diego Novillo <dnovillo@redhat.com>
15874 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
15876 2005-09-27 Diego Novillo <dnovillo@redhat.com>
15878 * testsuite/libgomp.dg/omp-single-1.c: New test.
15879 * testsuite/libgomp.dg/shared-1.c: Return 0.
15880 Add prototype for abort.
15881 * testsuite/libgomp.dg/shared-2.c: Likewise.
15883 2005-09-26 Jakub Jelinek <jakub@redhat.com>
15885 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
15888 2005-09-26 Diego Novillo <dnovillo@redhat.com>
15890 * testsuite/libgomp.dg/shared-1.c: New test.
15891 * testsuite/libgomp.dg/shared-2.c: New test.
15893 2005-09-24 Richard Henderson <rth@redhat.com>
15895 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
15897 2005-09-24 Richard Henderson <rth@redhat.com>
15899 * iter.c (gomp_iter_static_next): Round up when computing number
15900 of iterations. Don't bother distributing a remainder equally.
15902 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
15903 Don't call srand. Zero b before testing.
15906 2005-09-24 Jakub Jelinek <jakub@redhat.com>
15908 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
15909 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
15911 2005-09-23 Jakub Jelinek <jakub@redhat.com>
15913 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
15914 without !$omp end do, followed immediately by subroutine end.
15916 2005-09-23 Diego Novillo <dnovillo@redhat.com>
15918 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
15920 2005-09-22 Richard Henderson <rth@redhat.com>
15922 * critical.c (GOMP_critical_name_start): Change argument to void**.
15923 Reuse the pointer space if the mutex fits.
15924 (GOMP_critical_name_end): Likewise.
15925 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
15926 * libgomp_g.h (GOMP_critical_name_start): Update decl.
15927 (GOMP_critical_name_end): Likewise.
15928 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
15929 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
15931 2005-09-20 Richard Henderson <rth@redhat.com>
15933 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
15934 (create_lock_lock): New.
15935 (initialize_critical): Initialize it.
15936 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
15937 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
15939 2005-09-20 Diego Novillo <dnovillo@redhat.com>
15941 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
15943 2005-09-20 Diego Novillo <dnovillo@redhat.com>
15945 * testsuite/libgomp.dg/omp-loop01.c: New test.
15946 * testsuite/libgomp.dg/omp-loop02.c: New test.
15948 2005-09-20 Jakub Jelinek <jakub@redhat.com>
15950 * configure.ac (AC_PROG_FC): Add.
15951 (USE_FORTRAN): New automake conditional.
15952 * configure: Rebuilt.
15953 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
15954 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
15955 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
15956 Add rules to build them.
15957 * Makefile.in: Rebuilt.
15958 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
15959 OMP_NEST_LOCK_KIND.
15960 * libgomp.map: Add Fortran wrappers.
15961 * libgomp_f.h.in: New file.
15962 * omp_lib.h.in: New file.
15963 * omp_lib.f90.in: New file.
15964 * fortran.c: New file.
15965 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
15966 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
15967 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
15968 libgfortran has been built.
15969 * testsuite/libgomp.fortran/fortran.exp: New file.
15970 * testsuite/libgomp.fortran/omp_cond1.f: New test.
15971 * testsuite/libgomp.fortran/omp_cond2.f: New test.
15972 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
15973 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
15974 * testsuite/libgomp.fortran/omp_hello.f: New test.
15975 * testsuite/libgomp.fortran/omp_orphan.f: New test.
15976 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
15977 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
15978 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
15979 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
15980 * testsuite/libgomp.fortran/omp_reduction.f: New test.
15981 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
15982 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
15984 2005-08-30 Richard Henderson <rth@redhat.com>
15986 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
15987 function for when aliases are not usable.
15988 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
15989 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
15990 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
15991 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
15992 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
15993 GOMP_loop_ordered_guided_next): Likewise.
15994 * ordered.c (GOMP_ordered_start): Likewise.
15996 2005-08-01 Diego Novillo <dnovillo@redhat.com>
15998 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
15999 * testsuite/libgomp.dg/omp_hello.c: Fix return code
16000 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
16001 * testsuite/libgomp.dg/omp_orphan.c: Likewise
16002 * testsuite/libgomp.dg/omp_reduction.c: Likewise
16003 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
16004 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
16005 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
16006 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
16008 2005-07-07 Eric Christopher <echristo@redhat.com>
16009 Diego Novillo <dnovillo@redhat.com>
16011 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
16012 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
16014 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
16015 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
16016 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
16017 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
16018 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
16019 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
16020 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
16022 2005-06-13 Diego Novillo <dnovillo@redhat.com>
16024 * TOPLEVEL.patch: Remove.
16026 2005-05-16 Richard Henderson <rth@redhat.com>
16028 * configure.ac: Test for clock_gettime.
16029 * config.h.in, configure: Rebuild.
16030 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
16031 (omp_get_wtime): Use clock_gettime if available.
16032 (omp_get_wtick): Use clock_getres if available.
16034 2005-05-11 Richard Henderson <rth@redhat.com>
16036 * config/linux/ia64/futex.h: New file.
16037 * configure.tgt: Use it.
16039 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
16041 2005-05-07 Richard Henderson <rth@redhat.com>
16043 * config/linux/powerpc/futex.h: New file.
16044 * configure.tgt: Use it.
16046 * config/linux/i486/futex.h: Merge ...
16047 * config/linux/x86_64/futex.h: ... into ...
16048 * config/linux/x86/futex.h: ... here.
16049 * configure.tgt: Update to match.
16051 2005-05-06 Richard Henderson <rth@redhat.com>
16053 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
16054 * config/linux/i486/futex.h: Likewise.
16055 * config/linux/x86_64/futex.h: Likewise.
16057 * config/linux/lock.c: New file.
16058 * config/linux/omp-lock.h: New file.
16060 * critical.c, env.h: Don't include omp.h
16061 * config/posix/lock.c: Include libgomp.h instead of omp.h.
16062 * config/posix/time.c: Likewise.
16063 * config/posix/omp-lock.h: New file.
16064 * libgomp.h: Include omp-lock.h and omp.h.
16065 * Makefile.am (nodist_include_HEADERS): New.
16067 * configure.ac (PERL): New.
16068 * mkomp_h.pl: New file.
16069 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
16071 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
16073 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
16074 build directory. Re-add -march=i486 hack.
16076 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
16077 (libgomp_link_flags): Remove.
16078 (libgomp_initialized): Remove.
16079 (libgomp_init): Don't protect from reinitialization. Copy code
16080 from libstdc++ for getting the multilib set correctly.
16082 2005-05-05 Richard Henderson <rth@redhat.com>
16084 * config/linux/alpha/futex.h: New file.
16085 * configure.tgt (alpha*-*-linux*): Use it.
16087 * config/posix/mutex.c: New file.
16088 * config/posix/sem.c: Use libgomp.h.
16090 * configure.tgt (x86_64-linux): Also test CC for -m32.
16091 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
16093 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
16096 * Makefile.am (SUBDIRS): New.
16097 (libgomp_la_LDFLAGS): Add -lpthread.
16098 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
16099 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
16101 * libgomp_g.h: New file.
16102 * libgomp.h: Split out all public declarations to libgomp_g.h.
16103 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
16104 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
16105 * config/linux/sem.h: Likewise.
16106 * config/posix/sem.h: Likewise.
16108 * Makefile.am (AM_LDFLAGS): New.
16109 (libgomp_version_script): Split out from ...
16110 (libgomp_la_LDFLAGS): ... here.
16111 (libgomp_version_info): New.
16112 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
16113 (LIBGOMP_ENABLE): New.
16114 (LIBGOMP_CHECK_LINKER_FEATURES): New.
16115 (LIBGOMP_ENABLE_SYMVERS): New.
16116 * configure.ac (AC_INIT): Version 1.0.
16117 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
16118 (enable-linux-futex): Likewise. Rename from enable-futex.
16119 (libtool_VERSION): New.
16120 (LIBGOMP_ENABLE_SYMVERS): Use it.
16121 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
16122 * Makefile.in, aclocal.m4, configure: Rebuild.
16124 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
16125 (gomp_mutex_unlock_slow): Fix typo.
16126 * config/linux/sem.c: Similarly.
16127 (gomp_sem_post_slow): Fix typo.
16128 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
16129 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
16130 [__PIC__] (sys_futex0): Don't use tmp output in asm.
16132 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
16133 (libgomp_la_LDFLAGS): Add top_srcdir to path.
16134 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
16135 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
16136 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
16137 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
16138 LDFLAGS. Pull enable_futex check to top-level.
16139 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
16140 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
16142 First attempt at real configury.
16143 * Makefile, config.h: Remove file.
16144 * Makefile.am, Makefile.in: New file.
16145 * acinclude.m4 aclocal.m4: New file.
16146 * configure.ac, configure.tgt, configure: New file.
16148 * config/posix/lock.c: Rename from sys-lock.c.
16149 * config/posix/mutex.h: Rename from sys-mutex.h.
16150 * config/posix/sem.c: Rename from sys-sem.c.
16151 * config/posix/sem.h: Rename from sys-sem.h.
16152 * config/posix/proc.c: Rename from sys-proc.c.
16153 * config/posix/time.c: Rename from sys-proc.c.
16155 * config/linux/mutex.c: New file.
16156 * config/linux/mutex.h: New file.
16157 * config/linux/sem.c: New file.
16158 * config/linux/sem.h: New file.
16159 * config/linux/i486/futex.h: New file.
16160 * config/linux/x86_64/futex.h: New file.
16162 2005-05-04 Richard Henderson <rth@redhat.com>
16164 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
16165 * libgomp.h: Declare them.
16166 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
16167 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
16169 2005-05-04 Richard Henderson <rth@redhat.com>
16171 * libgomp-1 code drop
16173 2005-05-04 Richard Henderson <rth@redhat.com>
16175 * iter.c (gomp_iter_static_next): Return tri-state on 0.
16176 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
16177 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
16178 (gomp_iter_static_next): Update.
16179 (gomp_ordered_static_next): Update.
16180 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
16181 (gomp_loop_ordered_static_start): Likewise. Exit early for a
16182 totally empty range.
16183 (gomp_loop_ordered_static_next): Refine test for calling
16184 gomp_ordered_static_next.
16185 * testsuite/ordered-1.c: Add case for more threads than iterations.
16187 * iter.c (gomp_iter_runtime_next_locked): Remove.
16188 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
16189 gomp_loop_guided_start, gomp_loop_ordered_static_start,
16190 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
16191 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
16192 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
16193 gomp_loop_ordered_guided_next): Downcase name, make static, add
16194 an external alias with the old name.
16195 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
16196 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
16197 switch and call one of the above static functions.
16198 * libgomp.h: Update.
16200 * work.c (gomp_work_share_start): Lock the mutex for !first too.
16201 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
16202 GOMP_loop_guided_start, GOMP_loop_runtime_start,
16203 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
16204 GOMP_loop_ordered_guided_start): Update to match.
16205 * sections.c (GOMP_sections_start): Likewise.
16206 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
16208 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
16209 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
16210 Use bounds check instead of modulus.
16211 (gomp_ordered_sync): Split out of GOMP_ordered_start.
16212 (gomp_ordered_last): Don't sync with ordered_owner here.
16213 (gomp_ordered_next): Likewise.
16214 (gomp_ordered_static_loop_next): Likewise.
16215 * loop.c, libgomp.h: Update to match.
16217 * libgomp.h (GOMP_barrier): Declare.
16219 * testsuite/barrier-1.c: New file.
16220 * testsuite/critical-1.c: New file.
16221 * testsuite/ordered-2.c: New file.
16222 * testsuite/ordered-1.c: New file.
16223 * testsuite/sections-1.c: New file.
16224 * testsuite/single-1.c: New file.
16225 * testsuite/Makefile (TESTS): Add them.
16227 2005-05-04 Richard Henderson <rth@redhat.com>
16229 * libgomp.h (struct gomp_work_share): Add ordered_owner.
16230 * loop.c (GOMP_loop_static_start): If not the startup thread,
16231 acquire the mutex to wait for initialization complete.
16232 (GOMP_loop_ordered_static_start): Likewise.
16233 (GOMP_loop_ordered_runtime_start): Likewise.
16234 (GOMP_loop_ordered_static_first): Remove.
16235 (GOMP_loop_ordered_dynamic_first): Remove.
16236 (GOMP_loop_ordered_guided_first): Remove.
16237 (GOMP_loop_ordered_runtime_first): Remove.
16238 * ordered.c (gomp_ordered_loop_first): Post to own release when
16239 we're the first thread.
16240 (gomp_ordered_loop_last): Wait on release if not owner.
16241 (gomp_ordered_loop_next): Likewise.
16242 (gomp_ordered_static_loop_init): New.
16243 (gomp_ordered_static_loop_next): Use ordered_owner.
16244 (GOMP_ordered_start): Likewise.
16245 * work.c (gomp_new_work_share): Initialize ordered_owner.
16247 2005-05-03 Richard Henderson <rth@redhat.com>
16249 * Makefile (OPT): New.
16252 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
16253 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
16254 * libgomp.h, libgomp.map, NOTES: Update to match.
16256 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
16257 Add initialized and thr members.
16258 (gomp_thread_start): Pause when initially spawned to wait for
16259 the whole team to be created.
16260 (gomp_team_start): Release team members at the end.
16262 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
16263 (f_foo_1): Use GOMP_loop_end.
16264 (f_foo_2): Use GOMP_loop_end_nowait.
16266 * testsuite/loop-2.c: New file.
16267 * testsuite/Makefile (TESTS): Add it.
16269 2005-05-03 Richard Henderson <rth@redhat.com>
16271 * iter.c (gomp_iter_static_next): Fix overflow check typo.
16272 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
16273 * team.c (new_team): Initialize oldest_live_gen to 1 if no
16274 initial work_share.
16276 * testsuite/Makefile: New file.
16277 * testsuite/loop-1.c: New file.
16279 2005-05-03 Richard Henderson <rth@redhat.com>
16281 Initial implementation and checkin.
16283 Copyright (C) 2005-2021 Free Software Foundation, Inc.
16285 Copying and distribution of this file, with or without modification,
16286 are permitted in any medium without royalty provided the copyright
16287 notice and this notice are preserved.