Daily bump.
[official-gcc.git] / libgomp / ChangeLog
blobed26b8d543f52ab361cd4f9bf17c6bf63d606673
1 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
3         PR target/103201
4         * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
5         to ...
6         * config/gcn/teams.c: ... here.  New file.
8 2021-11-12  Chung-Lin Tang  <cltang@codesourcery.com>
10         * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
11         implicit map handling to allow a "superset" existing map as valid case.
12         (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
13         (get_implicit): New function to extract implicit status.
14         (gomp_map_fields_existing): Adjust arguments in calls to
15         gomp_map_vars_existing, and add uses of get_implicit.
16         (gomp_map_vars_internal): Likewise.
17         * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
19 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
21         * libgomp_g.h (GOMP_teams4): Declare.
22         * libgomp.map (GOMP_5.1): Export GOMP_teams4.
23         * target.c (GOMP_teams4): New function.
24         * config/nvptx/target.c (GOMP_teams): Remove.
25         (GOMP_teams4): New function.
26         * config/gcn/target.c (GOMP_teams): Remove.
27         (GOMP_teams4): New function.
28         * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
29         teams instead of <= 2.
30         * testsuite/libgomp.c-c++-common/teams-2.c: New test.
32 2021-11-11  Tobias Burnus  <tobias@codesourcery.com>
34         * testsuite/libgomp.fortran/teams-1.f90: New test.
36 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
38         * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
39         * team.c (struct gomp_thread_start_data): Likewise.
40         (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
41         (gomp_team_start): Initialize start_data->num_teams and
42         start_data->team_num.  Update nthr->num_teams and nthr->team_num.
43         * teams.c (gomp_num_teams, gomp_team_num): Remove.
44         (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
45         instead of gomp_num_teams and gomp_team_num.
46         (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
47         (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
48         * testsuite/libgomp.c/teams-4.c: New test.
50 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
52         * testsuite/libgomp.c-c++-common/teams-1.c: New test.
54 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
56         * env.c (parse_gomp_openacc_dim): Restore parsing.
58 2021-10-30  Tobias Burnus  <tobias@codesourcery.com>
60         PR middle-end/102972
61         * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
62         parallel construct.
63         * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
64         * testsuite/libgomp.c/target-3.c: Likewise.
65         * testsuite/libgomp.c/target-5.c: Likewise.
66         * testsuite/libgomp.c/target-6.c: Likewise.
67         * testsuite/libgomp.c/target-teams-1.c: Likewise.
68         * testsuite/libgomp.c/teams-1.c: Likewise.
69         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
70         * testsuite/libgomp.c/thread-limit-3.c: Likewise.
71         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
72         * testsuite/libgomp.c/thread-limit-5.c: Likewise.
73         * testsuite/libgomp.fortran/icv-3.f90: Likewise.
74         * testsuite/libgomp.fortran/icv-4.f90: Likewise.
75         * testsuite/libgomp.fortran/teams1.f90: Likewise.
77 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
79         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
80         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
82 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
84         * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
85         aren't implemented for Fortran yet.
87 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
89         * testsuite/libgomp.c/loop-26.c: New test.
90         * testsuite/libgomp.c/loop-27.c: New test.
92 2021-10-25  Tobias Burnus  <tobias@codesourcery.com>
94         PR testsuite/102910
95         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
96         instead of #include <alloca.h> + alloca.
98 2021-10-21  Chung-Lin Tang  <cltang@codesourcery.com>
100         * libgomp.texi (Support of strictly structured blocks in Fortran):
101         Adjust to 'Y'.
102         * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
104 2021-10-20  Chung-Lin Tang  <cltang@codesourcery.com>
106         * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
107         * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
109 2021-10-20  Jakub Jelinek  <jakub@redhat.com>
111         PR libgomp/102838
112         * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
113         (struct gomp_work_share): Only use aligned(64) attribute if
114         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
115         add padding before lock to ensure lock is at offset 64 bytes
116         into the structure.
117         (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
118         New poor man's static assertions.
119         * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
120         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
122 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
123             Richard Biener  <rguenther@suse.de>
125         * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
127 2021-10-18  Jakub Jelinek  <jakub@redhat.com>
129         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
130         && gomp_places_list_len < count after nfirst <= nlast loop condition.
132 2021-10-18  Tobias Burnus  <tobias@codesourcery.com>
134         PR fortran/102086
135         PR fortran/92189
136         PR fortran/92621
137         PR fortran/101308
138         PR fortran/101309
139         PR fortran/101635
140         PR fortran/92482
141         * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
143 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
145         * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
146         type from char [50] to const char *.
147         (places_array): Add a testcase for simplified syntax place followed
148         by length or length and stride.
150 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
152         * env.c (parse_one_place): Handle non-negative-number the same
153         as { non-negative-number }.  Reject even !number:1 and
154         !number:1:stride or !place:1 or !place:1:stride instead of just
155         length other than 1.
156         * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
157         and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
158         omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
159         as implemented.
160         * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
161         simplified syntax.
163 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
165         * env.c (parse_schedule): For strtoul or strtoull calls which don't
166         clearly reject return value 0 as invalid handle the case where end
167         pointer is the same as first argument as invalid.
168         (parse_unsigned_long_1): Likewise.
169         (parse_one_place): Likewise.
170         (parse_places_var): Likewise.
171         (parse_stacksize): Likewise.
172         (parse_spincount): Likewise.
173         (parse_affinity): Likewise.
174         (parse_gomp_openacc_dim): Likewise.  Avoid strict aliasing violation.
175         Make code valid C89.
176         * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
177         For strtoul calls which don't clearly reject return value 0 as
178         invalid handle the case where end pointer is the same as first
179         argument as invalid.
180         (gomp_affinity_init_level_1): Likewise.
181         (gomp_affinity_init_numa_domains): Likewise.
182         * config/rtems/proc.c (parse_thread_pools): Likewise.
184 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
186         * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
187         after creating count places clean up and return immediately.
188         * testsuite/libgomp.c/places-6.c: New test.
189         * testsuite/libgomp.c/places-7.c: New test.
190         * testsuite/libgomp.c/places-8.c: New test.
191         * testsuite/libgomp.c/places-9.c: New test.
192         * testsuite/libgomp.c/places-10.c: New test.
194 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
196         * env.c (parse_places_var): Handle numa_domains as level 5.
197         * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
198         function.
199         (gomp_affinity_init_level): Use it instead of
200         gomp_affinity_init_level_1 for level == 5.
201         * testsuite/libgomp.c/places-5.c: New test.
203 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
205         * env.c (parse_places_var): Handle ll_caches as level 4.
206         * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
207         function.
208         (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
209         last level cache.
210         (gomp_affinity_init_level): Likewise.
211         * testsuite/libgomp.c/places-1.c: New test.
212         * testsuite/libgomp.c/places-2.c: New test.
213         * testsuite/libgomp.c/places-3.c: New test.
214         * testsuite/libgomp.c/places-4.c: New test.
216 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
218         * libgomp.texi (OpenMP 5.0): Update entry for declare variant
219         directive.
221 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
223         * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
225 2021-10-12  Julian Brown  <julian@codesourcery.com>
227         * target.c (gomp_copy_host2dev): Release device lock on cbuf
228         error path.
230 2021-10-12  Tobias Burnus  <tobias@codesourcery.com>
232         * testsuite/libgomp.fortran/icv-3.f90: New.
233         * testsuite/libgomp.fortran/icv-4.f90: New.
235 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
237         * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
238         omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
239         OMP_TEAMS_THREAD_LIMIT): Document.
241 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
243         * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
244         to avoid makeinfo warnings.
246 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
248         * testsuite/libgomp.c-c++-common/icv-3.c: New test.
249         * testsuite/libgomp.c-c++-common/icv-4.c: New test.
251 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
253         PR libgomp/102628
254         PR libgomp/102668
255         * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
256         allocation sizes from 420 to 320 and from 768 to 568.
257         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
258         * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
259         for cr from 16 to 4.
261 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
263         * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
264         * testsuite/libgomp.c/scan-12.c: Likewise.
265         * testsuite/libgomp.c/scan-13.c: Likewise.
266         * testsuite/libgomp.c/scan-14.c: Likewise.
267         * testsuite/libgomp.c/scan-15.c: Likewise.
268         * testsuite/libgomp.c/scan-16.c: Likewise.
269         * testsuite/libgomp.c/scan-17.c: Likewise.
270         * testsuite/libgomp.c/scan-18.c: Likewise.
271         * testsuite/libgomp.c/scan-19.c: Likewise.
272         * testsuite/libgomp.c/scan-20.c: Likewise.
273         * testsuite/libgomp.c/scan-21.c: Likewise.
274         * testsuite/libgomp.c/scan-22.c: Likewise.
275         * testsuite/libgomp.c++/scan-9.C: Likewise.
276         * testsuite/libgomp.c++/scan-10.C: Likewise.
277         * testsuite/libgomp.c++/scan-11.C: Likewise.
278         * testsuite/libgomp.c++/scan-12.C: Likewise.
279         * testsuite/libgomp.c++/scan-13.C: Likewise.
280         * testsuite/libgomp.c++/scan-14.C: Likewise.
281         * testsuite/libgomp.c++/scan-15.C: Likewise.
282         * testsuite/libgomp.c++/scan-16.C: Likewise.
284 2021-10-12  Kewen Lin  <linkw@linux.ibm.com>
286         * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
288 2021-10-11  Marcel Vollweiler  <marcel@codesourcery.com>
290         * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
291         omp_atv_serialized.
292         * omp.h.in: Add deprecated flag for omp_atv_sequential.
293         * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
294         * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
295         * testsuite/libgomp.fortran/alloc-12.f90: New test.
297 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
299         * omp.h.in (omp_set_num_teams, omp_get_max_teams,
300         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
301         * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
302         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
303         * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
304         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
305         * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
306         * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
307         omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
308         omp_set_teams_thread_limit{,_,_8_}.
309         * icv.c (omp_set_num_teams, omp_get_max_teams,
310         omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
311         functions.
312         * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
313         (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
314         (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
315         vars.
316         * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
317         gomp_teams_thread_limit_var as fallback if not zero.  If num_teams
318         is not specified, use gomp_nteams_var.
319         * fortran.c (omp_set_num_teams, omp_get_max_teams,
320         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
321         ialias_redirect.
322         (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
323         omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
324         omp_get_teams_thread_limit_): New functions.
326 2021-10-09  liuhongt  <hongtao.liu@intel.com>
328         * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
329         * testsuite/libgomp.c++/scan-11.C: Ditto.
330         * testsuite/libgomp.c++/scan-12.C: Ditto.
331         * testsuite/libgomp.c++/scan-13.C: Ditto.
332         * testsuite/libgomp.c++/scan-14.C: Ditto.
333         * testsuite/libgomp.c++/scan-15.C: Ditto.
334         * testsuite/libgomp.c++/scan-16.C: Ditto.
335         * testsuite/libgomp.c++/scan-9.C: Ditto.
336         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
337         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
338         * testsuite/libgomp.c/scan-11.c: Ditto.
339         * testsuite/libgomp.c/scan-12.c: Ditto.
340         * testsuite/libgomp.c/scan-13.c: Ditto.
341         * testsuite/libgomp.c/scan-14.c: Ditto.
342         * testsuite/libgomp.c/scan-15.c: Ditto.
343         * testsuite/libgomp.c/scan-16.c: Ditto.
344         * testsuite/libgomp.c/scan-17.c: Ditto.
345         * testsuite/libgomp.c/scan-18.c: Ditto.
346         * testsuite/libgomp.c/scan-19.c: Ditto.
347         * testsuite/libgomp.c/scan-20.c: Ditto.
348         * testsuite/libgomp.c/scan-21.c: Ditto.
349         * testsuite/libgomp.c/scan-22.c: Ditto.
351 2021-10-09  Jakub Jelinek  <jakub@redhat.com>
353         * libgomp.texi (OpenMP 5.1): Mention implemented support for
354         structured block sequences in C/C++.  Mention support for
355         unconstrained/reproducible modifiers on order clause.
356         Mention partial (C/C++ only) support of extentensions to atomics
357         construct.  Mention partial (C/C++ on clause only) support of
358         align/allocator modifiers on allocate clause.
360 2021-10-02  Tobias Burnus  <tobias@codesourcery.com>
362         * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
363         based on libgomp.c-c++-common/order-reproducible-1.c.
364         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
365         * testsuite/libgomp.fortran/my-usleep.c: New test.
367 2021-10-01  Tobias Burnus  <tobias@codesourcery.com>
369         * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
370         * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
371         * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
372         * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
373         based on libgomp.c-c++-common/alloc-9.c.
375 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
377         * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
378         * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
380 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
382         * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
383         ialias_redirect.
384         * env.c (handle_omp_display_env): Use ialias_call.
385         * icv-device.c: Move ialias right below each function.
386         (omp_get_device_num): Use ialias_call.
387         * fortran.c (omp_fulfill_event): Add ialias_redirect.
388         * icv.c (omp_get_active_level): Add ialias_redirect.
390 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
392         * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
393         __alloc_align__ (1) attribute.
394         * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
396 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
398         * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
399         for -fintrinsic-modules-path= warning of the C compiler.
400         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
401         * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
403 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
405         * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
406         omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
407         * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
408         omp_realloc): Add.
409         * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
410         omp_realloc): Add.
411         * testsuite/libgomp.fortran/alloc-10.f90: New test.
412         * testsuite/libgomp.fortran/alloc-6.f90: New test.
413         * testsuite/libgomp.fortran/alloc-7.c: New test.
414         * testsuite/libgomp.fortran/alloc-7.f90: New test.
415         * testsuite/libgomp.fortran/alloc-8.f90: New test.
416         * testsuite/libgomp.fortran/alloc-9.f90: New test.
418 2021-09-30  Jakub Jelinek  <jakub@redhat.com>
420         * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
421         omp_realloc): New prototypes.
422         (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
423         attribute.
424         * allocator.c: Include string.h.
425         (omp_aligned_alloc): No longer static, add ialias.  Add new_alignment
426         variable and use it instead of alignment so that when retrying the old
427         alignment is used again.  Don't retry if new alignment is the same
428         as old alignment, unless allocator had pool size.
429         (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
430         (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
431         * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
432         omp_aligned_calloc and omp_realloc.
433         * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
434         omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
435         * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
436         * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
437         * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
438         * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
440 2021-09-28  Tobias Burnus  <tobias@codesourcery.com>
442         PR libgomp/96661
443         * configure.ac: Only check for int-type = 2*size_t support when
444         building with Fortran support.
445         * configure: Regenerate.
447 2021-09-28  Thomas Schwinge  <thomas@codesourcery.com>
449         * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
450         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
452 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
454         * team.c: Initialize start_data.
455         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
456         * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
458 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
460         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
461         dg-message back to dg-note.
463 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
465         PR fortran/94070
466         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
467         expected dg-note output.
469 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
471         PR fortran/55534
472         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
473         r12-3722 by removing -Wno-missing-include-dirs.
474         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
476 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
478         * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
479         * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
481 2021-09-21  Tobias Burnus  <tobias@codesourcery.com>
483         PR fortran/55534
484         * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
485         to ALWAYS_CFLAGS.
486         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
488 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
490         * testsuite/libgomp.c++/default-1.C: New test.
491         * testsuite/libgomp.c-c++-common/default-1.c: New test.
492         * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
493         to default clause in C and C++" as implemented.
495 2021-09-17  Julian Brown  <julian@codesourcery.com>
497         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
499 2021-09-17  Julian Brown  <julian@codesourcery.com>
501         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
503 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
505         * libgomp.texi (OpenMP 5.1): Spelling fix,
506         declare variante -> declare variant.
508 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
510         * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
511         Use /* */ comments instead of //.
512         * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
513         * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
514         * testsuite/libgomp.c++/atomic-16.C: New test.
515         * testsuite/libgomp.c++/atomic-17.C: New test.
517 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
519         * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
520         * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
521         * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
523 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
525         * libgomp.texi (OpenMP Implementation Status): Extend
526         OpenMP 5.0 section.
527         (OpenACC Profiling Interface): Fix typo.
529 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
531         * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
532         not to 4.5; link to new section.
533         (OpenMP Implementation Status): New.
535 2021-09-06  Thomas Schwinge  <thomas@codesourcery.com>
537         * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
539 2021-09-03  Tobias Burnus  <tobias@codesourcery.com>
541         * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
542         dg-output.
543         * testsuite/libgomp.fortran/error-1.f90: Likewise.
545 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
546             Jakub Jelinek  <jakub@redhat.com>
548         * testsuite/libgomp.c/address-space-1.c: New file.
550 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
552         * testsuite/lib/libgomp.exp
553         (check_effective_target_offload_target_intelmic): Remove 'proc'.
554         (check_effective_target_offload_device_intel_mic): New 'proc'.
555         * testsuite/libgomp.c-c++-common/on_device_arch.h
556         (device_arch_intel_mic, on_device_arch_intel_mic): New.
557         * testsuite/libgomp.c-c++-common/target-45.c: Use that for
558         'dg-xfail-run-if'.
559         * testsuite/libgomp.fortran/target10.f90: Likewise.
561 2021-08-23  Tobias Burnus  <tobias@codesourcery.com>
563         * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
564         * testsuite/libgomp.fortran/taskloop-4.f90: New test.
565         * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
566         * testsuite/libgomp.fortran/taskloop-5.f90: New test.
568 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
570         * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
571         * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
572         * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
574 2021-08-22  Thomas Schwinge  <thomas@codesourcery.com>
576         * config/nvptx/error.c (fwrite, exit): Override, too.
577         * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
578         of offloading testing.
579         * testsuite/libgomp.fortran/error-1.f90: Likewise.
581 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
583         * testsuite/libgomp.fortran/error-1.f90: New test.
585 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
587         * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
588         * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
589         * error.c (GOMP_warning, GOMP_error): New functions.
590         * testsuite/libgomp.c-c++-common/error-1.c: New test.
592 2021-08-18  Tobias Burnus  <tobias@codesourcery.com>
594         * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
595         omp_target_free. omp_target_is_present, omp_target_memcpy,
596         omp_target_memcpy_rect, omp_target_associate_ptr,
597         omp_target_disassociate_ptr): Add interface.
598         * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
599         omp_target_free. omp_target_is_present, omp_target_memcpy,
600         omp_target_memcpy_rect, omp_target_associate_ptr,
601         omp_target_disassociate_ptr): Add interface.
602         * testsuite/libgomp.fortran/alloc-1.F90: Remove local
603         interface block for omp_alloc + omp_free.
604         * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
605         * testsuite/libgomp.fortran/refcount-1.f90: New test.
606         * testsuite/libgomp.fortran/target-12.f90: New test.
608 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
610         * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
612 2021-08-17  Tobias Burnus  <tobias@codesourcery.com>
614         * testsuite/libgomp.fortran/scope-1.f90: New test.
615         * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
617 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
619         * Makefile.am (libgomp_la_SOURCES): Add scope.c
620         * Makefile.in: Regenerated.
621         * libgomp_g.h (GOMP_scope_start): Declare.
622         * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
623         * scope.c: New file.
624         * testsuite/libgomp.c-c++-common/scope-1.c: New test.
625         * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
627 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
629         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
630         '?:' issues.
632 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
634         * testsuite/libgomp.fortran/masked-1.f90: New test.
636 2021-08-13  Thomas Schwinge  <thomas@codesourcery.com>
638         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
640 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
642         * testsuite/libgomp.c-c++-common/masked-1.c: New test.
644 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
646         * env.c (parse_bind_var): Accept 'primary' as alias for
647         'master'.
648         (omp_display_env): Add TODO comment to
649         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
650         * libgomp.texi: Change 'master thread' to 'primary thread'
651         in line with OpenMP 5.1.
652         (omp_get_proc_bind): Add omp_proc_bind_primary and note that
653         omp_proc_bind_master is an alias of it.
654         (OMP_PROC_BIND): Mention 'PRIMARY'.
655         * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
656         (omp_proc_bind_primary): Add.
657         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
658         * omp_lib.f90.in (omp_proc_bind_primary): Add.
659         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
660         * omp_lib.h.in (omp_proc_bind_primary): Add.
661         * testsuite/libgomp.c/affinity-1.c: Check that
662         'primary' works and is identical to 'master'.
664 2021-08-09  Julian Brown  <julian@codesourcery.com>
665             Kwok Cheung Yeung  <kcy@codesourcery.com>
666             Thomas Schwinge  <thomas@codesourcery.com>
668         * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
669         16.
670         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
671         [acc_device_radeon]: Update.
672         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
673         [ACC_DEVICE_TYPE_radeon]: Likewise.
674         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
675         [acc_device_radeon]: Likewise.
676         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
677         [ACC_DEVICE_TYPE_radeon]: Likewise.
678         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
679         'openacc_radeon_accel_selected' and '-O0'.
680         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
682 2021-08-05  Chung-Lin Tang  <cltang@codesourcery.com>
684         * icv-device.c (omp_get_device_num): New API function, host side.
685         * fortran.c (omp_get_device_num_): New interface function.
686         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
687         * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
688         omp_get_device_num_.
689         * libgomp.texi (omp_get_device_num): Add documentation for new API
690         function.
691         * omp.h.in (omp_get_device_num): Add declaration.
692         * omp_lib.f90.in (omp_get_device_num): Likewise.
693         * omp_lib.h.in (omp_get_device_num): Likewise.
694         * target.c (gomp_load_image_to_device): If additional entry for device
695         number exists at end of returned entries from 'load_image_func' hook,
696         copy the assigned device number over to the device variable.
697         * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
698         (omp_get_device_num): New API function, device side.
699         * plugin/plugin-gcn.c ("symcat.h"): Add include.
700         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
701         at end of returned 'target_table' entries.
702         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
703         (omp_get_device_num): New API function, device side.
704         * plugin/plugin-nvptx.c ("symcat.h"): Add include.
705         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
706         at end of returned 'target_table' entries.
707         * testsuite/lib/libgomp.exp
708         (check_effective_target_offload_target_intelmic): New function for
709         testing for intelmic offloading.
710         * testsuite/libgomp.c-c++-common/target-45.c: New test.
711         * testsuite/libgomp.fortran/target10.f90: New test.
713 2021-07-30  Thomas Schwinge  <thomas@codesourcery.com>
714             Ulrich Drepper  <drepper@redhat.com>
716         * fortran.c (omp_display_env_, omp_display_env_8_): Only
717         '#ifndef LIBGOMP_OFFLOADED_ONLY'.
719 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
720             Julian Brown  <julian@codesourcery.com>
721             Kwok Cheung Yeung  <kcy@codesourcery.com>
723         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
724         's%oaccdevlow%oaccloops%g'.
725         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
726         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
727         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
728         Likewise.
729         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
730         Likewise.
731         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
732         Likewise.
733         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
734         Likewise.
735         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
736         Likewise.
737         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
738         Likewise.
739         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
740         Likewise.
741         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
742         Likewise.
743         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
745 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
747         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
748         threader.
749         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
751 2021-07-27  Ulrich Drepper  <drepper@gmail.com>
753         * env.c (wait_policy, stacksize): New static variables,
754         move out of handle_omp_display_env.
755         (omp_display_env): New function.  The meat of the old
756         handle_omp_display_env function.
757         (handle_omp_display_env): Change to not take parameters
758         and instead use the global variables.  Only perform
759         parsing, defer to omp_display_env for the implementation.
760         (initialize_env): Remove local variables wait_policy and
761         stacksize.  Don't pass parameters to handle_omp_display_env.
762         * fortran.c: Add ialias_redirect for omp_display_env.
763         (omp_display_env_, omp_display_env_8_): New functions.
764         * libgomp.map (OMP_5.1): New version.  Add omp_display_env,
765         omp_display_env_, and omp_display_env_8_.
766         * omp.h.in: Declare omp_display_env.
767         * omp_lib.f90.in: Likewise.
768         * omp_lib.h.in: Likewise.
770 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
771             Julian Brown  <julian@codesourcery.com>
773         * target.c (gomp_coalesce_buf_add): Update comment.
774         (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
775         'aq && cbuf'.
776         (gomp_map_vars_internal): Only 'if (!aq)', do
777         'gomp_coalesce_buf_add'.
778         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
779         XFAIL.
781 2021-07-27  Julian Brown  <julian@codesourcery.com>
782             Thomas Schwinge  <thomas@codesourcery.com>
784         * libgomp.h (gomp_copy_host2dev): Update prototype.
785         * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
786         argument to gomp_copy_host2dev (false).
787         * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
788         (copy_data): Don't free src.
789         (queue_push_copy): Remove free_src handling.
790         (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
791         (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
792         snapshotting.
793         (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
794         queue_push_copy.
795         * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
796         (gomp_copy_host2dev): Add EPHEMERAL parameter.  Snapshot source
797         data when true, and set up deferred freeing of temporary buffer.
798         (gomp_copy_dev2host): Update call to goacc_device_copy_async.
799         (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
800         (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
801         calls to gomp_copy_host2dev with appropriate ephemeral argument.
802         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
803         XFAIL.
805 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
806             Tom de Vries  <tom@codesourcery.com>
808         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
809         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
811 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
813         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
814         sequencing of 'async' data copying vs. profiling events.
815         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
816         Likewise.
818 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
819             Julian Brown  <julian@codesourcery.com>
821         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
822         'async'/'wait' issue.
823         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
824         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
825         * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
827 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
828             Joseph Myers  <joseph@codesourcery.com>
829             Cesar Philippidis  <cesar@codesourcery.com>
831         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
832         file.
833         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
834         Likewise.
835         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
836         Likewise.
837         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
839 2021-07-20  Thomas Schwinge  <thomas@codesourcery.com>
841         PR target/101484
842         * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
843         '-Wno-error=array-bounds'.
844         * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
845         * libgomp.h [__AMDGCN__]: Likewise.
847 2021-07-19  Thomas Schwinge  <thomas@codesourcery.com>
849         PR target/101484
850         * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
851         * libgomp.h [__AMDGCN__]: Likewise.
853 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
854             Florian Weimer  <fweimer@redhat.com>
856         * config/linux/sem.h: Don't include limits.h.
857         (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
858         * config/linux/affinity.c: Include limits.h.
860 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
862         PR middle-end/94366
863         * testsuite/libgomp.c-c++-common/pr94366.c: New test.
865 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
867         PR other/67300
868         * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
869         -foffload=nvptx-none= by -foffload-options=nvptx-none= to
870         avoid disabling other offload targets.
871         * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
872         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
873         * testsuite/libgomp.c/target-44.c: Likewise.
875 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
877         * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
878         target has shared memory and disable some scalar pointer/allocatable
879         checks if not as firstprivate does not work.
881 2021-06-25  Chung-Lin Tang  <cltang@codesourcery.com>
883         PR testsuite/101114
884         * testsuite/libgomp.c-c++-common/struct-elem-5.c:
885         Add "target offload_device_nonshared_as" condition for enabling test.
887 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
889         * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
890         * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
891         * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
892         * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
894 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
896         PR middle-end/101167
897         * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
899 2021-06-17  Chung-Lin Tang  <cltang@codesourcery.com>
901         * hashtab.h (htab_clear): New function with initialization code
902         factored out from...
903         (htab_create): ...here, adjust to use htab_clear function.
904         * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
905         special refcount values, add comments.
906         (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
907         (REFCOUNT_LINK): Likewise.
908         (REFCOUNT_STRUCTELEM): New special refcount range for structure
909         element siblings.
910         (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
911         sibling maps.
912         (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
913         (REFCOUNT_STRUCTELEM_FLAG_LAST):  Flag to indicate last sibling.
914         (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
915         (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
916         (struct splay_tree_key_s): Add structelem_refcount and
917         structelem_refcount_ptr fields into a union with dynamic_refcount.
918         Add comments.
919         (gomp_map_vars): Delete declaration.
920         (gomp_map_vars_async): Likewise.
921         (gomp_unmap_vars): Likewise.
922         (gomp_unmap_vars_async): Likewise.
923         (goacc_map_vars): New declaration.
924         (goacc_unmap_vars): Likewise.
925         * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
926         (goacc_enter_datum): Likewise.
927         (goacc_enter_data_internal): Likewise.
928         * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
929         and goacc_unmap_vars.
930         (GOACC_data_start): Adjust to use goacc_map_vars.
931         (GOACC_data_end): Adjust to use goacc_unmap_vars.
932         * target.c (hash_entry_type): New typedef.
933         (htab_alloc): New function hook for hashtab.h.
934         (htab_free): Likewise.
935         (htab_hash): Likewise.
936         (htab_eq): Likewise.
937         (hashtab.h): Add file include.
938         (gomp_increment_refcount): New function.
939         (gomp_decrement_refcount): Likewise.
940         (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
941         gomp_increment_refcount.
942         (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
943         to gomp_map_vars_existing.
944         (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
945         variable to guard OpenMP specific paths, adjust calls to
946         gomp_map_vars_existing, add structure element sibling splay_tree_key
947         sequence creation code, adjust Fortran map case to avoid increment
948         under OpenMP.
949         (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
950         local refcount_set if caller passed in NULL, adjust call to
951         gomp_map_vars_internal.
952         (gomp_map_vars_async): Adjust and rename into...
953         (goacc_map_vars): ...this new function, adjust call to
954         gomp_map_vars_internal.
955         (gomp_remove_splay_tree_key): New function with code factored out from
956         gomp_remove_var_internal.
957         (gomp_remove_var_internal): Add code to handle removing multiple
958         splay_tree_key sequence for structure elements, adjust code to use
959         gomp_remove_splay_tree_key for splay-tree key removal.
960         (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
961         gomp_decrement_refcount.
962         (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
963         local refcount_set if caller passed in NULL, adjust call to
964         gomp_unmap_vars_internal.
965         (gomp_unmap_vars_async): Adjust and rename into...
966         (goacc_unmap_vars): ...this new function, adjust call to
967         gomp_unmap_vars_internal.
968         (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
969         gomp_unmap_vars.
970         (GOMP_target_ext): Likewise.
971         (gomp_target_data_fallback): Adjust call to gomp_map_vars.
972         (GOMP_target_data): Likewise.
973         (GOMP_target_data_ext): Likewise.
974         (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
975         (gomp_exit_data): Add refcount_set parameter, adjust to use
976         gomp_decrement_refcount, adjust to queue splay-tree keys for removal
977         after main loop.
978         (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
979         gomp_map_vars and gomp_exit_data.
980         (gomp_target_task_fn): Likewise.
981         * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
982         * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
983         * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
984         * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
985         * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
986         * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
988 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
990         PR fortran/92568
991         * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
993 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
994             Thomas Schwinge  <thomas@codesourcery.com>
996         * libgomp.map (GOACC_2.0.2): New symbol version.
997         * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
998         * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
1000 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
1001             Andrew Stubbs  <ams@codesourcery.com>
1003         * oacc-mem.c (goacc_enter_exit_data_internal): New function,
1004         extracted from...
1005         (GOACC_enter_exit_data): ... here.
1006         (GOACC_declare): Use it.
1008 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
1010         * oacc-parallel.c (GOACC_declare): Move...
1011         * oacc-mem.c: ... here.
1012         * libgomp_g.h: Adjust.
1014 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
1015             Thomas Schwinge  <thomas@codesourcery.com>
1017         * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
1018         handling.
1020 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
1022         PR tree-optimization/100981
1023         * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
1024         dsdotr and dsdoti to 0.
1026 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
1028         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
1029         if atomic compare-and-swap is supported on 'int'.
1031 2021-06-09  Richard Biener  <rguenther@suse.de>
1033         PR tree-optimization/100981
1034         * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
1036 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1038         * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
1039         unconditionally.
1040         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1041         Update.
1042         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1043         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
1045 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1047         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
1048         '-DACC_MEM_SHARED=0'.
1049         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
1050         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
1051         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
1052         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1053         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1054         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
1055         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1056         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1057         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1058         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1059         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
1060         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
1061         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
1062         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
1063         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
1064         'acc_device_radeon' testing.
1065         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
1066         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
1067         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
1068         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
1069         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1070         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1071         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
1072         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
1073         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
1074         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
1075         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
1076         for non-'openacc_nvidia_accel_selected'.
1077         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1078         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
1079         all implement this checking".
1080         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1081         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1082         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1083         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1084         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1086 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1088         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
1089         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
1091 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1093         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
1094         for 'acc_device_radeon'.
1096 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1098         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
1099         for non-'acc_device_nvidia'.
1101 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1103         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
1104         'acc_device_radeon' testing.
1105         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1106         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1107         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1109 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1111         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
1112         require 'openacc_nvidia_accel_selected'.  Fix up for
1113         'ACC_DEVICE_TYPE_radeon'.
1115 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1117         * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
1118         'openacc_nvidia_accel_selected'.
1119         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
1121 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1123         * testsuite/lib/libgomp.exp
1124         (check_effective_target_openacc_radeon_accel_selected):
1125         Streamline.
1127 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1129         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
1130         PR80547 workaround.
1132 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1134         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
1135         <acc_device_nvidia>: Update comment.
1137 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
1139         * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
1141 2021-05-27  Jakub Jelinek  <jakub@redhat.com>
1143         * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
1144         check_effective_target_openacc_cublas,
1145         check_effective_target_openacc_cudart): New.
1146         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
1147         target openacc_cublas.
1148         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
1149         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
1150         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
1151         target openacc_cuda.
1152         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
1153         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
1154         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
1155         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
1156         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
1157         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
1158         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
1159         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
1160         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
1161         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
1162         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
1163         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1164         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
1165         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
1166         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
1167         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
1168         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
1169         targets openacc_cublas and openacc_cudart.
1170         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
1171         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
1172         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
1173         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
1174         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
1175         Require effective target openacc_cudart.
1176         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
1177         for effective target openacc_cuda and add && defined USE_CUDA_H to
1178         preprocessor conditionals.  Guard -lcuda also on openacc_cuda
1179         effective target.
1181 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
1183         PR libgomp/100573
1184         * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
1185         GOMP_target_end_data, GOMP_target_update_ext,
1186         GOMP_target_enter_exit_data): New dummy entrypoints.
1187         * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
1188         GOMP_target_end_data, GOMP_target_update_ext,
1189         GOMP_target_enter_exit_data): Likewise.
1190         * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
1191         OMPFROM, OMPTO): Define.
1192         (main): Remove #pragma omp target teams around all the tests.
1193         * testsuite/libgomp.c-c++-common/target-41.c: New test.
1194         * testsuite/libgomp.c-c++-common/target-42.c: New test.
1196 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
1198         PR middle-end/99928
1199         * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
1201 2021-05-24  Tobias Burnus  <tobias@codesourcery.com>
1203         PR fortran/86470
1204         * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
1205         * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
1206         * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
1208 2021-05-22  Thomas Schwinge  <thomas@codesourcery.com>
1210         PR testsuite/90115
1211         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
1212         uninteresting/varying diagnostics.
1214 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
1216         PR middle-end/90115
1217         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
1218         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1220 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
1222         PR middle-end/90115
1223         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
1224         file.
1225         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
1226         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
1227         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1228         Likewise.
1229         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1230         Likewise.
1231         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1232         Likewise.
1233         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1234         Likewise.
1235         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1236         Likewise.
1237         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1238         Likewise.
1239         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1240         Likewise.
1241         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1242         Likewise.
1243         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1244         Likewise.
1245         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1246         Likewise.
1247         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1248         Likewise.
1249         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1250         Likewise.
1251         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1252         Likewise.
1253         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1254         Likewise.
1255         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1256         Likewise.
1257         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1258         Likewise.
1259         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1260         Likewise.
1261         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1262         Likewise.
1263         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1264         Likewise.
1265         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1266         Likewise.
1267         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1268         Likewise.
1269         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
1270         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
1271         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
1272         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
1273         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
1274         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
1275         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
1276         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
1277         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1278         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1279         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
1280         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
1281         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1282         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
1283         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1284         Likewise.
1285         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
1286         Likewise.
1287         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
1288         Likewise.
1289         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1290         Likewise.
1291         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
1292         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
1293         Likewise.
1294         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1295         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1296         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1297         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
1298         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
1299         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1300         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1301         Likewise.
1302         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1303         Likewise.
1304         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1305         Likewise.
1306         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1307         Likewise.
1308         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1309         Likewise.
1310         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1311         Likewise.
1312         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1313         Likewise.
1314         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1315         Likewise.
1316         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1317         Likewise.
1318         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1319         Likewise.
1320         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1321         Likewise.
1322         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1323         Likewise.
1324         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1325         Likewise.
1326         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1327         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1328         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
1329         Likewise.
1330         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
1331         Likewise.
1332         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1333         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1334         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1336 2021-05-21  Julian Brown  <julian@codesourcery.com>
1337             Chung-Lin Tang  <cltang@codesourcery.com>
1338             Thomas Schwinge  <thomas@codesourcery.com>
1340         PR middle-end/90115
1341         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
1342         test.
1343         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
1344         Likewise.
1345         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
1346         Likewise.
1348 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
1350         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
1351         for nvptx offloading.
1353 2021-05-21  Tobias Burnus  <tobias@codesourcery.com>
1355         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
1357 2021-05-19  Thomas Schwinge  <thomas@codesourcery.com>
1359         PR target/83812
1360         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
1362 2021-05-19  Julian Brown  <julian@codesourcery.com>
1364         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
1366 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
1368         * testsuite/lib/libgomp.exp
1369         (check_effective_target_offload_target_nvptx): Don't shadow global
1370         'offload_targets' variable.
1372 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
1374         * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
1375         '-latomic' to nvptx offloading compilation.
1376         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1378 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
1380         * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
1381         offloading compilation.
1383 2021-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
1385         * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
1386         if new tasks generated.
1387         * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
1389 2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
1391         * testsuite/libgomp.fortran/parallel-master.f90: New test.
1393 2021-05-13  Martin Liska  <mliska@suse.cz>
1395         PR testsuite/100569
1396         * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
1397         * testsuite/libgomp.c/pr46032-2.c: Likewise.
1398         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
1399         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
1401 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
1403         * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
1404         * testsuite/libgomp.fortran/task-detach-12.f90: New test.
1406 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
1408         PR middle-end/100471
1409         * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
1410         GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
1411         reduction pointer.
1412         * testsuite/libgomp.c/task-reduction-4.c: New test.
1414 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
1415             Tom de Vries  <tdevries@suse.de>
1417         * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
1418         complex/floating-point || + && reduction with 'omp target'.
1419         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1421 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
1423         * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
1424         * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
1425         * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
1426         * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
1428 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
1430         PR testsuite/100397
1431         * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
1432         declaration to scope of non-'depend'-guarded assignment to avoid races.
1434 2021-05-03  Tom de Vries  <tdevries@suse.de>
1436         PR target/100321
1437         * testsuite/libgomp.c/target-44.c: New test.
1439 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
1441         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
1443 2021-04-29  Tom de Vries  <tdevries@suse.de>
1445         * testsuite/libgomp.c/pr81778.c: New test.
1447 2021-04-29  Tom de Vries  <tdevries@suse.de>
1449         PR target/100232
1450         * testsuite/libgomp.c/target-43.c: New file.
1452 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
1453             Tobias Burnus  <tobias@codesourcery.com>
1455         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
1456         * target.c (gomp_load_plugin_for_device): If set and if a plugin
1457         can't be dlopened, silently assume it has no devices.
1458         * Makefile.in: Regenerate.
1459         * config.h.in: Regenerate.
1460         * configure: Regenerate.
1462 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
1464         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1465         Use [Ww]arning in dg-bogus as FE diagnostic and default
1466         diagnostic differ and the result depends on ENABLE_OFFLOAD.
1467         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1468         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1469         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1471 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
1473         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1474         Correct spelling in dg-bogus to match -Wopenacc-parallelism.
1475         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1476         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1477         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1479 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
1480             Nathan Sidwell  <nathan@codesourcery.com>
1481             Tom de Vries  <vries@codesourcery.com>
1482             Julian Brown  <julian@codesourcery.com>
1483             Kwok Cheung Yeung  <kcy@codesourcery.com>
1485         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
1486         '-Wopenacc-parallelism', and match diagnostics, as appropriate.
1487         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
1488         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1489         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1490         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1491         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
1492         Likewise.
1493         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
1494         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1495         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1496         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1497         Likewise.
1498         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
1499         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1500         Likewise.
1501         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1502         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
1503         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
1504         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
1505         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
1506         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
1507         Likewise.
1508         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1509         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
1510         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1511         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1512         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1513         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
1514         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1515         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1516         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1517         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1518         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1520 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
1522         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
1523         compile with '-w'.
1524         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1525         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1526         Likewise.
1527         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1528         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
1529         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1530         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1531         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1532         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1533         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
1535 2021-04-22  Richard Biener  <rguenther@suse.de>
1537         * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
1538         only on nvptx-none.
1540 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
1542         * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
1543         omp_depend_kind instead of defining it as 16.
1545 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
1547         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
1548         New, based on check_effective_target_offload_target_nvptx.
1549         (check_effective_target_offload_target_nvptx): Call it.
1550         (check_effective_target_offload_target_amdgcn): New.
1551         * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
1552         Require target offload_target_nvptx || offload_target_amdgcn.
1553         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
1554         * testsuite/libgomp.c/pr86416-1.c: Likewise.
1555         * testsuite/libgomp.c/pr86416-2.c: Likewise.
1557 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
1559         * testsuite/libgomp.fortran/depobj-1.f90: New test.
1561 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
1563         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1564         '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
1565         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1566         Likewise.
1567         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1568         Likewise.
1569         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1571 2021-04-15  Thomas Schwinge  <thomas@codesourcery.com>
1573         PR target/99555
1574         * testsuite/lib/libgomp.exp
1575         (check_effective_target_offload_device_nvptx): New.
1576         * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
1577         resolved, make sure that we exit quickly, with error status,
1578         XFAILed.
1579         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
1580         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1582 2021-04-14  Jakub Jelinek  <jakub@redhat.com>
1584         PR testsuite/100071
1585         * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
1586         cp = omp_alloc with cp, p arguments instead of cq, q and call
1587         c_f_pointer after last cq = omp_alloc with cq, q.
1589 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
1591         PR middle-end/98088
1592         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
1593         for loop with GT/GE condition.
1594         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
1596 2021-04-09  Thomas Schwinge  <thomas@codesourcery.com>
1598         PR middle-end/84991
1599         PR middle-end/84992
1600         PR middle-end/90779
1601         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
1603 2021-04-09  Jakub Jelinek  <jakub@redhat.com>
1605         PR libgomp/99984
1606         * team.c (gomp_thread_start): Call pthread_setspecific for
1607         !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
1608         has been initialized to avoid false positive warning.
1610 2021-03-29  Tobias Burnus  <tobias@codesourcery.com>
1612         PR target/99555
1613         * testsuite/lib/on_device_arch.c: Move to ...
1614         * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
1615         * testsuite/libgomp.fortran/on_device_arch.c: New file;
1616         #include on_device_arch.h.
1617         * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
1618         on_device_arch.h instead of using dg-additional-source.
1619         * testsuite/libgomp.c/pr99555-1.c: Likewise.
1620         * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
1621         on_device_arch.c without relative paths.
1623 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
1625         * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
1626         the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
1627         * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
1628         * config.h.in: Regenerate.
1629         * configure: Likewise.
1631 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
1633         PR target/99555
1634         * testsuite/lib/on_device_arch.c: New file.
1635         * testsuite/libgomp.c/pr99555-1.c: Likewise.
1636         * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
1637         skip for nvptx offloading, with error status.
1638         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1640 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
1642         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
1643         OpenACC 'serial' construct diagnostic for nvptx offloading.
1645 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
1647         PR c++/99509
1648         * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
1650 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
1652         PR fortran/98858
1653         * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
1655 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
1657         * configure.ac: Add AC_CHECK_SIZEOF([void *]).
1658         * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
1659         checking of -m32 or -mx32 options on the command line.
1660         * config.h.in: Regenerated.
1661         * configure: Regenerated.
1663 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
1665         * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
1666         support from the target.
1668 2021-02-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
1669             Jakub Jelinek  <jakub@redhat.com>
1671         PR libgomp/98738
1672         * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
1673         (struct gomp_task): Replace detach and completion_sem fields with
1674         union containing completion_sem and detach_team.  Add deferred_p
1675         field.
1676         (struct gomp_team): Remove task_detach_queue.
1677         * task.c: Include assert.h.
1678         (gomp_init_task): Initialize deferred_p and completion_sem fields.
1679         Rearrange initialization order of fields.
1680         (task_fulfilled_p): Delete.
1681         (GOMP_task): Use address of task as the event handle.  Remove
1682         initialization of detach field.  Initialize deferred_p field.
1683         Use automatic local for completion_sem.  Initialize detach_team field
1684         for deferred tasks.
1685         (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
1686         Set kind of suspended detach task to GOMP_TASK_DETACHED and
1687         decrement task_running_count.  Move finish_cancelled block out of
1688         else branch.  Relocate call to gomp_team_barrier_done.
1689         (GOMP_taskwait): Handle tasks with completion events that have not
1690         been fulfilled.
1691         (GOMP_taskgroup_end): Likewise.
1692         (omp_fulfill_event): Use address of task as event handle.  Post to
1693         completion_sem for undeferred tasks.  Clear detach_team if task
1694         has not finished.  For finished tasks, handle post-execution tasks,
1695         call gomp_team_barrier_wake if necessary, and free task.
1696         * team.c (gomp_new_team): Remove initialization of task_detach_queue.
1697         (free_team): Remove free of task_detach_queue.
1698         * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
1699         * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
1700         * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
1701         * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
1702         * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
1703         Change data-sharing of detach events on enclosing parallel to private.
1704         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.  Remove
1705         taskwait directive.
1706         * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
1707         * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
1708         * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
1709         * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
1710         * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
1711         * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
1712         * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
1713         * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
1714         * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
1715         * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
1716         Change data-sharing of detach events on enclosing parallel to private.
1717         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.  Remove
1718         taskwait directive.
1719         * testsuite/libgomp.fortran/task-detach-7.f90: New.
1720         * testsuite/libgomp.fortran/task-detach-8.f90: New.
1721         * testsuite/libgomp.fortran/task-detach-9.f90: New.
1722         * testsuite/libgomp.fortran/task-detach-10.f90: New.
1723         * testsuite/libgomp.fortran/task-detach-11.f90: New.
1725 2021-02-22  Tobias Burnus  <tobias@codesourcery.com>
1727         PR fortran/99171
1728         * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
1730 2021-02-17  Julian Brown  <julian@codesourcery.com>
1732         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
1733         expected errors.
1735 2021-02-17  Julian Brown  <julian@codesourcery.com>
1737         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
1738         * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
1740 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1742         * config/linux/x86/futex.h (__futex_wait):
1743         Revert output type back to long.
1744         (__futex_wake): Ditto.
1745         (futex_wait): Update for revert.
1746         (futex_wake): Ditto.
1748 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1750         * config/linux/x86/futex.h (__futex_wait): New static inline
1751         wrapper function.  Correct output type to int and
1752         timeout type to void *.
1753         (__futex_wake): New static inline wrapper function.
1754         Correct output type to int.
1755         (futex_wait): Use __futex_wait.
1756         (futex_wake): Use __futex_wake.
1758 2021-02-10  Julian Brown  <julian@codesourcery.com>
1760         PR fortran/98979
1761         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
1762         errors.
1764 2021-02-04  Julian Brown  <julian@codesourcery.com>
1766         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
1768 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
1770         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
1771         EF_AMDGPU_MACH_AMDGCN_GFX908.
1772         (gcn_gfx908_s): New constant string.
1773         (isa_hsa_name): Add gfx908.
1774         (isa_code): Add gfx908.
1776 2021-01-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
1778         * libgomp.texi (omp_fulfill_event): New entry.
1780 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
1782         * task.c (GOMP_task): Rename priority argument to priority_arg,
1783         add priority automatic variable and modify that variable.  Instead of
1784         clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
1785         check flags for that bit.
1787 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
1789         PR fortran/98476
1790         * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
1792 2021-01-18  Andreas Schwab  <schwab@suse.de>
1794         * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
1796 2021-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1798         * config/rtems/sem.h (gomp_sem_getcount): New function.
1800 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
1802         * config/linux/sem.h (gomp_sem_getcount): New function.
1803         * config/posix/sem.h (gomp_sem_getcount): New function.
1804         * config/posix/sem.c (gomp_sem_getcount): New function.
1805         * config/accel/sem.h (gomp_sem_getcount): New function.
1806         * task.c (task_fulfilled_p): Use gomp_sem_getcount.
1807         (omp_fulfill_event): Likewise.
1809 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
1811         * fortran.c (omp_fulfill_event_): New.
1812         * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
1813         (struct gomp_team): Add task_detach_queue and task_detach_count
1814         fields.
1815         * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
1816         * libgomp_g.h (GOMP_task): Add extra argument.
1817         * omp.h.in (enum omp_event_handle_t): New.
1818         (omp_fulfill_event): New.
1819         * omp_lib.f90.in (omp_event_handle_kind): New.
1820         (omp_fulfill_event): New.
1821         * omp_lib.h.in (omp_event_handle_kind): New.
1822         (omp_fulfill_event): Declare.
1823         * priority_queue.c (priority_tree_find): New.
1824         (priority_list_find): New.
1825         (priority_queue_find): New.
1826         * priority_queue.h (priority_queue_predicate): New.
1827         (priority_queue_find): New.
1828         * task.c (gomp_init_task): Initialize detach field.
1829         (task_fulfilled_p): New.
1830         (GOMP_task): Add detach argument.  Ignore detach argument if
1831         GOMP_TASK_FLAG_DETACH not set in flags.  Initialize completion_sem
1832         field.  Copy address of completion_sem into detach argument and
1833         into the start of the data record.  Wait for detach event if task
1834         not deferred.
1835         (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
1836         Remove completed tasks and requeue dependent tasks.
1837         (omp_fulfill_event): New.
1838         * team.c (gomp_new_team): Initialize task_detach_queue and
1839         task_detach_count fields.
1840         (free_team): Free task_detach_queue field.
1841         * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
1842         * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
1843         * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
1844         * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
1845         * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
1846         * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
1847         * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
1848         * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
1849         * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
1850         * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
1851         * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
1852         * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
1854 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
1856         PR target/70454
1857         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
1858         be added through preprocessor check on
1859         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
1861 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
1863         PR libgomp/65099
1864         * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
1865         configurations.
1866         * configure: Regenerate.
1867         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
1868         check.
1870 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1872         * configure: Re-generate.
1874 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1876         * configure: Re-generate.
1878 2021-01-05  Julian Brown  <julian@codesourcery.com>
1880         * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
1881         (struct ptx_device): Add omp_stacks struct.
1882         (nvptx_open_device): Initialise cached-stacks housekeeping info.
1883         (nvptx_close_device): Free cached stacks block and mutex.
1884         (nvptx_stacks_free): New function.
1885         (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
1886         (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
1887         (nvptx_stacks_alloc): Rename to...
1888         (nvptx_stacks_acquire): This.  Cache stacks block between runs if same
1889         size or smaller is required.
1890         (nvptx_stacks_free): Remove.
1891         (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
1892         during kernel execution.
1894 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
1896         * libgomp.texi: Bump @copying's copyright year.
1898 2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
1900         * libgomp.texi (Top): Avoid bad "up" link.
1902 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
1904         * testsuite/libgomp.c/task-6.c: New test.
1906 2020-12-09  Andrew Stubbs  <ams@codesourcery.com>
1908         * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
1909         (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
1911 2020-12-08  Tobias Burnus  <tobias@codesourcery.com>
1913         * testsuite/libgomp.fortran/scan-1.f90: New test.
1915 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
1917         PR target/97865
1918         * configure: Regenerate.
1920 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
1922         * configure: Regenerate.
1924 2020-11-25  Thomas Schwinge  <thomas@codesourcery.com>
1926         * testsuite/libgomp.oacc-c++/cache-1.C: New.
1927         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
1929 2020-11-25  Andrew Stubbs  <ams@codesourcery.com>
1931         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
1932         expected results.
1934 2020-11-24  Andrew Stubbs  <ams@codesourcery.com>
1936         * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
1937         (reserved): Delete unused define.
1939 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
1941         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
1942         Tcl 8.5-specific behavior.
1943         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1945 2020-11-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
1947         * env.c (gomp_global_icv): Remove nest_var field.  Add
1948         max_active_levels_var field.
1949         (gomp_max_active_levels_var): Remove.
1950         (parse_boolean): Return true on success.
1951         (handle_omp_display_env): Express OMP_NESTED in terms of
1952         max_active_levels_var.  Change format specifier for
1953         max_active_levels_var.
1954         (initialize_env): Set max_active_levels_var from
1955         OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
1956         OMP_PROC_BIND.
1957         * icv.c (omp_set_nested): Express in terms of
1958         max_active_levels_var.
1959         (omp_get_nested): Likewise.
1960         (omp_set_max_active_levels): Use max_active_levels_var field instead
1961         of gomp_max_active_levels_var.
1962         (omp_get_max_active_levels): Likewise.
1963         * libgomp.h (struct gomp_task_icv): Remove nest_var field.  Add
1964         max_active_levels_var field.
1965         (gomp_supported_active_levels): Set to UCHAR_MAX.
1966         (gomp_max_active_levels_var): Delete.
1967         * libgomp.texi (omp_get_nested): Update documentation.
1968         (omp_set_nested): Likewise.
1969         (OMP_MAX_ACTIVE_LEVELS): Likewise.
1970         (OMP_NESTED): Likewise.
1971         (OMP_NUM_THREADS): Likewise.
1972         (OMP_PROC_BIND): Likewise.
1973         * parallel.c (gomp_resolve_num_threads): Replace reference
1974         to nest_var with max_active_levels_var.  Use max_active_levels_var
1975         field instead of gomp_max_active_levels_var.
1977 2020-11-18  Tobias Burnus  <tobias@codesourcery.com>
1979         * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
1980         nvptx_usleep; use also for device={arch(gcn)}.
1982 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
1984         * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
1985         (foo): Add tests for non-VLA private and firstprivate clauses on
1986         omp task.
1987         (bar): Likewise.  Remove taking of address from private/firstprivate
1988         variables.
1989         * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
1990         (foo): Add p, q, px and s arguments.  Add tests for array reductions
1991         and for non-VLA private and firstprivate clauses on omp task.
1992         (bar): Removed.
1993         (main): Adjust foo caller.  Don't call bar.
1995 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
1996             Thomas Schwinge  <thomas@codesourcery.com>
1998         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1999         New.
2000         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
2001         Likewise.
2002         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2003         Likewise.
2004         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
2005         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
2007 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
2008             Thomas Schwinge  <thomas@codesourcery.com>
2010         PR fortran/94358
2011         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
2013 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
2015         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
2016         for array reductions.
2017         (main): Adjust foo callers.
2019 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
2021         * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
2022         * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
2023         * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
2024         * allocator.c (omp_aligned_alloc): New for now static function,
2025         add alignment argument and handle it.
2026         (omp_alloc): Reimplement using omp_aligned_alloc.
2027         (GOMP_alloc, GOMP_free): New functions.
2028         (omp_free): Add ialias.
2029         * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
2030         * testsuite/libgomp.c++/allocate-1.C: New test.
2032 2020-11-12  Thomas Schwinge  <thomas@codesourcery.com>
2034         PR fortran/97782
2035         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
2037 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
2039         * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
2040         usable.
2041         * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
2042         'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
2043         (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
2044         (goacc_enter_data_internal): Likewise.
2045         * target.c (gomp_map_vars_internal):
2046         Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
2047         of gomp_attach_pointer for OpenMP cases.
2048         (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
2049         (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
2050         * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
2052 2020-11-05  Ulrich Drepper  <drepper@redhat.com>
2053             Kwok Cheung Yeung  <kcy@codesourcery.com>
2055         * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
2056         * Makefile.in: Regenerate.
2057         * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
2058         pragmas to ignore -Wdeprecated-declarations warnings.
2059         * icv.c: Likewise.
2060         * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
2061         Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
2062         and omp_get_nested with __GOMP_DEPRECATED_5_0.
2063         * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
2064         deprecated.
2065         * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
2066         to test options.
2067         * testsuite/libgomp.c/affinity-1.c: Likewise.
2068         * testsuite/libgomp.c/affinity-2.c: Likewise.
2069         * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
2070         * testsuite/libgomp.c/lib-1.c: Likewise.
2071         * testsuite/libgomp.c/nested-1.c: Likewise.
2072         * testsuite/libgomp.c/nested-2.c: Likewise.
2073         * testsuite/libgomp.c/nested-3.c: Likewise.
2074         * testsuite/libgomp.c/pr32362-1.c: Likewise.
2075         * testsuite/libgomp.c/pr32362-2.c: Likewise.
2076         * testsuite/libgomp.c/pr32362-3.c: Likewise.
2077         * testsuite/libgomp.c/pr35549.c: Likewise.
2078         * testsuite/libgomp.c/pr42942.c: Likewise.
2079         * testsuite/libgomp.c/pr61200.c: Likewise.
2080         * testsuite/libgomp.c/sort-1.c: Likewise.
2081         * testsuite/libgomp.c/target-5.c: Likewise.
2082         * testsuite/libgomp.c/target-6.c: Likewise.
2083         * testsuite/libgomp.c/teams-1.c: Likewise.
2084         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
2085         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
2086         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
2087         * testsuite/libgomp.fortran/affinity1.f90: Likewise.
2088         * testsuite/libgomp.fortran/lib1.f90: Likewise.
2089         * testsuite/libgomp.fortran/lib2.f: Likewise.
2090         * testsuite/libgomp.fortran/nested1.f90: Likewise.
2091         * testsuite/libgomp.fortran/teams1.f90: Likewise.
2093 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2095         PR target/85486
2096         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
2097         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
2098         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2100 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2102         PR testsuite/80219
2103         PR testsuite/85303
2104         * testsuite/lib/libgomp.exp (libgomp_init): Set
2105         'gcc_warning_prefix', 'gcc_error_prefix'.
2107 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
2109         * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
2110         even in field_tgt_clear initializer.
2112 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
2114         * testsuite/libgomp.c/target-42.c: New test.
2116 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
2117             Tom de Vries  <tdevries@suse.de>
2119         PR testsuite/81690
2120         * testsuite/libgomp.c/usleep.h: New file.
2121         * testsuite/libgomp.c/target-32.c: Include usleep.h.
2122         (main): Use tgt_usleep instead of usleep.
2123         * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
2124         (main): Use tgt_usleep instead of usleep.
2126 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
2128         PR lto/96680
2129         * testsuite/libgomp.c/declare-variant-1.c: New test.
2131 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
2133         * testsuite/libgomp.c/target-41.c: New test.
2135 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
2137         * icv.c (omp_get_initial_device): Remove including corresponding
2138         ialias.
2139         * icv-device.c (omp_get_initial_device): New function.  Return
2140         gomp_get_num_devices ().  Add ialias.
2141         * target.c (resolve_device): Don't fail with
2142         OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
2143         gomp_get_num_devices ().
2144         (omp_target_alloc, omp_target_free, omp_target_is_present,
2145         omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
2146         omp_target_disassociate_ptr, omp_pause_resource): Use
2147         gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
2148         first use in the functions, in uses dominated by the
2149         gomp_get_num_devices call use num_devices_openmp instead.
2150         * libgomp.texi (omp_get_initial_device): Document.
2151         * config/gcn/icv-device.c (omp_get_initial_device): New function.
2152         Add ialias.
2153         * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
2154         * testsuite/libgomp.c/target-40.c: New test.
2156 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
2158         * env.c (parse_target_offload): Change new_offload var type to int,
2159         preinitialize to -1, remove found var and test new_offload != -1
2160         instead of found.
2162 2020-10-20  Jakub Jelinek  <jakub@redhat.com>
2164         * target.c (gomp_target_init): Inside of the function, use automatic
2165         variables corresponding to num_devices, num_devices_openmp and devices
2166         global variables and update the globals only at the end of the
2167         function.
2169 2020-10-20  Kwok Cheung Yeung  <kcy@codesourcery.com>
2171         * env.c (gomp_target_offload_var): New.
2172         (parse_target_offload): New.
2173         (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
2174         (initialize_env): Parse OMP_TARGET_OFFLOAD.
2175         * libgomp.h (gomp_target_offload_t): New.
2176         (gomp_target_offload_var): New.
2177         * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
2178         * target.c (resolve_device): Generate error if device not found and
2179         offloading is mandatory.
2180         (gomp_target_fallback): Generate error if offloading is mandatory.
2181         (GOMP_target): Add argument in call to gomp_target_fallback.
2182         (GOMP_target_ext): Likewise.
2183         (gomp_target_data_fallback): Generate error if offloading is mandatory.
2184         (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
2185         (GOMP_target_data_ext): Likewise.
2186         (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
2187         (gomp_target_init): Return early if offloading is disabled.
2189 2020-10-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
2191         * libgomp.texi (omp_get_max_active_levels): Modify description.
2192         (omp_get_supported_active_levels): Make descriptions consistent.
2194 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
2196         * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
2198 2020-10-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
2200         * env.c (gomp_max_active_levels_var): Initialize to
2201         gomp_supported_active_levels.
2202         (initialize_env): Limit gomp_max_active_levels_var to be at most
2203         equal to gomp_supported_active_levels.
2204         * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
2205         (omp_get_supported_active_levels_): New.
2206         * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
2207         to at most equal to gomp_supported_active_levels.
2208         (omp_get_supported_active_levels): New.
2209         * libgomp.h (gomp_supported_active_levels): New.
2210         * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
2211         omp_get_supported_active_levels_.
2212         * libgomp.texi (omp_get_supported_active_levels): New.
2213         (omp_set_max_active_levels): Update.  Add reference to
2214         omp_get_supported_active_levels.
2215         * omp.h.in (omp_get_supported_active_levels): New.
2216         * omp_lib.f90.in (omp_get_supported_active_levels): New.
2217         * omp_lib.h.in (omp_get_supported_active_levels): New.
2218         * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
2219         against omp_get_supported_active_levels.
2220         * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
2222 2020-10-11  Clement Chigot  <clement.chigot@atos.net>
2224         * config/t-aix: Delete and recreate libgomp before creating
2225         FAT library.
2227 2020-10-08  Tom de Vries  <tdevries@suse.de>
2229         PR libgomp/81802
2230         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
2231         dimensions.
2233 2020-10-06  Tom de Vries  <tdevries@suse.de>
2235         * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
2237 2020-10-06  Tom de Vries  <tdevries@suse.de>
2239         PR middle-end/90861
2240         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
2242 2020-10-05  Tom de Vries  <tdevries@suse.de>
2244         PR fortran/95654
2245         * testsuite/libgomp.fortran/pr95654.f90: New test.
2247 2020-10-02  Tobias Burnus  <tobias@codesourcery.com>
2249         * Makefile.in: Regenerate with automake 1.15.1.
2250         * aclocal.m4: Likewise.
2251         * configure: Likewise.
2252         * testsuite/Makefile.in: Likewise.
2254 2020-09-30  Andrew Stubbs  <ams@codesourcery.com>
2256         * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
2257         and amdgcn targets.
2259 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
2261         * testsuite/libgomp.fortran/declare-target-3.f90: New test.
2263 2020-09-29  Andrew Stubbs  <ams@codesourcery.com>
2265         * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
2266         total number of threads is one.
2267         (gomp_team_barrier_wake): Likewise.
2268         (gomp_team_barrier_wait_end): Likewise.
2269         (gomp_team_barrier_wait_cancel_end): Likewise.
2270         * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
2271         (gomp_team_barrier_wake): Likewise.
2272         (gomp_team_barrier_wait_end): Likewise.
2273         (gomp_team_barrier_wait_cancel_end): Likewise.
2274         * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
2276 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
2278         PR middle-end/96390
2279         * testsuite/libgomp.c++/pr96390.C: New test.
2280         * testsuite/libgomp.c-c++-common/pr96390.c: New test.
2282 2020-09-27  Clement Chigot  <clement.chigot@atos.net>
2284         * config/t-aix: Use $(AR) without -X32_64.
2286 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
2288         * testsuite/libgomp.c/loop-25.c: New test.
2290 2020-09-22  Tobias Burnus  <tobias@codesourcery.com>
2292         PR fortran/95654
2293         * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
2295 2020-09-22  Tom de Vries  <tdevries@suse.de>
2297         * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
2298         fails.
2300 2020-09-16  Nathan Sidwell  <nathan@acm.org>
2302         * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
2304 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
2306         PR fortran/96668
2307         * target.c (gomp_map_vars_internal): Initialize has_nullptr.
2309 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
2311         PR fortran/96668
2312         * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
2313         * target.c (gomp_map_vars_existing): Add always_to_flag flag.
2314         (gomp_map_vars_existing): Update call to it.
2315         (gomp_map_fields_existing): Likewise
2316         (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
2317         now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
2318         remapped.
2319         (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
2320         GOMP_MAP_POINTER.
2321         * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
2322         * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
2324 2020-09-14  Tom de Vries  <tdevries@suse.de>
2326         * config/nvptx/atomic.c: New file.  Add
2327         __sync_val_compare_and_swap_16.
2328         * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
2329         target offload_target_nvptx.
2331 2020-09-08  Julian Brown  <julian@codesourcery.com>
2333         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
2334         iteration-ordering assumptions.
2336 2020-09-08  Julian Brown  <julian@codesourcery.com>
2338         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
2339         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2341 2020-08-20  Chung-Lin Tang  <cltang@codesourcery.com>
2343         * plugin/plugin-nvptx.c (nvptx_free):
2344         Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
2345         CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
2346         comments.
2348 2020-08-20  Tobias Burnus  <tobias@codesourcery.com>
2350         * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
2352 2020-08-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
2354         * testsuite/libgomp.c-c++-common/reduction-16.c: New.
2356 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
2358         * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
2359         * testsuite/libgomp.c/loop-23.c (main): Likewise.
2360         * testsuite/libgomp.c/loop-24.c: New test.
2362 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
2363             Tobias Burnus  <tobias@codesourcery.com>
2365         PR fortran/93553
2366         * testsuite/libgomp.fortran/pr93553.f90: New test.
2368 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
2370         * testsuite/libgomp.c/loop-22.c: New test.
2371         * testsuite/libgomp.c/loop-23.c: New test.
2373 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
2375         PR middle-end/96459
2376         * testsuite/libgomp.c/teams-3.c: New test.
2377         * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
2378         if not defined yet.
2379         (N(test)): Use it before all N(f*) calls.
2380         * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
2381         (main): Don't call all test_* functions from within
2382         #pragma omp teams reduction(|:err), call them directly.
2384 2020-08-04  Tom de Vries  <tdevries@suse.de>
2386         PR target/96428
2387         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
2388         * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
2390 2020-08-03  Julian Brown  <julian@codesourcery.com>
2391             Thomas Schwinge  <thomas@codesourcery.com>
2393         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
2394         shared-memory devices.  Extend with further checking.
2396 2020-08-03  Martin Jambor  <mjambor@suse.cz>
2398         * plugin/Makefrag.am: Remove configuration of HSA plugin.
2399         * aclocal.m4: Regenerated.
2400         * Makefile.in: Regenerated.
2401         * config.h.in: Regenerated.
2402         * configure: Regenerated.
2403         * plugin/configfrag.ac: Likewise.
2404         * plugin/hsa_ext_finalize.h: Removed.
2405         * plugin/plugin-hsa.c: Likewise.
2406         * testsuite/Makefile.in: Regenerated.
2407         * testsuite/lib/libgomp.exp
2408         (offload_target_to_openacc_device_type): Remove hsa case.
2409         (check_effective_target_hsa_offloading_selected_nocache): Removed
2410         (check_effective_target_hsa_offloading_selected): Likewise.
2411         (libgomp_init): Do not add -Wno-hsa to additional_flags.
2412         * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
2413         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
2414         * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
2415         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
2416         * testsuite/libgomp.hsa.c/c.exp: Likewise.
2417         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
2418         * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
2419         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
2420         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
2421         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
2422         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
2423         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
2424         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
2425         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
2426         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
2427         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
2428         * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
2429         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
2430         * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
2431         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
2432         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
2433         * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
2434         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
2435         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
2437 2020-07-27  Julian Brown  <julian@codesourcery.com>
2438             Thomas Schwinge  <thomas@codesourcery.com>
2440         * libgomp.h (struct target_var_desc): Rename do_detach field to
2441         is_attach.
2442         * oacc-mem.c (goacc_exit_datum_1): Add assert.  Don't set finalize for
2443         GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
2444         (goacc_enter_data_internal): Don't affect reference counts
2445         for attach mappings.
2446         (goacc_exit_data_internal): Don't affect reference counts for detach
2447         mappings.
2448         * target.c (gomp_map_vars_existing): Don't affect reference counts for
2449         attach mappings.
2450         (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
2451         mark attach mappings.
2452         (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
2453         reference count for attach mappings.
2454         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
2455         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2456         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2457         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
2458         test as shouldfail.
2459         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
2460         gracefully in no-finalize mode.
2461         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
2463 2020-07-24  Thomas Schwinge  <thomas@codesourcery.com>
2465         * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
2466         use.
2467         * testsuite/libgomp.oacc-c/c.exp: Likewise.
2468         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2470 2020-07-23  Julian Brown  <julian@codesourcery.com>
2471             Thomas Schwinge  <thomas@codesourcery.com>
2473         * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
2474         finalization for detach operation.
2475         * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
2476         New test.
2478 2020-07-23  Tobias Burnus  <tobias@codesourcery.com>
2480         * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
2481         * libgomp_f.h.in (omp_check_defines): Check whether
2482         sizeof of determined Fortran kind and C typedef match.
2483         * omp_lib.f90.in: Add omp_depened_kind.
2484         * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
2485         * configure: Regenerate.
2486         * Makefile.in: Regenerate.
2487         * testsuite/Makefile.in: Regenerate.
2489 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
2491         * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
2492         gcc/testsuite/c-c++-common/gomp/.
2493         * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
2494         * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
2495         from gcc/testsuite/gfortran.dg/gomp/.
2496         * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
2498 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
2500         * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
2501         * omp_lib.h.in: Likewise.
2503 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
2505         PR target/95620
2506         * testsuite/libgomp.c/pr95620.c: New test.
2508 2020-07-16  Julian Brown  <julian@codesourcery.com>
2509             Thomas Schwinge  <thomas@codesourcery.com>
2511         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
2512         * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
2514 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
2516         * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
2517         avoid conversion on 32bit systems from 32bit to 64bit due
2518         to -fdefault-integer-8.
2520 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
2522         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
2523         variables; add character(kind=4) tests; update TODO comment.
2525 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
2527         * allocator.c: Add ialias for omp_init_allocator and
2528         omp_destroy_allocator.
2529         * configure.ac: Set INTPTR_T_KIND.
2530         * configure: Regenerate.
2531         * Makefile.in: Regenerate.
2532         * testsuite/Makefile.in: Regenerate.
2533         * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
2534         omp_set_default_allocator_, omp_get_default_allocator_): New
2535         functions and ialias_redirect.
2536         * icv.c: Add ialias for omp_set_default_allocator and
2537         omp_get_default_allocator.
2538         * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
2539         omp_destroy_allocator_, omp_set_default_allocator_ and
2540         omp_get_default_allocator_.
2541         * omp_lib.f90.in: Add allocator traits parameters, declare
2542         allocator routines and add related kind parameters.
2543         * omp_lib.h.in: Likewise.
2544         * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
2545         * testsuite/libgomp.fortran/alloc-1.F90: New test.
2546         * testsuite/libgomp.fortran/alloc-2.F90: New test.
2547         * testsuite/libgomp.fortran/alloc-3.F: New test.
2548         * testsuite/libgomp.fortran/alloc-4.f90: New test.
2549         * testsuite/libgomp.fortran/alloc-5.f90: New test.
2551 2020-07-14  Tom de Vries  <tom@codesourcery.com>
2552             Cesar Philippidis  <cesar@codesourcery.com>
2553             Thomas Schwinge  <thomas@codesourcery.com>
2554             Kwok Cheung Yeung  <kcy@codesourcery.com>
2556         * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
2557         New variable.
2558         (acc_init_1): Set acc_init_thread to pthread_self ().  Set
2559         acc_init_state to initializing at the start, and to initialized at the
2560         end.
2561         (self_initializing_p): New function.
2562         (acc_get_device_type): Return acc_device_none if called by thread that
2563         is currently executing acc_init_1.
2564         * libgomp.texi (acc_get_device_type): Update documentation.
2565         (Implementation Status and Implementation-Defined Behavior): Likewise.
2566         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
2568 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
2570         * config/t-aix: Set BITS from compiler cpp macro.
2572 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
2574         * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
2576 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
2578         PR fortran/67311
2579         * testsuite/libgomp.fortran/target-map-1.f90: New test.
2581 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
2583         * testsuite/libgomp.c/loop-21.c: New test.
2585 2020-07-13  Julian Brown  <julian@codesourcery.com>
2586             Thomas Schwinge  <thomas@codesourcery.com>
2588         * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
2590 2020-07-10  Julian Brown  <julian@codesourcery.com>
2591             Thomas Schwinge  <thomas@codesourcery.com>
2593         * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
2594         dynamic_refcount.
2595         (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
2596         * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
2597         dynamic_refcount.
2598         (acc_unmap_data): Update comment.
2599         (goacc_map_var_existing, goacc_enter_datum): Adjust for
2600         dynamic_refcount semantics.
2601         (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
2602         Adjust for dynamic_refcount semantics.
2603         (goacc_enter_data_internal): Implement "present" case of dynamic
2604         memory-map handling here.  Update "non-present" case for
2605         dynamic_refcount semantics.
2606         (goacc_exit_data_internal): Use goacc_exit_datum_1.
2607         * target.c (gomp_map_vars_internal): Remove
2608         GOMP_MAP_VARS_OPENACC_ENTER_DATA handling.  Update for dynamic_refcount
2609         handling.
2610         (gomp_unmap_vars_internal): Remove virtual_refcount handling.
2611         (gomp_load_image_to_device): Substitute dynamic_refcount for
2612         virtual_refcount.
2613         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
2614         * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
2615         * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
2616         * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
2617         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
2618         trace output.
2619         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
2620         trace output.
2621         * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
2622         test.
2623         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
2624         Remove stale comment.
2625         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
2626         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
2627         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2628         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2629         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2630         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
2632 2020-07-10  Julian Brown  <julian@codesourcery.com>
2633             Thomas Schwinge  <thomas@codesourcery.com>
2635         * oacc-mem.c (goacc_map_var_existing): New function.
2636         (goacc_enter_datum): Use above function.
2637         (goacc_exit_datum_1): New function.
2638         (goacc_exit_datum): Use above function.
2640 2020-07-09  Julian Brown  <julian@codesourcery.com>
2641             Thomas Schwinge  <thomas@codesourcery.com>
2643         PR middle-end/95270
2644         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
2645         * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
2647 2020-07-09  Julian Brown  <julian@codesourcery.com>
2649         * oacc-mem.c (find_group_last): Group data-movement clauses
2650         (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
2651         GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
2653 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
2655         * testsuite/libgomp.c/loop-19.c: New test.
2656         * testsuite/libgomp.c/loop-20.c: New test.
2658 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
2660         * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
2661         2 to -1.  Add omp_atv_serialized and define omp_atv_sequential using
2662         it.  Remove __omp_alloctrait_value_max__.
2663         * allocator.c (omp_init_allocator): Handle omp_atv_default for
2664         omp_atk_alignment and omp_atk_pool_size.
2666 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
2668         * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
2669         behavior for 'GOMP_MAP_FORCE_FROM'.
2670         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
2672 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
2674         * oacc-mem.c (goacc_exit_data_internal): Remove
2675         'GOMP_MAP_ALWAYS_FROM' handling.
2677 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
2679         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
2680         'scan-assembler' with 'scan-offload-rtl'.
2681         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
2682         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
2683         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
2684         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
2686 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
2688         * target.c (gomp_map_vars_existing): Assert 'kind !=
2689         GOMP_MAP_ATTACH'.
2690         (gomp_map_vars_internal): Clean up.
2692 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
2694         * testsuite/libgomp.c/loop-17.c: New test.
2695         * testsuite/libgomp.c/loop-18.c: New test.
2697 2020-06-26  Marek Polacek  <polacek@redhat.com>
2699         * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
2701 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
2703         * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
2704         * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
2706 2020-06-22  David Edelsohn  <dje.gcc@gmail.com>
2708         * Makefile.am: Use -include.
2709         * Makefile.in: Regenerate.
2711 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
2713         * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
2714         * Makefile.in: Regenerate
2715         * configure.ac (tmake_file): Substitute.
2716         * configure: Regenerate.
2717         * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
2718         * config/t-aix: New file.
2720 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
2722         PR lto/94848
2723         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
2724         'dg-do run'.
2726 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
2728         * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
2729         variant for HSA_RUNTIME_LIB name.
2730         (find_executable_symbol_1): Delete.
2731         (find_executable_symbol): Delete.
2732         (init_kernel_properties): Add ".kd" suffix to symbol names.
2733         (find_load_offset): Delete.
2734         (create_and_finalize_hsa_program): Remove relocation handling.
2736 2020-06-16  Tobias Burnus  <tobias@codesourcery.com>
2738         * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
2740 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
2742         PR lto/94848
2743         PR middle-end/95551
2744         * testsuite/libgomp.fortran/target-var.f90: New test.
2746 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
2747             Julian Brown  <julian@codesourcery.com>
2749         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
2750         special handling.
2752 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
2753             Julian Brown  <julian@codesourcery.com>
2755         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2756         Simplify.
2758 2020-06-05  Julian Brown  <julian@codesourcery.com>
2760         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
2761         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
2763 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2765         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2766         Evaluate 'copyfrom' individually for each entry.
2767         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
2769 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2771         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2772         Evaluate 'finalize' individually for each entry.
2773         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
2774         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
2775         file.
2777 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2779         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
2780         usage.
2781         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
2783 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2784             Julian Brown  <julian@codesourcery.com>
2786         * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
2787         checking.
2788         (acc_unmap_data, goacc_exit_data_internal): Restore
2789         'is_tgt_unmapped' checking.
2790         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
2791         file.
2792         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
2793         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
2794         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2795         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2796         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2797         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
2799 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2800             Julian Brown  <julian@codesourcery.com>
2802         * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
2804 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2806         PR libgomp/92854
2807         * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
2809 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2811         PR libgomp/92854
2812         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
2813         more.
2815 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2816             Julian Brown  <julian@codesourcery.com>
2818         * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
2819         'gomp_map_vars'.
2820          (acc_map_data): Clean up accordingly.
2822 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2824         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
2825         of over-eager 'finalize' clause.
2826         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
2827         file.
2828         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
2829         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
2830         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2831         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2832         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2833         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
2834         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
2835         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
2837 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2839         * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
2841 2020-06-04  Julian Brown  <julian@codesourcery.com>
2843         * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
2844         error path.
2845         (goacc_detach_internal): Likewise.
2847 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2849         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
2850         the checkpoint.
2851         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
2852         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
2853         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
2854         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
2855         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
2857 2020-06-02  Jakub Jelinek  <jakub@redhat.com>
2859         * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
2860         defined.
2862 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
2864         * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
2866 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
2868         * allocator.c (omp_alloc): For size == 0, return NULL early.
2870 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
2872         PR bootstrap/95413
2873         * configure: Regenerated.
2875 2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
2877         PR libfortran/95191
2878         * testsuite/libgomp.fortran/async_io_9.f90: New test.
2880 2020-05-19  Jakub Jelinek  <jakub@redhat.com>
2882         * omp.h.in (omp_uintptr_t): New typedef.
2883         (__GOMP_UINTPTR_T_ENUM): Define.
2884         (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
2885         omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
2886         (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
2887         (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
2888         omp_get_default_allocator, omp_alloc, omp_free): Declare.
2889         * libgomp.h (struct gomp_team_state): Add def_allocator field.
2890         (gomp_def_allocator): Declare.
2891         * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
2892         omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
2893         omp_alloc and omp_free.
2894         * team.c (gomp_team_start): Copy over ts.def_allocator.
2895         * env.c (gomp_def_allocator): New variable.
2896         (parse_wait_policy): Adjust function comment.
2897         (parse_allocator): New function.
2898         (handle_omp_display_env): Print OMP_ALLOCATOR.
2899         (initialize_env): Call parse_allocator.
2900         * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
2901         * allocator.c: New file.
2902         * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
2903         functions.
2904         * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
2905         * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
2906         * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
2907         * Makefile.in: Regenerated.
2909 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2911         PR bootstrap/95147
2912         * configure: Regenerated.
2914 2020-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
2916         PR libfortran/95119
2917         * testsuite/libgomp.fortran/close_errors_1.f90: New test.
2919 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2921         * configure: Regenerated.
2923 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
2925         * testsuite/libgomp.c-c++-common/target-40.c: New test.
2927 2020-05-13  Tobias Burnus  <tobias@codesourcery.com>
2929         PR fortran/94690
2930         * testsuite/libgomp.fortran/pr66199-3.f90: New.
2931         * testsuite/libgomp.fortran/pr66199-4.f90: New.
2932         * testsuite/libgomp.fortran/pr66199-5.f90: New.
2933         * testsuite/libgomp.fortran/pr66199-6.f90: New.
2934         * testsuite/libgomp.fortran/pr66199-7.f90: New.
2935         * testsuite/libgomp.fortran/pr66199-8.f90: New.
2936         * testsuite/libgomp.fortran/pr66199-9.f90: New.
2938 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
2940         * testsuite/libgomp.c/target-39.c: New test.
2942 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
2944         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
2945         * openacc.f90 (acc_device_current): Likewise.
2946         * openacc.h (acc_device_current): Likewise.
2947         * openacc_lib.h (acc_device_current): Likewise.
2949         PR target/94282
2950         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
2951         'dg-allow-blank-lines-in-output'.
2953         * oacc-init.c (get_openacc_name): Handle 'gcn'.
2954         * testsuite/lib/libgomp.exp
2955         (offload_target_to_openacc_device_type) [amdgcn*]: Return
2956         'radeon'.  Adjust all users.
2957         (check_effective_target_openacc_amdgcn_accel_present): Rename
2958         to...
2959         (check_effective_target_openacc_radeon_accel_present): ... this.
2960         Adjust all users.
2961         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
2962         (check_effective_target_openacc_radeon_accel_selected): ... this.
2963         Adjust all users.
2965         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
2966         'dg-do run'.
2968 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
2970         PR other/94629
2972         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
2973         hsa_iterate_agents.
2974         (GOMP_OFFLOAD_init_device): Check return values from both calls to
2975         hsa_agent_iterate_regions.
2977 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
2979         PR middle-end/94635
2980         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
2981         run'.
2983 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
2985         PR middle-end/94120
2986         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
2987         test case.
2989 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
2991         PR middle-end/94635
2992         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
2994 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
2996         PR libgomp/92843
2997         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
2998         Rename to...
2999         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
3000         ... this.
3001         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
3002         Rename to...
3003         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
3004         ... this.
3005         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
3006         Rename to...
3007         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
3008         ... this.
3009         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
3010         Rename to...
3011         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
3012         ... this.
3013         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
3014         Rename to...
3015         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
3016         ... this.
3017         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
3018         Rename to...
3019         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
3020         ... this.
3021         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
3022         Rename to...
3023         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
3024         ... this.
3025         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
3026         Rename to...
3027         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
3028         ... this.
3029         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
3030         Rename to...
3031         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
3032         ... this.
3033         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
3034         Rename to...
3035         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
3036         ... this.
3037         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
3038         Rename to...
3039         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
3040         ... this.
3041         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
3042         Rename to...
3043         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
3044         ... this.
3045         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
3046         Rename to...
3047         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
3048         ... this.
3049         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
3050         Rename to...
3051         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
3052         ... this.
3053         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
3054         Rename to...
3055         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
3056         ... this.
3057         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
3058         Rename to...
3059         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
3060         ... this.
3062 2020-04-10  Julian Brown  <julian@codesourcery.com>
3063             Thomas Schwinge  <thomas@codesourcery.com>
3065         PR libgomp/92843
3066         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
3067         New file.
3068         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
3069         Likewise.
3070         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
3071         Likewise.
3072         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
3073         Likewise.
3074         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
3075         Likewise.
3076         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
3077         Likewise.
3078         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
3079         Likewise.
3080         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
3081         Likewise.
3082         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
3083         Likewise.
3084         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
3085         Likewise.
3086         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
3087         Likewise.
3088         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
3089         Likewise.
3090         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
3091         Likewise.
3092         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
3093         Likewise.
3094         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
3095         Likewise.
3096         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
3097         Likewise.
3099 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
3101         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
3102         run'.
3104 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
3106         PR middle-end/94120
3107         * libgomp.oacc-c++/declare-pr94120.C: New.
3109 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
3111         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
3112         files.
3113         * configure: Regenerate.
3114         * testsuite/libgomp-site-extra.exp.in: New file.
3115         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
3116         variable.
3117         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
3118         variable.
3119         * testsuite/Makefile.in: Regenerate.
3121 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
3123         PR tree-optimization/89713
3124         PR c/94392
3125         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
3126         'bar.sync'.
3127         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
3129 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
3131         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
3132         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
3134 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
3136         PR libgomp/81689
3137         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
3139 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
3141         PR libgomp/94251
3142         * target.c (gomp_load_image_to_device): Fix link
3143         variable handling.
3145 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
3147         PR c++/93931
3148         * testsuite/libgomp.c++/pr93931.C: New test.
3150 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
3152         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
3153         dg-allow-blank-lines-in-output.
3155 2020-03-18  Julian Brown <julian@codesourcery.com>
3156             Tobias Burnus  <tobias@codesourcery.com>
3158         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
3159         it work concurrently.
3161 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
3163         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
3164         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
3165         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
3167 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
3169         PR middle-end/93566
3170         * testsuite/libgomp.c/pr93566.c: New test.
3172 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
3174         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
3175         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
3176         integer(acc_device_property) for the type of the return value of
3177         acc_get_property.
3179 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
3181         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
3182         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
3183         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
3184         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
3185         (acc_set_device_num): Fix Fortran argument name, use same name for C.
3186         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
3187         corrections; add note about the previous interface and named constant.
3188         (OpenACC library and environment variables): Fix two typos.
3189         * openacc.f90: Use for all procedures the argument names from the spec
3190         as for â€¦_h they are user visible.
3191         (openacc_kinds): Rename acc_device_property to
3192         acc_device_property_kinds and change value to int32 ; and update users.
3193         Re-add acc_device_property for for backward compatibility.
3194         (acc_get_property_string_h): Clean up as acc_device_property_kind
3195         changed.
3196         (acc_get_property_h): Likewise and return c_size_t instead of
3197         acc_device_property.
3198         (openacc): Also export acc_device_property_kinds.
3199         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
3200         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
3201         handling; check against /= 0 instead of == 1 to match C.
3202         * openacc_lib.h: Use for all procedures the argument names from the spec
3203         as for â€¦_h they are user visible. Place !GCC$ into the first column to
3204         be active also for fixed-form souce form.
3205         (acc_device_current, acc_device_property_kind, acc_device_property,
3206         acc_property_memory, acc_property_free_memory, acc_property_name,
3207         acc_property_vendor, acc_property_driver): New named constants.
3208         (acc_get_property, acc_get_property_string): New generic interface.
3210 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
3212         PR libgomp/93481
3213         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
3214         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
3215         optional.
3216         (gomp_target_task_fn): Assert "devicep->async_run_func".
3217         (clear_unsupported_flags): New function to remove unsupported flags
3218         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
3219         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
3220         * testsuite/libgomp.c/target-33.c:
3221         Remove xfail for offload_target_nvptx.
3222         * testsuite/libgomp.c/target-34.c: Likewise.
3224 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
3226         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
3227         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
3228         * testsuite/libgomp.c/target-34.c: Likewise.
3229         * testsuite/libgomp.c/target-link-1.c: Add xfail for
3230         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
3232 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
3234         * testsuite/libgomp.c/target-38.c: New test.
3236 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
3238         PR libgomp/93515
3239         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
3241 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
3243         * testsuite/lib/libgomp.exp
3244         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
3245         and not as 'source' argument to libgomp_target_compile.
3247 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
3249         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
3250         (gcn_gfx801_s): Remove.
3251         (isa_hsa_name): Remove gfx801.
3252         (isa_gcc_name): Remove gfx801/carizzo.
3253         (isa_code): Remove gfx801.
3255 2020-02-03  Julian Brown  <julian@codesourcery.com>
3256             Tobias Burnus  <tobias@codesourcery.com>
3258         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
3259         and *_finalize variants; document acc_attach and acc_detach; update
3260         references from OpenACC 2.0 to 2.6.
3261         * openacc.f90 (openacc_version): Update to 201711.
3262         * openacc_lib.h (openacc_version): Update to 201711.
3263         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
3264         openacc_version to 201711.
3265         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3267 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
3269         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
3270         and vgpr_count fields.
3271         (struct kernel_info): Add a field for a hsa_kernel_description.
3272         (run_kernel): Reduce the number of threads/workers if the requested
3273         number would require too many VGPRs.
3274         (init_basic_kernel_info): Initialize description field with
3275         the hsa_kernel_description entry for the kernel.
3277 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
3279         PR bootstrap/93409
3280         * plugin/configfrag.ac (enable_offload_targets): Skip
3281         HSA and GCN plugin besides -m32 also for -mx32.
3282         * configure: Regenerate.
3284 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
3286         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
3288 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
3290         * plugin-gcn.c (struct agent_info): Add fields "name" and
3291         "vendor_name" ...
3292         (GOMP_OFFLOAD_init_device): ... and init from here.
3293         (struct hsa_context_info): Add field "driver_version_s" ...
3294         (init_hsa_contest): ... and init from here.
3295         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
3296         implementation.
3297         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
3298         Enable test execution for amdgcn and host offloading targets.
3299         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
3300         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
3301         (expect_device_properties): Split function into ...
3302         (expect_device_string_properties): ... this new function ...
3303         (expect_device_memory): ... and this new function.
3304         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
3305         Add test.
3307 2020-01-28  Julian Brown  <julian@codesourcery.com>
3309         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
3310         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
3311         component/non-component variable refs in a single directive.
3312         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
3314 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
3316         * configure.ac: Handle `--with-toolexeclibdir='.
3317         * Makefile.in: Regenerate.
3318         * aclocal.m4: Regenerate.
3319         * configure: Regenerate.
3320         * testsuite/Makefile.in: Regenerate.
3322 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
3324         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
3325         (expect_device_properties): Remove "expected_free_mem" argument,
3326         change "expected_total_mem" argument type to size_t;
3327         change types of acc_get_property results to size_t,
3328         adapt format strings.
3329         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
3330         Use %zu instead of %zd to print size_t values.
3331         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
3332         rename to ...
3333         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
3334         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
3335         rename to ...
3336         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
3338 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
3340         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
3341         the device id.
3343 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
3345         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
3346         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
3347         Adjust test dimensions for amdgcn.
3348         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
3349         gang/worker/vector expectations dynamically.
3350         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
3351         (main): Likewise.
3352         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
3353         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
3354         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
3355         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
3356         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
3357         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
3358         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
3359         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
3360         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
3361         (acc_gang): Recognise acc_device_radeon.
3362         (acc_worker): Likewise.
3363         (acc_vector): Likewise.
3364         (main): Set expectations for amdgcn.
3365         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
3366         (main): Adjust gang/worker/vector expectations dynamically.
3367         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
3368         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
3369         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
3370         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
3371         for amdgcn.
3373 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
3375         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
3376         acc_device_radeon.
3377         (openacc): Likewise.
3378         * openacc.f90 (openacc_kinds): Likewise.
3379         (openacc): Likewise.
3380         * openacc.h (acc_device_t): Likewise.
3381         * openacc_lib.h: Likewise.
3382         * testsuite/lib/libgomp.exp
3383         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
3384         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
3385         (cb_compute_construct_end): Likewise.
3386         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
3387         (cb_enqueue_launch_start): Likewise.
3388         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
3389         (cb_enter_data_end): Likewise.
3390         (cb_exit_data_start): Likewise.
3391         (cb_exit_data_end): Likewise.
3392         (cb_compute_construct_end): Likewise.
3393         (cb_enqueue_launch_start): Likewise.
3394         (cb_enqueue_launch_end): Likewise.
3395         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
3396         (main): Likewise.
3398 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
3400         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
3401         to use this instead of 'enum gomp_device_property'.
3402         (GOMP_OFFLOAD_get_property): Rename to...
3403         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
3404         * libgomp.h (struct gomp_device_descr): Move
3405         'GOMP_OFFLOAD_openacc_get_property'...
3406         (struct acc_dispatch_t): ... here.  Adjust all users.
3407         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
3409         * target.c (gomp_map_vars_internal)
3410         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
3411         paths.
3413 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
3415         PR libgomp/93219
3416         * libgomp.h (gomp_print_string): Change return type from void to int.
3417         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
3418         not all characters have been written.
3420 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
3422         * libgomp.texi: Fix typos, use https.
3424 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
3426         * testsuite/libgomp.fortran/optional-map.f90: Add test for
3427         unallocated/disassociated actual arguments to nonallocatable/nonpointer
3428         dummy arguments; those are/shall be regarded as absent arguments.
3429         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
3430         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
3432 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
3434         Update copyright years.
3436         * libgomp.texi: Bump @copying's copyright year.
3438 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
3440         PR libgomp/93065
3441         * oacc-init.c (goacc_runtime_deinitialize): New function.
3443 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
3445         PR bootstrap/93074
3446         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
3447         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
3449 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
3450             Frederik Harwath  <frederik@codesourcery.com>
3451             Thomas Schwinge  <tschwinge@codesourcery.com>
3453         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
3454         * libgomp-plugin.h (gomp_device_property_value): New union.
3455         (gomp_device_property_value): New prototype.
3456         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
3457         constant.
3458         (acc_device_property_t): New enum.
3459         (acc_get_property, acc_get_property_string): New prototypes.
3460         * oacc-init.c (acc_get_device_type): Also assert that result
3461         is not `acc_device_current'.
3462         (get_property_any, acc_get_property, acc_get_property_string):
3463         New functions.
3464         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
3465         `acc_property_memory', `acc_property_free_memory',
3466         `acc_property_name', `acc_property_vendor' and
3467         `acc_property_driver' constants.  Add `acc_device_property' data
3468         type.
3469         (openacc_internal): Add `acc_get_property' and
3470         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
3471         `acc_get_property_string_h', `acc_get_property_l' and
3472         `acc_get_property_string_l'.
3473         * oacc-host.c (host_get_property): New function.
3474         (host_dispatch): Wire it.
3475         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
3476         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
3477         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
3478         * libgomp.texi (OpenACC Runtime Library Routines): Add
3479         `acc_get_property'.
3480         (acc_get_property): New node.
3481         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
3482         function (stub).
3483         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
3484         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
3485         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
3486         calls.
3487         (GOMP_OFFLOAD_get_property): New function.
3488         (struct ptx_device): Add new field "name".
3489         (cuda_driver_version_s): Add new static variable ...
3490         (nvptx_init): ... and init from here.
3492         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
3493         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
3494         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
3495         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
3496         with test helper functions.
3498         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
3500 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
3502         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
3503         variable.
3505 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
3507         * target.c (gomp_map_vars_internal): Restore 'omp declare target
3508         link' handling.
3510 2019-12-19  Julian Brown  <julian@codesourcery.com>
3512         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
3513         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
3514         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
3516 2019-12-19  Julian Brown  <julian@codesourcery.com>
3517             Cesar Philippidis  <cesar@codesourcery.com>
3519         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
3520         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
3521         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
3522         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
3523         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
3524         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
3525         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
3526         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
3527         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
3528         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
3529         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
3530         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
3531         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
3533 2019-12-19  Julian Brown  <julian@codesourcery.com>
3535         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
3536         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
3537         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
3538         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
3539         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
3540         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
3541         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
3542         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
3543         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
3544         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
3545         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
3546         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
3548 2019-12-19  Julian Brown  <julian@codesourcery.com>
3550         * libgomp.h (struct target_var_desc): Add do_detach flag.
3551         * oacc-init.c (acc_shutdown_1): Free aux block if present.
3552         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
3553         struct components.  Tidy up and add some new checks.
3554         (goacc_enter_data_internal): Update call to find_group_last.
3555         (goacc_exit_data_internal): Support detach operations and
3556         GOMP_MAP_STRUCT.
3557         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
3558         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
3559         attach/detach in enter/exit data detection code.
3560         * target.c (gomp_map_vars_existing): Initialise do_detach field of
3561         tgt_var_desc.
3562         (gomp_map_vars_internal): Support attach.
3563         (gomp_unmap_vars_internal): Support detach.
3565 2019-12-19  Julian Brown  <julian@codesourcery.com>
3566             Thomas Schwinge  <thomas@codesourcery.com>
3568         * libgomp.h (struct splay_tree_aux): Add attach_count field.
3569         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
3570         * libgomp.map (OACC_2.6): New section. Add acc_attach,
3571         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
3572         acc_detach_finalize_async.
3573         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
3574         acc_detach, acc_detach_async, acc_detach_finalize,
3575         acc_detach_finalize_async): New functions.
3576         * openacc.h (acc_attach, acc_attach_async, acc_detach,
3577         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
3578         prototypes.
3579         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
3580         (gomp_remove_var_internal): Free attachment counts if present.
3581         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
3582         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
3584 2019-12-19  Julian Brown  <julian@codesourcery.com>
3585             Cesar Philippidis  <cesar@codesourcery.com>
3587         * libgomp.h (gomp_map_val): Add prototype.
3588         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
3589         open-coding device-address calculation.
3590         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
3591         non-present case.
3593 2019-12-19  Julian Brown  <julian@codesourcery.com>
3595         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
3596         field for virtual_refcount.
3597         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
3598         (gomp_free_memmap): Remove prototype.
3599         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
3600         instead of calling gomp_free_memmap.
3601         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
3602         dynamic_refcount.
3603         (acc_unmap_data): Open code instead of forcing target_mem_desc's
3604         to_free field to NULL then calling gomp_unmap_vars.  Handle
3605         REFCOUNT_INFINITY on target blocks.
3606         (goacc_enter_data): Rename to...
3607         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
3608         handling for mapping groups.  Use virtual_refcount instead of
3609         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
3610         map_map_vars_async call.  Re-do lookup for target pointer return value.
3611         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
3612         renamed goacc_enter_datum function.
3613         (goacc_exit_data): Rename to...
3614         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
3615         (acc_delete, acc_delete_async, acc_delete_finalize,
3616         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
3617         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
3618         goacc_exit_datum function.
3619         (gomp_acc_remove_pointer, find_pointer): Remove functions.
3620         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
3621         New functions.
3622         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
3623         goacc_exit_data_internal helper functions.
3624         * target.c (gomp_map_vars_internal): Handle
3625         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
3626         semantics.
3627         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
3628         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
3629         virtual_refcount field instead of dynamic_refcount.
3630         (gomp_free_memmap): Remove function.
3631         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
3632         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
3633         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
3635 2019-12-19  Julian Brown  <julian@codesourcery.com>
3636             Thomas Schwinge  <thomas@codesourcery.com>
3638         * libgomp.h (struct splay_tree_aux): New.
3639         (struct splay_tree_key_s): Replace link_key field with aux pointer.
3640         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
3641         to aux struct.
3642         (gomp_remove_var_internal): Free aux block if present.
3643         (gomp_load_image_to_device): Zero-initialise aux field instead of
3644         link_key field.
3645         (omp_target_associate_pointer): Zero-initialise aux field.
3647 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
3649         PR middle-end/86416
3650         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
3651         q or none.
3652         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
3653         L or none.
3655 2019-12-19  Julian Brown  <julian@codesourcery.com>
3656             Maciej W. Rozycki  <macro@codesourcery.com>
3657             Tobias Burnus  <tobias@codesourcery.com>
3658             Thomas Schwinge  <thomas@codesourcery.com>
3660         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
3661         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
3662         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
3663         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
3664         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
3665         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
3666         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
3667         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
3668         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
3670 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
3672         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
3673         called...
3674         (goacc_insert_pointer): ... from here, "present" case.
3675         (goacc_insert_pointer): Inline function into...
3676         (GOACC_enter_exit_data): ... here, and simplify.
3678         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
3679         called...
3680         (goacc_insert_pointer): ... from here, "not present" case.
3682         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
3683         all users.
3685         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
3686         'goacc_enter_data', 'goacc_exit_data'.
3688         * oacc-mem.c (delete_copyout): Refactor into...
3689         (goacc_exit_data): ... this.  Adjust all users.
3691         * oacc-mem.c (present_create_copy): Refactor into...
3692         (goacc_enter_data): ... this.  Adjust all users.
3694         * target.c (gomp_unmap_vars_internal): Add a safeguard to
3695         'gomp_remove_var'.
3697         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
3698         like 'GOMP_MAP_FROM'.
3700         PR libgomp/92726
3701         PR libgomp/92970
3702         PR libgomp/92984
3703         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
3704         fails.
3705         (GOACC_enter_exit_data): Simplify accordingly.
3706         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
3707         subsuming...
3708         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
3709         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
3710         file.
3711         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
3712         subsuming...
3713         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
3714         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
3715         file.
3716         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
3717         subsuming...
3718         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
3720         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
3721         'finalize' handling.
3723         PR libgomp/92848
3724         * oacc-mem.c (acc_map_data, present_create_copy)
3725         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
3726         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
3727         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
3728         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
3729         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
3730         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
3731         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
3732         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
3733         Remove "XFAIL"s.
3735         * target.c (gomp_unmap_tgt): Make it 'static'.
3736         * libgomp.h (gomp_unmap_tgt): Remove.
3738 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
3740         PR middle-end/86416
3741         * testsuite/libgomp.c/pr86416-1.c: New.
3742         * testsuite/libgomp.c/pr86416-2.c: New.
3744 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
3746         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
3747         all symbols as public except for the 'use â€¦, only' imported symbol,
3748         which is private.
3749         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
3750         all symbols from module openacc_kinds as PUBLIC
3751         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
3752         fix comment typo.
3753         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
3755 2019-12-13  Julian Brown  <julian@codesourcery.com>
3757         PR libgomp/92881
3759         * libgomp.h (gomp_remove_var_async): Add prototype.
3760         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
3761         gomp_remove_var.
3762         * target.c (gomp_unref_tgt): Change return type to bool, indicating
3763         whether target_mem_desc was unmapped.
3764         (gomp_unref_tgt_void): New.
3765         (gomp_remove_var): Reimplement in terms of...
3766         (gomp_remove_var_internal): ...this new helper function.
3767         (gomp_remove_var_async): New, implemented using above helper function.
3768         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
3769         gomp_unref_tgt.
3771 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
3773         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
3774         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3775         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
3776         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
3777         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
3778         Likewise.
3779         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
3780         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
3782 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
3784         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
3785         as public except for the 'use â€¦, only' imported symbol, which is
3786         private.
3787         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
3788         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
3789         attributes for acc_copyout_finalize and acc_delete_finalize.
3791 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
3793         PR fortran/92899
3794         * testsuite/libgomp.fortran/atomic1.f90: New test.
3796 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
3798         PR libgomp/92843
3799         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
3800         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
3801         assertions.
3802         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
3803         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
3804         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
3805         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
3806         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3808         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
3809         * oacc-mem.c: ... here.
3810         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
3811         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
3812         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
3813         Remove.
3814         * libgomp_g.h: Update.
3816         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
3817         * oacc-async.c: ... here.
3818         * oacc-int.h (goacc_wait): Declare.
3819         * libgomp_g.h: Update
3821         PR libgomp/92854
3822         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
3823         New file.
3824         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
3825         Likewise.
3826         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
3827         Likewise.
3828         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
3829         Likewise.
3830         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
3831         Likewise.
3832         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
3833         Likewise.
3835 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
3836             Julian Brown  <julian@codesourcery.com>
3838         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
3839         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
3841 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
3843         * omp_lib.h.in: Fix spelling of function declaration
3844         omp_get_cancell(l)ation.
3845         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
3846         Fix typos.
3847         * env.c: Fix comment typos.
3848         * oacc-host.c: Likewise.
3849         * ordered.c: Likewise.
3850         * task.c: Likewise.
3851         * team.c: Likewise.
3852         * config/gcn/task.c: Likewise.
3853         * config/gcn/team.c: Likewise.
3854         * config/nvptx/task.c: Likewise.
3855         * config/nvptx/team.c: Likewise.
3856         * plugin/plugin-gcn.c: Likewise.
3857         * testsuite/libgomp.fortran/jacobi.f: Likewise.
3858         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
3859         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
3861 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
3863         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
3864         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
3865         unnecessary 'dg-additional-options "-w"'.
3867 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
3868             Julian Brown  <julian@codesourcery.com>
3870         PR libgomp/92116
3871         PR libgomp/92877
3873         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
3874         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
3875         Adjust all users.
3876         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
3877         Remove XFAIL.
3878         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
3879         Likewise.
3880         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
3882 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
3884         PR libgomp/92503
3885         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
3886         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
3887         file.
3888         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
3889         Likewise.
3890         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
3891         Likewise.
3892         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
3893         Likewise.
3894         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
3895         Likewise.
3896         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
3897         Likewise.
3898         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
3899         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
3900         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
3901         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
3902         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
3903         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
3904         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3905         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3906         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
3907         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3909         PR libgomp/92840
3910         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
3911         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
3912         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
3913         New file.
3914         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
3915         Likewise.
3916         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
3917         Likewise.
3918         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
3919         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
3921         PR libgomp/92511
3922         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
3923         this file...
3924         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
3925         this file...
3926         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
3927         file...
3928         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
3929         file...
3930         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
3931         ... with their content moved into, and extended in this new file.
3932         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
3933         New file.
3934         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
3935         Likewise.
3936         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
3937         Likewise.
3938         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
3939         Likewise.
3941         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
3943         PR libgomp/92854
3944         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
3946         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
3948         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
3950 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
3952         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
3953         unique.
3954         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
3955         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
3956         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
3957         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
3958         Ditto.
3959         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
3960         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
3962 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
3964         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
3966 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
3967             Kwok Cheung Yeung <kcy@codesourcery.com>
3969         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
3970         if input it a NULL pointer.
3971         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
3972         diagnostic of NULL pointer.
3973         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
3974         * testsuite/libgomp.fortran/optional-map.f90: New.
3975         * testsuite/libgomp.fortran/use_device_addr-1.f90
3976         (test_dummy_opt_callee_1_absent): New.
3977         (test_dummy_opt_call_1): Call it.
3978         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
3979         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
3980         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
3981         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
3982         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
3983         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
3984         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
3985         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
3986         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
3987         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
3988         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
3989         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
3990         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
3991         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
3992         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
3993         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
3995 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
3997         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
3998         expect dg-output of 'Error termination.' for GCN.
3999         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
4000         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
4002 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
4004         PR fortran/92756
4005         * testsuite/libgomp.fortran/teams1.f90: New test.
4006         * testsuite/libgomp.fortran/teams2.f90: New test.
4008 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
4010         * oacc-init.c (acc_known_device_type): Add function.
4011         (unknown_device_type_error): Add function.
4012         (name_of_acc_device_t): Change to call unknown_device_type_error
4013         on unknown type.
4014         (resolve_device): Use acc_known_device_type.
4015         (acc_init): Fail if acc_device_t argument is not valid.
4016         (acc_shutdown): Likewise.
4017         (acc_get_num_devices): Likewise.
4018         (acc_set_device_type): Likewise.
4019         (acc_get_device_num): Likewise.
4020         (acc_set_device_num): Likewise.
4021         (acc_on_device): Add comment that argument validity is not checked.
4023 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
4025         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
4026         Recognize amdgcn.
4027         (check_effective_target_openacc_amdgcn_accel_present): New proc.
4028         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
4029         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
4030         * testsuite/libgomp.oacc-c/c.exp: Likewise.
4031         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4033 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4035         PR libgomp/91938
4036         * configure.tgt: Avoid IE tls on *-*-musl*.
4038 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
4040         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
4041         adding a common-block test case.
4043 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
4045         PR c++/60228
4046         * testsuite/libgomp.c++/udr-20.C: New test.
4047         * testsuite/libgomp.c++/udr-21.C: New test.
4049 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
4051         * testsuite/lib/libgomp.exp
4052         (check_effective_target_offload_target_nvptx): New proc.
4053         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
4054         'dg-skip-if'.
4055         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
4056         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
4057         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
4059 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4061         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
4062         * testsuite/libgomp.c/pr39591-2.c: Likewise.
4063         * testsuite/libgomp.c/pr39591-3.c: Likewise.
4064         * testsuite/libgomp.c/private-1.c: Likewise.
4065         * testsuite/libgomp.c/task-1.c: Likewise.
4066         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
4068 2019-11-20  Julian Brown  <julian@codesourcery.com>
4070         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
4071         aq->mutex here.
4072         (queue_push_launch): Lock aq->mutex before calling
4073         wait_for_queue_nonfull.
4074         (queue_push_callback): Likewise.
4075         (queue_push_asyncwait): Likewise.
4076         (queue_push_placeholder): Likewise.
4078 2019-11-20  Julian Brown  <julian@codesourcery.com>
4080         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
4081         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
4082         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
4083         return code.
4085 2019-11-20  Julian Brown  <julian@codesourcery.com>
4087         PR libgomp/92511
4089         * oacc-mem.c (present_create_copy): Fix device pointer return value in
4090         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
4091         in non-present/create case.
4092         (delete_copyout): Change error condition to fail only on copies outside
4093         of mapped block.  Adjust error message accordingly.
4094         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
4095         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
4096         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
4097         message.
4098         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4099         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
4100         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
4102 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
4104         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
4105         libatomic in build-tree testing.
4107 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
4109         * testsuite/Makefile.in: Regenerate.
4111 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
4113         * testsuite/libgomp.c/target-print-1.c: New file.
4114         * testsuite/libgomp.fortran/target-print-1.f90: New file.
4115         * testsuite/libgomp.oacc-c/print-1.c: New file.
4116         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
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         * plugin/Makefrag.am: Add amdgcn plugin support.
4124         * plugin/configfrag.ac: Likewise.
4125         * plugin/plugin-gcn.c: New file.
4126         * configure: Regenerate.
4127         * Makefile.in: Regenerate.
4128         * testsuite/Makefile.in: Regenerate.
4130 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4132         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
4133         and use team_malloc variants.
4134         (gomp_gcn_exit_kernel): Use team_free.
4135         * libgomp.h (TEAM_ARENA_SIZE): Define.
4136         (TEAM_ARENA_START): Define.
4137         (TEAM_ARENA_FREE): Define.
4138         (TEAM_ARENA_END): Define.
4139         (team_malloc): New function.
4140         (team_malloc_cleared): New function.
4141         (team_free): New function.
4142         * team.c (gomp_new_team): Initialize and use team_malloc.
4143         (free_team): Use team_free.
4144         (gomp_free_thread): Use team_free.
4145         (gomp_pause_host): Use team_free.
4146         * work.c (gomp_init_work_share): Use team_malloc.
4147         (gomp_fini_work_share): Use team_free.
4149 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4150             Kwok Cheung Yeung  <kcy@codesourcery.com>
4151             Julian Brown  <julian@codesourcery.com>
4152             Tom de Vries  <tom@codesourcery.com>
4154         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
4155         * Makefile.in: Regenerate.
4156         * config.h.in (PLUGIN_GCN): Add new undef.
4157         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
4158         * config/gcn/affinity-fmt.c: New file.
4159         * config/gcn/bar.c: New file.
4160         * config/gcn/bar.h: New file.
4161         * config/gcn/doacross.h: New file.
4162         * config/gcn/icv-device.c: New file.
4163         * config/gcn/oacc-target.c: New file.
4164         * config/gcn/simple-bar.h: New file.
4165         * config/gcn/target.c: New file.
4166         * config/gcn/task.c: New file.
4167         * config/gcn/team.c: New file.
4168         * config/gcn/time.c: New file.
4169         * configure.ac: Add amdgcn*-*-*.
4170         * configure: Regenerate.
4171         * configure.tgt: Add amdgcn*-*-*.
4172         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
4173         * libgomp.h (gcn_thrs): Add amdgcn variant.
4174         (set_gcn_thrs): Likewise.
4175         (gomp_thread): Likewise.
4176         * oacc-int.h (goacc_thread): Likewise.
4177         * oacc-target.c: New file.
4178         * openacc.f90 (acc_device_gcn): New parameter.
4179         * openacc.h (acc_device_t): Add acc_device_gcn.
4180         * team.c (gomp_free_pool_helper): Add amdgcn support.
4182 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4183             Julian Brown  <julian@codesourcery.com>
4185         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
4186         parameter.
4187         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
4188         queue constructor.
4189         * oacc-host.c (host_openacc_async_construct): Add device parameter.
4190         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
4191         device parameter.
4193 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4195         * configure.tgt (nvptx*-*-*): Add "accel" directory.
4196         * config/nvptx/libgomp-plugin.c: Move ...
4197         * config/accel/libgomp-plugin.c: ... to here.
4198         * config/nvptx/lock.c: Move ...
4199         * config/accel/lock.c: ... to here.
4200         * config/nvptx/mutex.c: Move ...
4201         * config/accel/mutex.c: ... to here.
4202         * config/nvptx/mutex.h: Move ...
4203         * config/accel/mutex.h: ... to here.
4204         * config/nvptx/oacc-async.c: Move ...
4205         * config/accel/oacc-async.c: ... to here.
4206         * config/nvptx/oacc-cuda.c: Move ...
4207         * config/accel/oacc-cuda.c: ... to here.
4208         * config/nvptx/oacc-host.c: Move ...
4209         * config/accel/oacc-host.c: ... to here.
4210         * config/nvptx/oacc-init.c: Move ...
4211         * config/accel/oacc-init.c: ... to here.
4212         * config/nvptx/oacc-mem.c: Move ...
4213         * config/accel/oacc-mem.c: ... to here.
4214         * config/nvptx/oacc-plugin.c: Move ...
4215         * config/accel/oacc-plugin.c: ... to here.
4216         * config/nvptx/omp-lock.h: Move ...
4217         * config/accel/omp-lock.h: ... to here.
4218         * config/nvptx/openacc.f90: Move ...
4219         * config/accel/openacc.f90: ... to here.
4220         * config/nvptx/pool.h: Move ...
4221         * config/accel/pool.h: ... to here.
4222         * config/nvptx/proc.c: Move ...
4223         * config/accel/proc.c: ... to here.
4224         * config/nvptx/ptrlock.c: Move ...
4225         * config/accel/ptrlock.c: ... to here.
4226         * config/nvptx/ptrlock.h: Move ...
4227         * config/accel/ptrlock.h: ... to here.
4228         * config/nvptx/sem.c: Move ...
4229         * config/accel/sem.c: ... to here.
4230         * config/nvptx/sem.h: Move ...
4231         * config/accel/sem.h: ... to here.
4232         * config/nvptx/thread-stacksize.h: Move ...
4233         * config/accel/thread-stacksize.h: ... to here.
4235 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
4236             Tobias Burnus  <tobias@codesourcery.com>
4237             Frederik Harwath  <frederik@codesourcery.com>
4238             Thomas Schwinge  <thomas@codesourcery.com>
4240         libgomp/
4241         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
4242         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
4243         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
4245 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
4246             Kwok Cheung Yeung  <kcy@codesourcery.com>
4248         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
4249         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
4251 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
4253         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
4255         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
4256         run'.
4257         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
4258         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
4260 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
4262         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
4263         Add expected warnings about missing reduction clauses.
4264         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
4265         Likewise.
4266         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
4267         Likewise.
4268         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4269         Likewise.
4271 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
4273         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
4274         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
4275         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
4276         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
4277         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
4278         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
4280 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
4282         PR fortran/92305
4283         * testsuite/libgomp.fortran/allocatable2.f90: Use
4284         unique numbers with 'stop'.
4285         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
4286         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
4287         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
4288         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
4289         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
4291 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
4293         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
4294         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
4295         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
4296         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
4297         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
4298         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
4300 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
4302         * testsuite/libgomp.fortran/target9.f90: New.
4304 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
4306         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
4307         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
4308         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
4309         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
4310         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
4311         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
4312         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
4313         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
4314         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
4315         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
4316         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
4317         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
4318         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
4319         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
4320         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
4321         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
4322         * testsuite/libgomp.fortran/associate1.f90: Ditto.
4323         * testsuite/libgomp.fortran/associate2.f90: Ditto.
4324         * testsuite/libgomp.fortran/associate3.f90: Ditto.
4325         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
4326         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
4327         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
4328         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
4329         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
4330         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
4331         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
4332         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
4333         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
4334         * testsuite/libgomp.fortran/character1.f90: Ditto.
4335         * testsuite/libgomp.fortran/character2.f90: Ditto.
4336         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
4337         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
4338         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
4339         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
4340         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
4341         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
4342         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
4343         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
4344         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
4345         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
4346         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
4347         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
4348         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
4349         * testsuite/libgomp.fortran/do1.f90: Ditto.
4350         * testsuite/libgomp.fortran/do2.f90: Ditto.
4351         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
4352         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
4353         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
4354         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
4355         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
4356         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
4357         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
4358         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
4359         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
4360         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
4361         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
4362         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
4363         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
4364         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
4365         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
4366         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
4367         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
4368         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
4369         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
4370         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
4371         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
4372         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
4373         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
4374         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
4375         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
4376         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
4377         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
4378         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
4379         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
4380         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
4381         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
4382         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
4383         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
4384         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
4385         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
4386         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
4387         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
4388         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
4389         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
4390         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
4391         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
4392         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
4393         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
4394         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
4395         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
4396         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
4397         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
4398         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
4399         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
4400         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
4401         * testsuite/libgomp.fortran/lib1.f90: Ditto.
4402         * testsuite/libgomp.fortran/lib4.f90: Ditto.
4403         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
4404         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
4405         * testsuite/libgomp.fortran/nested1.f90: Ditto.
4406         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
4407         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
4408         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
4409         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
4410         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
4411         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
4412         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
4413         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
4414         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
4415         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
4416         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
4417         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
4418         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
4419         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
4420         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
4421         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
4422         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
4423         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
4424         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
4425         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
4426         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
4427         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
4428         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
4429         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
4430         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
4431         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
4432         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
4433         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
4434         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
4435         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
4436         * testsuite/libgomp.fortran/pr28390.f: Ditto.
4437         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
4438         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
4439         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
4440         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
4441         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4442         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
4443         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
4444         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
4445         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
4446         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
4447         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
4448         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
4449         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
4450         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
4451         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
4452         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
4453         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
4454         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
4455         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
4456         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
4457         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
4458         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
4459         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
4460         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
4461         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
4462         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
4463         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
4464         * testsuite/libgomp.fortran/reference1.f90: Ditto.
4465         * testsuite/libgomp.fortran/reference2.f90: Ditto.
4466         * testsuite/libgomp.fortran/retval1.f90: Ditto.
4467         * testsuite/libgomp.fortran/retval2.f90: Ditto.
4468         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
4469         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
4470         * testsuite/libgomp.fortran/simd1.f90: Ditto.
4471         * testsuite/libgomp.fortran/simd2.f90: Ditto.
4472         * testsuite/libgomp.fortran/simd3.f90: Ditto.
4473         * testsuite/libgomp.fortran/simd4.f90: Ditto.
4474         * testsuite/libgomp.fortran/simd5.f90: Ditto.
4475         * testsuite/libgomp.fortran/simd6.f90: Ditto.
4476         * testsuite/libgomp.fortran/simd7.f90: Ditto.
4477         * testsuite/libgomp.fortran/stack.f90: Ditto.
4478         * testsuite/libgomp.fortran/strassen.f90: Ditto.
4479         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
4480         * testsuite/libgomp.fortran/tabs2.f: Ditto.
4481         * testsuite/libgomp.fortran/target1.f90: Ditto.
4482         * testsuite/libgomp.fortran/target2.f90: Ditto.
4483         * testsuite/libgomp.fortran/target3.f90: Ditto.
4484         * testsuite/libgomp.fortran/target4.f90: Ditto.
4485         * testsuite/libgomp.fortran/target5.f90: Ditto.
4486         * testsuite/libgomp.fortran/target6.f90: Ditto.
4487         * testsuite/libgomp.fortran/target7.f90: Ditto.
4488         * testsuite/libgomp.fortran/target8.f90: Ditto.
4489         * testsuite/libgomp.fortran/task1.f90: Ditto.
4490         * testsuite/libgomp.fortran/task2.f90: Ditto.
4491         * testsuite/libgomp.fortran/task3.f90: Ditto.
4492         * testsuite/libgomp.fortran/task4.f90: Ditto.
4493         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4494         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4495         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
4496         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
4497         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
4498         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
4499         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
4500         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
4501         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
4502         * testsuite/libgomp.fortran/udr1.f90: Ditto.
4503         * testsuite/libgomp.fortran/udr10.f90: Ditto.
4504         * testsuite/libgomp.fortran/udr11.f90: Ditto.
4505         * testsuite/libgomp.fortran/udr12.f90: Ditto.
4506         * testsuite/libgomp.fortran/udr13.f90: Ditto.
4507         * testsuite/libgomp.fortran/udr14.f90: Ditto.
4508         * testsuite/libgomp.fortran/udr15.f90: Ditto.
4509         * testsuite/libgomp.fortran/udr2.f90: Ditto.
4510         * testsuite/libgomp.fortran/udr3.f90: Ditto.
4511         * testsuite/libgomp.fortran/udr4.f90: Ditto.
4512         * testsuite/libgomp.fortran/udr5.f90: Ditto.
4513         * testsuite/libgomp.fortran/udr6.f90: Ditto.
4514         * testsuite/libgomp.fortran/udr7.f90: Ditto.
4515         * testsuite/libgomp.fortran/udr8.f90: Ditto.
4516         * testsuite/libgomp.fortran/udr9.f90: Ditto.
4517         * testsuite/libgomp.fortran/vla1.f90: Ditto.
4518         * testsuite/libgomp.fortran/vla2.f90: Ditto.
4519         * testsuite/libgomp.fortran/vla3.f90: Ditto.
4520         * testsuite/libgomp.fortran/vla4.f90: Ditto.
4521         * testsuite/libgomp.fortran/vla5.f90: Ditto.
4522         * testsuite/libgomp.fortran/vla6.f90: Ditto.
4523         * testsuite/libgomp.fortran/vla7.f90: Ditto.
4524         * testsuite/libgomp.fortran/vla8.f90: Ditto.
4525         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4526         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4528 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
4530         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
4531         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
4532         Ditto; add 'dg-do run' for torture testing.
4533         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
4534         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
4535         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
4536         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
4537         * testsuite/libgomp.fortran/pr28390.f: Ditto.
4538         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4539         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
4540         * testsuite/libgomp.fortran/task2.f90: Ditto.
4541         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4542         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4543         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
4544         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
4545         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4546         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4548 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
4550         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
4551         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
4552         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
4553         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
4554         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
4555         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
4556         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
4557         Use 'stop' not abort().
4558         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
4559         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
4560         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
4561         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
4562         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
4563         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
4564         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
4565         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
4566         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
4567         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
4568         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
4569         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
4570         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
4571         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
4572         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
4573         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
4574         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
4575         Ditto.
4576         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4577         Ditto.
4578         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4579         Ditto.
4580         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4581         Ditto.
4582         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4583         Ditto.
4584         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
4585         Ditto.
4586         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
4587         Ditto.
4588         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
4589         Ditto.
4590         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
4591         Ditto.
4592         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
4593         Ditto.
4594         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
4595         Ditto.
4596         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
4597         Ditto.
4598         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
4599         Ditto.
4600         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
4601         Ditto.
4602         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
4603         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
4604         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
4605         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
4606         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
4607         Likewise and also add 'dg-do run'.
4608         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
4609         Ditto.
4611 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
4612             Tobias Burnus  <tobias@codesourcery.com>
4614         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
4615         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
4616         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
4618 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
4620         PR libgomp/92081
4621         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
4622         than 0.
4624 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
4626         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
4627         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
4629 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
4631         PR middle-end/92036
4632         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
4633         file.
4635 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
4637         PR testsuite/91884
4638         * testsuite/libgomp.fortran/fortran.exp: Conditionally
4639         add -lquadmath.
4640         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
4642 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
4644         PR libgomp/92028
4645         * target.c (gomp_map_vars_internal): Readd the previous
4646         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
4647         though do that just in the !not_found_cnt case.
4649 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
4651         * gfortran.dg/gomp/target-simd.f90: New.
4653 2019-10-02  Julian Brown  <julian@codesourcery.com>
4654             Cesar Philippidis  <cesar@codesourcery.com>
4656         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
4657         * target.c (FIELD_TGT_EMPTY): Define.
4658         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
4659         as switch instead of list of ifs.
4660         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
4662 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
4664         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
4665         include. Replace alloca () with __builtin_alloca ().
4666         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
4668 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
4670         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
4671         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
4672         * oacc-parallel.c: Don't include "libgomp_g.h".
4673         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
4674         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
4675         * aclocal.m4: Regenerated.
4676         * config.h.in: Regenerated.
4677         * configure: Regenerated.
4678         * Makefile.in: Regenerated.
4680 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
4682         * libgomp_g.h: Include stdint.h instead of gstdint.h.
4684 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
4686         * configure: Regenerate.
4688 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
4690         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
4691         string is initialized.
4693 2019-09-06  Florian Weimer  <fweimer@redhat.com>
4695         * configure: Regenerate.
4697 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
4699         PR other/79543
4700         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
4701         scanning to conform to the GNU Coding Standards.
4702         * configure: Regenerate.
4704 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
4706         PR libgomp/91530
4707         * testsuite/libgomp.c/scan-21.c: New test.
4708         * testsuite/libgomp.c/scan-22.c: New test.
4710 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
4712         PR libgomp/91530
4713         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
4714         targets.
4715         * testsuite/libgomp.c/scan-12.c: Likewise.
4716         * testsuite/libgomp.c/scan-13.c: Likewise.
4717         * testsuite/libgomp.c/scan-14.c: Likewise.
4718         * testsuite/libgomp.c/scan-15.c: Likewise.
4719         * testsuite/libgomp.c/scan-16.c: Likewise.
4720         * testsuite/libgomp.c/scan-17.c: Likewise.
4721         * testsuite/libgomp.c/scan-18.c: Likewise.
4722         * testsuite/libgomp.c/scan-19.c: Likewise.
4723         * testsuite/libgomp.c/scan-20.c: Likewise.
4724         * testsuite/libgomp.c++/scan-9.C: Likewise.
4725         * testsuite/libgomp.c++/scan-10.C: Likewise.
4726         * testsuite/libgomp.c++/scan-11.C: Likewise.
4727         * testsuite/libgomp.c++/scan-12.C: Likewise.
4728         * testsuite/libgomp.c++/scan-14.C: Likewise.
4729         * testsuite/libgomp.c++/scan-15.C: Likewise.
4730         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
4731         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
4732         * testsuite/libgomp.c++/scan-16.C: Likewise.
4734 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
4736         PR fortran/91473
4737         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
4738         -std=legacy so invalid code in the test case is accepted.
4740 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
4742         PR fortran/91422
4743         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
4744         dimension.
4746 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
4748         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
4749         perform the lookup in the first loop only if !not_found_cnt, otherwise
4750         perform lookups for it in the second loop guarded with
4751         if (not_found_cnt || has_firstprivate).
4752         * testsuite/libgomp.c/target-37.c: New test.
4753         * testsuite/libgomp.c++/target-22.C: New test.
4755 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
4757         * testsuite/libgomp.c/target-18.c (struct S): New type.
4758         (foo): Use use_device_addr clause instead of use_device_ptr clause
4759         where required by OpenMP 5.0, add further tests for both use_device_ptr
4760         and use_device_addr clauses.
4761         * testsuite/libgomp.c++/target-9.C (struct S): New type.
4762         (foo): Use use_device_addr clause instead of use_device_ptr clause
4763         where required by OpenMP 5.0, add further tests for both use_device_ptr
4764         and use_device_addr clauses.  Add t and u arguments.
4765         (main): Adjust caller.
4767 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
4769         * testsuite/libgomp.c++/loop-13.C: New test.
4770         * testsuite/libgomp.c++/loop-14.C: New test.
4771         * testsuite/libgomp.c++/loop-15.C: New test.
4773 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
4775         PR middle-end/91301
4776         * testsuite/libgomp.c++/for-27.C: New test.
4778 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
4780         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
4781         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
4783 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
4785         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
4787 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
4789         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
4790         * testsuite/libgomp.c++/scan-16.C: Likewise.
4792 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
4794         * testsuite/libgomp.c/scan-19.c: New test.
4795         * testsuite/libgomp.c/scan-20.c: New test.
4797         * testsuite/libgomp.c/scan-11.c: New test.
4798         * testsuite/libgomp.c/scan-12.c: New test.
4799         * testsuite/libgomp.c/scan-13.c: New test.
4800         * testsuite/libgomp.c/scan-14.c: New test.
4801         * testsuite/libgomp.c/scan-15.c: New test.
4802         * testsuite/libgomp.c/scan-16.c: New test.
4803         * testsuite/libgomp.c/scan-17.c: New test.
4804         * testsuite/libgomp.c/scan-18.c: New test.
4805         * testsuite/libgomp.c++/scan-9.C: New test.
4806         * testsuite/libgomp.c++/scan-10.C: New test.
4807         * testsuite/libgomp.c++/scan-11.C: New test.
4808         * testsuite/libgomp.c++/scan-12.C: New test.
4809         * testsuite/libgomp.c++/scan-13.C: New test.
4810         * testsuite/libgomp.c++/scan-14.C: New test.
4811         * testsuite/libgomp.c++/scan-15.C: New test.
4812         * testsuite/libgomp.c++/scan-16.C: New test.
4814 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
4816         * testsuite/libgomp.c/scan-9.c: New test.
4817         * testsuite/libgomp.c/scan-10.c: New test.
4819 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
4821         * testsuite/libgomp.c++/scan-1.C: New test.
4822         * testsuite/libgomp.c++/scan-2.C: New test.
4823         * testsuite/libgomp.c++/scan-3.C: New test.
4824         * testsuite/libgomp.c++/scan-4.C: New test.
4825         * testsuite/libgomp.c++/scan-5.C: New test.
4826         * testsuite/libgomp.c++/scan-6.C: New test.
4827         * testsuite/libgomp.c++/scan-7.C: New test.
4828         * testsuite/libgomp.c++/scan-8.C: New test.
4829         * testsuite/libgomp.c/scan-1.c: New test.
4830         * testsuite/libgomp.c/scan-2.c: New test.
4831         * testsuite/libgomp.c/scan-3.c: New test.
4832         * testsuite/libgomp.c/scan-4.c: New test.
4833         * testsuite/libgomp.c/scan-5.c: New test.
4834         * testsuite/libgomp.c/scan-6.c: New test.
4835         * testsuite/libgomp.c/scan-7.c: New test.
4836         * testsuite/libgomp.c/scan-8.c: New test.
4838 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
4840         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
4841         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
4842         Likewise.
4844         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
4845         check.
4847 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
4849         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
4850         file.
4852 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
4854         PR fortran/90743
4855         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
4856         case.
4857         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
4858         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
4859         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
4860         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
4862         PR testsuite/90861
4863         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
4865         PR middle-end/90862
4866         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
4868 2019-06-16  Tom de Vries  <tdevries@suse.de>
4870         PR tree-optimization/89376
4871         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
4873 2019-06-15  Tom de Vries  <tdevries@suse.de>
4875         PR tree-optimization/89713
4876         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
4877         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
4879 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
4881         PR middle-end/90779
4882         * testsuite/libgomp.c/pr90779.c: New test.
4883         * testsuite/libgomp.fortran/pr90779.f90: New test.
4885 2019-06-15  Tom de Vries  <tdevries@suse.de>
4887         PR tree-optimization/90009
4888         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
4890 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
4892         PR tree-optimization/89713
4893         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
4895 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
4897         PR target/90811
4898         * testsuite/libgomp.c/pr90811.c: New test.
4900 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
4902         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
4903         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
4905 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
4907         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
4908         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
4909         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
4910         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
4912 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4914         * configure.ac: Call AX_COUNT_CPUS.
4915         Substitute CPU_COUNT.
4916         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
4917         count fallback.
4918         * aclocal.m4: Regenerate.
4919         * configure: Regenerate.
4920         * Makefile.in, testsuite/Makefile.in: Regenerate.
4922 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
4924         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
4925         to ...
4926         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
4927         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
4928         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
4930 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
4932         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
4934         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
4936         PR libgomp/90641
4937         * work.c (gomp_init_work_share): Instead of aligning final ordered
4938         value to multiples of long long alignment, align to that the
4939         first part (ordered team ids) and if inline_ordered_team_ids
4940         is not on a long long alignment boundary within the structure,
4941         use __alignof__ (long long) - 1 pad size always.
4942         * loop.c (GOMP_loop_start): Fix *mem computation if
4943         inline_ordered_team_ids is not aligned on long long alignment boundary
4944         within the structure.
4945         * loop-ull.c (GOMP_loop_ull_start): Likewise.
4946         * sections.c (GOMP_sections2_start): Likewise.
4948 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
4950         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
4951         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
4953         PR libgomp/90585
4954         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
4955         HAVE_INTTYPES_H is defined.
4956         (print_uint64_t): New typedef.
4957         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
4958         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
4959         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
4960         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
4961         before casting to void *.
4962         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
4963         * oacc-mem.c: Don't include config.h nor stdint.h.
4964         * target.c: Don't include config.h.
4965         * oacc-cuda.c: Likewise.
4966         * oacc-host.c: Don't include stdint.h.
4968 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
4970         PR libgomp/90527
4971         * alloc.c (_GNU_SOURCE): Define.
4973 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
4975         * acc_prof.h: New file.
4976         * oacc-profiling.c: Likewise.
4977         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
4978         Add these, respectively.
4979         * Makefile.in: Regenerate.
4980         * env.c (initialize_env): Call goacc_profiling_initialize.
4981         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
4982         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
4983         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
4984         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
4985         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
4986         acc_prof_register, acc_prof_unregister, and acc_register_library.
4987         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
4988         GOMP_PLUGIN_goacc_thread.
4989         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
4990         prof_callbacks_enabled members.
4991         (goacc_prof_enabled, goacc_profiling_initialize)
4992         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
4993         (goacc_profiling_dispatch): Declare.
4994         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
4995         (GOACC_PROFILING_SETUP_P): Define.
4996         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
4997         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
4998         OpenACC Profiling Interface.
4999         * oacc-cuda.c (acc_get_current_cuda_device)
5000         (acc_get_current_cuda_context, acc_get_cuda_stream)
5001         (acc_set_cuda_stream): Likewise.
5002         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
5003         (acc_init, acc_set_device_type, acc_get_device_type)
5004         (acc_get_device_num, goacc_lazy_initialize): Likewise.
5005         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
5006         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
5007         (acc_unmap_data, present_create_copy, delete_copyout)
5008         (update_dev_host): Likewise.
5009         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
5010         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
5011         Likewise.
5012         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
5013         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
5014         Likewise.
5015         * libgomp.texi: Update.
5016         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
5017         file.
5018         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
5019         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5020         Likewise.
5021         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5022         Likewise.
5023         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
5024         Likewise.
5025         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
5026         Likewise.
5028 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
5030         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
5031         (struct goacc_asyncqueue_list): Likewise.
5032         (goacc_aq): Likewise.
5033         (goacc_aq_list): Likewise.
5034         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
5035         (GOMP_OFFLOAD_openacc_async_test): Remove.
5036         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
5037         (GOMP_OFFLOAD_openacc_async_wait): Remove.
5038         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
5039         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
5040         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
5041         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
5042         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
5043         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
5044         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
5045         (GOMP_OFFLOAD_openacc_async_exec): Declare.
5046         (GOMP_OFFLOAD_openacc_async_construct): Declare.
5047         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
5048         (GOMP_OFFLOAD_openacc_async_test): Declare.
5049         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
5050         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
5051         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
5052         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
5053         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
5055         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
5056         (gomp_acc_insert_pointer): Adjust declaration.
5057         (gomp_copy_host2dev): New declaration.
5058         (gomp_copy_dev2host): Likewise.
5059         (gomp_map_vars_async): Likewise.
5060         (gomp_unmap_tgt): Likewise.
5061         (gomp_unmap_vars_async): Likewise.
5062         (gomp_fini_device): Likewise.
5064         * oacc-async.c (get_goacc_thread): New function.
5065         (get_goacc_thread_device): New function.
5066         (lookup_goacc_asyncqueue): New function.
5067         (get_goacc_asyncqueue): New function.
5068         (acc_async_test): Adjust code to use new async design.
5069         (acc_async_test_all): Likewise.
5070         (acc_wait): Likewise.
5071         (acc_wait_async): Likewise.
5072         (acc_wait_all): Likewise.
5073         (acc_wait_all_async): Likewise.
5074         (goacc_async_free): New function.
5075         (goacc_init_asyncqueues): Likewise.
5076         (goacc_fini_asyncqueues): Likewise.
5077         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
5078         design.
5079         (acc_set_cuda_stream): Likewise.
5080         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
5081         (host_openacc_register_async_cleanup): Remove.
5082         (host_openacc_async_exec): New function.
5083         (host_openacc_async_test): Adjust parameters.
5084         (host_openacc_async_test_all): Remove.
5085         (host_openacc_async_wait): Remove.
5086         (host_openacc_async_wait_async): Remove.
5087         (host_openacc_async_wait_all): Remove.
5088         (host_openacc_async_wait_all_async): Remove.
5089         (host_openacc_async_set_async): Remove.
5090         (host_openacc_async_synchronize): New function.
5091         (host_openacc_async_serialize): New function.
5092         (host_openacc_async_host2dev): New function.
5093         (host_openacc_async_dev2host): New function.
5094         (host_openacc_async_queue_callback): New function.
5095         (host_openacc_async_construct): New function.
5096         (host_openacc_async_destruct): New function.
5097         (struct gomp_device_descr host_dispatch): Remove initialization of old
5098         interface, add initialization of new async sub-struct.
5099         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
5100         (goacc_attach_host_thread_to_device): Remove old async code usage.
5101         * oacc-int.h (goacc_init_asyncqueues): New declaration.
5102         (goacc_fini_asyncqueues): Likewise.
5103         (goacc_async_copyout_unmap_vars): Likewise.
5104         (goacc_async_free): Likewise.
5105         (get_goacc_asyncqueue): Likewise.
5106         (lookup_goacc_asyncqueue): Likewise.
5107         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
5108         design.
5109         (present_create_copy): Adjust code to use new async design.
5110         (delete_copyout): Likewise.
5111         (update_dev_host): Likewise.
5112         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
5113         async design.
5114         (gomp_acc_remove_pointer): Adjust code to use new async design.
5115         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
5116         design.
5117         (GOACC_enter_exit_data): Likewise.
5118         (goacc_wait): Likewise.
5119         (GOACC_update): Likewise.
5120         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
5121         when called, warn as obsolete in comment.
5122         * target.c (goacc_device_copy_async): New function.
5123         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
5124         add goacc_device_copy_async case.
5125         (gomp_copy_dev2host): Likewise.
5126         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
5127         (gomp_map_pointer): Likewise.
5128         (gomp_map_fields_existing): Likewise.
5129         (gomp_map_vars_internal): New always_inline function, renamed from
5130         gomp_map_vars.
5131         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
5132         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
5133         passing goacc_asyncqueue argument.
5134         (gomp_unmap_tgt): Remove static, add attribute_hidden.
5135         (gomp_unref_tgt): New function.
5136         (gomp_unmap_vars_internal): New always_inline function, renamed from
5137         gomp_unmap_vars.
5138         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
5139         (gomp_unmap_vars_async): Implement by calling
5140         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
5141         (gomp_fini_device): New function.
5142         (gomp_exit_data): Adjust gomp_copy_dev2host call.
5143         (gomp_load_plugin_for_device): Remove old interface, adjust to load
5144         new async interface.
5145         (gomp_target_fini): Adjust code to call gomp_fini_device.
5147         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
5148         (struct ptx_stream): Remove.
5149         (struct nvptx_thread): Remove current_stream field.
5150         (cuda_map_create): Remove.
5151         (cuda_map_destroy): Remove.
5152         (map_init): Remove.
5153         (map_fini): Remove.
5154         (map_pop): Remove.
5155         (map_push): Remove.
5156         (struct goacc_asyncqueue): Define.
5157         (struct nvptx_callback): Define.
5158         (struct ptx_free_block): Define.
5159         (struct ptx_device): Remove null_stream, active_streams, async_streams,
5160         stream_lock, and next fields.
5161         (enum ptx_event_type): Remove.
5162         (struct ptx_event): Remove.
5163         (ptx_event_lock): Remove.
5164         (ptx_events): Remove.
5165         (init_streams_for_device): Remove.
5166         (fini_streams_for_device): Remove.
5167         (select_stream_for_async): Remove.
5168         (nvptx_init): Remove ptx_events and ptx_event_lock references.
5169         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
5170         case.
5171         (nvptx_open_device): Add free_blocks initialization, remove
5172         init_streams_for_device call.
5173         (nvptx_close_device): Remove fini_streams_for_device call, add
5174         free_blocks destruct code.
5175         (event_gc): Remove.
5176         (event_add): Remove.
5177         (nvptx_exec): Adjust parameters and code.
5178         (nvptx_free): Likewise.
5179         (nvptx_host2dev): Remove.
5180         (nvptx_dev2host): Remove.
5181         (nvptx_set_async): Remove.
5182         (nvptx_async_test): Remove.
5183         (nvptx_async_test_all): Remove.
5184         (nvptx_wait): Remove.
5185         (nvptx_wait_async): Remove.
5186         (nvptx_wait_all): Remove.
5187         (nvptx_wait_all_async): Remove.
5188         (nvptx_get_cuda_stream): Remove.
5189         (nvptx_set_cuda_stream): Remove.
5190         (GOMP_OFFLOAD_alloc): Adjust code.
5191         (GOMP_OFFLOAD_free): Likewise.
5192         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
5193         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
5194         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
5195         (GOMP_OFFLOAD_openacc_async_wait): Remove.
5196         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
5197         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
5198         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
5199         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
5200         (cuda_free_argmem): New function.
5201         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
5202         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
5203         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
5204         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
5205         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
5206         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
5207         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
5208         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
5209         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
5210         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
5211         (cuda_callback_wrapper): New function.
5212         (cuda_memcpy_sanity_check): New function.
5213         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
5214         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
5215         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
5216         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
5218 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
5220         PR target/87835
5221         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
5223 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
5225         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
5227 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
5229         * team.c (gomp_team_start): Initialize pool->threads[0].
5231 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
5233         * testsuite/libgomp.oacc-c++/c++.exp: Specify
5234         "-foffload=$offload_target".
5235         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5236         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5237         * testsuite/lib/libgomp.exp
5238         (check_effective_target_openacc_nvidia_accel_configured): Remove,
5239         as (conceptually) merged into
5240         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
5241         users.
5243         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
5244         * testsuite/libgomp-test-support.exp.in: Adjust.
5245         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
5246         openacc_device_types_s.
5247         (offload_target_to_openacc_device_type): New proc.
5248         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
5249         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5250         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5251         * Makefile.in: Regenerate.
5252         * configure: Likewise.
5253         * testsuite/Makefile.in: Likewise.
5255         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
5256         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
5257         instead of OFFLOAD_TARGETS.
5258         * target.c (gomp_target_init): Adjust.
5259         * testsuite/libgomp-test-support.exp.in: Likewise.
5260         * testsuite/lib/libgomp.exp: Likewise.  Populate
5261         openacc_device_types_s instead of offload_targets_s_openacc.
5262         (check_effective_target_openacc_nvidia_accel_selected)
5263         (check_effective_target_openacc_host_selected): Adjust.
5264         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
5265         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5266         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5267         * Makefile.in: Regenerate.
5268         * config.h.in: Likewise.
5269         * configure: Likewise.
5270         * testsuite/Makefile.in: Likewise.
5272         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
5273         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
5274         "offloading: supported, but hardware not accessible".
5275         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5276         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5278 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
5280         PR c/87924
5281         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
5282         goacc_wait().
5283         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
5284         and related adjustment.
5286 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
5288         PR c++/88988
5289         * testsuite/libgomp.c++/pr88988.C: New test.
5291 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
5293         PR middle-end/89002
5294         * testsuite/libgomp.c/pr89002.c: New test.
5296 2019-01-28  Richard Biener  <rguenther@suse.de>
5298         PR testsuite/89064
5299         PR tree-optimization/86865
5300         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
5302 2019-01-24  Tom de Vries  <tdevries@suse.de>
5304         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
5305         once instantiated_devices drops to 0.
5307 2019-01-23  Tom de Vries  <tdevries@suse.de>
5309         PR target/PR88946
5310         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
5311         cuMemFree.
5312         (nvptx_exec): Don't call map_push if mapnum == 0.
5313         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
5315 2019-01-23  Tom de Vries  <tdevries@suse.de>
5317         PR target/88941
5318         PR target/88939
5319         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
5320         (map_fini): Remove "assert (!s->map->active)".
5321         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
5323 2019-01-23  Tom de Vries  <tdevries@suse.de>
5325         PR target/87835
5326         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
5327         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
5329 2019-01-15  Tom de Vries  <tdevries@suse.de>
5331         PR target/80547
5332         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
5333         New test.
5335 2019-01-12  Tom de Vries  <tdevries@suse.de>
5337         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
5338         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
5339         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
5340         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
5342 2019-01-12  Tom de Vries  <tdevries@suse.de>
5344         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
5346 2019-01-12  Tom de Vries  <tdevries@suse.de>
5348         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
5349         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
5350         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
5352 2019-01-12  Tom de Vries  <tdevries@suse.de>
5354         PR target/85486
5355         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
5356         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
5358 2019-01-12  Tom de Vries  <tdevries@suse.de>
5360         PR target/85381
5361         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
5362         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
5364 2019-01-12  Tom de Vries  <tdevries@suse.de>
5366         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
5367         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
5368         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
5370 2019-01-12  Tom de Vries  <tdevries@suse.de>
5372         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
5373         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
5374         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
5376 2019-01-12  Tom de Vries  <tdevries@suse.de>
5378         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
5379         resources diagnostic.
5381 2019-01-12  Tom de Vries  <tdevries@suse.de>
5383         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
5384         vector length to be 128.
5385         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
5386         length 2097152 to be reduced to 1024 instead of 32.
5388 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
5389             James Norris  <jnorris@codesourcery.com>
5391         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
5392         Library Routines", and "Environment Variables".
5394 2019-01-11  Tom de Vries  <tdevries@suse.de>
5396         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
5397         num_workers 16.
5399 2019-01-11  Tom de Vries  <tdevries@suse.de>
5401         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
5402         -foffload=-w.
5403         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
5404         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
5405         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
5406         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
5408 2019-01-11  Tom de Vries  <tdevries@suse.de>
5410         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
5411         test.
5413 2019-01-10  Nathan Sidwell  <nathan@acm.org>
5414             Julian Brown  <julian@codesourcery.com>
5416         PR lto/71959
5417         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
5418         * testsuite/libgomp.oacc-c++/pr71959.C: New.
5420 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5422         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
5423         and paste code.
5425 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5427         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
5428         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
5429         write.
5431 2019-01-09  Tom de Vries  <tdevries@suse.de>
5433         PR target/88756
5434         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
5435         #define instead of "const int".
5436         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
5437         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
5438         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
5439         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
5441 2019-01-09  Tom de Vries  <tdevries@suse.de>
5443         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
5444         one worker.
5446 2019-01-07  Tom de Vries  <tdevries@suse.de>
5448         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
5449         GOMP_OPENACC_DIM argument.
5451 2019-01-03  Tom de Vries  <tdevries@suse.de>
5453         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
5454         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
5456 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
5458         Update copyright years.
5460 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
5462         * libgomp.texi: Bump @copying's copyright year.
5464 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
5466         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
5467         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
5468         (GOACC_declare): Redefine the "device" argument to "flags".
5470 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
5471             Cesar Philippidis  <cesar@codesourcery.com>
5473         * target.c (struct gomp_coalesce_chunk): New structure.
5474         (struct gomp_coalesce_buf): Update the chunks member to use that
5475         type.  Adjust all users.
5477 2018-12-19  Tom de Vries  <tdevries@suse.de>
5479         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
5480         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
5481         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
5483 2018-12-19  Tom de Vries  <tdevries@suse.de>
5485         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
5486         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
5487         gcc/testsuite/gcc.dg/goacc.
5488         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
5490 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
5491             Chung-Lin Tang  <cltang@codesourcery.com>
5493         * oacc-mem.c (acc_present_or_create): Remove definition and change
5494         to alias of acc_create.
5495         (acc_present_or_copyin): Remove definition and change to alias of
5496         acc_copyin.
5497         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
5498         of acc_present_or_create.
5499         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
5500         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5501         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5502         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5503         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5504         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5505         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5506         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5507         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5508         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5509         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5510         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5511         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5512         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5513         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5514         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5516 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
5518         PR libgomp/88495
5519         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
5520         "identical parameters".
5521         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
5522         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
5524         PR libgomp/88484
5525         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
5526         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
5528         PR libgomp/88407
5529         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
5530         (nvptx_wait_async): Unseen async-argument is a no-op.
5531         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
5532         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
5533         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5534         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5535         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
5536         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
5537         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
5538         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
5539         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
5541         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
5542         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5544 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
5546         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
5547         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5548         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5550 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
5552         PR libgomp/88370
5553         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
5554         (acc_set_cuda_stream): Clarify.
5555         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
5556         "async_valid_p".
5557         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
5558         acc_async_sync".
5559         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
5560         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
5561         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
5562         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5564 2018-12-14  Tom de Vries  <tdevries@suse.de>
5566         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
5567         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
5568         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
5569         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
5570         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
5572 2018-12-13  Tom de Vries  <tdevries@suse.de>
5574         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
5575         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
5576         * fortran.c (omp_display_affinity_): ... here.
5577         * libgomp.h (gomp_print_string): Declare.
5578         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
5579         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
5580         write.
5582 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
5584         PR libgomp/88460
5585         * testsuite/libgomp.c++/for-24.C (results): Include it in
5586         omp declare target region.
5587         (main): Use map (always, tofrom: results) instead of
5588         map (tofrom: results).
5590 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
5592         PR fortran/88463
5593         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
5594         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
5596         * testsuite/libgomp.c-c++-common/for-16.c: New test.
5598 2018-12-12  Andreas Schwab  <schwab@suse.de>
5600         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
5601         clobbered.
5603 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
5605         PR fortran/88411
5606         * testsuite/libgomp.fortran/async_io_8.f90: New test.
5608 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
5609             Jakub Jelinek  <jakub@redhat.com>
5611         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
5612         devicep->host2dev_func.
5614 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
5616         PR libgomp/87995
5617         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
5618         tls_runtime effective target.
5619         (t): New threadprivate variable.
5620         (main): Set t in threads which execute iterations of the worksharing
5621         loop.  Propagate that to the task after the loop and don't abort
5622         if the current taskgroup hasn't been cancelled.
5624 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
5626         * testsuite/libgomp.c/task-reduction-3.c: New test.
5628         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
5630 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
5632         PR libgomp/88288
5633         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
5634         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
5636 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
5638         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
5640 2018-10-19  Richard Biener  <rguenther@suse.de>
5642         PR tree-optimization/88182
5643         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
5645 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
5647         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
5648         (RUNTEST): Don't define.
5649         (RUNTESTDEFAULTFLAGS): Add.
5650         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
5651         (distclean-am): Depend on distclean-DEJAGNU.
5652         (check-am): If -j% option is present in MFLAGS and if
5653         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
5654         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
5655         * testsuite/Makefile.in: Regenerated.
5657 2018-11-26  Richard Biener  <rguenther@suse.de>
5659         PR tree-optimization/88182
5660         * testsuite/libgomp.c++/pr88182.C: New testcase.
5662 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
5664         PR bootstrap/88106
5665         * config/mingw32/affinity-fmt.c: New file.
5667 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
5669         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
5670         (gomp_display_affinity): Use __builtin_choose_expr to handle
5671         properly handle argument having integral, or pointer or some other
5672         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
5673         with uint64_t type instead of %llx and unsigned long long.
5675         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
5676         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
5678 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5680         * affinity.c: Include <string.h>, <stdio.h>.
5681         (gomp_display_affinity_place): Remove cpusetp.
5682         * teams.c: Include <limits.h>.
5684 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
5686         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
5687         in_reduction clause for s[0].
5689         * affinity.c (gomp_display_affinity_place): New function.
5690         * affinity-fmt.c: New file.
5691         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
5692         * config/linux/affinity.c (gomp_display_affinity_place): New function.
5693         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
5694         Move these functions to ...
5695         * config/nvptx/teams.c: ... here.  New file.
5696         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
5697         New functions.
5698         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
5699         functions.
5700         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
5701         and _aligned_malloc.
5702         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
5703         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
5704         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
5705         gomp_affinity_format_len): New variables.
5706         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
5707         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
5708         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
5709         modifiers.  Display (non-default) chunk sizes.  Print
5710         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
5711         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
5712         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
5713         * fortran.c: Include stdio.h and string.h.
5714         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
5715         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
5716         (omp_set_affinity_format_, omp_get_affinity_format_,
5717         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
5718         omp_pause_resource_all_): New functions.
5719         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
5720         switch.
5721         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
5722         functions to ...
5723         * teams.c: ... here.  New file.
5724         * libgomp_g.h: Include gstdint.h.
5725         (GOMP_loop_nonmonotonic_runtime_start,
5726         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
5727         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
5728         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
5729         GOMP_parallel_loop_nonmonotonic_runtime,
5730         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5731         GOMP_loop_ull_nonmonotonic_runtime_start,
5732         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
5733         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
5734         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5735         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
5736         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
5737         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5738         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
5739         GOMP_teams_reg): Declare.
5740         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
5741         gomp_aligned_alloc uses fallback implementation.
5742         (gomp_aligned_alloc, gomp_aligned_free): Declare.
5743         (enum gomp_schedule_type): Add GFS_MONOTONIC.
5744         (struct gomp_doacross_work_share): Add extra field.
5745         (struct gomp_work_share): Add task_reductions field.
5746         (struct gomp_taskgroup): Add workshare and reductions fields.
5747         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
5748         (gomp_thread_handle): New typedef.
5749         (gomp_display_affinity_place, gomp_set_affinity_format,
5750         gomp_display_string, gomp_display_affinity,
5751         gomp_display_affinity_thread): Declare.
5752         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
5753         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
5754         gomp_workshare_task_reduction_register): Declare.
5755         (gomp_team_start): Add taskgroup argument.
5756         (gomp_pause_host): Declare.
5757         (gomp_init_work_share, gomp_work_share_start): Change bool argument
5758         to size_t.
5759         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
5760         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
5761         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
5762         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
5763         GOMP_loop_ull_doacross_start,
5764         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
5765         GOMP_loop_maybe_nonmonotonic_runtime_next,
5766         GOMP_loop_maybe_nonmonotonic_runtime_start,
5767         GOMP_loop_nonmonotonic_runtime_next,
5768         GOMP_loop_nonmonotonic_runtime_start,
5769         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5770         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
5771         GOMP_loop_ull_nonmonotonic_runtime_next,
5772         GOMP_loop_ull_nonmonotonic_runtime_start,
5773         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5774         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
5775         GOMP_taskgroup_reduction_register,
5776         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5777         GOMP_teams_reg and GOMP_taskwait_depend.
5778         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
5779         omp_{capture,display}_affinity{,_}, and
5780         omp_[gs]et_affinity_format{,_}.
5781         * loop.c: Include string.h.
5782         (GOMP_loop_runtime_next): Add ialias.
5783         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5784         (gomp_loop_static_start, gomp_loop_dynamic_start,
5785         gomp_loop_guided_start, gomp_loop_ordered_static_start,
5786         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
5787         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
5788         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
5789         or gomp_doacross_init callers.
5790         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
5791         GOMP_loop_doacross_start): New functions.
5792         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
5793         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
5794         Mask off GFS_MONOTONIC bit.
5795         (GOMP_loop_maybe_nonmonotonic_runtime_next,
5796         GOMP_loop_maybe_nonmonotonic_runtime_start,
5797         GOMP_loop_nonmonotonic_runtime_next,
5798         GOMP_loop_nonmonotonic_runtime_start,
5799         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5800         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
5801         functions.
5802         (gomp_parallel_loop_start): Pass NULL as taskgroup to
5803         gomp_team_start.
5804         * loop_ull.c: Include string.h.
5805         (GOMP_loop_ull_runtime_next): Add ialias.
5806         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5807         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
5808         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
5809         gomp_loop_ull_ordered_dynamic_start,
5810         gomp_loop_ull_ordered_guided_start,
5811         gomp_loop_ull_doacross_static_start,
5812         gomp_loop_ull_doacross_dynamic_start,
5813         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
5814         and gomp_doacross_ull_init callers.
5815         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
5816         GOMP_loop_ull_doacross_start): New functions.
5817         (GOMP_loop_ull_runtime_start,
5818         GOMP_loop_ull_ordered_runtime_start,
5819         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
5820         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5821         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
5822         GOMP_loop_ull_nonmonotonic_runtime_next,
5823         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
5824         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
5825         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
5826         (omp_pause_resource_t, omp_depend_t): New typedefs.
5827         (enum omp_lock_hint_t): Renamed to ...
5828         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
5829         enumerators using numbers and omp_lock_hint_* as their aliases.
5830         (omp_lock_hint_t): New typedef.  Rename to ...
5831         (omp_sync_hint_t): ... this.
5832         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
5833         omp_sync_hint_t instead of omp_lock_hint_t.
5834         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5835         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5836         Declare.
5837         (omp_target_is_present, omp_target_disassociate_ptr):
5838         Change first argument from void * to const void *.
5839         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
5840         from void * to const void *.
5841         (omp_target_associate_ptr): Change first and second arguments from
5842         void * to const void *.
5843         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
5844         omp_pause_hard): New parameters.
5845         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5846         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5847         New interfaces.
5848         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
5849         omp_pause_hard): New parameters.
5850         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5851         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5852         New externals.
5853         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
5854         EXTRA argument.  If not needed to prepare array, if extra is 0,
5855         clear ws->doacross, otherwise allocate just doacross structure and
5856         extra payload.  If array is needed, allocate also extra payload.
5857         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
5858         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
5859         doacross == NULL.
5860         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
5861         gomp_team_start.
5862         (GOMP_parallel): Likewise.  Formatting fix.
5863         (GOMP_parallel_reductions): New function.
5864         (GOMP_cancellation_point): If taskgroup has workshare
5865         flag set, check cancelled of prev taskgroup if any.
5866         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
5867         on prev taskgroup if any.
5868         * sections.c: Include string.h.
5869         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5870         (GOMP_sections_start): Adjust gomp_work_share_start caller.
5871         (GOMP_sections2_start): New function.
5872         (GOMP_parallel_sections_start, GOMP_parallel_sections):
5873         Pass NULL as taskgroup to gomp_team_start.
5874         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
5875         gomp_work_share_start callers.
5876         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
5877         If taskgroup has workshare flag set, check cancelled on prev
5878         taskgroup if any.  Guard all cancellation tests with
5879         gomp_cancel_var test.
5880         (omp_target_is_present, omp_target_disassociate_ptr):
5881         Change ptr argument from void * to const void *.
5882         (omp_target_memcpy): Change src argument from void * to const void *.
5883         (omp_target_memcpy_rect): Likewise.
5884         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
5885         instead of char * where needed.
5886         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
5887         from void * to const void *.
5888         (omp_pause_resource, omp_pause_resource_all): New functions.
5889         * task.c (gomp_task_handle_depend): Handle new depend array format
5890         in addition to the old.  Handle mutexinoutset kinds the same as
5891         inout for now, handle unspecified kinds.
5892         (gomp_create_target_task): If taskgroup has workshare flag set, check
5893         cancelled on prev taskgroup if any.  Guard all cancellation tests with
5894         gomp_cancel_var test.  Handle new depend array format count in
5895         addition to the old.
5896         (GOMP_task): Likewise.  Adjust function comment.
5897         (gomp_task_run_pre): If taskgroup has workshare flag set, check
5898         cancelled on prev taskgroup if any.  Guard all cancellation tests with
5899         gomp_cancel_var test.
5900         (GOMP_taskwait_depend): New function.
5901         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
5902         format in addition to the old.  Handle mutexinoutset kinds the same as
5903         inout for now, handle unspecified kinds.  Fix a function comment typo.
5904         (gomp_taskgroup_init): New function.
5905         (GOMP_taskgroup_start): Use it.
5906         (gomp_reduction_register, gomp_create_artificial_team,
5907         GOMP_taskgroup_reduction_register,
5908         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5909         gomp_parallel_reduction_register,
5910         gomp_workshare_task_reduction_register,
5911         gomp_workshare_taskgroup_start,
5912         GOMP_workshare_task_reduction_unregister): New functions.
5913         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
5914         check cancelled on prev taskgroup if any.  Guard all cancellation
5915         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
5916         by calling GOMP_taskgroup_reduction_register.
5917         * team.c (gomp_thread_attr): Remove comment.
5918         (struct gomp_thread_start_data): Add handle field.
5919         (gomp_thread_start): Call pthread_detach.
5920         (gomp_new_team): Adjust gomp_init_work_share caller.
5921         (gomp_free_pool_helper): Call pthread_detach.
5922         (gomp_team_start): Add taskgroup argument, initialize implicit
5923         tasks' taskgroup field to that.  Don't call
5924         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
5925         (gomp_team_end): Determine nesting by thr->ts.level != 0
5926         rather than thr->ts.team != NULL.
5927         (gomp_pause_pool_helper, gomp_pause_host): New functions.
5928         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
5929         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
5930         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
5931         if more than 1 allocate also extra payload at the end of array.  Never
5932         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
5933         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
5934         return true instead of ws.
5935         * Makefile.in: Regenerated.
5936         * configure: Regenerated.
5937         * config.h.in: Regenerated.
5938         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
5939         in some cases.
5940         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
5941         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
5942         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
5943         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
5944         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
5945         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
5946         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
5947         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
5948         * testsuite/libgomp.c-c++-common/for-10.c: New test.
5949         * testsuite/libgomp.c-c++-common/for-11.c: New test.
5950         * testsuite/libgomp.c-c++-common/for-12.c: New test.
5951         * testsuite/libgomp.c-c++-common/for-13.c: New test.
5952         * testsuite/libgomp.c-c++-common/for-14.c: New test.
5953         * testsuite/libgomp.c-c++-common/for-15.c: New test.
5954         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
5955         define a different N(test), don't define N(f0) to N(f14), but instead
5956         define N(f20) to N(f34) using != comparisons.
5957         * testsuite/libgomp.c-c++-common/for-7.c: New test.
5958         * testsuite/libgomp.c-c++-common/for-8.c: New test.
5959         * testsuite/libgomp.c-c++-common/for-9.c: New test.
5960         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
5961         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
5962         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
5963         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
5964         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
5965         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
5966         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
5967         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
5968         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
5969         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
5970         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
5971         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
5972         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
5973         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
5974         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
5975         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
5976         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
5977         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
5978         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
5979         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
5980         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
5981         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
5982         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
5983         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
5984         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
5985         * testsuite/libgomp.c++/depend-1.C: New test.
5986         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
5987         * testsuite/libgomp.c++/depobj-1.C: New test.
5988         * testsuite/libgomp.c++/for-16.C: New test.
5989         * testsuite/libgomp.c++/for-21.C: New test.
5990         * testsuite/libgomp.c++/for-22.C: New test.
5991         * testsuite/libgomp.c++/for-23.C: New test.
5992         * testsuite/libgomp.c++/for-24.C: New test.
5993         * testsuite/libgomp.c++/for-25.C: New test.
5994         * testsuite/libgomp.c++/for-26.C: New test.
5995         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
5996         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
5997         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
5998         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
5999         * testsuite/libgomp.c++/task-reduction-10.C: New test.
6000         * testsuite/libgomp.c++/task-reduction-11.C: New test.
6001         * testsuite/libgomp.c++/task-reduction-12.C: New test.
6002         * testsuite/libgomp.c++/task-reduction-13.C: New test.
6003         * testsuite/libgomp.c++/task-reduction-14.C: New test.
6004         * testsuite/libgomp.c++/task-reduction-15.C: New test.
6005         * testsuite/libgomp.c++/task-reduction-16.C: New test.
6006         * testsuite/libgomp.c++/task-reduction-17.C: New test.
6007         * testsuite/libgomp.c++/task-reduction-18.C: New test.
6008         * testsuite/libgomp.c++/task-reduction-19.C: New test.
6009         * testsuite/libgomp.c/task-reduction-1.c: New test.
6010         * testsuite/libgomp.c++/task-reduction-1.C: New test.
6011         * testsuite/libgomp.c/task-reduction-2.c: New test.
6012         * testsuite/libgomp.c++/task-reduction-2.C: New test.
6013         * testsuite/libgomp.c++/task-reduction-3.C: New test.
6014         * testsuite/libgomp.c++/task-reduction-4.C: New test.
6015         * testsuite/libgomp.c++/task-reduction-5.C: New test.
6016         * testsuite/libgomp.c++/task-reduction-6.C: New test.
6017         * testsuite/libgomp.c++/task-reduction-7.C: New test.
6018         * testsuite/libgomp.c++/task-reduction-8.C: New test.
6019         * testsuite/libgomp.c++/task-reduction-9.C: New test.
6020         * testsuite/libgomp.c/teams-1.c: New test.
6021         * testsuite/libgomp.c/teams-2.c: New test.
6022         * testsuite/libgomp.c/thread-limit-4.c: New test.
6023         * testsuite/libgomp.c/thread-limit-5.c: New test.
6024         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
6026 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
6028         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
6029         acc_memcpy_to/from_device functions, now with async parameter.
6030         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
6031         (acc_memcpy_from_device): Likewise.
6032         (acc_memcpy_to_device_async): New API function.
6033         (acc_memcpy_from_device_async): Likewise.
6034         (present_create_copy): Add async parameter and async setting/unsetting.
6035         (acc_create): Adjust present_create_copy call.
6036         (acc_copyin): Likewise.
6037         (acc_present_or_create): Likewise.
6038         (acc_present_or_copyin): Likewise.
6039         (acc_create_async): New API function.
6040         (acc_copyin_async): New API function.
6041         (delete_copyout): Add async parameter and async setting/unsetting.
6042         (acc_delete): Adjust delete_copyout call.
6043         (acc_copyout): Likewise.
6044         (acc_delete_async): New API function.
6045         (acc_copyout_async): Likewise.
6046         (update_dev_host): Add async parameter and async setting/unsetting.
6047         (acc_update_device): Adjust update_dev_host call.
6048         (acc_update_self): Likewise.
6049         (acc_update_device_async): New API function.
6050         (acc_update_self_async): Likewise.
6051         * openacc.h (acc_copyin_async): Declare new API function.
6052         (acc_create_async): Likewise.
6053         (acc_copyout_async): Likewise.
6054         (acc_delete_async): Likewise.
6055         (acc_update_device_async): Likewise.
6056         (acc_update_self_async): Likewise.
6057         (acc_memcpy_to_device_async): Likewise.
6058         (acc_memcpy_from_device_async): Likewise.
6059         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
6060         (acc_copyin_async_64_h): New subroutine.
6061         (acc_copyin_async_array_h): New subroutine.
6062         (acc_create_async_32_h): New subroutine.
6063         (acc_create_async_64_h): New subroutine.
6064         (acc_create_async_array_h): New subroutine.
6065         (acc_copyout_async_32_h): New subroutine.
6066         (acc_copyout_async_64_h): New subroutine.
6067         (acc_copyout_async_array_h): New subroutine.
6068         (acc_delete_async_32_h): New subroutine.
6069         (acc_delete_async_64_h): New subroutine.
6070         (acc_delete_async_array_h): New subroutine.
6071         (acc_update_device_async_32_h): New subroutine.
6072         (acc_update_device_async_64_h): New subroutine.
6073         (acc_update_device_async_array_h): New subroutine.
6074         (acc_update_self_async_32_h): New subroutine.
6075         (acc_update_self_async_64_h): New subroutine.
6076         (acc_update_self_async_array_h): New subroutine.
6077         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
6078         (acc_copyin_async_64_h): New subroutine.
6079         (acc_copyin_async_array_h): New subroutine.
6080         (acc_create_async_32_h): New subroutine.
6081         (acc_create_async_64_h): New subroutine.
6082         (acc_create_async_array_h): New subroutine.
6083         (acc_copyout_async_32_h): New subroutine.
6084         (acc_copyout_async_64_h): New subroutine.
6085         (acc_copyout_async_array_h): New subroutine.
6086         (acc_delete_async_32_h): New subroutine.
6087         (acc_delete_async_64_h): New subroutine.
6088         (acc_delete_async_array_h): New subroutine.
6089         (acc_update_device_async_32_h): New subroutine.
6090         (acc_update_device_async_64_h): New subroutine.
6091         (acc_update_device_async_array_h): New subroutine.
6092         (acc_update_self_async_32_h): New subroutine.
6093         (acc_update_self_async_64_h): New subroutine.
6094         (acc_update_self_async_array_h): New subroutine.
6095         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
6096         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
6097         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
6098         acc_memcpy_to_device_async*, acc_update_device_async*, and
6099         acc_update_self_async* entries.
6100         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
6101         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
6102         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
6104 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
6106         PR bootstrap/82856
6107         * Makefile.am: Include multilib.am
6108         (AUTOMAKE_OPTIONS): Add info-in-builddir.
6109         (CLEANFILES): Remove libgomp.info.
6110         * configure.ac: Remove AC_PREREQ.
6111         * testsuite/Makefile.am (RUNTEST): Remove quotes.
6112         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
6113         Regenerate.
6115 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
6116             Julian Brown  <julian@codesourcery.com>
6118         * testsuite/libgomp.oacc-c++/this.C: New.
6120 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
6122         * plugin/plugin-nvptx.c (struct cuda_map): New.
6123         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
6124         h_tail with (cuda_map *) map.
6125         (cuda_map_create): New function.
6126         (cuda_map_destroy): New function.
6127         (map_init): Update to use a linked list of cuda_map objects.
6128         (map_fini): Likewise.
6129         (map_pop): Likewise.
6130         (map_push): Likewise.  Return CUdeviceptr instead of void.
6131         (init_streams_for_device): Remove stales references to ptx_stream
6132         members.
6133         (select_stream_for_async): Likewise.
6134         (nvptx_exec): Update call to map_init.
6136 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
6137             Julian Brown  <julian@codesourcery.com>
6139         PR middle-end/86336
6140         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
6142 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
6143         Thomas Koenig <tkoenig@gcc.gnu.org>
6145         PR fortran/25829
6146         * testsuite/libgomp.fortran/async_io_1.f90: New test.
6147         * testsuite/libgomp.fortran/async_io_2.f90: New test.
6148         * testsuite/libgomp.fortran/async_io_3.f90: New test.
6149         * testsuite/libgomp.fortran/async_io_4.f90: New test.
6150         * testsuite/libgomp.fortran/async_io_5.f90: New test.
6151         * testsuite/libgomp.fortran/async_io_6.f90: New test.
6152         * testsuite/libgomp.fortran/async_io_7.f90: New test.
6154 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
6155             Tom de Vries  <tdevries@suse.de>
6157         PR target/85590
6158         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
6159         (cuOccupancyMaxPotentialBlockSize): Declare.
6160         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
6161         CUDA_ONE_CALL_MAYBE_NULL.
6162         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
6163         CUoccupancyB2DSize and declare
6164         cuOccupancyMaxPotentialBlockSize.
6165         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
6166         default num_gangs and num_workers when the driver supports it.
6168 2018-08-08  Tom de Vries  <tdevries@suse.de>
6170         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
6171         CUDA_ONE_CALL_MAYBE_NULL.
6172         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
6173         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
6174         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
6175         are not found.
6177 2018-08-08  Tom de Vries  <tdevries@suse.de>
6179         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
6180         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
6181         present.
6183 2018-08-08  Tom de Vries  <tdevries@suse.de>
6185         * plugin/plugin-nvptx.c
6186         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
6187         (nvptx_open_device): Use
6188         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
6190 2018-08-08  Tom de Vries  <tdevries@suse.de>
6192         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
6193         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
6195 2018-08-07  Tom de Vries  <tdevries@suse.de>
6197         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
6198         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
6199         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
6200         corresponding call in CUDA_ONE_CALL.  Add def/undef of
6201         CUDA_ONE_CALL_MAYBE_NULL.
6202         (CUDA_CALL_EXISTS): Define.
6204 2018-08-07  Tom de Vries  <tdevries@suse.de>
6206         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
6207         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
6208         corresponding undefs right after.
6210 2018-08-04  Tom de Vries  <tdevries@suse.de>
6212         * plugin/configfrag.ac: For --without-cuda-driver, set
6213         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
6214         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
6215         * configure: Regenerate.
6217 2018-08-02  Tom de Vries  <tdevries@suse.de>
6219         PR target/86660
6220         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
6221         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
6222         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
6223         Same.
6224         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
6225         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
6226         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
6228 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
6229             Thomas Schwinge <thomas@codesourcery.com>
6231         * config/nvptx/oacc-parallel.c: Truncate.
6233 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
6234             James Norris <jnorris@codesourcery.com>
6236         * plugin/plugin-nvptx.c (struct map): Removed.
6237         (map_init, map_pop): Remove use of struct map.
6238         (map_push): Likewise and change argument list.
6239         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
6241 2018-08-01  Tom de Vries  <tdevries@suse.de>
6243         * plugin/cuda-lib.def: New file.  Factor out of ...
6244         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
6245         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
6246         using CUDA_CALLS.
6248 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6250         Revert 'AsyncI/O patch committed'.
6251         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
6252                 Thomas Koenig <tkoenig@gcc.gnu.org>
6254         PR fortran/25829
6255         * testsuite/libgomp.fortran/async_io_1.f90: New test.
6256         * testsuite/libgomp.fortran/async_io_2.f90: New test.
6257         * testsuite/libgomp.fortran/async_io_3.f90: New test.
6258         * testsuite/libgomp.fortran/async_io_4.f90: New test.
6259         * testsuite/libgomp.fortran/async_io_5.f90: New test.
6260         * testsuite/libgomp.fortran/async_io_6.f90: New test.
6261         * testsuite/libgomp.fortran/async_io_7.f90: New test.
6263 2018-07-30  Tom de Vries  <tdevries@suse.de>
6265         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
6266         (nvptx_exec): Ensure worker and vector default dims don't exceed
6267         targ_fn->max_threads_per_block.
6269 2018-07-30  Tom de Vries  <tdevries@suse.de>
6271         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
6272         (nvptx_open_device): Init default_dims for device.
6273         (nvptx_exec): Use default_dims from device.
6275 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
6277         PR testsuite/86660
6278         * testsuite/libgomp.c++/for-15.C (results): Include it in
6279         omp declare target region.
6280         (main): Use map (always, tofrom: results) instead of
6281         map (tofrom: results).
6283         PR middle-end/86660
6284         * testsuite/libgomp.c/pr86660.c: New test.
6286 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
6287             Tom de Vries  <tdevries@suse.de>
6289         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
6290         sufficient resources to launch a kernel, and give a hint on how to fix
6291         it.
6293 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
6294             Tom de Vries  <tdevries@suse.de>
6296         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
6297         max_threads_per_block and max_threads_per_multiprocessor fields.
6298         (nvptx_open_device): Initialize new fields.
6299         (nvptx_exec): Use num_sms, and new fields.
6301 2018-07-26  Tom de Vries  <tdevries@suse.de>
6303         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
6304         to correct locations.  Remove xfail.
6306 2018-07-26  Tom de Vries  <tdevries@suse.de>
6308         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
6309         acc_wait.  Move acc_async_test calls to correct locations.  Remove
6310         xfail.
6312 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
6313         Thomas Koenig <tkoenig@gcc.gnu.org>
6315         PR fortran/25829
6316         * testsuite/libgomp.fortran/async_io_1.f90: New test.
6317         * testsuite/libgomp.fortran/async_io_2.f90: New test.
6318         * testsuite/libgomp.fortran/async_io_3.f90: New test.
6319         * testsuite/libgomp.fortran/async_io_4.f90: New test.
6320         * testsuite/libgomp.fortran/async_io_5.f90: New test.
6321         * testsuite/libgomp.fortran/async_io_6.f90: New test.
6322         * testsuite/libgomp.fortran/async_io_7.f90: New test.
6324 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
6326         PR middle-end/86542
6327         * testsuite/libgomp.c++/pr86542.C: New test.
6329         PR middle-end/86539
6330         * testsuite/libgomp.c++/pr86539.C: New test.
6332 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
6334         PR c++/86443
6335         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
6336         (results): Make sure the variable is not inside declare target region.
6337         (qux): Remove unused function.
6339 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
6341         PR c++/86443
6342         * testsuite/libgomp.c++/for-15.C: New test.
6344 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
6346         PR c++/86291
6347         * testsuite/libgomp.c++/pr86291.C: New test.
6349 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
6351         * libgomp.texi (Top): Move www.openmp.org to https.
6352         (Enabling OpenMP): Ditto.
6353         (omp_get_active_level): Ditto.
6354         (omp_get_ancestor_thread_num): Ditto.
6355         (omp_get_cancellation): Ditto.
6356         (omp_get_default_device): Ditto.
6357         (omp_get_dynamic): Ditto.
6358         (omp_get_level): Ditto.
6359         (omp_get_max_active_levels): Ditto.
6360         (omp_get_max_task_priority): Ditto.
6361         (omp_get_max_threads): Ditto.
6362         (omp_get_nested): Ditto.
6363         (omp_get_num_devices): Ditto.
6364         (omp_get_num_procs): Ditto.
6365         (omp_get_num_teams): Ditto.
6366         (omp_get_num_threads): Ditto.
6367         (omp_get_proc_bind): Ditto.
6368         (omp_get_schedule): Ditto.
6369         (omp_get_team_num): Ditto.
6370         (omp_get_team_size): Ditto.
6371         (omp_get_thread_limit): Ditto.
6372         (omp_get_thread_num): Ditto.
6373         (omp_in_parallel): Ditto.
6374         (omp_in_final): Ditto.
6375         (omp_is_initial_device): Ditto.
6376         (omp_set_default_device): Ditto.
6377         (omp_set_dynamic): Ditto.
6378         (omp_set_max_active_levels): Ditto.
6379         (omp_set_nested): Ditto.
6380         (omp_set_num_threads): Ditto.
6381         (omp_set_schedule): Ditto.
6382         (omp_init_lock): Ditto.
6383         (omp_set_lock): Ditto.
6384         (omp_test_lock): Ditto.
6385         (omp_unset_lock): Ditto.
6386         (omp_destroy_lock): Ditto.
6387         (omp_init_nest_lock): Ditto.
6388         (omp_set_nest_lock): Ditto.
6389         (omp_test_nest_lock): Ditto.
6390         (omp_unset_nest_lock): Ditto.
6391         (omp_destroy_nest_lock): Ditto.
6392         (omp_get_wtick): Ditto.
6393         (omp_get_wtime): Ditto.
6394         (OMP_CANCELLATION): Ditto.
6395         (OMP_DISPLAY_ENV): Ditto.
6396         (OMP_DEFAULT_DEVICE): Ditto.
6397         (OMP_DYNAMIC): Ditto.
6398         (OMP_MAX_ACTIVE_LEVELS): Ditto.
6399         (OMP_MAX_TASK_PRIORITY): Ditto.
6400         (OMP_NESTED): Ditto.
6401         (OMP_NUM_THREADS): Ditto.
6402         (OMP_PROC_BIND): Ditto.
6403         (OMP_PLACES): Ditto.
6404         (OMP_STACKSIZE): Ditto.
6405         (OMP_SCHEDULE): Ditto.
6406         (OMP_THREAD_LIMIT): Ditto.
6407         (OMP_WAIT_POLICY): Ditto.
6409 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
6410             James Norris  <jnorris@codesourcery.com>
6411             Julian Brown  <julian@codesourcery.com>
6412             Thomas Schwinge  <thomas@codesourcery.com>
6413             Tom de Vries  <tom@codesourcery.com>
6415         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
6416         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
6417         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
6418         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
6419         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
6420         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
6421         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
6422         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
6423         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
6424         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
6425         Likewise.
6426         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6427         Likewise.
6428         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6429         Likewise.
6430         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
6431         Likewise.
6432         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
6433         Likewise.
6434         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6435         Likewise.
6436         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
6437         Likewise.
6438         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
6439         Likewise.
6440         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
6441         Likewise.
6442         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
6443         Likewise.
6444         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
6445         Likewise.
6446         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
6447         Likewise.
6448         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
6449         Likewise.
6450         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
6451         Likewise.
6452         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
6453         Likewise.
6454         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
6455         Likewise.
6456         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
6457         Likewise.
6458         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
6459         Likewise.
6460         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
6461         Likewise.
6462         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
6463         Likewise.
6464         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
6465         Likewise.
6466         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
6467         Likewise.
6468         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
6469         Likewise.
6470         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
6471         Likewise.
6472         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
6473         Likewise.
6474         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
6475         Likewise.
6476         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
6477         Likewise.
6478         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
6479         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
6480         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
6481         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
6482         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
6483         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
6484         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
6485         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
6486         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
6487         Likewise.
6488         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
6489         Likewise.
6490         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
6491         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
6492         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
6493         Likewise.
6494         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
6495         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
6496         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
6497         Likewise.
6498         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6499         Likewise.
6500         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6501         Likewise.
6502         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6503         Likewise.
6504         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6505         Likewise.
6506         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
6507         Likewise.
6508         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
6509         Likewise.
6510         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
6511         Likewise.
6512         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
6513         Likewise.
6514         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
6515         Likewise.
6516         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
6517         Likewise.
6518         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
6519         Likewise.
6520         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
6521         Likewise.
6522         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
6523         Likewise.
6524         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
6525         Likewise.
6526         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
6527         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
6528         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
6529         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
6530         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
6531         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
6532         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
6534 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
6535             Thomas Schwinge <thomas@codesourcery.com>
6536             Cesar Philippidis  <cesar@codesourcery.com>
6538         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
6539         (gomp_acc_remove_pointer): Update declaration.
6540         (gomp_acc_declare_allocate): Declare.
6541         (gomp_remove_var): Declare.
6542         * libgomp.map (OACC_2.5): Define.
6543         * oacc-mem.c (acc_map_data): Update refcount.
6544         (acc_unmap_data): Likewise.
6545         (present_create_copy): Likewise.
6546         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
6547         (acc_copyin): Likewise.
6548         (FLAG_FINALIZE): Define.
6549         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
6550         (acc_delete_finalize): New function.
6551         (acc_delete_finalize_async): New function.
6552         (acc_copyout_finalize): New function.
6553         (acc_copyout_finalize_async): New function.
6554         (gomp_acc_insert_pointer): Update refcounts.
6555         (gomp_acc_remove_pointer): Return if data is not present on the
6556         accelerator.
6557         * oacc-parallel.c (find_pset): Rename to find_pointer.
6558         (find_pointer): Add support for GOMP_MAP_POINTER.
6559         (handle_ftn_pointers): New function.
6560         (GOACC_parallel_keyed): Update refcounts of variables.
6561         (GOACC_enter_exit_data): Add support for finalized data mappings.
6562         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
6563         of fortran arrays.
6564         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
6565         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
6566         for GOMP_MAP_FORCE_FROM.
6567         * openacc.f90 (module openacc_internal): Add
6568         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
6569         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
6570         acc_copyout_finalize and acc_delete_finalize.
6571         (acc_copyout_finalize_32_h): New subroutine.
6572         (acc_copyout_finalize_64_h): New subroutine.
6573         (acc_copyout_finalize_array_h): New subroutine.
6574         (acc_delete_finalize_32_h): New subroutine.
6575         (acc_delete_finalize_64_h): New subroutine.
6576         (acc_delete_finalize_array_h): New subroutine.
6577         * openacc.h (acc_copyout_finalize): Declare.
6578         (acc_copyout_finalize_async): Declare.
6579         (acc_delete_finalize): Declare.
6580         (acc_delete_finalize_async): Declare.
6581         * openacc_lib.h (acc_copyout_finalize): New interface.
6582         (acc_delete_finalize): New interface.
6583         * target.c (gomp_map_vars): Update dynamic_refcount.
6584         (gomp_remove_var): New function.
6585         (gomp_unmap_vars): Use it.
6586         (gomp_unload_image_from_device): Likewise.
6587         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
6588         case to utilize OpenACC 2.5 data clause semantics.
6589         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6590         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6591         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6592         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6593         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6594         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6595         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6596         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6597         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6598         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
6599         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6600         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
6601         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
6602         utilize OpenACC 2.5 data clause semantics.
6603         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6604         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6605         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6606         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6607         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6608         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6609         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6610         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
6611         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
6613 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
6615         PR fortran/85841
6616         PR testsuite/85865
6617         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
6618         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
6619         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
6620         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
6621         * testsuite/libgomp.fortran/task2.f90: Ditto.
6622         * testsuite/libgomp.fortran/vla1.f90: Ditto.
6623         * testsuite/libgomp.fortran/vla2.f90: Ditto.
6624         * testsuite/libgomp.fortran/vla3.f90: Ditto.
6625         * testsuite/libgomp.fortran/vla4.f90: Ditto.
6626         * testsuite/libgomp.fortran/vla5.f90: Ditto.
6627         * testsuite/libgomp.fortran/vla6.f90: Ditto.
6628         * testsuite/libgomp.fortran/vla8.f90: Ditto.
6629         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
6630         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
6632 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
6634         PR c++/85782
6635         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
6637 2018-05-09  Tom de Vries  <tom@codesourcery.com>
6639         PR libgomp/82901
6640         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
6641         to GOACC_enter_exit_data.
6643 2018-05-09  Tom de Vries  <tom@codesourcery.com>
6645         PR libgomp/83792
6646         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
6647         (async_synchronous_p): New function.
6648         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
6649         async_valid_p.
6650         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
6651         async_valid_stream_id_p.
6652         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
6653         * oacc-parallel.c (GOACC_parallel_keyed): Same.
6655 2018-05-07  Tom de Vries  <tom@codesourcery.com>
6657         PR testsuite/85677
6658         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
6659         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
6661 2018-05-03  Tom de Vries  <tom@codesourcery.com>
6663         PR testsuite/85106
6664         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
6665         extra_tool_flags if it contains an -foffload=-fdump-* flag.
6666         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
6667         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
6669 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6671         PR libgomp/85411
6672         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
6673         GOMP_OPENACC_DIM ...
6674         * env.c (parse_gomp_openacc_dim): ... here.  New function.
6675         (initialize_env): Call parse_gomp_openacc_dim.
6676         (goacc_default_dims): Define.
6677         * libgomp.h (goacc_default_dims): Declare.
6678         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
6679         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
6680         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
6681         GOMP_PLUGIN_acc_default_dim.
6682         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
6683         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
6685 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6687         PR testsuite/83791
6688         * testsuite/libgomp.c++/udr-9.C: Update.
6689         * testsuite/libgomp.c++/atomic-16.C: Remove.
6690         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
6691         * testsuite/libgomp.c++/loop-13.C: Remove.
6692         * testsuite/libgomp.c++/loop-14.C: Remove.
6693         * testsuite/libgomp.c++/loop-15.C: Remove.
6694         * testsuite/libgomp.c++/monotonic-1.C: Remove.
6695         * testsuite/libgomp.c++/monotonic-2.C: Remove.
6696         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
6697         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
6698         * testsuite/libgomp.c++/ordered-1.C: Remove.
6699         * testsuite/libgomp.c++/pr45784.C: Remove.
6700         * testsuite/libgomp.c++/pr64824.C: Remove.
6701         * testsuite/libgomp.c++/pr64868.C: Remove.
6702         * testsuite/libgomp.c++/pr66199-1.C: Remove.
6703         * testsuite/libgomp.c++/pr66199-2.C: Remove.
6704         * testsuite/libgomp.c++/pr66199-3.C: Remove.
6705         * testsuite/libgomp.c++/pr66199-4.C: Remove.
6706         * testsuite/libgomp.c++/pr66199-5.C: Remove.
6707         * testsuite/libgomp.c++/pr66199-6.C: Remove.
6708         * testsuite/libgomp.c++/pr66199-7.C: Remove.
6709         * testsuite/libgomp.c++/pr66199-8.C: Remove.
6710         * testsuite/libgomp.c++/pr66199-9.C: Remove.
6711         * testsuite/libgomp.c++/pr69389.C: Remove.
6712         * testsuite/libgomp.c++/simd10.C: Remove.
6713         * testsuite/libgomp.c++/simd11.C: Remove.
6714         * testsuite/libgomp.c++/simd12.C: Remove.
6715         * testsuite/libgomp.c++/simd13.C: Remove.
6716         * testsuite/libgomp.c++/target-1.C: Remove.
6717         * testsuite/libgomp.c++/target-3.C: Remove.
6718         * testsuite/libgomp.c++/target-4.C: Remove.
6719         * testsuite/libgomp.c++/target-5.C: Remove.
6720         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
6721         * testsuite/libgomp.c++/taskloop-1.C: Remove.
6722         * testsuite/libgomp.c++/taskloop-2.C: Remove.
6723         * testsuite/libgomp.c++/taskloop-3.C: Remove.
6724         * testsuite/libgomp.c++/taskloop-4.C: Remove.
6725         * testsuite/libgomp.c++/udr-9.C: Remove.
6726         * testsuite/libgomp.c++/for-10.C: Remove.
6727         * testsuite/libgomp.c++/for-11.C: Remove.
6728         * testsuite/libgomp.c++/for-12.C: Remove.
6729         * testsuite/libgomp.c++/for-13.C: Remove.
6730         * testsuite/libgomp.c++/for-14.C: Remove.
6731         * testsuite/libgomp.c++/for-9.C: Remove.
6732         * testsuite/libgomp.c/atomic-18.c: Move ...
6733         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
6734         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
6735         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
6736         * testsuite/libgomp.c/loop-13.c: Move ...
6737         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
6738         * testsuite/libgomp.c/loop-14.c: Move ...
6739         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
6740         * testsuite/libgomp.c/loop-15.c: Remove.
6741         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
6742         * testsuite/libgomp.c/monotonic-1.c: Move ...
6743         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
6744         * testsuite/libgomp.c/monotonic-2.c: Move ...
6745         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
6746         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
6747         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
6748         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
6749         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
6750         * testsuite/libgomp.c/ordered-4.c: Move ...
6751         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
6752         * testsuite/libgomp.c/pr45784.c: Move ...
6753         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
6754         * testsuite/libgomp.c/pr64824.c: Move ...
6755         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
6756         * testsuite/libgomp.c/pr64868.c: Move ...
6757         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
6758         * testsuite/libgomp.c/pr66199-1.c: Move ...
6759         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
6760         * testsuite/libgomp.c/pr66199-2.c: Move ...
6761         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
6762         * testsuite/libgomp.c/pr66199-3.c: Move ...
6763         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
6764         * testsuite/libgomp.c/pr66199-4.c: Move ...
6765         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
6766         * testsuite/libgomp.c/pr66199-5.c: Move ...
6767         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
6768         * testsuite/libgomp.c/pr66199-6.c: Move ...
6769         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
6770         * testsuite/libgomp.c/pr66199-7.c: Move ...
6771         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
6772         * testsuite/libgomp.c/pr66199-8.c: Move ...
6773         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
6774         * testsuite/libgomp.c/pr66199-9.c: Move ...
6775         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
6776         * testsuite/libgomp.c/pr69389.c: Move ...
6777         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
6778         * testsuite/libgomp.c/simd-14.c: Move ...
6779         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
6780         * testsuite/libgomp.c/simd-15.c: Move ...
6781         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
6782         * testsuite/libgomp.c/simd-16.c: Move ...
6783         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
6784         * testsuite/libgomp.c/simd-17.c: Move ...
6785         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
6786         * testsuite/libgomp.c/target-1.c: Move ...
6787         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
6788         * testsuite/libgomp.c/target-10.c: Move ...
6789         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
6790         * testsuite/libgomp.c/target-13.c: Move ...
6791         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
6792         * testsuite/libgomp.c/target-2.c: Move ...
6793         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
6794         * testsuite/libgomp.c/taskgroup-1.c: Move ...
6795         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
6796         * testsuite/libgomp.c/taskloop-1.c: Move ...
6797         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
6798         * testsuite/libgomp.c/taskloop-2.c: Move ...
6799         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
6800         * testsuite/libgomp.c/taskloop-3.c: Move ...
6801         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
6802         * testsuite/libgomp.c/taskloop-4.c: Move ...
6803         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
6804         * testsuite/libgomp.c/udr-1.c: Move ...
6805         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
6806         * testsuite/libgomp.c/for-1.c: Move ...
6807         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
6808         * testsuite/libgomp.c/for-1.h: Move ...
6809         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
6810         * testsuite/libgomp.c/for-2.c: Move ...
6811         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
6812         * testsuite/libgomp.c/for-2.h: Move ...
6813         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
6814         * testsuite/libgomp.c/for-3.c: Move ...
6815         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
6816         * testsuite/libgomp.c/for-4.c: Move ...
6817         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
6818         * testsuite/libgomp.c/for-5.c: Move ...
6819         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
6820         * testsuite/libgomp.c/for-6.c: Move ...
6821         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
6823 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6825         PR libgomp/82428
6826         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
6827         __builtin_goacc_parlevel_{id,size}.
6828         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
6829         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
6830         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
6831         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
6832         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
6833         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
6834         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
6835         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
6836         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
6837         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
6838         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
6839         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
6840         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
6841         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
6842         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
6843         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
6844         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
6845         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
6846         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
6847         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
6848         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
6849         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
6850         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
6852 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6854         PR testsuite/85106
6855         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
6857 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6859         PR testsuite/85106
6860         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
6862 2018-04-29  Julian Brown  <julian@codesourcery.com>
6863             Tom de Vries  <tom@codesourcery.com>
6865         PR testsuite/85527
6866         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
6867         arbitrary order for iterations of atomic subtract check.
6869 2018-04-28  Tom de Vries  <tom@codesourcery.com>
6871         PR testsuite/85527
6872         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
6873         atomic capture results obtained in parallel loop to an array, instead of
6874         to a scalar.
6876 2018-04-26  Tom de Vries  <tom@codesourcery.com>
6878         PR libgomp/84020
6879         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
6880         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
6881         (process_GOMP_NVPTX_JIT): New function.
6882         (link_ptx): Use process_GOMP_NVPTX_JIT.
6884 2018-04-26  Richard Biener <rguenther@suse.de>
6885             Tom de Vries  <tom@codesourcery.com>
6887         PR lto/85422
6888         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
6890 2018-04-26  Tom de Vries  <tom@codesourcery.com>
6892         PR target/85519
6893         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
6894         recursion depth from 25 to 23.
6895         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
6897 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
6899         * configure: Regenerated.
6901 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
6902             Tom de Vries  <tom@codesourcery.com>
6904         PR target/85445
6905         * testsuite/libgomp.oacc-c++/ref-1.C: New.
6907 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
6909         PR libgomp/85463
6910         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
6911         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6912         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6913         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
6914         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
6915         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
6917         PR libfortran/85166
6918         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
6919         abort".
6920         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
6922 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
6924         * configure: Regenerated.
6926 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
6928         PR jit/85384
6929         * configure: Regenerate.
6931 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
6932             Tom de Vries  <tom@codesourcery.com>
6934         PR middle-end/84955
6935         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
6936         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
6938 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
6940         PR fortran/83064
6941         PR testsuite/85346
6942         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
6943         test from gfortran.dg to here.
6945 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
6947         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
6948         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
6950 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
6952         PR middle-end/84955
6953         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
6954         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
6956 2018-04-05  Tom de Vries  <tom@codesourcery.com>
6958         PR target/85204
6959         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
6961 2018-03-26  Tom de Vries  <tom@codesourcery.com>
6963         PR tree-optimization/85063
6964         * testsuite/libgomp.c/switch-conversion-2.c: New test.
6965         * testsuite/libgomp.c/switch-conversion.c: New test.
6966         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
6967         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
6969 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
6971         PR fortran/84381
6972         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
6973         call abort by STOP n.
6974         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
6975         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
6976         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
6977         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
6978         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
6979         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
6980         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
6981         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
6982         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
6983         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
6984         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
6985         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
6986         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
6987         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
6988         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
6989         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
6990         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
6991         * testsuite/libgomp.fortran/associate1.f90: Likewise.
6992         * testsuite/libgomp.fortran/associate2.f90: Likewise.
6993         * testsuite/libgomp.fortran/associate3.f90: Likewise.
6994         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
6995         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
6996         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
6997         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
6998         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
6999         * testsuite/libgomp.fortran/character1.f90: Likewise.
7000         * testsuite/libgomp.fortran/character2.f90: Likewise.
7001         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
7002         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
7003         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
7004         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
7005         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
7006         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
7007         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
7008         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
7009         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
7010         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
7011         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
7012         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
7013         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
7014         * testsuite/libgomp.fortran/do1.f90: Likewise.
7015         * testsuite/libgomp.fortran/do2.f90: Likewise.
7016         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
7017         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
7018         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
7019         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
7020         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
7021         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
7022         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
7023         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
7024         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
7025         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
7026         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
7027         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
7028         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
7029         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
7030         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
7031         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
7032         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
7033         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
7034         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
7035         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
7036         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
7037         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
7038         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
7039         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
7040         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
7041         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
7042         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
7043         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
7044         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
7045         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
7046         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
7047         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
7048         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
7049         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
7050         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
7051         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
7052         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
7053         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
7054         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
7055         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
7056         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
7057         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
7058         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
7059         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
7060         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
7061         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
7062         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
7063         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
7064         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
7065         * testsuite/libgomp.fortran/lib1.f90: Likewise.
7066         * testsuite/libgomp.fortran/lib2.f: Likewise.
7067         * testsuite/libgomp.fortran/lib3.f: Likewise.
7068         * testsuite/libgomp.fortran/lib4.f90: Likewise.
7069         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
7070         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
7071         * testsuite/libgomp.fortran/nested1.f90: Likewise.
7072         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
7073         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
7074         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
7075         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
7076         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
7077         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
7078         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
7079         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
7080         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
7081         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
7082         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
7083         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
7084         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
7085         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
7086         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
7087         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
7088         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
7089         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
7090         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
7091         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7092         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
7093         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
7094         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
7095         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
7096         * testsuite/libgomp.fortran/pr25162.f: Likewise.
7097         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
7098         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
7099         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
7100         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
7101         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
7102         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
7103         * testsuite/libgomp.fortran/pr28390.f: Likewise.
7104         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
7105         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
7106         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
7107         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
7108         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
7109         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
7110         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
7111         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
7112         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
7113         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
7114         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
7115         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
7116         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
7117         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
7118         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
7119         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
7120         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
7121         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
7122         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
7123         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
7124         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
7125         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
7126         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
7127         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
7128         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
7129         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
7130         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
7131         * testsuite/libgomp.fortran/reference1.f90: Likewise.
7132         * testsuite/libgomp.fortran/reference2.f90: Likewise.
7133         * testsuite/libgomp.fortran/retval1.f90: Likewise.
7134         * testsuite/libgomp.fortran/retval2.f90: Likewise.
7135         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
7136         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
7137         * testsuite/libgomp.fortran/simd1.f90: Likewise.
7138         * testsuite/libgomp.fortran/simd2.f90: Likewise.
7139         * testsuite/libgomp.fortran/simd3.f90: Likewise.
7140         * testsuite/libgomp.fortran/simd4.f90: Likewise.
7141         * testsuite/libgomp.fortran/simd5.f90: Likewise.
7142         * testsuite/libgomp.fortran/simd6.f90: Likewise.
7143         * testsuite/libgomp.fortran/simd7.f90: Likewise.
7144         * testsuite/libgomp.fortran/stack.f90: Likewise.
7145         * testsuite/libgomp.fortran/strassen.f90: Likewise.
7146         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
7147         * testsuite/libgomp.fortran/tabs2.f: Likewise.
7148         * testsuite/libgomp.fortran/target1.f90: Likewise.
7149         * testsuite/libgomp.fortran/target2.f90: Likewise.
7150         * testsuite/libgomp.fortran/target3.f90: Likewise.
7151         * testsuite/libgomp.fortran/target4.f90: Likewise.
7152         * testsuite/libgomp.fortran/target5.f90: Likewise.
7153         * testsuite/libgomp.fortran/target6.f90: Likewise.
7154         * testsuite/libgomp.fortran/target7.f90: Likewise.
7155         * testsuite/libgomp.fortran/target8.f90: Likewise.
7156         * testsuite/libgomp.fortran/task1.f90: Likewise.
7157         * testsuite/libgomp.fortran/task2.f90: Likewise.
7158         * testsuite/libgomp.fortran/task3.f90: Likewise.
7159         * testsuite/libgomp.fortran/task4.f90: Likewise.
7160         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
7161         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
7162         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
7163         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
7164         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
7165         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
7166         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
7167         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
7168         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
7169         * testsuite/libgomp.fortran/udr1.f90: Likewise.
7170         * testsuite/libgomp.fortran/udr10.f90: Likewise.
7171         * testsuite/libgomp.fortran/udr11.f90: Likewise.
7172         * testsuite/libgomp.fortran/udr12.f90: Likewise.
7173         * testsuite/libgomp.fortran/udr13.f90: Likewise.
7174         * testsuite/libgomp.fortran/udr14.f90: Likewise.
7175         * testsuite/libgomp.fortran/udr15.f90: Likewise.
7176         * testsuite/libgomp.fortran/udr2.f90: Likewise.
7177         * testsuite/libgomp.fortran/udr3.f90: Likewise.
7178         * testsuite/libgomp.fortran/udr4.f90: Likewise.
7179         * testsuite/libgomp.fortran/udr5.f90: Likewise.
7180         * testsuite/libgomp.fortran/udr6.f90: Likewise.
7181         * testsuite/libgomp.fortran/udr7.f90: Likewise.
7182         * testsuite/libgomp.fortran/udr8.f90: Likewise.
7183         * testsuite/libgomp.fortran/udr9.f90: Likewise.
7184         * testsuite/libgomp.fortran/vla1.f90: Likewise.
7185         * testsuite/libgomp.fortran/vla2.f90: Likewise.
7186         * testsuite/libgomp.fortran/vla3.f90: Likewise.
7187         * testsuite/libgomp.fortran/vla4.f90: Likewise.
7188         * testsuite/libgomp.fortran/vla5.f90: Likewise.
7189         * testsuite/libgomp.fortran/vla6.f90: Likewise.
7190         * testsuite/libgomp.fortran/vla7.f90: Likewise.
7191         * testsuite/libgomp.fortran/vla8.f90: Likewise.
7192         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
7193         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
7194         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7195         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
7196         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7197         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7198         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7199         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
7200         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
7201         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
7202         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
7203         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
7204         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
7205         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
7206         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
7207         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
7208         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7209         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
7210         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
7211         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
7212         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
7213         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
7214         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
7215         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
7216         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
7217         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
7218         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
7219         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
7220         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7221         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
7222         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
7223         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7224         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7225         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7226         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7227         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7228         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
7229         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
7230         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
7231         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
7232         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
7233         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
7234         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
7235         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
7236         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
7237         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
7238         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
7239         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
7240         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
7241         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
7242         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
7243         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
7244         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
7245         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7246         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
7247         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
7248         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
7249         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
7250         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
7251         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
7252         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
7253         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
7254         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
7255         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
7256         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
7257         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7258         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
7259         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7260         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
7261         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
7262         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
7263         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
7264         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
7265         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
7266         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
7267         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
7268         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
7269         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7270         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7271         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7272         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
7273         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7274         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
7275         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
7276         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
7277         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
7278         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
7279         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
7280         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
7281         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
7282         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
7283         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
7284         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
7285         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
7287 2018-03-20  Richard Biener  <rguenther@suse.de>
7289         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
7290         parallelizable loop.
7292 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
7294         PR target/84148
7295         * configure: Regenerate.
7297 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
7299         PR fortran/84418
7300         * libgomp.fortran/pr84418-1.f90: New test.
7301         * libgomp.fortran/pr84418-2.f90: New test.
7303 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
7305         PR fortran/84313
7306         * testsuite/libgomp.fortran/threadprivate4.f90: Add
7307         -std=f2003 -fall-intrinsics into dg-additional-options.
7309 2018-02-08  Martin Jambor  <mjambor@suse.cz>
7311         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
7312         clonable.
7314 2018-02-08  Martin Jambor  <mjambor@suse.cz>
7316         * testsuite/libgomp.hsa.c/staticvar.c: New test.
7318 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7320         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
7321         [__cplusplus]: Declare extern "C".
7323 2018-02-07  Tom de Vries  <tom@codesourcery.com>
7325         PR libgomp/84217
7326         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
7328 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
7329             Jakub Jelinek  <jakub@redhat.com>
7331         PR libgomp/84096
7332         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
7333         instead of omp_lock_t.
7335 2018-01-25  Tom de Vries  <tom@codesourcery.com>
7337         PR target/84028
7338         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
7340 2018-01-24  Tom de Vries  <tom@codesourcery.com>
7342         PR target/83589
7343         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
7345 2018-01-24  Tom de Vries  <tom@codesourcery.com>
7347         PR target/81352
7348         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
7350 2018-01-19  Tom de Vries  <tom@codesourcery.com>
7351             Cesar Philippidis  <cesar@codesourcery.com>
7353         PR target/83920
7354         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
7355         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
7357 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
7359         Update copyright years.
7361         * libgomp.texi: Bump @copying's copyright year.
7363 2017-12-30  Tom de Vries  <tom@codesourcery.com>
7365         PR libgomp/83046
7366         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
7367         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
7369 2017-12-27  Tom de Vries  <tom@codesourcery.com>
7371         PR c++/83046
7372         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
7373         (test_nonstatic): Fix return type to workaround PR83046.
7375 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
7377         PR testsuite/83281
7378         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
7379         j suffix instead of i.
7380         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
7381         Likewise.
7383 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
7385         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
7386         call to acc_wait (1).
7388 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
7390         PR fortran/81304
7391         * testsuite/libgomp.fortran/pr81304.f90: New test.
7393 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
7395         PR fortran/81841
7396         * libgomp.fortran/pr81841.f90: New test.
7398 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
7400         PR libgomp/83106
7401         * target.c (gomp_target_init): Compute lengths just once and
7402         use them in both malloc size and subsequent copying.
7404 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
7406         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
7407         * acinclude.m4: Add cet.m4.
7408         * configure: Regenerate.
7409         * Makefile.in: Likewise.
7410         * testsuite/Makefile.in: Likewise.
7412 2017-11-15  Tom de Vries  <tom@codesourcery.com>
7414         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
7415         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
7416         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
7417         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
7418         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
7419         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
7421 2017-11-14  Tom de Vries  <tom@codesourcery.com>
7423         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
7424         non-nvidia devices.
7426 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
7428         PR c++/82835
7429         * testsuite/libgomp.c++/pr82835.C: New test.
7431 2017-11-06  Martin Liska  <mliska@suse.cz>
7433         * testsuite/libgomp.c++/loop-2.C: Return a value
7434         for functions with non-void return type, or change type to void,
7435         or add -Wno-return-type for test.
7436         * testsuite/libgomp.c++/loop-4.C: Likewise.
7437         * testsuite/libgomp.c++/parallel-1.C: Likewise.
7438         * testsuite/libgomp.c++/shared-1.C: Likewise.
7439         * testsuite/libgomp.c++/single-1.C: Likewise.
7440         * testsuite/libgomp.c++/single-2.C: Likewise.
7442 2017-10-31  Tom de Vries  <tom@codesourcery.com>
7444         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
7445         "do {} while (false)".
7446         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
7447         after HSA_DEBUG call.
7449 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
7451         * target.c (struct gomp_coalesce_buf): New type.
7452         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
7453         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
7454         (gomp_copy_host2dev): Add CBUF argument, if copying into
7455         the cached ranges, memcpy into buffer instead of copying
7456         into device.
7457         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
7458         Add CBUF argument, pass it through to other calls.
7459         (gomp_map_vars): Aggregate copies from host to device if small enough
7460         and with small enough gaps in between into memcpy into a buffer and
7461         fewer host to device copies from the buffer.
7462         (gomp_update): Adjust gomp_copy_host2dev caller.
7464 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
7466         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
7467         run" directive.
7468         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7469         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7470         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7471         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7473 2017-10-16  Tom de Vries  <tom@codesourcery.com>
7475         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
7476         openacc_nvidia_accel_selected.
7477         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
7478         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
7479         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
7480         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
7481         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
7482         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
7483         openacc_nvidia_accel_selected. Skip for shared memory device.
7484         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
7485         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
7487 2017-10-09  Martin Jambor  <mjambor@suse.cz>
7489         PR hsa/82416
7490         * testsuite/libgomp.hsa.c/pr82416.c: New test.
7492 2017-10-07  Tom de Vries  <tom@codesourcery.com>
7494         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
7495         Remove acc_device_nvidia references.
7496         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
7497         Same.
7499 2017-10-05  Tom de Vries  <tom@codesourcery.com>
7501         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
7502         vector_length(32) clause from acc parallel directive.
7503         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
7505 2017-10-04  Tom de Vries  <tom@codesourcery.com>
7507         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
7508         (main): Reduce sum of arr elements.  Assert that hres is exactly
7509         representable in 32-bit floating point.
7510         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
7511         (main): Reduce sum of arr elements.  Assert that hres and hmres are
7512         exactly representable in 32-bit floating point.
7513         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
7515 2017-09-28  Tom de Vries  <tom@codesourcery.com>
7517         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
7518         setting.
7519         * testsuite/libgomp.c++/pr69393.C: Same.
7520         * testsuite/libgomp.c++/taskloop-1.C: Same.
7521         * testsuite/libgomp.c++/taskloop-3.C: Same.
7522         * testsuite/libgomp.c++/taskloop-4.C: Same.
7523         * testsuite/libgomp.c/for-4.c: Same.
7524         * testsuite/libgomp.c/pr66199-3.c: Same.
7525         * testsuite/libgomp.c/pr66199-4.c: Same.
7526         * testsuite/libgomp.c/pr66199-6.c: Same.
7527         * testsuite/libgomp.c/taskloop-1.c: Same.
7528         * testsuite/libgomp.c/taskloop-3.c: Same.
7529         * testsuite/libgomp.c/taskloop-4.c: Same.
7530         * testsuite/libgomp.fortran/aligned1.f03: Same.
7531         * testsuite/libgomp.fortran/condinc1.f: Same.
7532         * testsuite/libgomp.fortran/condinc3.f90: Same.
7533         * testsuite/libgomp.fortran/crayptr1.f90: Same.
7534         * testsuite/libgomp.fortran/crayptr2.f90: Same.
7535         * testsuite/libgomp.fortran/crayptr3.f90: Same.
7536         * testsuite/libgomp.fortran/omp_cond1.f: Same.
7537         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
7538         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
7539         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
7540         * testsuite/libgomp.fortran/recursion1.f90: Same.
7541         * testsuite/libgomp.fortran/target2.f90: Same.
7542         * testsuite/libgomp.fortran/target5.f90: Same.
7543         * testsuite/libgomp.fortran/task3.f90: Same.
7545 2017-09-28  Tom de Vries  <tom@codesourcery.com>
7547         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
7548         vector_length(32) clause from acc parallel directive.
7549         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
7551 2017-09-27  Tom de Vries  <tom@codesourcery.com>
7553         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
7554         Remove acc_device_nvidia references.
7556 2017-09-16  Tom de Vries  <tom@codesourcery.com>
7558         PR c/81875
7559         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
7561 2017-09-14  Tom de Vries  <tom@codesourcery.com>
7563         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
7564         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
7565         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
7566         * testsuite/libgomp.c/c.exp: Include test-cases from
7567         libgomp.c-c++-common.
7568         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
7569         files.
7571 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
7573         PR c++/81314
7574         * testsuite/libgomp.c++/pr81314.C: New test.
7576 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
7578         * libgomp.texi (Top): www.openacc.org now uses https.
7579         (Enabling OpenACC): Ditto.
7580         (acc_get_num_devices): Ditto.
7581         (acc_set_device_type): Ditto.
7582         (acc_get_device_type): Ditto.
7583         (acc_set_device_num): Ditto.
7584         (acc_get_device_num): Ditto.
7585         (acc_async_test): Ditto.
7586         (acc_async_test_all): Ditto.
7587         (acc_wait): Ditto.
7588         (acc_wait_all): Ditto.
7589         (acc_wait_all_async): Ditto.
7590         (acc_wait_async): Ditto.
7591         (acc_init): Ditto.
7592         (acc_shutdown): Ditto.
7593         (acc_on_device): Ditto.
7594         (acc_malloc): Ditto.
7595         (acc_free): Ditto.
7596         (acc_copyin): Ditto.
7597         (acc_present_or_copyin): Ditto.
7598         (acc_create): Ditto.
7599         (acc_present_or_create): Ditto.
7600         (acc_copyout): Ditto.
7601         (acc_delete): Ditto.
7602         (acc_update_device): Ditto.
7603         (acc_update_self): Ditto.
7604         (acc_map_data): Ditto.
7605         (acc_unmap_data): Ditto.
7606         (acc_deviceptr): Ditto.
7607         (acc_hostptr): Ditto.
7608         (acc_is_present): Ditto.
7609         (acc_memcpy_to_device): Ditto.
7610         (acc_memcpy_from_device): Ditto.
7611         (acc_get_current_cuda_device): Ditto.
7612         (acc_get_current_cuda_context): Ditto.
7613         (acc_get_cuda_stream): Ditto.
7614         (acc_set_cuda_stream): Ditto.
7615         (ACC_DEVICE_TYPE): Ditto.
7616         (ACC_DEVICE_NUM): Ditto.
7617         (OpenACC Library Interoperability): Ditto.
7619 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
7621         PR c/81687
7622         * testsuite/libgomp.c/pr81687-1.c: New test.
7623         * testsuite/libgomp.c/pr81687-2.c: New test.
7625 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
7627         PR c/69389
7628         * testsuite/libgomp.c/pr69389.c: New test.
7629         * testsuite/libgomp.c++/pr69389.C: New test.
7631 2017-08-07  Tom de Vries  <tom@codesourcery.com>
7633         PR middle-end/78266
7634         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
7635         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
7637 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
7639         PR c/45784
7640         * testsuite/libgomp.c/pr45784.c: New test.
7641         * testsuite/libgomp.c++/pr45784.C: New test.
7643 2017-07-19  Tom de Vries  <tom@codesourcery.com>
7645         * testsuite/libgomp.oacc-c/vec.c: New test.
7647 2017-07-03  Tom de Vries  <tom@codesourcery.com>
7649         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
7651 2017-06-27  Tom de Vries  <tom@codesourcery.com>
7653         * plugin/plugin-nvptx.c (notify_var): New function.
7654         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
7656 2017-06-27  Tom de Vries  <tom@codesourcery.com>
7658         * env.c (parse_unsigned_long_1): Factor out of ...
7659         (parse_unsigned_long): ... here.
7660         (parse_int_1): Factor out of ...
7661         (parse_int): ... here.
7662         (parse_int_secure): New function.
7663         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
7664         * secure_getenv.h: Factor out of ...
7665         * plugin/plugin-hsa.c: ... here.
7666         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
7668 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
7670         PR c++/81130
7671         * testsuite/libgomp.c++/pr81130.C: New test.
7673 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7675         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
7676         default args.
7677         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
7678         dg-xfail-run-if default args.
7680 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7682         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
7683         * testsuite/libgomp.c/pr39591-3.c: Likewise.
7685 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
7687         PR libgomp/80822
7688         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
7689         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
7690         sibling lists, depending on level just pick up what CPUs to put
7691         together into a place vs. whether add multiple ordered places.
7693 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
7695         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
7696         * libgomp.map (OACC_2.0.1): Add these.
7697         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
7698         for "acc_wait", and "acc_wait_all", respectively.
7699         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
7700         for "acc_wait", and "acc_wait_all", respectively.
7701         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
7702         * libgomp.texi (acc_wait, acc_wait_all): Update.
7703         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
7704         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
7705         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7707         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
7708         acc_present_or_copyin and acc_present_or_create procedures,
7709         respectively.
7710         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
7711         generally different variants of OpenACC Runtime Library functions.
7712         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7714         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
7715         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7717         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
7718         of preprocessor definitions.
7719         * libgomp.h (strong_alias): Guard by "#ifdef
7720         HAVE_ATTRIBUTE_ALIAS".
7721         * oacc-mem.c: Provide "acc_pcreate" as alias for
7722         "acc_present_or_create", and "acc_pcopyin" as alias for
7723         "acc_present_or_copyin".
7724         * libgomp.map: New version "OACC_2.0.1".
7725         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
7726         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
7727         its content into...
7728         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
7729         Extend testing.
7731         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
7732         when disabling nvptx offloading.
7734 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
7736         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
7737         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
7738         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
7740         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
7741         * testsuite/lib/libgomp.exp
7742         (check_effective_target_openacc_nvidia_accel_configured): New
7743         proc.
7744         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
7745         (check_effective_target_c++): New procs.
7746         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
7747         (check_effective_target_c++): Likewise.
7749 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
7751         PR middle-end/80809
7752         * testsuite/libgomp.c/pr80809-2.c: New test.
7753         * testsuite/libgomp.c/pr80809-3.c: New test.
7755         PR middle-end/80809
7756         * testsuite/libgomp.c/pr80809-1.c: New test.
7758         PR middle-end/80853
7759         * testsuite/libgomp.c/pr80853.c: New test.
7761 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
7763         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
7764         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
7765         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7766         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7767         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
7769         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
7770         Debug output for failure.
7772 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7774         * testsuite/lib/libgomp.exp: Load scanlang.exp.
7776 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
7778         PR bootstrap/80531
7779         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
7780         bootstrap compare failures.
7782 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
7784         * testsuite/libgomp.c/target-36.c: New testcase.
7786 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
7788         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
7789         instead of char.
7791 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
7793         PR libgomp/80394
7794         * testsuite/libgomp.c/pr80394.c: New test.
7796 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
7798         PR libgomp/79876
7799         * config/posix/thread-stacksize.h: New file.
7800         * config/darwin/thread-stacksize.h: New file.
7801         * config/nvptx/thread-stacksize.h: New file.
7802         * env.c: Include thread-stacksize.h.
7803         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
7804         instead of 0.  Call pthread_attr_setstacksize even if
7805         GOMP_DEFAULT_STACKSIZE is non-zero.
7807 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
7809         * env.c (initialize_env): Initialize stacksize to 0.
7811 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
7813         PR c++/80029
7814         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
7816 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
7818         PR c/79940
7819         * testsuite/libgomp.c/pr79940.c: New test.
7821 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7823         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
7824         targets.
7825         Add __float128 options.
7827 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
7829         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
7830         hppa*-*-* dg-skip-if directive.
7832 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
7834         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
7835         dg-skip-if directive into a comment.
7837 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
7838             Chung-Lin Tang  <cltang@codesourcery.com>
7840         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
7841         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
7842         add additional case.
7843         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
7844         "openacc_nvidia_accel_selected".
7845         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
7846         Add num_workers(8) clause.
7848 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
7850         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
7851         hppa*-*-*.
7852         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
7853         include complex.h on hppa*-*-hpux*.
7854         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
7856 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
7858         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
7860         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
7861         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
7862         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
7863         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
7864         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
7865         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
7866         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
7867         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
7868         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
7869         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
7871 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
7873         * libgomp-plugin.h: #include <stdbool.h>.
7874         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
7875         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
7876         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
7877         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
7878         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
7879         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
7880         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
7881         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
7882         (GOMP_OFFLOAD_openacc_register_async_cleanup)
7883         (GOMP_OFFLOAD_openacc_async_test)
7884         (GOMP_OFFLOAD_openacc_async_test_all)
7885         (GOMP_OFFLOAD_openacc_async_wait)
7886         (GOMP_OFFLOAD_openacc_async_wait_async)
7887         (GOMP_OFFLOAD_openacc_async_wait_all)
7888         (GOMP_OFFLOAD_openacc_async_wait_all_async)
7889         (GOMP_OFFLOAD_openacc_async_set_async)
7890         (GOMP_OFFLOAD_openacc_create_thread_data)
7891         (GOMP_OFFLOAD_openacc_destroy_thread_data)
7892         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
7893         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
7894         (GOMP_OFFLOAD_openacc_get_cuda_stream)
7895         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
7896         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
7897         these.
7898         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
7899         (GOMP_OFFLOAD_unload_image): Fix argument types.
7901 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
7903         * testsuite/lib/libgomp.exp
7904         (check_effective_target_hsa_offloading_selected_nocache): Fix up
7905         check_compile invocation.  Fix up removal of executable.  Drop
7906         bogus "2>&1" argument.
7908         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
7909         directive.
7911 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
7912             Martin Jambor  <mjambor@suse.cz>
7914         * plugin/hsa.h: Moved to top level include.
7915         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
7917 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
7919         PR other/79046
7920         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
7921         of cat to get version from BASE-VER file.
7922         * testsuite/Makefile.in: Regenerated.
7924 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
7926         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
7927         for _WIN64.
7929 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
7931         * plugin/hsa.h: Add GCC runtime library exception.
7932         * plugin/hsa_ext_finalize.h: Likewise.
7934         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
7935         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
7936         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
7937         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
7938         plugin/include/cuda as include dir and -ldl instead of -lcuda as
7939         library to link ptx plugin against.
7940         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
7941         (CUDA_CALLS): Define.
7942         (cuda_lib, cuda_lib_inited): New variables.
7943         (init_cuda_lib): New function.
7944         (CUDA_CALL_PREFIX): Define.
7945         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
7946         (CUDA_CALL): Use FN instead of (FN).
7947         (CUDA_CALL_NOCHECK): Define.
7948         (cuda_error, fini_streams_for_device, select_stream_for_async,
7949         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
7950         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
7951         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
7952         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
7953         CUDA_CALL_NOCHECK.
7954         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
7955         CUDA_CALL_NOCHECK.
7956         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
7957         Use CUDA_CALL_NOCHECK.
7958         * plugin/cuda/cuda.h: New file.
7959         * config.h.in: Regenerated.
7960         * configure: Regenerated.
7962         PR other/79046
7963         * configure.ac: Add GCC_BASE_VER.
7964         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
7965         get version from BASE-VER file.
7966         * testsuite/Makefile.in: Regenerated.
7967         * configure: Regenerated.
7968         * Makefile.in: Regenerated.
7970 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7972         PR libgomp/60670
7973         * Makefile.am: Make fincludedir multilib-aware.
7974         * Makefile.in: Regenerate.
7976 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
7978         Update copyright years.
7980         * libgomp.texi: Bump @copying's copyright year.
7982 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7984         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
7985         pthread_spinlock_t instead of gomp_mutex_t lock.
7986         (gomp_get_thread_pool): Likewise.
7987         (gomp_release_thread_pool): Likewise.
7988         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
7989         Likewise.
7991 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7993         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
7994         thread pool in case nthreads == 1.
7996 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
7998         * config/nvptx/env.c: Delete.
7999         * icv.c: Move definitions of ICV variables back ...
8000         * env.c: ...here.  Do not compile environment-related functionality if
8001         LIBGOMP_OFFLOADED_ONLY is set.
8003 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
8005         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
8006         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
8007         * configure: Regenerate.
8008         * config.h.in: Likewise.
8010 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
8012         * Makefile.in: Regenerate with automake-1.11.6.
8013         * aclocal.m4: Likewise.
8014         * configure: Likewise.
8015         * testsuite/Makefile.in: Likewise.
8017 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
8019         * config/nvptx/critical.c: Delete to use generic implementation.
8021 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
8023         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
8024         ../../affinity.c as fallback.
8025         * config/nvptx/affinity.c: Delete to use fallback implementation.
8027 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
8028             Jakub Jelinek  <jakub@redhat.com>
8029             Dmitry Melnik  <dm@ispras.ru>
8031         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
8032         * Makefile.in. Regenerate.
8033         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
8034         (LIBGOMP_USE_PTHREADS): ...here; new define.
8035         * configure: Regenerate.
8036         * config.h.in: Likewise.
8037         * config/posix/affinity.c: Move to...
8038         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
8039         interface by LIBGOMP_USE_PTHREADS. 
8040         * critical.c: Split out GOMP_atomic_{start,end} into...
8041         * atomic.c: ...here (new file).
8042         * env.c: Split out ICV definitions into...
8043         * icv.c: ...here (new file) and...
8044         * icv-device.c: ...here. New file.
8045         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
8046         (gomp_destroy_lock_30): Ditto.
8047         (gomp_set_lock_30): Ditto.
8048         (gomp_unset_lock_30): Ditto.
8049         (gomp_test_lock_30): Ditto.
8050         (gomp_init_nest_lock_30): Ditto.
8051         (gomp_destroy_nest_lock_30): Ditto.
8052         (gomp_set_nest_lock_30): Ditto.
8053         (gomp_unset_nest_lock_30): Ditto.
8054         (gomp_test_nest_lock_30): Ditto.
8055         * lock.c: New.
8056         * config/nvptx/lock.c: New.
8057         * config/nvptx/bar.c: New.
8058         * config/nvptx/bar.h: New.
8059         * config/nvptx/doacross.h: New.
8060         * config/nvptx/error.c: New.
8061         * config/nvptx/icv-device.c: New.
8062         * config/nvptx/mutex.h: New.
8063         * config/nvptx/pool.h: New.
8064         * config/nvptx/proc.c: New.
8065         * config/nvptx/ptrlock.h: New.
8066         * config/nvptx/sem.h: New.
8067         * config/nvptx/simple-bar.h: New.
8068         * config/nvptx/target.c: New.
8069         * config/nvptx/task.c: New.
8070         * config/nvptx/team.c: New.
8071         * config/nvptx/time.c: New.
8072         * config/posix/simple-bar.h: New.
8073         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
8074         (gomp_num_teams_var): Declare.
8075         (struct gomp_thread_pool): Change threads_dock member to
8076         gomp_simple_barrier_t.
8077         [__nvptx__] (gomp_thread): New implementation.
8078         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
8079         (gomp_thread_destructor): Ditto.
8080         (gomp_init_thread_affinity): Ditto.
8081         * team.c: Guard uses of Pthreads-specific interfaces by
8082         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
8083         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
8084         * config/nvptx/alloc.c: Delete.
8085         * config/nvptx/barrier.c: Ditto.
8086         * config/nvptx/fortran.c: Ditto.
8087         * config/nvptx/iter.c: Ditto.
8088         * config/nvptx/iter_ull.c: Ditto.
8089         * config/nvptx/loop.c: Ditto.
8090         * config/nvptx/loop_ull.c: Ditto.
8091         * config/nvptx/ordered.c: Ditto.
8092         * config/nvptx/parallel.c: Ditto.
8093         * config/nvptx/priority_queue.c: Ditto.
8094         * config/nvptx/sections.c: Ditto.
8095         * config/nvptx/single.c: Ditto.
8096         * config/nvptx/splay-tree.c: Ditto.
8097         * config/nvptx/work.c: Ditto.
8098         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
8099         -foffload=-lgfortran in addition to -lgfortran.
8100         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
8101         * plugin/plugin-nvptx.c: Include <limits.h>.
8102         (struct targ_fn_descriptor): Add new fields.
8103         (struct ptx_device): Ditto.  Set them...
8104         (nvptx_open_device): ...here.
8105         (nvptx_adjust_launch_bounds): New.
8106         (nvptx_host2dev): Allow NULL 'nvthd'.
8107         (nvptx_dev2host): Ditto.
8108         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
8109         (link_ptx): Adjust log sizes.
8110         (nvptx_host2dev): Allow NULL 'nvthd'.
8111         (nvptx_dev2host): Ditto.
8112         (nvptx_set_clocktick): New.  Use it...
8113         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
8114         fields.
8115         (GOMP_OFFLOAD_dev2dev): New.
8116         (nvptx_adjust_launch_bounds): New.
8117         (nvptx_stacks_size): New.
8118         (nvptx_stacks_alloc): New.
8119         (nvptx_stacks_free): New.
8120         (GOMP_OFFLOAD_run): New.
8121         (GOMP_OFFLOAD_async_run): New (stub).
8123 2016-11-23  Martin Jambor  <mjambor@suse.cz>
8125         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
8126         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
8127         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8129 2016-11-23  Martin Liska  <mliska@suse.cz>
8130             Martin Jambor  <mjambor@suse.cz>
8132         * plugin/hsa.h: New file.
8133         * plugin/hsa_ext_finalize.h: New file.
8134         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
8135         header file unistd.h, and functions secure_getenv, __secure_getenv,
8136         getuid, geteuid, getgid and getegid.
8137         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
8138         -D_GNU_SOURCE.
8139         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
8140         Handle various cases of secure_getenv presence, add an implementation
8141         when we can test effective UID and GID.
8142         (struct hsa_runtime_fn_info): New structure.
8143         (hsa_runtime_fn_info hsa_fns): New variable.
8144         (hsa_runtime_lib): Likewise.
8145         (support_cpu_devices): Likewise.
8146         (init_enviroment_variables): Load newly introduced ENV
8147         variables.
8148         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
8149         (hsa_fatal): Likewise.
8150         (DLSYM_FN): New macro.
8151         (init_hsa_runtime_functions): New function.
8152         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
8153         structure.  Depending on environment, also allow CPU devices.
8154         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
8155         (get_kernarg_memory_region): Likewise.
8156         (GOMP_OFFLOAD_init_device): Likewise.
8157         (destroy_hsa_program): Likewise.
8158         (init_basic_kernel_info): New function.
8159         (GOMP_OFFLOAD_load_image): Use it.
8160         (create_and_finalize_hsa_program): Call hsa run-time functions via
8161         hsa_fns structure.
8162         (create_single_kernel_dispatch): Likewise.
8163         (release_kernel_dispatch): Likewise.
8164         (init_single_kernel): Likewise.
8165         (parse_target_attributes): Allow up multiple HSA grid dimensions.
8166         (get_group_size): New function.
8167         (run_kernel): Likewise.
8168         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
8169         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
8170         structure.
8171         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
8172         * testsuite/libgomp-test-support.exp.in: Likewise.
8173         * Makefile.in: Regenerated.
8174         * aclocal.m4: Likewise.
8175         * config.h.in: Likewise.
8176         * configure: Likewise.
8177         * testsuite/Makefile.in: Likewise.
8179 2016-11-15  Martin Jambor  <mjambor@suse.cz>
8180             Alexander Monakov  <amonakov@ispras.ru>
8182         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
8183         mapping clauses to target constructs.
8184         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
8186 2016-11-15  Matthias Klose  <doko@ubuntu.com>
8188         * configure: Regenerate.
8190 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
8192         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
8193         * omp_lib.h.in (openmp_version): Likewise.
8194         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
8195         of 201307.
8196         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8198         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
8199         (fib_wrapper): Add map(from: x) clause.
8200         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
8201         (e_53_2): Likewise.
8202         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
8203         (accum): Add map(tmp) clause.
8204         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
8205         (accum): Add map(tofrom: tmp) clause.
8206         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
8207         (gramSchmidt): Likewise.
8208         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
8209         map(tofrom: sum) clause.
8210         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
8211         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
8212         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
8213         only allowed on the loop iterator.
8214         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
8215         * testsuite/libgomp.fortran/taskloop2.f90: New test.
8216         * testsuite/libgomp.fortran/taskloop4.f90: New test.
8217         * testsuite/libgomp.fortran/doacross1.f90: New test.
8218         * testsuite/libgomp.fortran/doacross3.f90: New test.
8219         * testsuite/libgomp.fortran/taskloop1.f90: New test.
8220         * testsuite/libgomp.fortran/taskloop3.f90: New test.
8221         * testsuite/libgomp.fortran/doacross2.f90: New test.
8222         * testsuite/libgomp.c/doacross-1.c (main): Add missing
8223         #pragma omp atomic read.
8224         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
8225         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
8227 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
8228             Nathan Sidwell  <nathan@acm.org>
8230         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
8231         to determine default geometry.
8232         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
8233         dimension.
8235 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
8237         * hashtab.h: Use standard GPLv3 with runtime exception
8238         boilerplate.
8240 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
8242         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
8243         size when allocating new thread.
8245 2016-09-14  Marek Polacek  <polacek@redhat.com>
8247         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
8249 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
8251         PR fortran/71014
8252         * testsuite/libgomp.fortran/pr71014.f90: New test.
8254 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
8256         PR middle-end/70895
8257         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
8258         firstprivate clauses.
8259         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
8260         copy clauses.
8261         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
8262         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
8263         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
8264         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8265         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
8266         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8267         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
8268         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
8269         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
8270         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
8271         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
8272         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
8274 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
8276         PR fortran/70598
8277         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
8279 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
8281         PR c++/58706
8282         * testsuite/libgomp.c++/pr58706.C: New test.
8284 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
8286         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
8287         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
8288         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
8289         Likewise.
8290         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
8291         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
8292         Likewise.
8293         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
8295         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
8296         test, and don't hardcode -O0.
8298 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
8300         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
8302 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
8304         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
8305         test.
8307 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
8309         PR middle-end/71734
8310         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
8311         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
8313 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
8315         PR fortran/71717
8316         * testsuite/libgomp.fortran/associate3.f90: New test.
8318 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
8320         * testsuite/libgomp.c++/target-21.C: New test.
8322 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
8324         * testsuite/libgomp.c++/target-20.C: New test.
8326 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
8327             Cesar Philippidis  <cesar@codesourcery.com>
8329         PR middle-end/71373
8330         * libgomp.oacc-c/nested-function-1.c: New file.
8331         * libgomp.oacc-c/nested-function-2.c: Likewise.
8332         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
8333         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
8334         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
8336 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
8338         PR c/71381
8339         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
8340         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
8341         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
8343 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
8345         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
8346         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
8348 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
8350         PR c/70688
8351         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
8353 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
8355         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
8356         instead of invalid schedule(static, 0).
8357         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
8359 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
8361         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
8362         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
8363         parameter, use to set async stream around call to gomp_unmap_vars,
8364         call gomp_unmap_vars() with 'do_copyfrom' set to true.
8365         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
8366         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
8367         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
8368         (event_add): Add int parameter, initialize 'val' field when
8369         adding new ptx_event struct.
8370         (nvptx_evec): Adjust event_add() call arguments.
8371         (nvptx_host2dev): Likewise.
8372         (nvptx_dev2host): Likewise.
8373         (nvptx_wait_async): Likewise.
8374         (nvptx_wait_all_async): Likewise.
8375         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
8376         pass to event_add() call.
8377         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
8378         parameter.
8379         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
8380         call openacc.register_async_cleanup_func() hook.
8381         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
8382         * target.c (gomp_copy_from_async): Delete function.
8383         (gomp_map_vars): Remove async_refcount.
8384         (gomp_unmap_vars): Likewise.
8385         (gomp_load_image_to_device): Likewise.
8386         (omp_target_associate_ptr): Likewise.
8387         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
8388         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
8389         (gomp_copy_from_async): Remove.
8391 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
8393         * target.c (gomp_device_copy): New function.
8394         (gomp_copy_host2dev): Likewise.
8395         (gomp_copy_dev2host): Likewise.
8396         (gomp_free_device_memory): Likewise.
8397         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
8398         (gomp_map_pointer): Likewise.
8399         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
8400         NULL value from alloc_func plugin hook.
8401         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
8402         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
8403         (gomp_unmap_vars): Likewise.
8404         (gomp_update): Adjust to call gomp_copy_dev2host and
8405         gomp_copy_host2dev functions.
8406         (gomp_unload_image_from_device): Handle false value from
8407         unload_image_func plugin hook.
8408         (gomp_init_device): Handle false value from init_device_func
8409         plugin hook.
8410         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
8411         (omp_target_free): Adjust to call gomp_free_device_memory.
8412         (omp_target_memcpy): Handle return values from host2dev_func,
8413         dev2host_func, and dev2dev_func plugin hooks.
8414         (omp_target_memcpy_rect_worker): Likewise.
8415         (gomp_target_fini): Handle false value from fini_device_func
8416         plugin hook.
8417         * libgomp.h (struct gomp_device_descr): Adjust return type of
8418         init_device_func, fini_device_func, unload_image_func, free_func,
8419         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
8420         * oacc-init.c (acc_shutdown_1): Handle false value from
8421         fini_device_func plugin hook.
8422         * oacc-host.c (host_init_device): Change return type to bool.
8423         (host_fini_device): Likewise.
8424         (host_unload_image): Likewise.
8425         (host_free): Likewise.
8426         (host_dev2host): Likewise.
8427         (host_host2dev): Likewise.
8428         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
8429         (acc_memcpy_to_device): Likewise.
8430         (acc_memcpy_from_device): Likewise.
8431         (delete_copyout): Add libfnname parameter, handle free_func
8432         hook fatal error case.
8433         (acc_delete): Adjust delete_copyout call.
8434         (acc_copyout): Likewise.
8435         (update_dev_host): Move gomp_mutex_unlock to after
8436         host2dev/dev2host hook calls.
8438         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
8439         to 'hsa_error_msg', for clarity.
8440         (hsa_fatal): Likewise.
8441         (hsa_error): New function.
8442         (init_hsa_context): Change return type to bool, adjust to return
8443         false on error.
8444         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
8445         return value.
8446         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
8447         return false on error.
8448         (get_agent_info): Adjust to return NULL on error.
8449         (destroy_hsa_program): Change return type to bool, adjust to
8450         return false on error.
8451         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
8452         (destroy_module): Change return type to bool, adjust to
8453         return false on error.
8454         (GOMP_OFFLOAD_unload_image): Likewise.
8455         (GOMP_OFFLOAD_fini_device): Likewise.
8456         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
8457         (GOMP_OFFLOAD_free): Change to return false when called.
8458         (GOMP_OFFLOAD_dev2host): Likewise.
8459         (GOMP_OFFLOAD_host2dev): Likewise.
8460         (GOMP_OFFLOAD_dev2dev): Likewise.
8462         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
8463         (CUDA_CALL): Likewise.
8464         (CUDA_CALL_ASSERT): Likewise.
8465         (map_init): Change return type to bool, use CUDA_CALL* macros.
8466         (map_fini): Likewise.
8467         (init_streams_for_device): Change return type to bool, adjust
8468         call to map_init.
8469         (fini_streams_for_device): Change return type to bool, adjust
8470         call to map_fini.
8471         (select_stream_for_async): Release stream_lock before calls to
8472         GOMP_PLUGIN_fatal, adjust call to map_init.
8473         (nvptx_init): Use CUDA_CALL* macros.
8474         (nvptx_attach_host_thread_to_device): Change return type to bool,
8475         use CUDA_CALL* macros.
8476         (nvptx_open_device): Use CUDA_CALL* macros.
8477         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
8478         macros.
8479         (nvptx_get_num_devices): Use CUDA_CALL* macros.
8480         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
8481         (nvptx_exec): Use CUDA_CALL* macros.
8482         (nvptx_alloc): Use CUDA_CALL* macros.
8483         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
8484         (nvptx_host2dev): Likewise.
8485         (nvptx_dev2host): Likewise.
8486         (nvptx_wait): Use CUDA_CALL* macros.
8487         (nvptx_wait_async): Likewise.
8488         (nvptx_wait_all): Likewise.
8489         (nvptx_wait_all_async): Likewise.
8490         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
8491         use CUDA_CALL* macros, adjust call to map_fini.
8492         (GOMP_OFFLOAD_init_device): Change return type to bool,
8493         adjust code accordingly.
8494         (GOMP_OFFLOAD_fini_device): Likewise.
8495         (GOMP_OFFLOAD_load_image): Adjust calls to
8496         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
8497         use CUDA_CALL* macros.
8498         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
8499         return code.
8500         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
8501         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
8502         handle error return.
8503         (GOMP_OFFLOAD_dev2host): Likewise.
8504         (GOMP_OFFLOAD_host2dev): Likewise.
8505         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
8506         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
8508 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
8510         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
8511         (acc_free): Likewise.
8512         (acc_memcpy_to_device): Likewise.
8513         (acc_memcpy_from_device): Likewise.
8514         (acc_deviceptr): Likewise.
8515         (acc_hostptr): Likewise.
8516         (acc_is_present): Likewise.
8517         (acc_map_data): Likewise.
8518         (acc_unmap_data): Likewise.
8519         (present_create_copy): Likewise.
8520         (delete_copyout): Likewise.
8521         (update_dev_host): Likewise.
8522         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
8523         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
8524         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
8525         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8526         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
8527         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
8528         it only runs on nvptx targets.
8529         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8530         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8531         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8532         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8533         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8534         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8535         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8536         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8537         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8538         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8539         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8540         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8541         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8542         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8543         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8544         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8545         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8546         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8547         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8548         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8549         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8550         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8551         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8553 2016-05-23  Martin Jambor  <mjambor@suse.cz>
8555         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
8557 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
8559         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
8560         to gomp_init_targets_once.
8561         (acc_set_device_type): Remove !cached_base_dev condition on call to
8562         gomp_init_targets_once, move call to before acc_device_lock acquire,
8563         to avoid deadlock.
8564         (acc_get_device_num): Remove !cached_base_dev condition on call to
8565         gomp_init_targets_once.
8566         (acc_set_device_num): Likewise.
8568 2016-05-16  Martin Jambor  <mjambor@suse.cz>
8570         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
8572 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
8574         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
8575         expected partitioning.
8577 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
8579         PR middle-end/70626
8580         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
8581         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
8582         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
8584 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
8586         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
8587         non-fatal.
8589 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
8591         PR middle-end/70680
8592         * testsuite/libgomp.c/pr70680-1.c: New test.
8593         * testsuite/libgomp.c/pr70680-2.c: New test.
8595 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
8597         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
8598         pass parameter variables to subroutines.
8600 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
8602         PR middle-end/70643
8603         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
8605 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
8607         PR testsuite/68242
8608         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
8609         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8611 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
8613         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
8614         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
8615         GOACC_declare prototype.
8617         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
8618         Merge this file, and...
8619         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
8620         ... this file, and...
8621         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
8622         ... this file, and...
8623         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
8624         ... this file, and...
8625         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
8626         ... this file, and...
8627         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
8628         ... this file, and...
8629         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
8630         ... this file, and...
8631         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
8632         ... this file, and...
8633         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
8634         ... this file, and...
8635         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
8636         ... this file, and...
8637         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
8638         ... this file, and...
8639         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
8640         ... this file, and...
8641         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
8642         ... this file into...
8643         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
8644         file.
8646         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8647         Make failure observable.
8649 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
8651         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
8652         field.
8653         * target.c (gomp_target_fallback_firstprivate,
8654         gomp_target_unshare_firstprivate): Removed.
8655         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
8656         before waiting for dependencies.
8657         (gomp_target_task_fn): Don't copy firstprivate vars here.
8658         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
8659         firstprivate_copies here.
8660         (gomp_create_target_task): Don't initialize firstprivate_copies field.
8661         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
8662         explicit/implicit firstprivate.
8664 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
8666         PR lto/70289
8667         PR ipa/70348
8668         PR tree-optimization/70373
8669         PR middle-end/70533
8670         PR middle-end/70534
8671         PR middle-end/70535
8672         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
8673         test.
8674         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
8675         test.
8676         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
8677         test.
8678         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
8679         test.
8680         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
8681         test.
8682         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
8683         test.
8684         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
8685         test.
8686         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
8687         test.
8688         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
8689         test.
8690         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
8691         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
8692         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
8693         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
8694         test.
8695         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
8696         test.
8697         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
8698         test.
8699         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
8700         test.
8701         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
8702         coverage.
8703         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
8704         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
8705         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
8706         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
8707         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
8708         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
8709         coverage.
8710         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8711         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8712         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8713         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8714         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
8715         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
8716         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
8717         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
8718         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
8719         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8720         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8721         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8722         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8723         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8724         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
8726 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
8727             James Norris  <jnorris@codesourcery.com>
8728             Nathan Sidwell  <nathan@codesourcery.com>
8729             Julian Brown  <julian@codesourcery.com>
8730             Cesar Philippidis  <cesar@codesourcery.com>
8731             Chung-Lin Tang  <cltang@codesourcery.com>
8732             Tom de Vries  <tom@codesourcery.com>
8734         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
8735         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8736         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8737         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
8738         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8739         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8740         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8741         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
8742         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8743         XFAIL.
8744         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
8745         Incorporate...
8746         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
8747         file.
8748         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
8749         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
8750         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
8751         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
8752         Likewise.
8753         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
8754         Likewise.
8755         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
8756         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
8757         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
8758         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
8759         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
8760         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
8761         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
8762         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
8763         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
8764         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
8765         Likewise.
8766         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
8767         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
8768         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
8769         file...
8770         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
8771         file into...
8772         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
8773         file.  Update.
8774         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
8775         file.
8776         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
8777         Likewise.
8778         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
8779         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
8780         ... this new file.  Update.
8781         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
8782         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
8783         ... this new file.  Update.
8784         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
8785         file.  Incorporate...
8786         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
8787         file, and...
8788         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
8789         file, and...
8790         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
8791         file.
8792         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
8794 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
8796         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
8797         set-torture-options.
8799 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
8801         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
8802         gcc-dg-runtest.
8803         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8804         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
8805         -fno-builtin-acc_on_device instead of -O0.
8806         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
8807         -O0.
8808         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
8809         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
8810         Likewise.
8811         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
8812         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
8813         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
8814         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
8815         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
8816         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
8817         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
8818         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
8819         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
8820         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
8821         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
8822         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
8823         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
8824         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
8825         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
8826         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
8827         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
8828         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
8829         Don't specify -O2.
8830         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
8831         Likewise.
8832         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
8833         Likewise.
8835 2016-03-24  Martin Liska  <mliska@suse.cz>
8837         * plugin/plugin-hsa.c (packet_store_release): New function
8838         that is taken from the HSA runtime manual.
8839         (GOMP_OFFLOAD_run): Use the function.
8841 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
8843         PR c++/70376
8844         * testsuite/libgomp.c++/pr70376.C: New test.
8846 2016-03-23  Tom de Vries  <tom@codesourcery.com>
8848         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
8849         initialization of lresult and lvresult.
8850         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
8852 2016-03-23  James Norris  <jnorris@codesourcery.com>
8853             Daichi Fukuoka <dc-fukuoka@sgi.com>
8855         PR libgomp/69414
8856         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
8857         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
8858         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8859         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
8861 2016-03-23  Martin Liska  <mliska@suse.cz>
8863         PR hsa/70337
8864         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
8865         argument just in case a dispatched kernel uses that argument.
8867 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
8869         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
8870         -ftree-parallelize-loops/-fopenacc changes.
8871         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
8872         Likewise.
8873         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
8874         Likewise.
8875         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
8876         Likewise.
8877         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
8878         Likewise.
8879         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
8880         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
8882 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
8884         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
8885         always_ld_library_path the path to libgcc_s.
8887 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
8889         PR testsuite/70009
8890         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
8892 2016-03-09  Tom de Vries  <tom@codesourcery.com>
8894         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
8895         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
8896         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
8897         Same.
8898         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
8899         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
8900         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
8901         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
8903 2016-03-07  Martin Jambor  <mjambor@suse.cz>
8905         * testsuite/lib/libgomp.exp
8906         (check_effective_target_hsa_offloading_selected_nocache): New.
8907         (check_effective_target_hsa_offloading_selected): Likewise.
8908         * testsuite/libgomp.hsa.c/c.exp: Likewise.
8909         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
8910         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
8911         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
8912         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
8913         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
8914         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
8915         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
8916         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
8917         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
8918         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
8919         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
8920         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
8921         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
8922         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
8923         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
8924         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
8926 2016-03-07  Martin Jambor  <mjambor@suse.cz>
8928         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
8929         non-shared memory accelerators.
8930         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
8931         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
8932         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
8933         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
8934         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
8935         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
8936         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
8937         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
8938         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
8940 2016-03-07  Martin Jambor  <mjambor@suse.cz>
8942         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
8943         ALWAYS_CFLAGS.
8945 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
8947         PR libgomp/69555
8948         * testsuite/libgomp.c++/pr69555-1.C: New test.
8949         * testsuite/libgomp.c++/pr69555-2.C: New test.
8951 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
8952             Martin Jambor  <mjambor@suse.cz>
8954         * testsuite/lib/libgomp.exp
8955         (check_effective_target_offload_device_shared_as): New proc.
8956         * testsuite/libgomp.c++/declare_target-1.C: New test.
8958 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
8960         PR driver/68463
8961         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
8963 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
8965         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
8966         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
8967         dims.
8968         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
8969         -ftree-parallelize-loops/-fopenacc changes.
8970         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
8971         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
8972         Likewise.
8973         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
8974         Likewise.
8975         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
8976         Likewise.
8977         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
8978         Likewise.
8979         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
8980         Likewise.
8981         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
8982         Likewise.
8983         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
8984         Likewise.
8985         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
8986         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
8987         Likewise.
8988         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
8989         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
8990         Likewise.
8991         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
8992         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
8993         Likewise.
8995 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
8997         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
8999 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
9001         PR driver/69805
9002         * testsuite/libgomp.c/pr69805.c: New test.
9004 2016-02-16  Tom de Vries  <tom@codesourcery.com>
9006         PR lto/67709
9007         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
9009 2016-02-09  Tom de Vries  <tom@codesourcery.com>
9011         PR tree-optimization/69599
9012         * testsuite/libgomp.c/omp-nested-3.c: New test.
9013         * testsuite/libgomp.c/pr46032-2.c: New test.
9014         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
9015         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
9017 2016-02-09  Tom de Vries  <tom@codesourcery.com>
9019         PR lto/69707
9020         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
9022 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
9024         * testsuite/libgomp.c/target-31.c: Fix testcase.
9026 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
9028         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
9029         clause.
9030         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
9031         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
9032         reduction and map clauses.
9033         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
9035 2016-02-02  James Norris  <jnorris@codesourcery.com>
9037         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
9039 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
9041         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
9042         * oacc-parallel.c (GOACC_host_data): Remove function definition.
9044         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
9045         cases.
9047         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
9048         variables.
9049         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
9050         (hsa_kmt_lib): Set variables.
9051         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
9052         always_ld_library_path.
9053         * Makefile.in: Regenerate.
9054         * configure: Likewise.
9055         * testsuite/Makefile.in: Likewise.
9057         * plugin/configfrag.ac (offload_additional_options)
9058         (offload_additional_lib_paths): Don't amend for hsa offloading.
9059         * configure: Regenerate.
9061         * plugin/configfrag.ac: Don't configure for offloading target if
9062         we don't build the corresponding plugin.
9063         * configure: Regenerate.
9065 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
9067         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
9068         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
9070 2016-01-26  Tom de Vries  <tom@codesourcery.com>
9072         PR tree-optimization/69110
9073         * testsuite/libgomp.c/pr69110.c: New test.
9075 2016-01-25  Richard Biener  <rguenther@suse.de>
9077         PR lto/69393
9078         * testsuite/libgomp.c++/pr69393.C: New testcase.
9080 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
9082         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
9083         function wasn't mapped to the device with non-shared memory.
9085 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
9087         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
9089 2016-01-19  Martin Jambor  <mjambor@suse.cz>
9090             Martin Liska  <mliska@suse.cz>
9092         * plugin/Makefrag.am: Add HSA plugin requirements.
9093         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
9094         (HSA_RUNTIME_LIB): Likewise.
9095         (HSA_RUNTIME_CPPFLAGS): Likewise.
9096         (HSA_RUNTIME_INCLUDE): New substitution.
9097         (HSA_RUNTIME_LIB): Likewise.
9098         (HSA_RUNTIME_LDFLAGS): Likewise.
9099         (hsa-runtime): New configure option.
9100         (hsa-runtime-include): Likewise.
9101         (hsa-runtime-lib): Likewise.
9102         (PLUGIN_HSA): New substitution variable.
9103         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
9104         configure options.
9105         (PLUGIN_HSA_CPPFLAGS): Likewise.
9106         (PLUGIN_HSA_LDFLAGS): Likewise.
9107         (PLUGIN_HSA_LIBS): Likewise.
9108         Check that we have access to HSA run-time.
9109         * libgomp-plugin.h (offload_target_type): New element
9110         OFFLOAD_TARGET_TYPE_HSA.
9111         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
9112         args.
9113         (bool gomp_create_target_task): Updated.
9114         (gomp_device_descr): Extra parameter of run_func and async_run_func,
9115         new field can_run_func.
9116         * libgomp_g.h (GOMP_target_ext): Update prototype.
9117         * oacc-host.c (host_run): Added a new parameter args.
9118         * target.c (calculate_firstprivate_requirements): New function.
9119         (copy_firstprivate_data): Likewise.
9120         (gomp_target_fallback_firstprivate): Use them.
9121         (gomp_target_unshare_firstprivate): New function.
9122         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
9123         devices.
9124         (GOMP_target): Do host fallback for all shared memory devices.  Do not
9125         pass any args to plugins.
9126         (GOMP_target_ext): Introduce device-specific argument parameter args.
9127         Allow host fallback if device shares memory.  Do not remap data if
9128         device has shared memory.
9129         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
9130         like host fallback for mappings.
9131         (GOMP_target_data): Treat shared memory devices like host fallback.
9132         (GOMP_target_data_ext): Likewise.
9133         (GOMP_target_update): Likewise.
9134         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
9135         gomp_create_target_task.
9136         (GOMP_target_enter_exit_data): Likewise.
9137         (omp_target_alloc): Treat shared memory devices like host fallback.
9138         (omp_target_free): Likewise.
9139         (omp_target_is_present): Likewise.
9140         (omp_target_memcpy): Likewise.
9141         (omp_target_memcpy_rect): Likewise.
9142         (omp_target_associate_ptr): Likewise.
9143         (gomp_load_plugin_for_device): Also load can_run.
9144         * task.c (GOMP_PLUGIN_target_task_completion): Free
9145         firstprivate_copies.
9146         (gomp_create_target_task): Accept new argument args and store it to
9147         ttask.
9148         * plugin/plugin-hsa.c: New file.
9150 2016-01-18  Tom de Vries  <tom@codesourcery.com>
9152         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
9153         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
9154         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
9155         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
9156         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
9157         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
9158         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
9159         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
9160         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
9161         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
9162         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
9163         Same.
9164         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
9165         Same.
9166         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
9167         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
9168         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
9169         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
9170         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
9171         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
9172         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
9173         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
9174         Same.
9175         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
9177 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
9179         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
9181 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
9183         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
9185 2016-01-12  James Norris  <jnorris@codesourcery.com>
9187         * libgomp.texi: Updates for OpenACC.
9189 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
9191         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
9193 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
9195         PR fortran/66680
9196         * testsuite/libgomp.fortran/pr66680.f90: New test.
9198 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
9200         PR middle-end/68960
9201         * testsuite/libgomp.c/pr68960.c: New test.
9203 2016-01-06  Nathan Sidwell  <nathan@acm.org>
9205         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
9206         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
9208 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
9210         Update copyright years.
9212         * libgomp.texi: Bump @copying's copyright year.
9214 2015-12-31  Nathan Sidwell  <nathan@acm.org>
9216         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
9217         dg-additional-options syntax.
9218         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
9219         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
9220         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
9221         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
9222         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
9223         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
9224         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
9225         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
9226         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
9227         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
9228         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
9229         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
9230         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
9231         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
9232         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
9233         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
9234         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
9235         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
9237 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
9239         * libgomp.h (REFCOUNT_LINK): Define.
9240         (struct splay_tree_key_s): Add link_key.
9241         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
9242         Replace target address of the pointer with target address of newly
9243         mapped object in the splay tree.  Set link pointer on target to the
9244         device address of the mapped object.
9245         (gomp_unmap_vars): Restore target address of the pointer in the splay
9246         tree for REFCOUNT_LINK objects after unmapping.
9247         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
9248         declare target link" objects.
9249         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
9250         "omp declare target link" objects, which were mapped for the image.
9251         (gomp_exit_data): Restore target address of the pointer in the splay
9252         tree for REFCOUNT_LINK objects after unmapping.
9253         * testsuite/libgomp.c/target-link-1.c: New file.
9255 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
9257         * libgomp.h (gomp_device_state): New enum.
9258         (struct gomp_device_descr): Replace is_initialized with state.
9259         (gomp_fini_device): Remove declaration.
9260         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
9261         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
9262         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
9263         (acc_set_device_type): Use state instead of is_initialized.
9264         (acc_set_device_num): Likewise.
9265         * target.c (resolve_device): Use state instead of is_initialized.
9266         Do not initialize finalized device.
9267         (gomp_map_vars): Do nothing if device is finalized.
9268         (gomp_unmap_vars): Likewise.
9269         (gomp_update): Likewise.
9270         (GOMP_offload_register_ver): Use state instead of is_initialized.
9271         (GOMP_offload_unregister_ver): Likewise.
9272         (gomp_init_device): Likewise.
9273         (gomp_unload_device): Likewise.
9274         (gomp_fini_device): Remove.
9275         (gomp_get_target_fn_addr): Do nothing if device is finalized.
9276         (GOMP_target): Go to host fallback if device is finalized.
9277         (GOMP_target_ext): Likewise.
9278         (gomp_exit_data): Do nothing if device is finalized.
9279         (gomp_target_task_fn): Go to host fallback if device is finalized.
9280         (gomp_target_fini): New static function.
9281         (gomp_target_init): Use state instead of is_initialized.
9282         Call gomp_target_fini at exit.
9284 2015-12-09  Tom de Vries  <tom@codesourcery.com>
9286         PR tree-optimization/68716
9287         * testsuite/libgomp.c/omp-nested-2.c: New test.
9289 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
9291         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
9292         target openacc_nvidia_accel_selected.
9293         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
9294         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
9295         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
9296         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
9298 2015-12-01  Julian Brown  <julian@codesourcery.com>
9299             James Norris  <James_Norris@mentor.com>
9301         * oacc-parallel.c (GOACC_host_data): New function.
9302         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
9303         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
9304         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
9305         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
9306         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
9307         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
9308         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
9310 2015-11-30  James Norris  <jnorris@codesourcery.com>
9311             Cesar Philippidis  <cesar@codesourcery.com>
9313         libgomp/
9314         * libgomp.oacc-fortran/routine-5.f90: New test.
9315         * libgomp.oacc-fortran/routine-7.f90: New test.
9316         * libgomp.oacc-fortran/routine-9.f90: New test.
9318 2015-11-30  Tom de Vries  <tom@codesourcery.com>
9320         PR tree-optimization/46032
9321         * testsuite/libgomp.c/pr46032.c: New test.
9323 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
9325         PR libgomp/68579
9326         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
9327         (gomp_create_target_task): Call it before freeing
9328         GOMP_TARGET_TASK_DATA tasks.
9330         PR c/63326
9331         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
9332         in between case label and OpenMP standalone directives.
9333         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
9335 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
9337         * configure: Regenerate.
9339 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
9341         * testsuite/libgomp.c/target-35.c: New test.
9343 2015-11-22  James Norris  <jnorris@codesourcery.com>
9344             Cesar Philippidis  <cesar@codesourcery.com>
9346         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
9347         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
9348         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
9349         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
9350         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
9352 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
9354         PR middle-end/68221
9355         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
9356         * testsuite/libgomp.c/reduction-12.c: Likewise.
9357         * testsuite/libgomp.c++/reduction-11.C: Likewise.
9358         * testsuite/libgomp.c++/reduction-12.C: Likewise.
9360 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
9362         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
9363         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
9364         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
9365         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
9366         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
9367         and fix.
9368         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9369         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9371 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
9373         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
9374         worker & gang cases.
9375         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
9377 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
9379         * config/nvptx/priority_queue.c: New file.
9381 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
9383         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
9384         sections.
9386 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
9387             Aldy Hernandez  <aldyh@redhat.com>
9388             Ilya Verbin  <ilya.verbin@intel.com>
9390         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
9391         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
9392         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
9393         iterators or IV by chunk size.
9394         * parallel.c (gomp_resolve_num_threads): Don't assume that
9395         if thr->ts.team is non-NULL, then pool must be non-NULL.
9396         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
9397         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
9398         GOMP_PLUGIN_target_task_completion.
9399         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
9400         * Makefile.in: Regenerate.
9401         * libgomp.h: Shuffle prototypes and forward definitions around so
9402         priority queues can be defined.
9403         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
9404         (enum gomp_target_task_state): New enum.
9405         (struct gomp_target_task): Add state, tgt, task and team fields.
9406         (gomp_create_target_task): Change return type to bool, add
9407         state argument.
9408         (gomp_target_task_fn): Change return type to bool.
9409         (struct gomp_device_descr): Add async_run_func.
9410         (struct gomp_task): Remove children, next_child, prev_child,
9411         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
9412         Add pnode field.
9413         (struct gomp_taskgroup): Remove children.
9414         Add taskgroup_queue.
9415         (struct gomp_team): Change task_queue type to a priority queue.
9416         (splay_compare): Define inline.
9417         (priority_queue_offset): New.
9418         (priority_node_to_task): New.
9419         (task_to_priority_node): New.
9420         * oacc-mem.c: Do not include splay-tree.h.
9421         * priority_queue.c: New file.
9422         * priority_queue.h: New file.
9423         * splay-tree.c: Do not include splay-tree.h.
9424         (splay_tree_foreach_internal): New.
9425         (splay_tree_foreach): New.
9426         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
9427         (splay_tree_callback): Define typedef.
9428         * target.c (splay_compare): Move to libgomp.h.
9429         (GOMP_target): Don't adjust *thr in any way around running offloaded
9430         task.
9431         (GOMP_target_ext): Likewise.  Handle target nowait.
9432         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
9433         return value from gomp_create_target_task, if false, fallthrough
9434         as if no dependencies exist.
9435         (gomp_target_task_fn): Change return type to bool, return true
9436         if the task should have another part scheduled later.  Handle
9437         target nowait.
9438         (gomp_load_plugin_for_device): Initialize async_run.
9439         * task.c (gomp_init_task): Initialize children_queue.
9440         (gomp_clear_parent_in_list): New.
9441         (gomp_clear_parent_in_tree): New.
9442         (gomp_clear_parent): Handle priorities.
9443         (GOMP_task): Likewise.
9444         (priority_queue_move_task_first,
9445         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
9446         New functions.
9447         (gomp_create_target_task): Use priority queues.  Change return type
9448         to bool, add state argument, return false if for async
9449         {{enter,exit} data,update} constructs no dependencies need to be
9450         waited for, handle target nowait.  Set task->fn to NULL instead of
9451         gomp_target_task_fn.
9452         (verify_children_queue): Remove.
9453         (priority_list_upgrade_task): New.
9454         (priority_queue_upgrade_task): New.
9455         (verify_task_queue): Remove.
9456         (priority_list_downgrade_task): New.
9457         (priority_queue_downgrade_task): New.
9458         (gomp_task_run_pre): Use priority queues.
9459         Abstract code out to priority_queue_downgrade_task.
9460         (gomp_task_run_post_handle_dependers): Use priority queues.
9461         (gomp_task_run_post_remove_parent): Likewise.
9462         (gomp_task_run_post_remove_taskgroup): Likewise.
9463         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
9464         tasks specially.
9465         (GOMP_taskwait): Likewise.
9466         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
9467         priority-queue_upgrade_task.
9468         (GOMP_taskgroup_start): Use priority queues.
9469         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
9470         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
9471         barrier.
9472         * taskloop.c (GOMP_taskloop): Handle priorities.
9473         * team.c (gomp_new_team): Call priority_queue_init.
9474         (free_team): Call priority_queue_free.
9475         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
9476         team created for target nowait in implicit parallel region.
9477         (gomp_team_start): For nested check, test thr->ts.level instead of
9478         thr->ts.team != NULL.
9479         * testsuite/libgomp.c/doacross-3.c: New test.
9480         * testsuite/libgomp.c/ordered-5.c: New test.
9481         * testsuite/libgomp.c/priority.c: New test.
9482         * testsuite/libgomp.c/target-31.c: New test.
9483         * testsuite/libgomp.c/target-32.c: New test.
9484         * testsuite/libgomp.c/target-33.c: New test.
9485         * testsuite/libgomp.c/target-34.c: New test.
9487 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
9489         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
9491         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
9492         loop is sequential.
9494 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
9496         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
9497         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
9499 2015-11-12  James Norris  <jnorris@codesourcery.com>
9500             Joseph Myers  <joseph@codesourcery.com>
9502         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
9503         * oacc-parallel.c (GOACC_declare): New function.
9504         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
9505         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
9506         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
9507         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
9508         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
9510 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
9512         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
9514 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
9516         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
9517         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
9519 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
9521         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
9522         inadvertent commit.
9524 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
9526         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
9527         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
9528         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
9529         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
9530         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
9532 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
9534         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
9535         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
9537 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
9538             Ilya Verbin  <ilya.verbin@intel.com>
9540         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
9541         GOMP_loop_nonmonotonic_dynamic_start,
9542         GOMP_loop_nonmonotonic_guided_next,
9543         GOMP_loop_nonmonotonic_guided_start,
9544         GOMP_loop_ull_nonmonotonic_dynamic_next,
9545         GOMP_loop_ull_nonmonotonic_dynamic_start,
9546         GOMP_loop_ull_nonmonotonic_guided_next,
9547         GOMP_loop_ull_nonmonotonic_guided_start,
9548         GOMP_parallel_loop_nonmonotonic_dynamic,
9549         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
9550         (GOMP_target_41): Renamed to ...
9551         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
9552         arguments.
9553         (GOMP_target_data_41): Renamed to ...
9554         (GOMP_target_data_ext): ... this.
9555         (GOMP_target_update_41): Renamed to ...
9556         (GOMP_target_update_ext): ... this.
9557         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
9558         GOMP_target_data_ext and GOMP_target_update_ext instead of
9559         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
9560         Export GOMP_loop_nonmonotonic_dynamic_next,
9561         GOMP_loop_nonmonotonic_dynamic_start,
9562         GOMP_loop_nonmonotonic_guided_next,
9563         GOMP_loop_nonmonotonic_guided_start,
9564         GOMP_loop_ull_nonmonotonic_dynamic_next,
9565         GOMP_loop_ull_nonmonotonic_dynamic_start,
9566         GOMP_loop_ull_nonmonotonic_guided_next,
9567         GOMP_loop_ull_nonmonotonic_guided_start,
9568         GOMP_parallel_loop_nonmonotonic_dynamic and
9569         GOMP_parallel_loop_nonmonotonic_guided.
9570         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
9571         GOMP_parallel_loop_nonmonotonic_guided,
9572         GOMP_loop_nonmonotonic_dynamic_start,
9573         GOMP_loop_nonmonotonic_guided_start,
9574         GOMP_loop_nonmonotonic_dynamic_next,
9575         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
9576         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
9577         GOMP_loop_ull_nonmonotonic_guided_start,
9578         GOMP_loop_ull_nonmonotonic_dynamic_next,
9579         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
9580         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
9581         functions.
9582         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
9583         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
9584         Use gomp_map_val function.
9585         (gomp_target_fallback_firstprivate): New static function.
9586         (GOMP_target_41): Renamed to ...
9587         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
9588         arguments.  Move firstprivate fallback handling into a new
9589         function.
9590         (GOMP_target_data_41): Renamed to ...
9591         (GOMP_target_data_ext): ... this.
9592         (GOMP_target_update_41): Renamed to ...
9593         (GOMP_target_update_ext): ... this.
9594         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
9595         gomp_map_0len_lookup instead of gomp_map_lookup.
9596         (omp_target_is_present): Use gomp_map_0len_lookup instead of
9597         gomp_map_lookup.
9598         * testsuite/libgomp.c/target-28.c: Likewise.
9599         * testsuite/libgomp.c/monotonic-1.c: New test.
9600         * testsuite/libgomp.c/monotonic-2.c: New test.
9601         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
9602         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
9603         * testsuite/libgomp.c/pr66199-5.c: New test.
9604         * testsuite/libgomp.c/pr66199-6.c: New test.
9605         * testsuite/libgomp.c/pr66199-7.c: New test.
9606         * testsuite/libgomp.c/pr66199-8.c: New test.
9607         * testsuite/libgomp.c/pr66199-9.c: New test.
9608         * testsuite/libgomp.c/reduction-11.c: New test.
9609         * testsuite/libgomp.c/reduction-12.c: New test.
9610         * testsuite/libgomp.c/reduction-13.c: New test.
9611         * testsuite/libgomp.c/reduction-14.c: New test.
9612         * testsuite/libgomp.c/reduction-15.c: New test.
9613         * testsuite/libgomp.c/target-12.c (main): Adjust for
9614         omp_target_is_present change for one-past-last element.
9615         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
9616         the same var is both mapped and privatized.
9617         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
9618         handling of zero-length array sections.
9619         * testsuite/libgomp.c/target-28.c: New test.
9620         * testsuite/libgomp.c/target-29.c: New test.
9621         * testsuite/libgomp.c/target-30.c: New test.
9622         * testsuite/libgomp.c/target-teams-1.c: New test.
9623         * testsuite/libgomp.c++/member-6.C: New test.
9624         * testsuite/libgomp.c++/member-7.C: New test.
9625         * testsuite/libgomp.c++/monotonic-1.C: New test.
9626         * testsuite/libgomp.c++/monotonic-2.C: New test.
9627         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
9628         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
9629         * testsuite/libgomp.c++/pr66199-3.C: New test.
9630         * testsuite/libgomp.c++/pr66199-4.C: New test.
9631         * testsuite/libgomp.c++/pr66199-5.C: New test.
9632         * testsuite/libgomp.c++/pr66199-6.C: New test.
9633         * testsuite/libgomp.c++/pr66199-7.C: New test.
9634         * testsuite/libgomp.c++/pr66199-8.C: New test.
9635         * testsuite/libgomp.c++/pr66199-9.C: New test.
9636         * testsuite/libgomp.c++/reduction-11.C: New test.
9637         * testsuite/libgomp.c++/reduction-12.C: New test.
9638         * testsuite/libgomp.c++/target-13.C: New test.
9639         * testsuite/libgomp.c++/target-14.C: New test.
9640         * testsuite/libgomp.c++/target-15.C: New test.
9641         * testsuite/libgomp.c++/target-16.C: New test.
9642         * testsuite/libgomp.c++/target-17.C: New test.
9643         * testsuite/libgomp.c++/target-18.C: New test.
9644         * testsuite/libgomp.c++/target-19.C: New test.
9646 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
9648         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
9649         and reduction copy.
9650         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9651         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9652         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9653         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9654         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
9655         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9656         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
9657         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
9658         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9659         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
9660         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
9661         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
9662         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
9663         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
9665 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
9667         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
9668         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
9669         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
9670         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
9671         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
9672         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
9673         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
9674         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
9676 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
9678         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
9679         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
9680         (GOMP_OFFLOAD_openacc_parallel): Likewise.
9681         * oacc-host.c (host_openacc_exec): Likewise.
9682         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
9684 2015-11-03  Julian Brown  <julian@codesourcery.com>
9685             Thomas Schwinge  <thomas@codesourcery.com>
9687         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
9688         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
9689         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
9690         Likewise.
9691         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
9692         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
9694 2015-11-03  James Norris  <jnorris@codesourcery.com>
9696         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
9697         file.
9698         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
9699         Likewise.
9700         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
9701         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
9702         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
9703         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
9704         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
9706 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
9708         * openacc.h (enum acc_device_t): Reformat. Ensure layout
9709         compatibility.
9710         (enum acc_async_t): Reformat.
9711         (acc_on_device): Declare compatible with builtin and provide C++
9712         wrapper.
9713         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
9715 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
9716             Cesar Philippidis  <cesar@codesourcery.com>
9718         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
9719         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
9720         ... this.  Add a description of the test at the top of the file.
9721         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
9722         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
9723         ... this.  Add a description of the test at the top of the file.
9725 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
9727         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
9728         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
9729         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
9730         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
9731         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
9732         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
9734 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9736         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
9737         dimensions.
9739 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
9741         PR testsuite/68063
9742         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
9744 2015-10-27  James Norris  <jnorris@codesourcery.com>
9746         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
9747         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
9749 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
9751         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
9752         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
9754         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
9755         acc_device_nvidia usage.
9756         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
9757         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
9758         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
9760         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
9761         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
9763         PR libgomp/66518
9764         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
9766         PR libgomp/65437
9767         PR libgomp/66518
9768         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
9769         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
9771 2015-10-23  Tom de Vries  <tom@codesourcery.com>
9773         PR testsuite/68063
9774         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
9776 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
9778         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
9779         vector_length.
9780         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9782 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
9783             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
9785         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
9786         to 0 when mapnum is 0.
9788 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9790         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
9791         Cast to int from int32_t.
9793 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
9794             Aldy Hernandez  <aldyh@redhat.com>
9795             Ilya Verbin  <ilya.verbin@intel.com>
9797         * config/linux/affinity.c (omp_get_place_num_procs,
9798         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
9799         * config/linux/doacross.h: New file.
9800         * config/posix/affinity.c (omp_get_place_num_procs,
9801         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
9802         * config/posix/doacross.h: New file.
9803         * env.c: Include gomp-constants.h.
9804         (struct gomp_task_icv): Rename run_sched_modifier to
9805         run_sched_chunk_size.
9806         (gomp_max_task_priority_var): New variable.
9807         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
9808         (handle_omp_display_env): Change _OPENMP value from 201307 to
9809         201511.  Print OMP_MAX_TASK_PRIORITY.
9810         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
9811         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
9812         chunk_size and run_sched_modifier to run_sched_chunk_size.
9813         (omp_get_max_task_priority, omp_get_initial_device,
9814         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
9815         omp_get_partition_place_nums): New functions.
9816         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
9817         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
9818         to chunk_size.
9819         (omp_get_num_places_, omp_get_place_num_procs_,
9820         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
9821         omp_get_place_proc_ids_8_, omp_get_place_num_,
9822         omp_get_partition_num_places_, omp_get_partition_place_nums_,
9823         omp_get_partition_place_nums_8_, omp_get_initial_device_,
9824         omp_get_max_task_priority_): New functions.
9825         * libgomp_g.h (GOMP_loop_doacross_static_start,
9826         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
9827         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
9828         GOMP_loop_ull_doacross_dynamic_start,
9829         GOMP_loop_ull_doacross_guided_start,
9830         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
9831         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
9832         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
9833         GOMP_target_data_41, GOMP_target_update_41,
9834         GOMP_target_enter_exit_data): New prototypes.
9835         (GOMP_task): Add prototype argument.
9836         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
9837         (struct gomp_doacross_work_share): New type.
9838         (struct gomp_work_share): Add doacross field.
9839         (struct gomp_task_icv): Rename run_sched_modifier to
9840         run_sched_chunk_size.
9841         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
9842         GOMP_TASK_UNDEFERRED.  Add comments.
9843         (struct gomp_task_depend_entry): Add comments.
9844         (struct gomp_task): Likewise.
9845         (struct gomp_taskgroup): Likewise.
9846         (struct gomp_target_task): New type.
9847         (struct gomp_team): Add comment.
9848         (gomp_get_place_proc_ids_8, gomp_doacross_init,
9849         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
9850         gomp_create_target_task, gomp_target_task_fn): New prototypes.
9851         (struct target_var_desc): New type.
9852         (struct target_mem_desc): Adjust comment.  Use struct
9853         target_var_desc instead of splay_tree_key for list.
9854         (REFCOUNT_INFINITY): Define.
9855         (struct splay_tree_key_s): Remove copy_from field.
9856         (struct gomp_device_descr): Add dev2dev_func field.
9857         (enum gomp_map_vars_kind): New enum.
9858         (gomp_map_vars): Add one argument.
9859         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
9860         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
9861         omp_get_place_num_procs, omp_get_place_num_procs_,
9862         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
9863         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
9864         omp_get_place_num_, omp_get_partition_num_places,
9865         omp_get_partition_num_places_, omp_get_partition_place_nums,
9866         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
9867         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
9868         omp_target_free, omp_target_is_present, omp_target_memcpy,
9869         omp_target_memcpy_rect, omp_target_associate_ptr and
9870         omp_target_disassociate_ptr.
9871         (GOMP_4.0.2): Renamed to ...
9872         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
9873         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
9874         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
9875         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
9876         GOMP_loop_doacross_static_start, GOMP_doacross_post,
9877         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
9878         GOMP_loop_ull_doacross_guided_start,
9879         GOMP_loop_ull_doacross_runtime_start,
9880         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
9881         GOMP_doacross_ull_wait.
9882         * libgomp.texi: Document omp_get_max_task_priority.
9883         Rename modifier argument to chunk_size for omp_set_schedule and
9884         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
9885         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
9886         to run_sched_chunk_size renaming.
9887         (GOMP_loop_ordered_runtime_start): Likewise.
9888         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
9889         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
9890         GOMP_parallel_loop_runtime_start): New functions.
9891         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
9892         to run_sched_chunk_size renaming.
9893         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
9894         GOMP_loop_doacross_guided_start): New functions or aliases.
9895         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
9896         run_sched_modifier to run_sched_chunk_size renaming.
9897         (GOMP_loop_ull_ordered_runtime_start): Likewise.
9898         (gomp_loop_ull_doacross_static_start,
9899         gomp_loop_ull_doacross_dynamic_start,
9900         gomp_loop_ull_doacross_guided_start,
9901         GOMP_loop_ull_doacross_runtime_start): New functions.
9902         (GOMP_loop_ull_doacross_static_start,
9903         GOMP_loop_ull_doacross_dynamic_start,
9904         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
9905         * oacc-mem.c (acc_map_data, present_create_copy,
9906         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
9907         to gomp_map_vars.
9908         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
9909         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
9910         instead of false to gomp_map_vars.
9911         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
9912         * omp.h.in (omp_lock_hint_t): New type.
9913         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
9914         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
9915         omp_get_place_num, omp_get_partition_num_places,
9916         omp_get_partition_place_nums, omp_get_initial_device,
9917         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
9918         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
9919         omp_target_associate_ptr, omp_target_disassociate_ptr): New
9920         prototypes.
9921         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
9922         (omp_lock_hint_none, omp_lock_hint_uncontended,
9923         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
9924         omp_lock_hint_speculative): New parameters.
9925         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
9926         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
9927         omp_get_place_num, omp_get_partition_num_places,
9928         omp_get_partition_place_nums, omp_get_initial_device,
9929         omp_get_max_task_priority): New interfaces.
9930         (omp_set_schedule, omp_get_schedule): Rename modifier argument
9931         to chunk_size.
9932         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
9933         (omp_lock_hint_none, omp_lock_hint_uncontended,
9934         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
9935         omp_lock_hint_speculative): New parameters.
9936         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
9937         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
9938         omp_get_place_num, omp_get_partition_num_places,
9939         omp_get_partition_place_nums, omp_get_initial_device,
9940         omp_get_max_task_priority): New functions and subroutines.
9941         * ordered.c: Include stdarg.h and string.h.
9942         (MAX_COLLAPSED_BITS): Define.
9943         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
9944         gomp_doacross_ull_init, GOMP_doacross_ull_post,
9945         GOMP_doacross_ull_wait): New functions.
9946         * target.c: Include errno.h.
9947         (resolve_device): If device is not initialized, call
9948         gomp_init_device on it.
9949         (gomp_map_lookup): New function.
9950         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
9951         Don't bump refcount if REFCOUNT_INFINITY.  Handle
9952         GOMP_MAP_ALWAYS_TO_P.
9953         (get_kind): Rename is_openacc argument to short_mapkind.
9954         (gomp_map_pointer): Use gomp_map_lookup.
9955         (gomp_map_fields_existing): New function.
9956         (gomp_map_vars): Rename is_openacc argument to short_mapkind
9957         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
9958         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
9959         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
9960         Adjust for tgt->list changed type and copy_from living in there.
9961         (gomp_copy_from_async): Adjust for tgt->list changed type and
9962         copy_from living in there.
9963         (gomp_unmap_vars): Likewise.
9964         (gomp_update): Likewise.  Rename is_openacc argument to
9965         short_mapkind.  Don't fail if object is not mapped.
9966         (gomp_load_image_to_device): Initialize refcount to
9967         REFCOUNT_INFINITY.
9968         (gomp_target_fallback): New function.
9969         (gomp_get_target_fn_addr): Likewise.
9970         (GOMP_target): Adjust gomp_map_vars caller, use
9971         gomp_get_target_fn_addr and gomp_target_fallback.
9972         (GOMP_target_41): New function.
9973         (gomp_target_data_fallback): New function.
9974         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
9975         (GOMP_target_data_41): New function.
9976         (GOMP_target_update): Adjust gomp_update caller.
9977         (GOMP_target_update_41): New function.
9978         (gomp_exit_data, GOMP_target_enter_exit_data,
9979         gomp_target_task_fn, omp_target_alloc, omp_target_free,
9980         omp_target_is_present, omp_target_memcpy,
9981         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
9982         omp_target_associate_ptr, omp_target_disassociate_ptr,
9983         gomp_load_plugin_for_device): New functions.
9984         * task.c: Include gomp-constants.h.  Include taskloop.c
9985         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
9986         (gomp_task_handle_depend): New function.
9987         (GOMP_task): Use it.  Add priority argument.  Use
9988         gomp-constant.h constants instead of hardcoded numbers.
9989         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
9990         (gomp_create_target_task): New function.
9991         (verify_children_queue, verify_taskgroup_queue,
9992         verify_task_queue): New functions.
9993         (gomp_task_run_pre): Call verify_*_queue functions.
9994         If an upcoming tied task is about to leave the sibling or
9995         taskgroup queues in an invalid state, adjust appropriately.
9996         Remove taskgroup argument.  Add comments.
9997         (gomp_task_run_post_handle_dependers): Add comments.
9998         (gomp_task_run_post_remove_parent): Likewise.
9999         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
10000         (GOMP_taskwait): Likewise.  Add comments.
10001         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
10002         problem such that the first non parent_depends_on task does not
10003         end up at the end of the children queue.
10004         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
10005         GOMP_TASK_UNDEFERRED.
10006         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
10007         * taskloop.c: New file.
10008         * testsuite/lib/libgomp.exp
10009         (check_effective_target_offload_device_nonshared_as): New proc.
10010         * testsuite/libgomp.c/affinity-2.c: New test.
10011         * testsuite/libgomp.c/doacross-1.c: New test.
10012         * testsuite/libgomp.c/doacross-2.c: New test.
10013         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
10014         Add map clause to target.
10015         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
10016         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
10017         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
10018         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
10019         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
10020         Likewise.
10021         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
10022         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
10023         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
10024         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
10025         not defined.  Use those where needed.
10026         * testsuite/libgomp.c/for-4.c: New test.
10027         * testsuite/libgomp.c/for-5.c: New test.
10028         * testsuite/libgomp.c/for-6.c: New test.
10029         * testsuite/libgomp.c/linear-1.c: New test.
10030         * testsuite/libgomp.c/ordered-4.c: New test.
10031         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
10032         only allowed on the loop iterator.
10033         * testsuite/libgomp.c/pr66199-3.c: New test.
10034         * testsuite/libgomp.c/pr66199-4.c: New test.
10035         * testsuite/libgomp.c/reduction-7.c: New test.
10036         * testsuite/libgomp.c/reduction-8.c: New test.
10037         * testsuite/libgomp.c/reduction-9.c: New test.
10038         * testsuite/libgomp.c/reduction-10.c: New test.
10039         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
10040         map(tofrom:s).
10041         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
10042         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
10043         * testsuite/libgomp.c/target-11.c: New test.
10044         * testsuite/libgomp.c/target-12.c: New test.
10045         * testsuite/libgomp.c/target-13.c: New test.
10046         * testsuite/libgomp.c/target-14.c: New test.
10047         * testsuite/libgomp.c/target-15.c: New test.
10048         * testsuite/libgomp.c/target-16.c: New test.
10049         * testsuite/libgomp.c/target-17.c: New test.
10050         * testsuite/libgomp.c/target-18.c: New test.
10051         * testsuite/libgomp.c/target-19.c: New test.
10052         * testsuite/libgomp.c/target-20.c: New test.
10053         * testsuite/libgomp.c/target-21.c: New test.
10054         * testsuite/libgomp.c/target-22.c: New test.
10055         * testsuite/libgomp.c/target-23.c: New test.
10056         * testsuite/libgomp.c/target-24.c: New test.
10057         * testsuite/libgomp.c/target-25.c: New test.
10058         * testsuite/libgomp.c/target-26.c: New test.
10059         * testsuite/libgomp.c/target-27.c: New test.
10060         * testsuite/libgomp.c/taskloop-1.c: New test.
10061         * testsuite/libgomp.c/taskloop-2.c: New test.
10062         * testsuite/libgomp.c/taskloop-3.c: New test.
10063         * testsuite/libgomp.c/taskloop-4.c: New test.
10064         * testsuite/libgomp.c++/ctor-13.C: New test.
10065         * testsuite/libgomp.c++/doacross-1.C: New test.
10066         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
10067         Replace offload_device with offload_device_nonshared_as.
10068         * testsuite/libgomp.c++/for-12.C: New test.
10069         * testsuite/libgomp.c++/for-13.C: New test.
10070         * testsuite/libgomp.c++/for-14.C: New test.
10071         * testsuite/libgomp.c++/linear-1.C: New test.
10072         * testsuite/libgomp.c++/member-1.C: New test.
10073         * testsuite/libgomp.c++/member-2.C: New test.
10074         * testsuite/libgomp.c++/member-3.C: New test.
10075         * testsuite/libgomp.c++/member-4.C: New test.
10076         * testsuite/libgomp.c++/member-5.C: New test.
10077         * testsuite/libgomp.c++/ordered-1.C: New test.
10078         * testsuite/libgomp.c++/reduction-5.C: New test.
10079         * testsuite/libgomp.c++/reduction-6.C: New test.
10080         * testsuite/libgomp.c++/reduction-7.C: New test.
10081         * testsuite/libgomp.c++/reduction-8.C: New test.
10082         * testsuite/libgomp.c++/reduction-9.C: New test.
10083         * testsuite/libgomp.c++/reduction-10.C: New test.
10084         * testsuite/libgomp.c++/reference-1.C: New test.
10085         * testsuite/libgomp.c++/simd14.C: New test.
10086         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
10087         * testsuite/libgomp.c++/target-5.C: New test.
10088         * testsuite/libgomp.c++/target-6.C: New test.
10089         * testsuite/libgomp.c++/target-7.C: New test.
10090         * testsuite/libgomp.c++/target-8.C: New test.
10091         * testsuite/libgomp.c++/target-9.C: New test.
10092         * testsuite/libgomp.c++/target-10.C: New test.
10093         * testsuite/libgomp.c++/target-11.C: New test.
10094         * testsuite/libgomp.c++/target-12.C: New test.
10095         * testsuite/libgomp.c++/taskloop-1.C: New test.
10096         * testsuite/libgomp.c++/taskloop-2.C: New test.
10097         * testsuite/libgomp.c++/taskloop-3.C: New test.
10098         * testsuite/libgomp.c++/taskloop-4.C: New test.
10099         * testsuite/libgomp.c++/taskloop-5.C: New test.
10100         * testsuite/libgomp.c++/taskloop-6.C: New test.
10101         * testsuite/libgomp.c++/taskloop-7.C: New test.
10102         * testsuite/libgomp.c++/taskloop-8.C: New test.
10103         * testsuite/libgomp.c++/taskloop-9.C: New test.
10104         * testsuite/libgomp.fortran/affinity1.f90: New test.
10105         * testsuite/libgomp.fortran/affinity2.f90: New test.
10107 2015-10-13  Tom de Vries  <tom@codesourcery.com>
10109         PR tree-optimization/67476
10110         * testsuite/libgomp.c/autopar-3.c: New test.
10111         * testsuite/libgomp.c/autopar-4.c: New test.
10112         * testsuite/libgomp.c/autopar-5.c: New test.
10113         * testsuite/libgomp.c/autopar-6.c: New test.
10114         * testsuite/libgomp.c/autopar-7.c: New test.
10115         * testsuite/libgomp.c/autopar-8.c: New test.
10117 2015-10-12  James Norris  <jnorris@codesourcery.com>
10119         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
10120         initializer.
10122 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
10124         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
10125         using load_gcc_lib.
10127 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
10129         * oacc-ptx.h: Remove file, moving its content into...
10130         * config/nvptx/fortran.c: ... here...
10131         * config/nvptx/oacc-init.c: ..., here...
10132         * config/nvptx/oacc-parallel.c: ..., and here.
10133         * config/nvptx/openacc.f90: New file.
10134         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
10135         (link_ptx): Don't link in predefined bits of PTX code.
10137 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
10138             Bernd Schmidt <bernds@codesourcery.com>
10140         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
10141         (struct targ_ptx_obj): New.
10142         (nvptx_tdata): Move earlier, change data format.
10143         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
10144         objects.
10145         (GOMP_OFFLOAD_load_image): Adjust.
10147 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
10149         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
10150         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
10151         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
10152         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
10153         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10154         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10155         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10156         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10157         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10158         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10159         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10160         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
10161         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
10162         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10163         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10164         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10165         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
10166         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10167         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10168         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10169         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10170         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10171         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
10172         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
10173         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10174         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10175         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
10176         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10177         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10178         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
10179         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
10180         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
10181         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
10182         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
10183         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10184         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10185         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10186         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10187         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10188         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10189         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10190         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10191         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
10192         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
10193         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
10194         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
10195         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
10196         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
10197         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
10198         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
10199         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
10200         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
10201         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
10202         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
10203         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
10204         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10205         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10206         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10207         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10208         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10209         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10210         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10211         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10213 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
10215         * oacc-init.c (acc_on_device): Force optimization level.
10217 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
10219         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
10220         (cuda_errlist): Delete.
10221         (cuda_error): Reimplement.
10223 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
10225         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
10226         array.
10227         * libgomp.map (GOACC_parallel_keyed): New.
10228         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
10229         all callers.
10230         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
10231         and take keyed varargs list.  Adjust call to exec_func.
10232         (GOACC_parallel): Force host fallback.
10233         * libgomp_g.h (GOACC_parallel): Remove.
10234         (GOACC_parallel_keyed): Declare.
10235         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
10236         (struct targ_gn_descriptor): Replace name field with launch field.
10237         (nvptx_exec): Lose separate geometry args, take array.  Process
10238         dynamic dimensions and adjust.
10239         (struct nvptx_tdata): Replace fn_names field with fn_descs.
10240         (GOMP_OFFLOAD_load_image): Adjust for change in function table
10241         data.
10242         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
10243         passing.
10244         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
10245         passing.
10247 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
10249         PR libgomp/67141
10250         * oacc-int.h (goacc_host_init): Add declaration.
10251         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
10252         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
10254 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
10255             Sebastian Pop  <s.pop@samsung.com>
10257         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
10258         match o/p.
10259         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
10260         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
10261         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
10262         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
10263         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
10265 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
10267         * configure.tgt: Add missing ;; in between nvptx and rtems
10268         snippets.
10270 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10272         * config/posix/pool.h (gomp_adjust_thread_attr): New.
10273         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
10274         (gomp_thread_pool_reservoir): Add priority member.
10275         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
10276         priority.
10277         (parse_thread_pools): Likewise.
10278         * team.c (gomp_team_start): Call configuration provided
10279         gomp_adjust_thread_attr(). Destroy thread attributes if
10280         necessary.
10281         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
10283 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10285         * config/posix/pool.h: New.
10286         * config/rtems/pool.h: Likewise.
10287         * config/rtems/proc.c: Likewise.
10288         * libgomp.h (gomp_thread_destructor): Declare.
10289         * team.c: Include configuration provided "pool.h".
10290         (gomp_get_thread_pool): Define in configuration.
10291         (gomp_team_end): Call configuration defined
10292         gomp_release_thread_pool().
10294 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10296         * config/rtems/bar.c: New.
10297         * config/rtems/bar.h: Likewise.
10298         * config/rtems/mutex.c: Likewise.
10299         * config/rtems/mutex.h: Likewise.
10300         * config/rtems/sem.c: Likewise.
10301         * config/rtems/sem.h: Likewise.
10302         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
10303         <sys/lock.h> header file.
10304         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
10305         supported by Newlib.
10306         * configure: Regenerate.
10308 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10310         * team.c (gomp_new_thread_pool): Delete and move content to ...
10311         (gomp_get_thread_pool): ... new function.  Allocate and
10312         initialize thread pool on demand.
10313         (get_last_team): Use gomp_get_thread_pool().
10314         (gomp_team_start): Delete thread pool initialization.
10316 2015-09-03  Tom de Vries  <tom@codesourcery.com>
10318         PR tree-optimization/65637
10319         * testsuite/libgomp.c/autopar-2.c: New test.
10321 2015-08-29  Tom de Vries  <tom@codesourcery.com>
10323         PR tree-optimization/46193
10324         * testsuite/libgomp.c/pr46193.c: New test.
10326 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
10328         libgomp/
10329         * libgomp.map: Add 4.0.2 version.
10330         * target.c (offload_image_descr): Add version field.
10331         (gomp_load_image_to_device): Add version argument.  Adjust plugin
10332         call.  Improve load mismatch diagnostic.
10333         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
10334         call.
10335         (GOMP_offload_regster): Make stub function, move bulk to ...
10336         (GOMP_offload_register_ver): ... here.  Process version argument.
10337         (GOMP_offload_unregister): Make stub function, move bulk to ...
10338         (GOMP_offload_unregister_ver): ... here.  Process version argument.
10339         (gomp_init_device): Process version field.
10340         (gomp_unload_device): Process version field.
10341         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
10342         macros.  Check plugin version.
10343         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
10344         loader and unloader types.
10345         * oacc-host.c: Include gomp-constants.h.
10346         (host_version): New.
10347         (host_load_image, host_unload_image): Adjust.
10348         (host_dispatch): Add host_version.
10349         * plugin/plugin-nvptx.c: Include gomp-constants.h.
10350         (GOMP_OFFLOAD_version): New.
10351         (GOMP_OFFLOAD_load_image): Add version arg and check it.
10352         (GOMP_OFFLOAD_unload_image): Likewise.
10353         * plugin/plugin-host.c: Include gomp-constants.h.
10354         (GOMP_OFFLOAD_version): New.
10355         (GOMP_OFFLOAD_load_image): Add version arg.
10356         (GOMP_OFFLOAD_unload_image): Likewise.
10358 2015-08-24  Tom de Vries  <tom@codesourcery.com>
10360         PR tree-optimization/65468
10361         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
10363 2015-08-24  Tom de Vries  <tom@codesourcery.com>
10365         PR tree-optimization/65468
10366         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
10368 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
10370         PR libgomp/66761
10371         PR libgomp/67303
10372         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
10373         (gomp_iter_guided_next): Idem.
10374         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
10375         (gomp_iter_ull_guided_next): Idem.
10376         * config/linux/wait.h (do_spin): Idem.
10378 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
10380         * libgomp-plugin.h (enum offload_target_type): Remove
10381         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
10382         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
10383         * openacc.h (enum acc_device_t): Likewise.
10384         * openacc_lib.h: Likewise.
10385         * oacc-init.c (name_of_acc_device_t): Don't handle it.
10386         (acc_on_device): Just use __builtin_acc_on_device.
10387         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
10388         of acc_on_device builtin.
10389         * plugin/plugin-host.h: Remove file.
10390         * plugin/plugin-host.c: Likewise, but salvage some content into...
10391         * oacc-host.c: ... this file.
10392         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
10393         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
10394         * Makefile.in: Regenerate.
10395         * configure: Likewise.
10396         * testsuite/lib/libgomp.exp
10397         (check_effective_target_openacc_host_nonshm_selected): Remove.
10398         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
10399         ACC_DEVICE_TYPE=host_nonshm.
10400         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10401         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10402         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
10403         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
10404         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
10405         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
10407 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
10408             Jakub Jelinek  <jakub@redhat.com>
10410         * config/nvptx/affinity.c: New file.
10411         * config/nvptx/alloc.c: Likewise.
10412         * config/nvptx/bar.c: Likewise.
10413         * config/nvptx/barrier.c: Likewise.
10414         * config/nvptx/critical.c: Likewise.
10415         * config/nvptx/env.c: Likewise.
10416         * config/nvptx/error.c: Likewise.
10417         * config/nvptx/fortran.c: Likewise.
10418         * config/nvptx/iter.c: Likewise.
10419         * config/nvptx/iter_ull.c: Likewise.
10420         * config/nvptx/libgomp-plugin.c: Likewise.
10421         * config/nvptx/lock.c: Likewise.
10422         * config/nvptx/loop.c: Likewise.
10423         * config/nvptx/loop_ull.c: Likewise.
10424         * config/nvptx/mutex.c: Likewise.
10425         * config/nvptx/oacc-async.c: Likewise.
10426         * config/nvptx/oacc-cuda.c: Likewise.
10427         * config/nvptx/oacc-host.c: Likewise.
10428         * config/nvptx/oacc-init.c: Likewise.
10429         * config/nvptx/oacc-mem.c: Likewise.
10430         * config/nvptx/oacc-parallel.c: Likewise.
10431         * config/nvptx/oacc-plugin.c: Likewise.
10432         * config/nvptx/omp-lock.h: Likewise.
10433         * config/nvptx/ordered.c: Likewise.
10434         * config/nvptx/parallel.c: Likewise.
10435         * config/nvptx/proc.c: Likewise.
10436         * config/nvptx/ptrlock.c: Likewise.
10437         * config/nvptx/sections.c: Likewise.
10438         * config/nvptx/sem.c: Likewise.
10439         * config/nvptx/single.c: Likewise.
10440         * config/nvptx/splay-tree.c: Likewise.
10441         * config/nvptx/target.c: Likewise.
10442         * config/nvptx/task.c: Likewise.
10443         * config/nvptx/team.c: Likewise.
10444         * config/nvptx/time.c: Likewise.
10445         * config/nvptx/work.c: Likewise.
10446         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
10447         * configure: Regenerate.
10448         * configure.tgt (config_path): Set to "nvptx" for target
10449         nvptx*-*-*.
10451 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
10453         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
10455 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
10457         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
10458         (cuda_errlist): Constify.
10459         (errmsg):  Move into ...
10460         (cuda_error): ... here.  Make smaller.
10461         (_XSTR, _STR): Delete.
10462         (cuda_synames): Delete.
10463         (verify_device_library): Delete.
10464         (nvptx_init): Don't call it.
10466 2015-07-28  Tom de Vries  <tom@codesourcery.com>
10468         * testsuite/libgomp.c/uns-outer-4.c: New test.
10470 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
10472         * testsuite/libgomp.c/pr66714.c: New test.
10474 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10476         PR libgomp/66950
10477         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
10478         (fib_ref): New function.
10479         (fib): Correct corner cases in the recursion.
10480         (main): Replace the non-simd loop with fib_ref call.
10481         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
10482         subroutine.
10483         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
10484         for the last array element value.  Replace the non-simd loop with
10485         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
10486         of the last array element with according Fibonacci sequence element.
10487         (fib): Correct corner cases in the recursion.
10489 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
10491         * target.c (gomp_offload_image_to_device): Rename to ...
10492         (gomp_load_image_to_device): ... here.
10493         (GOMP_offload_register): Adjust call.
10494         (gomp_init_device): Likewise.
10495         (gomp_unload_image_from_device): New.  Broken out of ...
10496         (GOMP_offload_unregister): ... here.  Call it.
10497         (gomp_unload_device): New.
10498         * libgomp.h (gomp_unload_device): Declare.
10499         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
10500         mem maps.
10502 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
10504         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
10505         wait=-specific if.
10506         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
10507         !=0 condition.
10508         (goacc_waits): Move !num_waits handling to ...
10509         (GOACC_wait): ... here, the only caller that might have zero waits.
10511         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
10512         (struct ptx_image_data): Move earlier, add fns field.
10513         (struct ptx_device): Add images and image_lock fields.
10514         (ptx_images, ptx_image_lock): Delete.
10515         (nvptx_open_device): Initialize images and image_lock fields.
10516         (nvptx_close_device): Destroy image_lock.
10517         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
10518         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
10519         fields.
10521 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
10523         * target.c (GOMP_offload_register): Use int for device type arg.
10524         (GOMP_offload_unregister): Likewise.
10526         * target.c (struct_offload_image_descr): Constify host_table.
10527         (gomp_offload_image_to_device): Likewise.
10528         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
10530         * libgomp.h (gomp_device_descr): Constify target data arguments.
10531         * target.c (struct offload_image_descr): Constify target_data.
10532         (gomp_offload_image_to_device): Likewise.
10533         (GOMP_offload_register): Likewise.
10534         (GOMP_offload_unregister): Likewise.
10535         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
10536         GOMP_OFFLOAD_unload_image): Constify target data.
10537         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
10538         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
10540 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
10542         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
10543         Workaround driver library const error.
10544         (struct nvptx_tdata, nvptx_tdata_t): New.
10545         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
10546         type.
10548 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10550         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
10551         of EPS parameter from integer to real.
10552         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
10553         type of EPS parameter from integer to real.
10555 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10557         * team.c (get_last_team): New.
10558         (gomp_new_team): Recycle last non-nested team if possible.
10559         (gomp_team_end): Move team work share list free lock destruction
10560         to ...
10561         (free_team): ... here.
10563 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10565         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
10566         and ref from int to double.  Replaced their comparison with
10567         an inequality of their difference and EPS.
10568         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
10569         comparison of pri and a reference number with an inequality of their
10570         difference and EPS.
10571         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
10572         the comparison of sum and sum_ref with an inequality of their
10573         difference and EPS.
10574         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
10575         the comparison of pri and a reference number with an inequality of
10576         their difference and EPS.
10578 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10580         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
10581         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
10582         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
10583         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
10584         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
10585         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
10586         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
10587         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
10588         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
10589         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
10590         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
10591         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
10592         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
10593         variables.
10594         (vec_mult): Likewise.  Add #pragma omp taskwait.
10595         (main): Adjust caller.
10596         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
10597         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
10598         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
10599         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
10600         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
10601         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
10602         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
10603         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
10604         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
10605         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
10606         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
10607         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
10608         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
10609         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
10610         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
10611         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
10612         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
10613         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
10614         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
10615         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
10616         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
10617         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
10618         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
10619         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
10620         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
10621         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
10622         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
10623         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
10624         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
10625         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
10626         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
10627         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
10628         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
10629         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
10630         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
10631         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
10632         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
10633         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
10634         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
10635         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
10636         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
10637         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
10638         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
10639         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
10640         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
10641         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
10642         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
10643         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
10644         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
10645         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
10646         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
10647         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
10648         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
10649         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
10650         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
10651         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
10652         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
10653         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
10654         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
10655         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
10656         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
10657         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
10658         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
10659         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
10660         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
10661         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
10662         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
10663         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
10664         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
10665         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
10666         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
10667         (vec_mult): Add !$omp taskwait.
10668         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
10669         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
10670         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
10671         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
10672         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
10673         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
10674         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
10675         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
10676         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
10677         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
10678         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
10679         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
10680         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
10681         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
10682         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
10683         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
10684         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
10685         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
10686         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
10687         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
10688         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
10689         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
10690         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
10691         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
10692         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
10693         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
10694         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
10695         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
10696         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
10697         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
10698         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
10699         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
10700         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
10701         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
10702         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
10703         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
10704         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
10705         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
10706         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
10707         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
10708         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
10709         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
10710         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
10711         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
10712         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
10713         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
10714         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
10715         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
10716         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
10717         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
10718         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
10719         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
10720         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
10721         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
10722         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
10723         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
10724         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
10725         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
10726         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
10727         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
10728         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
10729         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
10730         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
10731         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
10732         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
10733         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
10734         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
10736 2015-07-10  Tom de Vries  <tom@codesourcery.com>
10738         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
10739         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
10741 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
10743         PR libgomp/65099
10744         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
10745         in a 64-bit configuration.
10746         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
10747         offloading testing if no such device is available.
10748         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10749         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10751 2015-07-08  Tom de Vries  <tom@codesourcery.com>
10753         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
10754         second call to f.
10755         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10757 2015-07-07  Tom de Vries  <tom@codesourcery.com>
10759         PR tree-optimization/66642
10760         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
10761         iteration count case.
10762         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
10763         function, factor out of ...
10764         (main): ... here.  Test low iteration count case.
10766 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10768         * libgomp.h (gomp_thread_pool): Comment last_team field.
10770 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
10772         * testsuite/libgomp.c++/pr66702-1.C: Require
10773         vect_simd_clones effective target.
10774         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
10776 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10778         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
10779         already set.  Use DEFAULT_CFLAGS in dg-runtest.
10780         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
10781         "-O2".
10783 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10785         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
10786         already set.  Use DEFAULT_CFLAGS in dg-runtest.
10787         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
10788         * testsuite/libgomp.c++/pr64824.C: Same.
10789         * testsuite/libgomp.c++/pr64868.C: Same.
10790         * testsuite/libgomp.c++/pr66199-1.C: Same.
10791         * testsuite/libgomp.c++/pr66199-2.C: Same.
10792         * testsuite/libgomp.c++/target-2.C: Same.
10793         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
10794         -std=<standard> option.
10795         * testsuite/libgomp.c++/udr-11.C: Same.
10796         * testsuite/libgomp.c++/udr-12.C: Same.
10797         * testsuite/libgomp.c++/udr-13.C: Same.
10798         * testsuite/libgomp.c++/udr-14.C: Same.
10799         * testsuite/libgomp.c++/udr-15.C: Same.
10800         * testsuite/libgomp.c++/udr-16.C: Same.
10801         * testsuite/libgomp.c++/udr-17.C: Same.
10802         * testsuite/libgomp.c++/udr-18.C: Same.
10803         * testsuite/libgomp.c++/udr-19.C: Same.
10804         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
10805         * testsuite/libgomp.c++/simd-1.C: Same.
10806         * testsuite/libgomp.c++/simd-2.C: Same.
10807         * testsuite/libgomp.c++/simd-3.C: Same.
10808         * testsuite/libgomp.c++/simd-4.C: Same.
10809         * testsuite/libgomp.c++/simd-5.C: Same.
10810         * testsuite/libgomp.c++/simd-6.C: Same.
10811         * testsuite/libgomp.c++/simd-7.C: Same.
10812         * testsuite/libgomp.c++/simd-8.C: Same.
10813         * testsuite/libgomp.c++/simd-9.C: Same.
10814         * testsuite/libgomp.c++/simd10.C: Same.
10815         * testsuite/libgomp.c++/simd11.C: Same.
10816         * testsuite/libgomp.c++/simd12.C: Same.
10817         * testsuite/libgomp.c++/simd13.C: Same.
10819 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
10821         PR middle-end/66702
10822         * testsuite/libgomp.c++/pr66702-1.C: New test.
10823         * testsuite/libgomp.c++/pr66702-2.C: New test.
10825 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10827         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
10828         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
10829         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
10830         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
10832 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10834         PR tree-optimization/66652
10835         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
10836         using restrict pointers.
10837         (main): Add arguments to calls to f.
10838         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10840 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
10842         * configure.ac: Fix check for header <sys/sysctl.h>.
10843         * configure: Regenerate.
10844         * config.h.in: Likewise.
10846 2015-06-23  Tom de Vries  <tom@codesourcery.com>
10848         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
10849         abort.
10850         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
10852 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
10854         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
10855         acc_device_nvidia.
10857         PR libgomp/66518
10858         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
10859         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10861 2015-06-15  Tom de Vries  <tom@codesourcery.com>
10863         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
10864         dg-additional-options for any remaining options.
10865         * testsuite/libgomp.c/atomic-2.c: Same.
10866         * testsuite/libgomp.c/atomic-4.c: Same.
10867         * testsuite/libgomp.c/atomic-5.c: Same.
10868         * testsuite/libgomp.c/atomic-6.c: Same.
10869         * testsuite/libgomp.c/autopar-1.c: Same.
10870         * testsuite/libgomp.c/copyin-1.c: Same.
10871         * testsuite/libgomp.c/copyin-2.c: Same.
10872         * testsuite/libgomp.c/copyin-3.c: Same.
10873         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
10874         * testsuite/libgomp.c/nestedfn-5.c: Same.
10875         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
10876         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
10877         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
10878         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10879         * testsuite/libgomp.c/pr32362-1.c: Same.
10880         * testsuite/libgomp.c/pr32362-2.c: Same.
10881         * testsuite/libgomp.c/pr32362-3.c: Same.
10882         * testsuite/libgomp.c/pr39591-1.c: Same.
10883         * testsuite/libgomp.c/pr39591-2.c: Same.
10884         * testsuite/libgomp.c/pr39591-3.c: Same.
10885         * testsuite/libgomp.c/pr58392.c: Same.
10886         * testsuite/libgomp.c/pr58756.c: Same.
10887         * testsuite/libgomp.c/simd-1.c: Same.
10888         * testsuite/libgomp.c/simd-10.c: Same.
10889         * testsuite/libgomp.c/simd-11.c: Same.
10890         * testsuite/libgomp.c/simd-12.c: Same.
10891         * testsuite/libgomp.c/simd-13.c: Same.
10892         * testsuite/libgomp.c/simd-14.c: Same.
10893         * testsuite/libgomp.c/simd-15.c: Same.
10894         * testsuite/libgomp.c/simd-2.c: Same.
10895         * testsuite/libgomp.c/simd-3.c: Same.
10896         * testsuite/libgomp.c/simd-4.c: Same.
10897         * testsuite/libgomp.c/simd-5.c: Same.
10898         * testsuite/libgomp.c/simd-6.c: Same.
10899         * testsuite/libgomp.c/simd-7.c: Same.
10900         * testsuite/libgomp.c/simd-8.c: Same.
10901         * testsuite/libgomp.c/simd-9.c: Same.
10903 2015-06-15  Tom de Vries  <tom@codesourcery.com>
10905         * testsuite/libgomp.c/pr35625.c: Fix typo.
10907 2015-06-15  Tom de Vries  <tom@codesourcery.com>
10909         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
10910         in dg-options.
10911         * testsuite/libgomp.c/atomic-3.c: Same.
10912         * testsuite/libgomp.c/debug-1.c: Same.
10913         * testsuite/libgomp.c/nqueens-1.c: Same.
10914         * testsuite/libgomp.c/pr26171.c: Same.
10915         * testsuite/libgomp.c/pr48591.c: Same.
10916         * testsuite/libgomp.c/pr64824.c: Same.
10917         * testsuite/libgomp.c/pr64868.c: Same.
10918         * testsuite/libgomp.c/pr66133.c: Same.
10919         * testsuite/libgomp.c/pr66199-1.c: Same.
10920         * testsuite/libgomp.c/pr66199-2.c: Same.
10921         * testsuite/libgomp.c/target-8.c: Same.
10923 2015-06-15  Tom de Vries  <tom@codesourcery.com>
10925         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
10926         -std={gnu99,c99}.
10927         * testsuite/libgomp.c/for-1.c: Same.
10928         * testsuite/libgomp.c/for-2.c: Same.
10929         * testsuite/libgomp.c/for-3.c: Same.
10930         * testsuite/libgomp.c/pr35625.c: Same.
10931         * testsuite/libgomp.c/pr39154.c: Same.
10932         * testsuite/libgomp.c/simd-16.c: Same.
10933         * testsuite/libgomp.c/simd-17.c: Same.
10935 2015-06-13  Tom de Vries  <tom@codesourcery.com>
10937         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
10939 2015-06-13  Tom de Vries  <tom@codesourcery.com>
10941         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
10942         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10943         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
10944         (N): Define.
10945         (main): Use N instead of hardcoded constants.
10947 2015-06-05  Tom de Vries  <tom@codesourcery.com>
10949         merge from gomp4 branch:
10950         2015-05-28  Tom de Vries  <tom@codesourcery.com>
10952         PR tree-optimization/65443
10953         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
10954         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
10955         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
10957 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10959         * testsuite/libgomp.graphite/bounds.c: Adjust for
10960         cleanup-tree-dump removal.
10961         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
10962         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
10963         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
10964         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
10965         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
10966         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
10967         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10968         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10969         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10970         * testsuite/libgomp.graphite/pr41118.c: Likewise.
10972 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
10974         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
10975         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
10976         (futex_wake) [!__x86_64__]: Ditto.
10978 2015-05-28  Julian Brown  <julian@codesourcery.com>
10980         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
10981         function comment. Only call gomp_fatal if new argument is true.
10982         (acc_dev_num_out_of_range): New function.
10983         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
10984         acc_dev_num_out_of_range as appropriate.
10985         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
10986         (acc_get_device_num, acc_set_device_num): Update calls to
10987         resolve_device.
10988         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
10989         output.
10991 2015-05-28  Julian Brown  <julian@codesourcery.com>
10993         PR libgomp/65742
10994         * oacc-init.c (plugin/plugin-host.h): Include.
10995         (acc_on_device): Check whether we're in an offloaded region for
10996         host_nonshm
10997         plugin. Don't use __builtin_acc_on_device.
10998         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
10999         nonshm_exec flag in thread-local data.
11000         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
11001         data for host_nonshm plugin.
11002         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
11003         for host_nonshm plugin.
11004         * plugin/plugin-host.h: New.
11006 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
11008         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
11010 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
11012         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
11013         Declare as int.
11014         (FUTEX_PRIVATE_FLAG): Remove L suffix.
11015         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
11016         Declare as int.
11018 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
11020         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
11022 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
11024         * target.c (gomp_map_pointer): New function abstracting out
11025         GOMP_MAP_POINTER handling.
11026         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
11027         gomp_map_pointer().
11029 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
11031         PR middle-end/66199
11032         * testsuite/libgomp.c/pr66199-1.c: New test.
11033         * testsuite/libgomp.c/pr66199-2.c: New test.
11034         * testsuite/libgomp.c++/pr66199-1.C: New test.
11035         * testsuite/libgomp.c++/pr66199-2.C: New test.
11036         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
11037         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
11039 2015-05-19  Julian Brown  <julian@codesourcery.com>
11041         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
11042         on cuInit failure.
11044 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
11046         PR middle-end/66133
11047         * testsuite/libgomp.c/pr66133.c: New test.
11049 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
11051         * Makefile.in: Regenerated with automake-1.11.6.
11052         * aclocal.m4: Likewise.
11053         * config.h.in: Likewise.
11054         * configure: Likewise.
11055         * testsuite/Makefile.in: Likewise.
11057 2015-05-08  Jason Merrill  <jason@redhat.com>
11059         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
11060         _Complex.
11062         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
11064 2015-05-06  Julian Brown  <julian@codesourcery.com>
11066         * oacc-init.c (acc_device_lock): Add explanatory comment.
11067         (resolve_device): Add comment about locking requirement.
11068         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
11069         gomp_init_device and gomp_fini_device calls.
11070         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
11071         (acc_get_device_num, acc_set_device_num): Add locking around
11072         resolve_device and gomp_init_device calls.
11074 2015-05-06  Julian Brown  <julian@codesourcery.com>
11076         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
11077         goacc_thread_lock on error paths.
11078         * oacc-mem.c (lookup_host): Remove locking from function. Note
11079         locking requirement for caller in function comment.
11080         (lookup_dev): Likewise.
11081         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
11082         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
11083         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
11084         Add locking.
11086 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
11088         PR testsuite/65205
11089         PR libgomp/65993
11090         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
11091         don't expect "0x" prefix for "%p" format specifier, don't expect
11092         "(nil)" for NULL pointer.
11093         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11094         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11095         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11096         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11097         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11098         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11099         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11100         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11101         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11102         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11103         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11104         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11105         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11106         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11107         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11108         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11109         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11110         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11111         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11112         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11113         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11114         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11115         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11116         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11117         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11118         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11119         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11120         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11121         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
11122         accurately specify what we're looking for.
11123         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11124         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11125         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11126         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11127         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11129 2015-04-30  James Norris  <jnorris@codesourcery.com>
11131         PR testsuite/65205
11132         * testsuite/lib/libgomp.exp
11133         (check_effective_target_openacc_host_selected)
11134         (check_effective_target_openacc_host_nonshm_selected): New
11135         procedures.
11136         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
11137         dg-shouldfail.
11138         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11139         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11140         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11141         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11142         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11143         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11144         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11145         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11146         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11147         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11148         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11149         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11150         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11151         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11152         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11153         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11154         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11155         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11156         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11157         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11158         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11159         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11160         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11161         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11162         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11163         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11164         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11165         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11166         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11167         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11168         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11169         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11170         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11171         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11172         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11173         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11174         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11175         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11176         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11177         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11178         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11179         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11180         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11182 2015-04-08  Julian Brown  <julian@codesourcery.com>
11184         * libgomp.h (target_mem_desc: Remove mem_map field.
11185         (acc_dispatch_t): Remove open_device_func, close_device_func,
11186         get_device_num_func, set_device_num_func, target_data members.
11187         Change create_thread_data_func argument to device number instead of
11188         generic pointer.
11189         * oacc-async.c (assert.h): Include.
11190         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
11191         (acc_wait_all, acc_wait_all_async): Use current host thread's
11192         active device, not base_dev.
11193         * oacc-cuda.c (acc_get_current_cuda_device)
11194         (acc_get_current_cuda_context, acc_get_cuda_stream)
11195         (acc_set_cuda_stream): Likewise.
11196         * oacc-host.c (host_dispatch): Don't set open_device_func,
11197         close_device_func, get_device_num_func or set_device_num_func.
11198         * oacc-init.c (base_dev, init_key): Remove.
11199         (cached_base_dev): New.
11200         (name_of_acc_device_t): New.
11201         (acc_init_1): Initialise default-numbered device, not zeroth.
11202         (acc_shutdown_1): Close all devices of a given type.
11203         (goacc_destroy_thread): Don't use base_dev.
11204         (lazy_open, lazy_init, lazy_init_and_open): Remove.
11205         (goacc_attach_host_thread_to_device): New.
11206         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
11207         (acc_get_num_devices): Don't use base_dev.
11208         (acc_set_device_type): Reimplement.
11209         (acc_get_device_type): Don't use base_dev.
11210         (acc_get_device_num): Tweak logic.
11211         (acc_set_device_num): Likewise.
11212         (acc_on_device): Use acc_get_device_type.
11213         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
11214         (goacc_lazy_initialize): Reimplement with acc_init and
11215         goacc_attach_host_thread_to_device.
11216         * oacc-int.h (goacc_thread): Add base_dev field.
11217         (base_dev): Remove extern declaration.
11218         (goacc_attach_host_thread_to_device): Add prototype.
11219         * oacc-mem.c (acc_malloc): Use current thread's device instead of
11220         base_dev.
11221         (acc_free): Likewise.
11222         (acc_memcpy_to_device): Likewise.
11223         (acc_memcpy_from_device): Likewise.
11224         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
11225         goacc_lazy_initialize (throughout).
11226         (GOACC_parallel): Use tgt_offset to locate target functions.
11227         * target.c (gomp_map_vars): Don't set tgt->mem_map.
11228         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
11229         (gomp_load_plugin_for_device): Remove open_device, close_device,
11230         get_device_num, set_device_num openacc hook initialisation. Don't set
11231         openacc.target_data.
11232         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
11233         (GOMP_OFFLOAD_openacc_close_device)
11234         (GOMP_OFFLOAD_openacc_get_device_num)
11235         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
11236         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
11237         to int.
11238         * plugin/plugin-nvptx.c (ptx_inited): Remove.
11239         (instantiated_devices, ptx_dev_lock): New.
11240         (struct ptx_image_data): New.
11241         (ptx_devices, ptx_images, ptx_image_lock): New.
11242         (fini_streams_for_device): Reorder cuStreamDestroy call.
11243         (nvptx_get_num_devices): Remove forward declaration.
11244         (nvptx_init): Change return type to bool.
11245         (nvptx_fini): Remove.
11246         (nvptx_attach_host_thread_to_device): New.
11247         (nvptx_open_device): Return struct ptx_device* instead of void*.
11248         (nvptx_close_device): Change argument type to struct ptx_device*,
11249         return type to void.
11250         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
11251         (kernel_target_data, kernel_host_table): Remove static globals.
11252         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
11253         (GOMP_OFFLOAD_init_device): Reimplement.
11254         (GOMP_OFFLOAD_fini_device): Likewise.
11255         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
11256         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
11257         (GOMP_OFFLOAD_host2dev): Use ORD argument.
11258         (GOMP_OFFLOAD_openacc_open_device)
11259         (GOMP_OFFLOAD_openacc_close_device)
11260         (GOMP_OFFLOAD_openacc_set_device_num)
11261         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
11262         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
11263         (device number).
11265         testsuite/
11266         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
11268 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
11270         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
11271         * libgomp.h (struct gomp_memory_mapping): Remove.
11272         (struct target_mem_desc): Change type of mem_map from
11273         gomp_memory_mapping * to splay_tree_s *.
11274         (struct gomp_device_descr): Remove register_image_func, get_table_func.
11275         Add load_image_func, unload_image_func.
11276         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
11277         Remove offload_regions_registered.
11278         (gomp_init_tables): Remove.
11279         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
11280         to splay_tree_s *.
11281         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
11282         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
11283         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
11284         offload_regions_registered.
11285         Initialize load_image_func, unload_image_func, mem_map.root.
11286         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
11287         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
11288         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
11289         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
11290         gomp_memory_mapping *.  Use dev's lock and splay_tree.
11291         (lookup_dev): Use dev's lock.
11292         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
11293         (acc_is_present): Likewise.
11294         (acc_map_data): Likewise.
11295         (acc_unmap_data): Likewise.  Use dev's lock.
11296         (present_create_copy): Likewise.
11297         (delete_copyout): Pass dev to lookup_host instead of mem_map.
11298         (update_dev_host): Likewise.
11299         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
11300         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
11301         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
11302         (GOMP_OFFLOAD_get_table): Remove
11303         (GOMP_OFFLOAD_load_image): New function.
11304         (GOMP_OFFLOAD_unload_image): New function.
11305         * target.c (register_lock): New mutex for offload image registration.
11306         (num_devices): Do not guard with PLUGIN_SUPPORT.
11307         (gomp_realloc_unlock): New static function.
11308         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
11309         before gomp_fatal.
11310         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
11311         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
11312         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
11313         mem_map's.
11314         (gomp_unmap_vars): Likewise.
11315         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
11316         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
11317         (gomp_offload_image_to_device): New static function.
11318         (GOMP_offload_register): Add mutex lock.
11319         Call gomp_offload_image_to_device for all initialized devices.
11320         Replace gomp_realloc with gomp_realloc_unlock.
11321         (GOMP_offload_unregister): New function.
11322         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
11323         get_table_func from the plugin with calls to init_device_func and
11324         gomp_offload_image_to_device.
11325         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
11326         to splay_tree_s *.
11327         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
11328         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
11329         (GOMP_target_data): Do not call gomp_init_tables.
11330         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
11331         (gomp_load_plugin_for_device): Replace register_image and get_table
11332         with load_image and unload_image in DLSYM ().
11333         (gomp_register_images_for_device): Remove function.
11334         (gomp_target_init): Do not initialize current_device.mem_map.*,
11335         current_device.offload_regions_registered.
11336         Remove call to gomp_register_images_for_device.
11337         Do not free offload_images and num_offload_images.
11339 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
11341         PR fortran/65597
11342         * testsuite/libgomp.fortran/pr65597.f90: New test.
11344 2015-03-27  Tom de Vries  <tom@codesourcery.com>
11346         PR testsuite/65594
11347         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
11348         (init, check): New function.
11349         (foo): Change return type to void.
11350         (main): Call init and check.
11352 2015-03-27  Tom de Vries  <tom@codesourcery.com>
11354         PR testsuite/65594
11355         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
11356         (foo): Use M for non-inner loops to scale down test-case.
11358 2015-03-25  Kai Tietz  <ktietz@redhat.com>
11360         PR libgomp/64972
11361         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
11362         (GOACC_data_start): Likewise.
11363         * target.c (gomp_map_vars): Likewise.
11365 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
11367         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
11368         hppa*-*-hpux*.
11370 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
11372         * testsuite/libgomp.c/target-10.c: New test.
11373         * testsuite/libgomp.c++/target-4.C: New test.
11375 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
11377         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
11378         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
11380 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11382         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
11383         * configure.ac (*-*-rtems*): Assume Pthread is supported.
11384         (pthread.h): Check for this header file.
11385         * configure: Regenerate.
11387 2015-02-25  Tom de Vries  <tom@codesourcery.com>
11389         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
11390         (check_reduction_op, check_reduction_macro, max, min):
11391         Declare.
11392         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
11393         function.
11394         (main): Use new functions.
11396 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
11398         * target.c (gomp_load_plugin_for_device): Use const char * instead of
11399         char * for variables holding dlerror return values.
11400         (DLSYM_OPT): Ditto.
11402 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
11404         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
11406 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
11407             Cesar Philippidis  <cesar@codesourcery.com>
11409         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
11410         GOACC_ctaid, and GOACC_nctaid routines.
11412 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
11414         PR c/64824
11415         * testsuite/libgomp.c/atomic-18.c: New test.
11416         * testsuite/libgomp.c++/atomic-16.C: New test.
11418 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
11420         PR c/64824
11421         PR c/64868
11422         * testsuite/libgomp.c/pr64824.c: New test.
11423         * testsuite/libgomp.c/pr64868.c: New test.
11424         * testsuite/libgomp.c++/pr64824.C: New test.
11425         * testsuite/libgomp.c++/pr64868.C: New test.
11427 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
11429         PR libgomp/64635
11430         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
11431         Link with -lpthread.
11432         * config/aix/plugin-suffix.h: Delete.
11434 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
11436         PR libgomp/64635
11437         * configure.tgt (*-*-aix*): Use config_path "aix posix".
11438         (*-*-darwin*): Use config_path "bsd darwin posix".
11439         (*-*-hpux*): Use config_path "hpux posix".
11440         * target.c: Add include of plugin-suffix.h and use
11441         SONAME_SUFFIX macro.
11442         * config/aix/plugin-suffix.h: New file.
11443         * config/darwin/plugin-suffix.h: New file.
11444         * config/hpux/plugin-suffix.h: New file.
11445         * config/posix/plugin-suffix.h: New file.
11447 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
11449         PR middle-end/64734
11450         * libgomp.c/pr64734.c: New test.
11452 2015-01-23  Tom de Vries  <tom@codesourcery.com>
11454         PR libgomp/64672
11455         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
11457 2015-01-23  Tom de Vries  <tom@codesourcery.com>
11459         PR libgomp/64707
11460         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
11461         dg-options.
11463 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
11465         PR libgomp/64625
11466         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
11467         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
11468         formal parameter.  Update all users.
11469         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
11470         Document unused formal parameter.
11472 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
11474         * oacc-parallel.c: Don't include <alloca.h>.
11475         (GOACC_parallel): Use gomp_alloca instead of alloca.
11477 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
11479         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
11481 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
11482             James Norris  <jnorris@codesourcery.com>
11483             Tom de Vries  <tom@codesourcery.com>
11484             Julian Brown  <julian@codesourcery.com>
11485             Cesar Philippidis  <cesar@codesourcery.com>
11486             Nathan Sidwell  <nathan@codesourcery.com>
11487             Tobias Burnus  <burnus@net-b.de>
11489         * Makefile.am (search_path): Add $(top_srcdir)/../include.
11490         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
11491         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
11492         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
11493         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
11494         Include $(top_srcdir)/plugin/Makefrag.am.
11495         (nodist_libsubinclude_HEADERS): Add openacc.h.
11496         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
11497         openacc.f90, openacc.mod, openacc_kinds.mod.
11498         (omp_lib.mod): Generalize into...
11499         (%.mod): ... this new rule.
11500         (openacc_kinds.mod, openacc.mod): New rules.
11501         * plugin/configfrag.ac: New file.
11502         * configure.ac: Move plugin/offloading support into it.  Include
11503         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
11504         * plugin/Makefrag.am: New file.
11505         * testsuite/Makefile.am (OFFLOAD_TARGETS)
11506         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
11507         export.
11508         (libgomp-test-support.exp): New rule.
11509         (all-local): Depend on it.
11510         * Makefile.in: Regenerate.
11511         * testsuite/Makefile.in: Regenerate.
11512         * config.h.in: Likewise.
11513         * configure: Likewise.
11514         * configure.tgt: Harden shell syntax.
11515         * env.c: Include "oacc-int.h".
11516         (parse_acc_device_type): New function.
11517         (gomp_debug_var, goacc_device_type, goacc_device_num): New
11518         variables.
11519         (initialize_env): Initialize those.  Call
11520         goacc_runtime_initialize.
11521         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
11522         (gomp_fatal): Call gomp_vfatal.
11523         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
11524         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
11525         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
11526         (splay_tree_node, splay_tree, splay_tree_key)
11527         (struct target_mem_desc, struct splay_tree_key_s)
11528         (struct gomp_memory_mapping, struct acc_dispatch_t)
11529         (struct gomp_device_descr, gomp_acc_insert_pointer)
11530         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
11531         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
11532         (gomp_free_memmap, gomp_fini_device): New declarations.
11533         (gomp_vdebug, gomp_debug): New macros.
11534         Include "splay-tree.h".
11535         * libgomp.map (OACC_2.0): New symbol version.  Use for
11536         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
11537         acc_set_device_type_h_, acc_get_device_type,
11538         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
11539         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
11540         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
11541         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
11542         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
11543         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
11544         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
11545         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
11546         acc_copyin_array_h_, acc_present_or_copyin,
11547         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
11548         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
11549         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
11550         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
11551         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
11552         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
11553         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
11554         acc_update_device, acc_update_device_32_h_,
11555         acc_update_device_64_h_, acc_update_device_array_h_,
11556         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
11557         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
11558         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
11559         acc_is_present_64_h_, acc_is_present_array_h_,
11560         acc_memcpy_to_device, acc_memcpy_from_device,
11561         acc_get_current_cuda_device, acc_get_current_cuda_context,
11562         acc_get_cuda_stream, acc_set_cuda_stream.
11563         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
11564         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
11565         GOACC_update, GOACC_wait, GOACC_get_thread_num,
11566         GOACC_get_num_threads.
11567         (GOMP_PLUGIN_1.0): New symbol version.  Use for
11568         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
11569         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
11570         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
11571         GOMP_PLUGIN_acc_thread.
11572         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
11573         environment variable.
11574         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
11575         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
11576         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
11577         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
11578         (splay_tree_remove): New declarations.
11579         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
11580         (splay_tree_remove, splay_tree_lookup): Move into...
11581         * splay-tree.c: ... this new file.
11582         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
11583         (splay_tree_node, splay_tree, splay_tree_key)
11584         (struct target_mem_desc, struct splay_tree_key_s)
11585         (struct gomp_device_descr): Don't declare.
11586         (num_devices_openmp): New variable.
11587         (gomp_get_num_devices ): Use it.
11588         (gomp_init_targets_once): New function.
11589         (gomp_get_num_devices ): Use it.
11590         (get_kind, gomp_copy_from_async, gomp_free_memmap)
11591         (gomp_fini_device, gomp_register_image_for_device): New functions.
11592         (gomp_map_vars): Add devaddrs parameter.
11593         (gomp_update): Add mm parameter.
11594         (gomp_init_device): Move most of it into...
11595         (gomp_init_tables): ... this new function.
11596         (gomp_register_images_for_device): Remove function.
11597         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
11598         Make them hidden instead of static.
11599         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
11600         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
11601         (GOMP_target_end_data, GOMP_target_update)
11602         (gomp_load_plugin_for_device, gomp_target_init): Update for
11603         OpenACC changes.
11604         * oacc-async.c: New file.
11605         * oacc-cuda.c: Likewise.
11606         * oacc-host.c: Likewise.
11607         * oacc-init.c: Likewise.
11608         * oacc-int.h: Likewise.
11609         * oacc-mem.c: Likewise.
11610         * oacc-parallel.c: Likewise.
11611         * oacc-plugin.c: Likewise.
11612         * oacc-plugin.h: Likewise.
11613         * oacc-ptx.h: Likewise.
11614         * openacc.f90: Likewise.
11615         * openacc.h: Likewise.
11616         * openacc_lib.h: Likewise.
11617         * plugin/plugin-host.c: Likewise.
11618         * plugin/plugin-nvptx.c: Likewise.
11619         * libgomp-plugin.c: Likewise.
11620         * libgomp-plugin.h: Likewise.
11621         * libgomp_target.h: Remove file after merging content into the
11622         former file.  Update all users.
11623         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
11624         (offload_targets_s, offload_targets_s_openacc): New variables.
11625         (check_effective_target_openacc_nvidia_accel_present)
11626         (check_effective_target_openacc_nvidia_accel_selected): New
11627         procedures.
11628         (libgomp_init): Update for OpenACC changes.
11629         * testsuite/libgomp-test-support.exp.in: New file.
11630         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
11631         * testsuite/libgomp.oacc-c/c.exp: Likewise.
11632         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
11633         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
11634         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
11635         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
11636         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
11637         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
11638         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
11639         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
11640         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
11641         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
11642         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
11643         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11644         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
11645         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
11646         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
11647         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
11648         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
11649         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
11650         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
11651         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
11652         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
11653         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
11654         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11655         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11656         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11657         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11658         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11659         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11660         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11661         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
11662         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
11663         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
11664         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
11665         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11666         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
11667         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11668         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
11669         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
11670         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
11671         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
11672         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11673         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11674         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11675         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
11676         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11677         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11678         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11679         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11680         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11681         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
11682         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11683         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11684         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11685         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11686         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11687         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11688         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11689         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
11690         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11691         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
11692         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11693         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11694         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11695         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
11696         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
11697         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11698         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11699         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11700         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
11701         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11702         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11703         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11704         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
11705         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
11706         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11707         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11708         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
11709         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
11710         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
11711         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
11712         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11713         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11714         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11715         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
11716         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
11717         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11718         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11719         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
11720         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
11721         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
11722         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
11723         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11724         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11725         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11726         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11727         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
11728         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11729         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11730         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
11731         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
11732         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
11733         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11734         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
11735         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
11736         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
11737         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
11738         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
11739         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11740         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
11741         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
11742         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11743         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
11744         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
11745         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11746         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
11747         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
11748         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
11749         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
11750         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
11751         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
11752         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
11753         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
11754         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
11755         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
11756         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
11757         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
11758         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
11759         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
11760         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
11761         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
11762         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11763         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
11764         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
11765         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11766         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11767         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11768         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11769         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
11770         Likewise.
11771         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
11772         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
11773         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
11774         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
11775         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
11776         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11777         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11778         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11779         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11780         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11781         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11782         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11783         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11784         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11785         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11786         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11787         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11788         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11789         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11790         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11791         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11792         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11793         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11794         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11795         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11796         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11797         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11798         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11799         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11800         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11801         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11802         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11803         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11804         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11805         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11806         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11807         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11808         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11809         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11810         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11811         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11812         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11813         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11814         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11815         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11816         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11817         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11818         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11819         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11820         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11821         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11822         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11823         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11824         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11825         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11826         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11827         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11828         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11829         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11830         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11832 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
11833             Julian Brown  <julian@codesourcery.com>
11834             David Malcolm  <dmalcolm@redhat.com>
11836         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
11837         to "GNU Offloading and Multi Processing Runtime Library".  Change
11838         all users.
11839         * configure: Regenerate.
11840         * libgomp.texi: Update.
11842 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
11844         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
11845         "$tgt_dir/lib32".
11846         * configure: Regenerate.
11848         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
11849         "intelmic" in $offload_targets.
11851 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
11853         Update copyright years.
11855         * libgomp.texi: Bump @copying's copyright year.
11857 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11859         * testsuite/lib/libgomp.exp: Load target-utils.exp.
11860         Move load of target-supports.exp earlier.
11862 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
11864         * testsuite/libgomp.c/target-9.c: New test.
11866 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
11868         * config.h.in: Regenerate.
11869         * configure: Regenerate.
11870         * configure.ac: Add GCC_CHECK_EMUTLS.
11871         * libgomp.h: Add check for USE_EMUTLS: this case
11872         is equal to HAVE_TLS.
11873         * team.c: Likewise.
11875 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
11877         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
11879 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
11880             Ilya Verbin  <ilya.verbin@intel.com>
11882         * testsuite/libgomp.c/target-critical-1.c: New test.
11884 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
11886         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
11887         to dg-options unless expensive testing is on.
11888         (TESTITERS): Define to N if not defined.
11889         (main): Use TESTITERS instead of N.
11890         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
11891         dg-additional-options depending on whether expensive testing is on.
11892         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
11893         Decrease N to 100000 and CHUNKSZ to 10000.
11895 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
11897         PR fortran/63938
11898         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
11899         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
11901 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
11903         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
11905 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
11907         PR bootstrap/63784
11908         * configure: Regenerated.
11910 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
11912         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
11913         vect_simd_clones effective target.
11914         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
11916 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
11918         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
11919         of 32 as block_size.
11920         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
11921         instead of 32 as block_size.
11923 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
11924             Ilya Verbin  <ilya.verbin@intel.com>
11926         * Makefile.in: Regenerate.
11927         * configure: Regenerate.
11928         * configure.ac: Set up offload_additional_options,
11929         offload_additional_lib_paths and offload_targets.
11930         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
11931         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
11932         * testsuite/Makefile.in: Regenerate.
11933         * testsuite/lib/libgomp.exp (libgomp_init): Append
11934         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
11935         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
11936         build directory to LD_LIBRARY_PATH for intelmic offload targets.
11938 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
11939             Ilya Verbin  <ilya.verbin@intel.com>
11940             Kirill Yukhin  <kirill.yukhin@intel.com>
11941             Ilya Tocar  <ilya.tocar@intel.com>
11943         * testsuite/lib/libgomp.exp
11944         (check_effective_target_offload_device): New.
11945         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
11946         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
11947         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
11948         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
11949         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
11950         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
11951         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
11952         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
11953         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
11954         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
11955         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
11956         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
11957         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
11958         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
11959         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
11960         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
11961         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
11962         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
11963         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
11964         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
11965         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
11966         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
11967         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
11968         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
11969         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
11970         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
11971         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
11972         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
11973         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
11974         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
11975         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
11976         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
11977         * testsuite/libgomp.c/target-7.c: Fix test.
11978         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
11979         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
11980         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
11981         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
11982         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
11983         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
11984         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
11985         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
11986         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
11987         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
11988         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
11989         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
11990         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
11991         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
11992         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
11993         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
11994         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
11995         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
11996         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
11997         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
11998         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
11999         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
12000         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
12001         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
12002         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
12003         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
12004         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
12005         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
12006         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
12007         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
12008         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
12010 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
12011             Ilya Verbin  <ilya.verbin@intel.com>
12012             Thomas Schwinge  <thomas@codesourcery.com>
12013             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12015         * libgomp.map (GOMP_4.0.1): New symbol version.
12016         Add GOMP_offload_register.
12017         * libgomp_target.h: New file.
12018         * splay-tree.h: New file.
12019         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
12020         (gomp_target_init): New forward declaration.
12021         (gomp_is_initialized): New static variable.
12022         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
12023         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
12024         New structures.
12025         (offload_images, num_offload_images, devices, num_devices): New static
12026         variables.
12027         (splay_compare): New static function.
12028         (struct gomp_device_descr): New structure.
12029         (gomp_get_num_devices): Call gomp_target_init.
12030         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
12031         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
12032         (GOMP_offload_register): New function.
12033         (GOMP_target): Arrange for host callback to be performed in a separate
12034         initial thread and contention group, inheriting ICVs from
12035         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
12036         Add device initialization and lookup for target function in splay tree.
12037         (GOMP_target_data): Add device initialization and call gomp_map_vars.
12038         (GOMP_target_end_data): Call gomp_unmap_vars.
12039         (GOMP_target_update): Add device initialization and call gomp_update.
12040         (gomp_load_plugin_for_device, gomp_register_images_for_device)
12041         (gomp_target_init): New static functions.
12043 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
12044             Thomas Schwinge  <thomas@codesourcery.com>
12045             Ilya Verbin  <ilya.verbin@intel.com>
12046             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12048         * config.h.in: Regenerate.
12049         * configure: Regenerate.
12050         * configure.ac: Check for libdl, required for plugin support.
12051         (PLUGIN_SUPPORT): Define if plugins are supported.
12052         (enable_offload_targets): Support Intel MIC targets.
12053         (OFFLOAD_TARGETS): List of target names suitable for offloading.
12055 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12057         PR target/63610
12058         * configure: Regenerate.
12060 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12062         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
12064 2014-10-06  Marek Polacek  <polacek@redhat.com>
12066         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
12067         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
12068         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
12069         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
12071 2014-10-06  Marek Polacek  <polacek@redhat.com>
12073         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
12074         * testsuite/libgomp.c/nqueens-1.c: Likewise.
12075         * testsuite/libgomp.c/pr26943-3.c: Likewise.
12076         * testsuite/libgomp.c/pr26943-4.c: Likewise.
12077         * testsuite/libgomp.c/pr36802-2.c: Likewise.
12078         * testsuite/libgomp.c/pr36802-3.c: Likewise.
12079         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
12080         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
12081         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
12082         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
12083         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
12084         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
12085         * testsuite/libgomp.c/omp-single-1.c: Likewise.
12086         * testsuite/libgomp.c/omp-single-2.c: Likewise.
12087         * testsuite/libgomp.c/omp_matvec.c: Likewise.
12088         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
12089         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
12090         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
12091         declarations.
12093 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
12095         PR libgomp/61200
12096         * testsuite/libgomp.c/pr61200.c: New test.
12098 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
12100         PR c++/63248
12101         * testsuite/libgomp.c++/pr63248.C: New test.
12103 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
12105         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
12106         is not zero, but taskgroup->children is NULL and there are
12107         any task->children, schedule those instead of waiting.
12108         * testsuite/libgomp.c/depend-6.c: New test.
12109         * testsuite/libgomp.c/depend-7.c: New test.
12110         * testsuite/libgomp.c/depend-8.c: New test.
12111         * testsuite/libgomp.c/depend-9.c: New test.
12112         * testsuite/libgomp.c/depend-10.c: New test.
12114 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
12116         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
12117         (struct gomp_taskwait): New type.
12118         (struct gomp_task): Add taskwait and parent_depends_on, remove
12119         in_taskwait and taskwait_sem fields.
12120         (gomp_finish_task): Don't destroy taskwait_sem.
12121         * task.c (gomp_init_task): Don't init in_taskwait, instead init
12122         taskwait and parent_depends_on.
12123         (GOMP_task): For if (0) tasks with depend clause that depend on
12124         earlier tasks don't defer them, instead call
12125         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
12126         Initialize redundant_out field, for redundant out entries just
12127         move them at the end of linked list instead of removing them
12128         completely, and set redundant_out flag instead of redundant.
12129         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
12130         that task.
12131         (gomp_task_run_post_handle_dependers): If parent is in
12132         gomp_task_maybe_wait_for_dependencies and newly runnable task
12133         is not parent_depends_on, queue it in parent->children linked
12134         list after all runnable tasks with parent_depends_on set.
12135         Adjust for addition of taskwait indirection.
12136         (gomp_task_run_post_remove_parent): If parent is in
12137         gomp_task_maybe_wait_for_dependencies and task to be removed
12138         is parent_depends_on, decrement n_depend and if needed awake
12139         parent.  Adjust for addition of taskwait indirection.
12140         (GOMP_taskwait): Adjust for addition of taskwait indirection.
12141         (gomp_task_maybe_wait_for_dependencies): New function.
12142         * testsuite/libgomp.c/depend-5.c: New test.
12144 2014-07-13  Tobias Burnus  <burnus@net-b.de>
12146         * testsuite/libgomp.fortran/pr34020.f90: Make compile
12147         with TS 18508/Fortran 2015.
12149 2014-07-06  Marek Polacek  <polacek@redhat.com>
12151         PR c/6940
12152         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
12154 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
12156         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
12157         matches regex $lang_source_re, add $lang_include_flags to options.
12158         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
12159         * testsuite/libgomp.c++/c++.exp: Likewise.
12160         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
12161         and lang_include_flags instead of adding -fintrinsic-modules-path= to
12162         ALWAYS_CFLAGS.
12163         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
12165 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
12167         * testsuite/libgomp.fortran/fortran.exp: Explain
12168         gfortran-dg-runtest usage.
12170 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
12172         * testsuite/libgomp.fortran/simd5.f90: New test.
12173         * testsuite/libgomp.fortran/simd6.f90: New test.
12174         * testsuite/libgomp.fortran/simd7.f90: New test.
12176 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
12178         * testsuite/libgomp.c/for-2.c: Define SC to static for
12179         #pragma omp for simd testing.
12180         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
12181         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
12182         SC macro.
12183         * testsuite/libgomp.c/simd-14.c: New test.
12184         * testsuite/libgomp.c/simd-15.c: New test.
12185         * testsuite/libgomp.c/simd-16.c: New test.
12186         * testsuite/libgomp.c/simd-17.c: New test.
12187         * testsuite/libgomp.c++/for-10.C: Define SC to static for
12188         #pragma omp for simd testing.
12189         * testsuite/libgomp.c++/simd10.C: New test.
12190         * testsuite/libgomp.c++/simd11.C: New test.
12191         * testsuite/libgomp.c++/simd12.C: New test.
12192         * testsuite/libgomp.c++/simd13.C: New test.
12194         * testsuite/libgomp.fortran/aligned1.f03: New test.
12195         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
12196         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
12197         tasks with !$omp parallel !$omp single.
12198         * testsuite/libgomp.fortran/target8.f90: New test.
12199         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
12200         not to use trim in the combiner, instead call elemental function.
12201         (fn): New elemental function.
12202         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
12203         Make elemental.
12204         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
12205         omp_in): Likewise.
12206         * testsuite/libgomp.fortran/udr12.f90: New test.
12207         * testsuite/libgomp.fortran/udr13.f90: New test.
12208         * testsuite/libgomp.fortran/udr14.f90: New test.
12209         * testsuite/libgomp.fortran/udr15.f90: New test.
12211 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
12213         * omp_lib.f90.in (openmp_version): Set to 201307.
12214         * omp_lib.h.in (openmp_version): Likewise.
12215         * testsuite/libgomp.c/target-8.c: New test.
12216         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
12217         and inbranch clauses.
12218         * testsuite/libgomp.fortran/depend-3.f90: New test.
12219         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
12220         openmp_version.
12221         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12222         * testsuite/libgomp.fortran/target1.f90: New test.
12223         * testsuite/libgomp.fortran/target2.f90: New test.
12224         * testsuite/libgomp.fortran/target3.f90: New test.
12225         * testsuite/libgomp.fortran/target4.f90: New test.
12226         * testsuite/libgomp.fortran/target5.f90: New test.
12227         * testsuite/libgomp.fortran/target6.f90: New test.
12228         * testsuite/libgomp.fortran/target7.f90: New test.
12230 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
12232         PR fortran/60928
12233         * testsuite/libgomp.fortran/allocatable9.f90: New test.
12234         * testsuite/libgomp.fortran/allocatable10.f90: New test.
12235         * testsuite/libgomp.fortran/allocatable11.f90: New test.
12236         * testsuite/libgomp.fortran/allocatable12.f90: New test.
12237         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
12238         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
12239         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
12240         * testsuite/libgomp.fortran/associate1.f90: New test.
12241         * testsuite/libgomp.fortran/associate2.f90: New test.
12242         * testsuite/libgomp.fortran/procptr1.f90: New test.
12244 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
12246         * testsuite/libgomp.fortran/simd1.f90: New test.
12247         * testsuite/libgomp.fortran/udr1.f90: New test.
12248         * testsuite/libgomp.fortran/udr2.f90: New test.
12249         * testsuite/libgomp.fortran/udr3.f90: New test.
12250         * testsuite/libgomp.fortran/udr4.f90: New test.
12251         * testsuite/libgomp.fortran/udr5.f90: New test.
12252         * testsuite/libgomp.fortran/udr6.f90: New test.
12253         * testsuite/libgomp.fortran/udr7.f90: New test.
12254         * testsuite/libgomp.fortran/udr8.f90: New test.
12255         * testsuite/libgomp.fortran/udr9.f90: New test.
12256         * testsuite/libgomp.fortran/udr10.f90: New test.
12257         * testsuite/libgomp.fortran/udr11.f90: New test.
12259 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
12261         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
12262         vect_simd_clones effective target.
12263         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
12265 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
12267         PR middle-end/61252
12268         * testsuite/libgomp.c++/simd-9.C: New test.
12270 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
12272         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
12273         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
12274         texts according to their @menu entry positions.
12276 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
12278         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
12279         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
12280         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
12281         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
12282         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
12283         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
12284         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
12285         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
12286         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
12287         * testsuite/libgomp.fortran/depend-1.f90: New test.
12288         * testsuite/libgomp.fortran/depend-2.f90: New test.
12289         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
12290         * testsuite/libgomp.fortran/simd1.f90: New test.
12291         * testsuite/libgomp.fortran/simd2.f90: New test.
12292         * testsuite/libgomp.fortran/simd3.f90: New test.
12293         * testsuite/libgomp.fortran/simd4.f90: New test.
12294         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
12296 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
12298         * testsuite/libgomp.c/simd-10.c: New test.
12299         * testsuite/libgomp.c/simd-11.c: New test.
12300         * testsuite/libgomp.c/simd-12.c: New test.
12301         * testsuite/libgomp.c/simd-13.c: New test.
12303 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
12305         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
12306         atomic type clauses in any order and optional comma in between.
12307         * testsuite/libgomp.c++/atomic-15.C: Likewise.
12308         * testsuite/libgomp.c/atomic-17.c: Likewise.
12310         * testsuite/libgomp.c/simd-7.c: New test.
12311         * testsuite/libgomp.c/simd-8.c: New test.
12312         * testsuite/libgomp.c/simd-9.c: New test.
12313         * testsuite/libgomp.c/loop-16.c: New test.
12315 2014-04-02  Richard Henderson  <rth@redhat.com>
12317         * config/linux/futex.h (futex_wait): Get error value from errno.
12318         (futex_wake): Likewise.
12320 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
12322         PR c++/60331
12323         * testsuite/libgomp.c++/udr-11.C: New test.
12324         * testsuite/libgomp.c++/udr-12.C: New test.
12325         * testsuite/libgomp.c++/udr-13.C: New test.
12326         * testsuite/libgomp.c++/udr-14.C: New test.
12327         * testsuite/libgomp.c++/udr-15.C: New test.
12328         * testsuite/libgomp.c++/udr-16.C: New test.
12329         * testsuite/libgomp.c++/udr-17.C: New test.
12330         * testsuite/libgomp.c++/udr-18.C: New test.
12331         * testsuite/libgomp.c++/udr-19.C: New test.
12333 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
12335         Update copyright years
12337 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
12339         * hashtab.h: Use the standard form for the copyright notice.
12341 2014-01-02  Tobias Burnus  <burnus@net-b.de>
12343         * libgomp.texi: Bump @copying's copyright year.
12345 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
12347         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
12348         alloca () with __builtin_alloca ().
12349         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
12350         * testsuite/libgomp.c/lock-3.c: Likewise.
12351         * testsuite/libgomp.c/pr48591.c: Likewise.
12353 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
12355         PR testsuite/59534
12356         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
12357         comparisons.
12359 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
12361         PR libgomp/58756
12362         * testsuite/libgomp.c/pr58756.c: New test.
12364 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
12366         PR libgomp/59467
12367         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
12368         !$omp parallel.
12370 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
12372         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
12373         ALWAYS_CFLAGS.
12374         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
12375         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
12376         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
12377         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
12378         Likewise.
12380         * libgomp_g.h: Include <stddef.h> for size_t.
12382         * libgomp.spec.in: Update comment about libgomp's dependencies.
12383         * configure.ac: Likewise.
12384         * configure: Regenerate.
12386 2013-10-16  Tobias Burnus  <burnus@net-b.de>
12388         * libgomp.texi: (Runtime Library Routines): Update references for
12389         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
12390         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
12391         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
12392         (Environment Variables): Update references for OpenMP 4.0. Add
12393         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
12394         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
12395         order.
12397 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
12399         * env.c (parse_bind_var): Initialize value to avoid
12400         (false positive) warning.
12402 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
12404         PR libgomp/58691
12405         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
12406         to check variable.
12407         (gomp_init_num_threads): Move i variable declaration into
12408         #ifdef CPU_ALLOC_SIZE block.
12409         * config/linux/affinity.c (gomp_affinity_init_level): Test
12410         gomp_places_list_len == 0 rather than gomp_places_list == 0
12411         when checking for topology reading error.
12412         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
12413         * env.c (parse_affinity): Add ignore argument, if true, don't populate
12414         gomp_places_list, only parse env var and always return false.
12415         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
12416         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
12417         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
12418         and either of these variables were parsed correctly into a places
12419         list.
12421 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
12422             Jakub Jelinek  <jakub@redhat.com>
12424         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
12425         of 5 loopfn matches.
12426         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
12427         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
12428         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
12429         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
12430         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
12431         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12432         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12433         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
12435 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
12437         * Makefile.am (omp_lib.mod): Streamline rule.
12438         * Makefile.in: Regenerate.
12440         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
12441         exceptions.
12443         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
12444         * testsuite/libgomp.fortran/lib1.f90: Likewise.
12445         * testsuite/libgomp.fortran/lib2.f: Likewise.
12446         * testsuite/libgomp.fortran/lib3.f: Likewise.
12448         * configure.ac: Typo fix.
12449         * configure: Regenerate.
12451         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
12452         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12454         * omp.h.in: Don't touch the user's namespace.
12456 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
12457             Tobias Burnus  <burnus@net-b.de>
12458             Richard Henderson  <rth@redhat.com>
12460         * target.c: New file.
12461         * Makefile.am (libgomp_la_SOURCES): Add target.c.
12462         * Makefile.in: Regenerated.
12463         * libgomp_g.h (GOMP_task): Add depend argument.
12464         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12465         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12466         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
12467         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12468         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12469         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
12470         GOMP_taskgroup_start, GOMP_taskgroup_end,
12471         GOMP_parallel_sections): New prototypes.
12472         * fortran.c (omp_is_initial_device): Add ialias_redirect.
12473         (omp_is_initial_device_): New function.
12474         (ULP, STR1, STR2, ialias_redirect): Removed.
12475         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
12476         omp_set_default_device_8_, omp_get_default_device_,
12477         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
12478         functions.
12479         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12480         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12481         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
12482         @@GOMP_4.0.
12483         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
12484         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
12485         omp_set_default_device, omp_set_default_device_,
12486         omp_set_default_device_8_, omp_get_default_device,
12487         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
12488         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
12489         omp_get_team_num_): Export @@OMP_4.0.
12490         * team.c (struct gomp_thread_start_data): Add place field.
12491         (gomp_thread_start): Clear thr->thread_pool and
12492         thr->task before returning.  Use gomp_team_barrier_wait_final
12493         instead of gomp_team_barrier_wait.  Initialize thr->place.
12494         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
12495         team_cancelled and task_queued_count fields.
12496         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
12497         before calling pthread_exit.
12498         (gomp_free_thread): No longer static.  Use
12499         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
12500         (gomp_team_start): Add flags argument.  Set
12501         thr->thread_pool->threads_busy to nthreads immediately after creating
12502         new pool.  Use gomp_managed_threads_lock instead of
12503         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
12504         (gomp_team_end): Use gomp_managed_threads_lock instead of
12505         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
12506         of gomp_team_barrier_wait.  If team->team_cancelled, call
12507         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
12508         rather than thr->ts.work_share.
12509         (initialize_team): Don't call gomp_sem_init here.
12510         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
12511         caller.
12512         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
12513         * env.c (gomp_global_icv): Add default_device_var, target_data and
12514         bind_var initializers.
12515         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12516         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12517         gomp_places_list_len): New variables.
12518         (parse_bind_var, parse_one_place, parse_places_var): New functions.
12519         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
12520         sized places.
12521         (gomp_cancel_var): New global variable.
12522         (parse_int): New function.
12523         (handle_omp_display_env): New function.
12524         (initialize_env): Use it.  Initialize default_device_var.
12525         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
12526         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
12527         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
12528         been successfully parsed (and call gomp_init_affinity in that case).
12529         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12530         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12531         omp_get_team_num, omp_is_initial_device): New functions.
12532         * libgomp.h: Include stdlib.h.
12533         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
12534         Define.
12535         (struct target_mem_desc): Forward declare.
12536         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
12537         and thread_limit_var fields.
12538         (gomp_get_num_devices): New prototype.
12539         (gomp_cancel_var): New extern decl.
12540         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
12541         team_cancelled and task_queued_count fields.  Add comments about
12542         task_{,queued_,running_}count.
12543         (gomp_cancel_kind): New enum.
12544         (gomp_work_share_end_cancel): New prototype.
12545         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
12546         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
12547         and depend fields.
12548         (struct gomp_taskgroup): New type.
12549         (struct gomp_task_depend_entry,
12550         struct gomp_dependers_vec): New types.
12551         (gomp_finish_task): Free depend_hash if non-NULL.
12552         (struct gomp_team_state): Add place_partition_off
12553         and place_partition_len fields.
12554         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12555         gomp_places_list_len): New extern decls.
12556         (struct gomp_thread): Add place field.
12557         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12558         (gomp_init_thread_affinity): Add place argument.
12559         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12560         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12561         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12562         gomp_affinity_init_level, gomp_affinity_print_place): New
12563         prototypes.
12564         (gomp_team_start): Add flags argument.
12565         (gomp_thread_limit_var, gomp_remaining_threads_count,
12566         gomp_remaining_threads_lock): Remove.
12567         (gomp_managed_threads_lock): New variable.
12568         (struct gomp_thread_pool): Add threads_busy field.
12569         (gomp_free_thread): New prototype.
12570         * task.c: Include hashtab.h.
12571         (hash_entry_type): New typedef.
12572         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
12573         (gomp_init_task): Clear dependers, depend_hash, depend_count,
12574         copy_ctors_done and taskgroup fields.
12575         (GOMP_task): Add depend argument, handle depend clauses.  If
12576         gomp_team_barrier_cancelled or if it's taskgroup has been
12577         cancelled, don't queue or start new tasks.  Set copy_ctors_done
12578         field if needed.  Initialize taskgroup field.  If copy_ctors_done
12579         and already cancelled, don't discard the task.  If taskgroup is
12580         non-NULL, enqueue the task into taskgroup queue.  Increment
12581         num_children field in taskgroup.  Increment task_queued_count.
12582         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
12583         gomp_task_run_post_remove_taskgroup): New inline functions.
12584         (gomp_task_run_post_handle_depend_hash,
12585         gomp_task_run_post_handle_dependers,
12586         gomp_task_run_post_handle_depend): New functions.
12587         (GOMP_taskwait): Use them.  If more than one new tasks
12588         have been queued, wake other threads if needed.
12589         (gomp_barrier_handle_tasks): Likewise.  If
12590         gomp_team_barrier_cancelled, don't start any new tasks, just free
12591         all tasks.
12592         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
12593         * omp_lib.f90.in
12594         (omp_proc_bind_kind, omp_proc_bind_false,
12595         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
12596         omp_proc_bind_spread): New params.
12597         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12598         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12599         omp_get_team_num, omp_is_initial_device): New interfaces.
12600         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
12601         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
12602         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
12603         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
12604         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
12605         useless use omp_lib_kinds.
12606         * omp.h.in (omp_proc_bind_t): New typedef.
12607         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12608         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12609         omp_get_team_num, omp_is_initial_device): New prototypes.
12610         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
12611         through to gomp_team_start.
12612         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
12613         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
12614         Adjust gomp_parallel_loop_start callers.
12615         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12616         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12617         GOMP_loop_end_cancel): New functions.
12618         (GOMP_parallel_end): Add ialias_redirect.
12619         * hashtab.h: New file.
12620         * libgomp.texi (Environment Variables): Minor cleanup,
12621         update section refs to OpenMP 4.0rc2.
12622         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
12623         environment variables.
12624         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
12625         team->work_shares_to_free to thr->ts.work_share before calling
12626         free_work_share.
12627         (gomp_work_share_end_cancel): New function.
12628         * config/linux/proc.c: Include errno.h.
12629         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
12630         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
12631         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
12632         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
12633         gomp_cpuset_size is sizeof (cpu_set_t).
12634         (gomp_init_num_threads): Initialize gomp_cpuset_size,
12635         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
12636         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
12637         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
12638         contain any logical CPUs.
12639         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
12640         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
12641         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
12642         pthread_getaffinity_np.  Check gomp_places_list instead of
12643         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
12644         * config/linux/bar.c (gomp_barrier_wait_end,
12645         gomp_barrier_wait_last): Use BAR_* defines.
12646         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
12647         from state where needed.  Set work_share_cancelled to 0 on last
12648         thread.
12649         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
12650         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
12651         functions.
12652         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
12653         Add cpusetsize argument.
12654         (gomp_cpuset_size, gomp_cpusetp): Declare.
12655         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
12656         (affinity_counter): Remove.
12657         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
12658         if CPU_ALLOC_SIZE isn't defined.
12659         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
12660         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
12661         bind current thread to the first place.
12662         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
12663         pthread_setaffinity_np to gomp_places_list[place].
12664         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12665         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12666         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12667         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
12668         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
12669         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
12670         (gomp_barrier_t): Add awaited_final field.
12671         (gomp_barrier_init): Initialize awaited_final field.
12672         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
12673         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
12674         prototypes.
12675         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
12676         defines.
12677         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
12678         gomp_team_barrier_cancelled): New inline functions.
12679         (gomp_barrier_last_thread,
12680         gomp_team_barrier_set_task_pending,
12681         gomp_team_barrier_clear_task_pending,
12682         gomp_team_barrier_set_waiting_for_tasks,
12683         gomp_team_barrier_waiting_for_tasks,
12684         gomp_team_barrier_done): Use BAR_* defines.
12685         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
12686         (gomp_barrier_wait_end): Use BAR_* defines.
12687         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
12688         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
12689         Use BAR_* defines.
12690         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
12691         gomp_team_barrier_cancel): New functions.
12692         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
12693         argument.
12694         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12695         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12696         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12697         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
12698         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
12699         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
12700         (gomp_barrier_t): Add cancellable field.
12701         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
12702         gomp_team_barrier_cancel): New prototypes.
12703         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
12704         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
12705         gomp_team_barrier_cancelled): New inline functions.
12706         (gomp_barrier_wait_start, gomp_barrier_last_thread,
12707         gomp_team_barrier_set_task_pending,
12708         gomp_team_barrier_clear_task_pending,
12709         gomp_team_barrier_set_waiting_for_tasks,
12710         gomp_team_barrier_waiting_for_tasks,
12711         gomp_team_barrier_done): Use BAR_* defines.
12712         * barrier.c (GOMP_barrier_cancel): New function.
12713         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
12714         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
12715         omp_proc_bind_spread): New params.
12716         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12717         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12718         omp_get_team_num, omp_is_initial_device): New externals.
12719         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
12720         New functions.
12721         (gomp_resolve_num_threads): Adjust for thread_limit now being in
12722         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
12723         infinity.  If not nested, just return minimum of max_num_threads
12724         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
12725         to the returned value.  Otherwise, don't update atomically
12726         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
12727         (GOMP_parallel_end): Adjust for thread_limit now being in
12728         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
12729         infinity.  Adjust threads_busy in the pool rather than
12730         gomp_remaining_threads_count.  Remember team->nthreads and call
12731         gomp_team_end before adjusting threads_busy, if not nested
12732         afterwards, just set it to 1 non-atomically.  Add ialias.
12733         (GOMP_parallel_start): Adjust gomp_team_start caller.
12734         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
12735         * testsuite/libgomp.c/affinity-1.c: New test.
12736         * testsuite/libgomp.c/atomic-15.c: New test.
12737         * testsuite/libgomp.c/atomic-16.c: New test.
12738         * testsuite/libgomp.c/atomic-17.c: New test.
12739         * testsuite/libgomp.c/cancel-for-1.c: New test.
12740         * testsuite/libgomp.c/cancel-for-2.c: New test.
12741         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
12742         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
12743         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
12744         * testsuite/libgomp.c/cancel-sections-1.c: New test.
12745         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
12746         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
12747         * testsuite/libgomp.c/depend-1.c: New test.
12748         * testsuite/libgomp.c/depend-2.c: New test.
12749         * testsuite/libgomp.c/depend-3.c: New test.
12750         * testsuite/libgomp.c/depend-4.c: New test.
12751         * testsuite/libgomp.c/for-1.c: New test.
12752         * testsuite/libgomp.c/for-1.h: New file.
12753         * testsuite/libgomp.c/for-2.c: New test.
12754         * testsuite/libgomp.c/for-2.h: New file.
12755         * testsuite/libgomp.c/for-3.c: New test.
12756         * testsuite/libgomp.c/pr58392.c: New test.
12757         * testsuite/libgomp.c/simd-1.c: New test.
12758         * testsuite/libgomp.c/simd-2.c: New test.
12759         * testsuite/libgomp.c/simd-3.c: New test.
12760         * testsuite/libgomp.c/simd-4.c: New test.
12761         * testsuite/libgomp.c/simd-5.c: New test.
12762         * testsuite/libgomp.c/simd-6.c: New test.
12763         * testsuite/libgomp.c/target-1.c: New test.
12764         * testsuite/libgomp.c/target-2.c: New test.
12765         * testsuite/libgomp.c/target-3.c: New test.
12766         * testsuite/libgomp.c/target-4.c: New test.
12767         * testsuite/libgomp.c/target-5.c: New test.
12768         * testsuite/libgomp.c/target-6.c: New test.
12769         * testsuite/libgomp.c/target-7.c: New test.
12770         * testsuite/libgomp.c/taskgroup-1.c: New test.
12771         * testsuite/libgomp.c/thread-limit-1.c: New test.
12772         * testsuite/libgomp.c/thread-limit-2.c: New test.
12773         * testsuite/libgomp.c/thread-limit-3.c: New test.
12774         * testsuite/libgomp.c/udr-1.c: New test.
12775         * testsuite/libgomp.c/udr-2.c: New test.
12776         * testsuite/libgomp.c/udr-3.c: New test.
12777         * testsuite/libgomp.c++/affinity-1.C: New test.
12778         * testsuite/libgomp.c++/atomic-10.C: New test.
12779         * testsuite/libgomp.c++/atomic-11.C: New test.
12780         * testsuite/libgomp.c++/atomic-12.C: New test.
12781         * testsuite/libgomp.c++/atomic-13.C: New test.
12782         * testsuite/libgomp.c++/atomic-14.C: New test.
12783         * testsuite/libgomp.c++/atomic-15.C: New test.
12784         * testsuite/libgomp.c++/cancel-for-1.C: New test.
12785         * testsuite/libgomp.c++/cancel-for-2.C: New test.
12786         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
12787         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
12788         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
12789         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
12790         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
12791         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
12792         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
12793         * testsuite/libgomp.c++/cancel-test.h: New file.
12794         * testsuite/libgomp.c++/for-9.C: New test.
12795         * testsuite/libgomp.c++/for-10.C: New test.
12796         * testsuite/libgomp.c++/for-11.C: New test.
12797         * testsuite/libgomp.c++/simd-1.C: New test.
12798         * testsuite/libgomp.c++/simd-2.C: New test.
12799         * testsuite/libgomp.c++/simd-3.C: New test.
12800         * testsuite/libgomp.c++/simd-4.C: New test.
12801         * testsuite/libgomp.c++/simd-5.C: New test.
12802         * testsuite/libgomp.c++/simd-6.C: New test.
12803         * testsuite/libgomp.c++/simd-7.C: New test.
12804         * testsuite/libgomp.c++/simd-8.C: New test.
12805         * testsuite/libgomp.c++/target-1.C: New test.
12806         * testsuite/libgomp.c++/target-2.C: New test.
12807         * testsuite/libgomp.c++/target-2-aux.cc: New file.
12808         * testsuite/libgomp.c++/target-3.C: New test.
12809         * testsuite/libgomp.c++/taskgroup-1.C: New test.
12810         * testsuite/libgomp.c++/udr-1.C: New test.
12811         * testsuite/libgomp.c++/udr-2.C: New test.
12812         * testsuite/libgomp.c++/udr-3.C: New test.
12813         * testsuite/libgomp.c++/udr-4.C: New test.
12814         * testsuite/libgomp.c++/udr-5.C: New test.
12815         * testsuite/libgomp.c++/udr-6.C: New test.
12816         * testsuite/libgomp.c++/udr-7.C: New test.
12817         * testsuite/libgomp.c++/udr-8.C: New test.
12818         * testsuite/libgomp.c++/udr-9.C: New test.
12820 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
12822         PR testsuite/57605
12823         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
12824         ALWAYS_CFLAGS.
12826 2013-09-20  Alan Modra  <amodra@gmail.com>
12828         * configure: Regenerate.
12830 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
12832         * testsuite/libgomp.c/sections-2.c: New test.
12834 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12836         * testsuite/libgomp.fortran/strassen.f90:
12837         Add dg-skip-if aarch64_tiny.
12839 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
12840             Cesar Philippidis  <cesar@codesourcery.com>
12842         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
12843         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
12844         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
12845         * testsuite/libgomp.fortran/fortran.exp: Likewise.
12846         * testsuite/libgomp.graphite/graphite.exp: Likewise.
12847         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
12848         Use dg-runtest rather than gfortran-dg-runtest.
12850 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12852         * testsuite/libgomp.c/icv-2.c: Extend current handling of
12853         Linux-based x86 systems to cover all GNU systems.
12854         * testsuite/libgomp.c/lock-3.c: Likewise.
12855         * testsuite/libgomp.c/pr48591.c: Likewise.
12857 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
12859         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
12860         GNU/Hurd, as done for Linux-based systems.
12862         * config/posix/ptrlock.h: Fix comment.
12864 2013-05-27  Tobias Burnus  <burnus@net-b.de>
12866         PR fortran/57423
12867         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
12868         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
12869         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
12870         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
12871         omp_destroy_nest_lock): Correct arguments to match the one in
12872         the OpenMP spec.
12873         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
12874         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
12875         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
12876         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
12878 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
12880         * testsuite/libgomp.c/loop-13.c: New test.
12881         * testsuite/libgomp.c/loop-14.c: New test.
12882         * testsuite/libgomp.c/loop-15.c: New test.
12883         * testsuite/libgomp.c++/loop-13.C: New test.
12884         * testsuite/libgomp.c++/loop-14.C: New test.
12885         * testsuite/libgomp.c++/loop-15.C: New test.
12887 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
12889         PR middle-end/56217
12890         * testsuite/libgomp.c++/pr56217.C: New test.
12892 2013-02-01  Alan Modra  <amodra@gmail.com>
12894         * task.c (GOMP_task, GOMP_taskwait): Comment.
12896 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
12897             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
12899         PR libgomp/55561
12900         * config/linux/wait.h (do_spin): Use atomic load for addr.
12901         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
12902         for intptr and ptrlock.
12903         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
12904         for ptrlock.
12906 2013-01-22  Alan Modra  <amodra@gmail.com>
12908         PR libgomp/51376
12909         PR libgomp/56073
12910         * task.c (GOMP_task): Revert 2011-12-09 change.
12911         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
12912         barrier to read task->children..
12913         (gomp_barrier_handle_tasks): ..and matching atomic store with
12914         release barrier here when setting parent->children to NULL.
12916 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
12917             Tobias Burnus  <burnus@net-b.de>
12919         PR driver/55884
12920         * testsuite/libgomp.fortran/fortran.exp: Use
12921         -fintrinsic-modules-path= instead of
12922         -fintrinsic-modules-path.
12924 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
12926         Update copyright years.
12928 2012-12-19  Tobias Burnus  <burnus@net-b.de>
12930         * testsuite/libgomp.fortran/fortran.exp: Set
12931         -fintrinsic-modules-path.
12933 2012-12-19  Tobias Burnus  <burnus@net-b.de>
12935         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
12936         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
12938 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
12940         PR libgomp/55411
12941         * team.c (gomp_free_thread): Decrease gomp_managed_threads
12942         if pool had any threads_used.
12944 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
12946         * testsuite/libgomp.c++/pr24455.C: Use
12947         -Wl,-undefined,dynamic_lookup on darwin.
12949 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
12951         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
12953 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
12955         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
12957 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
12958             Jim MacArthur  <jim.macarthur@arm.com>
12959             Marcus Shawcroft  <marcus.shawcroft@arm.com>
12960             Nigel Stephens  <nigel.stephens@arm.com>
12961             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12962             Richard Earnshaw  <rearnsha@arm.com>
12963             Sofiane Naci  <sofiane.naci@arm.com>
12964             Stephen Thomas  <stephen.thomas@arm.com>
12965             Tejas Belagod  <tejas.belagod@arm.com>
12966             Yufeng Zhang  <yufeng.zhang@arm.com>
12968         * configure.tgt: Add AArch64.
12970 2012-10-04  Jason Merrill  <jason@redhat.com>
12972         * testsuite/libgomp.c++/tls-init1.C: New.
12974 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
12976         * configure: Regenerated.
12978 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
12980         * config/linux/mips/futex.h (sys_futex0): Change to static
12981         function with noinline, nomips16 attributes under MIPS16. Adjust
12982         asm statement to place 'li v0,SYS_futex' immediately before
12983         syscall insn.
12985 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
12987         * libgomp.texi (Library Index): Renamed from "Index" to prevent
12988         conflict with index.html on case-insensitive file systems.
12990 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
12992         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
12993         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
12995 2012-07-02  Richard Guenther  <rguenther@suse.de>
12996             Michael Matz  <matz@suse.de>
12997             Tobias Grosser <tobias@grosser.es>
12998             Sebastian Pop <sebpop@gmail.com>
13000         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
13001         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
13002         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
13003         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
13005 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
13007         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
13009 2012-06-22  Richard Guenther  <rguenther@suse.de>
13011         Merge from graphite branch
13012         2012-01-13  Tobias Grosser  <tobias@grosser.es>
13014         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13015         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
13017 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
13019         PR middle-end/53580
13020         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
13021         use GOMP_barrier () call instead.
13022         * testsuite/libgomp.c/pr26943-3.c: Likewise.
13023         * testsuite/libgomp.c/pr26943-4.c: Likewise.
13024         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
13025         call GOMP_barrier instead.
13026         * testsuite/libgomp.fortran/vla5.f90: Likewise.
13028 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
13030         PR libgomp/52993
13031         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
13032         argument to memset call.
13034 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13036         * configure: Regenerated.
13038 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13040         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
13042 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
13044         PR bootstrap/52812
13045         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
13047 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
13049         PR middle-end/52547
13050         * testsuite/libgomp.c/pr52547.c: New test.
13052 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13054         * testsuite/lib/libgomp.exp: load fortran-modules.exp
13056 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13058         * configure.tgt (mips-sgi-irix6*): Remove.
13060 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13062         * configure.tgt (alpha*-dec-osf*): Remove.
13064         * config/osf/sem.h: Remove.
13065         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
13067 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
13069         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
13071 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13073         PR libstdc++/52188
13074         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
13075         Remove ENABLE_SYMVERS_SOL2.
13076         * configure: Regenerate.
13077         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
13078         (PREPROCESS): New variable.
13079         (libgomp.ver): New target.
13080         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
13081         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
13082         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
13083         Use libgomp.ver.
13084         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
13085         * Makefile.in: Regenerate.
13087 2012-02-14  Walter Lee  <walt@tilera.com>
13089         * configure.tgt: Handle tilegx and tilepro.
13090         * config/linux/tile/futex.h: New file.
13092 2012-02-08  Richard Guenther  <rguenther@suse.de>
13094         PR tree-optimization/46886
13095         * testsuite/libgomp.c/pr46886.c: New testcase.
13097 2012-01-25  Matthias Klose  <doko@ubuntu.com>
13099         * config/linux/arm: Remove empty directory.
13100         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
13102 2011-12-09  Alan Modra  <amodra@gmail.com>
13104         PR libgomp/51376
13105         * task.c (GOMP_taskwait): Don't access task->children outside of
13106         task_lock mutex region.
13107         (GOMP_task): Likewise.
13109 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
13111         PR libgomp/51132
13112         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
13113         to file scope.
13114         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
13115         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
13116         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
13117         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
13118         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
13120 2011-12-02  Alan Modra  <amodra@gmail.com>
13122         * config/linux/affinity.c: Use atomic rather than sync builtin.
13123         * config/linux/lock.c: Likewise.
13124         * config/linux/ptrlock.h: Likewise.
13125         * config/linux/ptrlock.c: Likewise.
13126         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
13127         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
13128         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
13129         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
13130         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
13131         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
13132         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
13133         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
13134         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
13135         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
13137 2011-11-30  Alan Modra  <amodra@gmail.com>
13139         PR libgomp/51298
13140         * config/linux/bar.h: Use atomic rather than sync builtins.
13141         * config/linux/bar.c: Likewise.  Add missing acquire
13142         synchronisation on generation field.
13143         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
13144         double unlock.
13146 2011-11-30  Alan Modra  <amodra@gmail.com>
13148         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
13149         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
13150         * config/linux/mutex.h: Use atomic rather than sync builtins.
13151         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
13152         * config/linux/omp-lock.h: Comment fix.
13153         * config/linux/arm/mutex.h: Delete.
13154         * config/linux/powerpc/mutex.h: Delete.
13155         * config/linux/ia64/mutex.h: Delete.
13156         * config/linux/mips/mutex.h: Delete.
13158 2011-11-30  Alan Modra  <amodra@gmail.com>
13160         PR libgomp/51249
13161         * config/linux/sem.h: Rewrite.
13162         * config/linux/sem.c: Rewrite.
13164 2011-11-28  Richard Henderson  <rth@redhat.com>
13166         * libgomp.h (enum memmodel): New.
13168 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
13170         * configure: Regenerate.
13172 2011-10-10  Matthias Klose  <doko@ubuntu.com>
13174         * config/posix95: Remove empty directory.
13176 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
13178         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
13180 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
13182         PR fortran/49792
13183         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
13184         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
13186 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13188         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
13190 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13192         PR libgomp/49965
13193         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
13195 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
13197         * config/linux/proc.h: New.
13198         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
13199         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
13200         (gomp_init_num_threads): Update call to cpuset_popcount.
13201         (get_num_procs): Ditto.
13202         * config/linux/affinity.c (gomp_init_affinity): Call
13203         gomp_cpuset_popcount.
13205 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
13207         PR fortran/42041
13208         PR fortran/46752
13209         * omp.h.in (omp_in_final): New prototype.
13210         * omp_lib.f90.in (omp_in_final): New interface.
13211         (omp_integer_kind, omp_logical_kind): Remove
13212         and replace all its uses in the module with 4.
13213         (openmp_version): Change to 201107.
13214         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
13215         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
13216         kind for the parameters.
13217         (omp_in_final): New external.
13218         (openmp_version): Change to 201107.
13219         * task.c (omp_in_final): New function.
13220         (gomp_init_task): Initialize final_task.
13221         (GOMP_task): Remove unused attribute from flags.  Handle final
13222         tasks.
13223         (GOMP_taskyield): New function.
13224         (omp_in_final): Return true if if (false) or final (true) task
13225         or descendant of final (true).
13226         * fortran.c (omp_in_final_): New function.
13227         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
13228         (GOMP_3.0): Export GOMP_taskyield.
13229         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
13230         variables.
13231         (parse_unsigned_long_list): New function.
13232         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
13233         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
13234         even if parse_affinity returned false.
13235         * config/linux/affinity.c (gomp_init_affinity): Handle
13236         gomp_cpu_affinity_len == 0.
13237         * libgomp_g.h (GOMP_taskyield): New prototype.
13238         * libgomp.h (struct gomp_task): Add final_task field.
13239         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
13240         * team.c (gomp_team_start): Override new task's nthreads_var icv
13241         if list form OMP_NUM_THREADS has been used and it has value for
13242         the new nesting level.
13244         * testsuite/libgomp.c/atomic-11.c: New test.
13245         * testsuite/libgomp.c/atomic-12.c: New test.
13246         * testsuite/libgomp.c/atomic-13.c: New test.
13247         * testsuite/libgomp.c/atomic-14.c: New test.
13248         * testsuite/libgomp.c/reduction-6.c: New test.
13249         * testsuite/libgomp.c/task-5.c: New test.
13250         * testsuite/libgomp.c++/atomic-2.C: New test.
13251         * testsuite/libgomp.c++/atomic-3.C: New test.
13252         * testsuite/libgomp.c++/atomic-4.C: New test.
13253         * testsuite/libgomp.c++/atomic-5.C: New test.
13254         * testsuite/libgomp.c++/atomic-6.C: New test.
13255         * testsuite/libgomp.c++/atomic-7.C: New test.
13256         * testsuite/libgomp.c++/atomic-8.C: New test.
13257         * testsuite/libgomp.c++/atomic-9.C: New test.
13258         * testsuite/libgomp.c++/task-8.C: New test.
13259         * testsuite/libgomp.c++/reduction-4.C: New test.
13260         * testsuite/libgomp.fortran/allocatable7.f90: New test.
13261         * testsuite/libgomp.fortran/allocatable8.f90: New test.
13262         * testsuite/libgomp.fortran/crayptr3.f90: New test.
13263         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
13264         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
13265         * testsuite/libgomp.fortran/pointer1.f90: New test.
13266         * testsuite/libgomp.fortran/pointer2.f90: New test.
13267         * testsuite/libgomp.fortran/task4.f90: New test.
13269 2011-08-02  Tobias Burnus  <burnus@net-b.de>
13271         * libgomp.texi: Update OpenMP spec references to 3.1.
13272         (omp_in_final,OMP_PROC_BIND): New sections.
13273         (OMP_NUM_THREADS): Document that the value can be now a list.
13274         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
13276 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
13278         * config/linux/x86/futex.h: Check __x86_64__ instead of
13279         __LP64__.
13281 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
13283         PR middle-end/49897
13284         PR middle-end/49898
13285         * testsuite/libgomp.c/pr49897-1.c: New test.
13286         * testsuite/libgomp.c/pr49897-2.c: New test.
13287         * testsuite/libgomp.c/pr49898-1.c: New test.
13288         * testsuite/libgomp.c/pr49898-2.c: New test.
13290 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
13292         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
13293         for ia32 instead of ilp32.
13295         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
13296         * testsuite/libgomp.c/atomic-6.c: Likewise.
13298 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
13300         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
13301         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
13303 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13305         PR libgomp/45351
13306         * config/osf/sem.h: New file.
13307         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
13309 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13311         PR target/49541
13312         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
13313         ldflags.
13315 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
13317         * config/linux/wait.h (do_spin): New inline, largely copied
13318         from do_wait, just don't do futex_wait here, instead return true if
13319         it should be done.
13320         (do_wait): Implement using do_spin.
13321         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
13322         to prototype.
13323         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
13324         __sync_bool_compare_and_swap, pass the oldval to
13325         gomp_mutex_lock_slow.
13326         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
13327         If all mutex contenders are just spinning and not sleeping, don't
13328         change state to 2 unnecessarily.  Optimize the loop when state has
13329         already become 2 to use just one atomic operation per loop instead
13330         of two.
13331         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
13332         to prototype.
13333         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
13334         __sync_bool_compare_and_swap, pass the oldval to
13335         gomp_mutex_lock_slow.
13337 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
13339         PR libgomp/49490
13340         * iter.c (gomp_iter_static_next): For chunk size 0
13341         only use n ceil/ nthreads size for the first
13342         n % nthreads threads in the team instead of
13343         all threads except for the last few ones which
13344         get less work or none at all.
13345         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
13346         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
13347         chunk argument, set run_sched_modifier to 0 for static
13348         resp. 1 for other kinds.  If chunk argument is 0
13349         and not static, set value to 1.
13351 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
13353         PR c++/49043
13354         * testsuite/libgomp.c++/pr49043.C: New test.
13356         PR c++/48869
13357         * testsuite/libgomp.c++/pr48869.C: New test.
13359 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
13361         PR fortran/48894
13362         * fortran.c: Include limits.h.
13363         (TO_INT): Define.
13364         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
13365         *set.
13366         (omp_set_num_threads_8_, omp_set_schedule_8_,
13367         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
13368         omp_get_team_size_8_): Use TO_INT macro.
13369         * testsuite/libgomp.fortran/pr48894.f90: New test.
13371 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
13373         PR middle-end/48591
13374         * testsuite/libgomp.c/pr48591.c: New test.
13376 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13378         PR bootstrap/48135
13379         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
13380         * configure: Regenerate.
13382 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
13384         PR fortran/47886
13385         * testsuite/libgomp.fortran/task3.f90: New test.
13387 2011-02-24  Tobias Burnus  <burnus@net-b.de>
13389         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
13391 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
13393         PR libgomp/47854
13394         * libgomp.texi (omp_get_wtime): Don't say time in the past
13395         must be Unix Epoch.
13397 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
13399         PR libgomp/47804
13400         * testsuite/libgomp.fortran/fortran.exp: Check for both
13401         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
13402         but $blddir != "", still append ${blddir}/${lang_library_path}
13403         to ld_library_path.
13405 2011-02-16  Tobias Burnus  <burnus@net-b.de>
13407         PR libgomp/47758
13408         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
13409         of libquadmath.a before adding its libpath to ldflags.
13411 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
13413         PR libgomp/47731
13414         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
13415         to FUTEX_WAIT futex syscall.
13416         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
13418 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13420         * configure: Regenerate.
13422 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
13424         PR libstdc++/36104
13425         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
13427 2011-01-16  Gerald Pfeifer
13429         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
13431 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
13433         PR fortran/46874
13434         * libgomp.fortran/allocatable6.f90: New test.
13436 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13438         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
13439         * configure: Regenerate.
13441 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
13443         PR target/40125
13444         PR lto/46695
13445         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
13446         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
13447         * aclocal.m4: Regenerate.
13448         * configure: Regenerate.
13449         * Makefile.in: Regenerate.
13450         * testsuite/Makefile.in: Regenerate.
13452 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
13454         PR fortran/46753
13455         * libgomp.fortran/pr46753.f90: New test.
13457         PR libgomp/43706
13458         * env.c (initialize_env): Default to spin count 300000
13459         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
13460         is specified.
13462         PR libgomp/45240
13463         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
13464         at the end if sync builtins aren't supported.
13466 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13468         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
13470 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13472         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
13474 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
13476         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
13478 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13479             Tobias Burnus  <burnus@net-b.de>
13481         PR fortran/32049
13482         * configure.ac:
13483         * configure: Regenerate.
13485 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13487         * config/linux/futex.h: New.
13488         * config/linux/arm/mutex.h: New.
13489         * configure.tgt (arm*-*-linux*): Add config path.
13491 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
13493         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13495 2010-09-23  Tobias Burnus  <burnus@net-b.de>
13497         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
13498         Change Fortran datatype to LOGICAL.
13499         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
13500         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
13502 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13504         * configure: Regenerate.
13506 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
13508         * libgomp.texi: Add function keyword to a couple of Fortran
13509         interfaces, use integer instead of int for Fortran.
13511 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
13513         * libgomp.texi: Fix spelling and pasto problems throughout.
13514         Adjust prototypes to match code.
13516 2010-07-24  Tobias Burnus  <burnus@net-b.de>
13518         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
13519         silence -fwhole-file warning.
13521 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13523         * configure.tgt (*-*-solaris2.[56]*): Removed.
13525 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13527         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
13528         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
13529         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
13530         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
13531         targetting solaris2*.
13532         * configure: Regenerate.
13533         * config.h.in: Regenerate.
13535         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
13536         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
13537         Add libgomp_version_dep.
13538         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
13539         versioning.
13540         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
13541         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
13542         * Makefile.in: Regenerate.
13544         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
13545         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13546         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
13547         to common block, protected by
13548         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13550 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
13552         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
13554 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
13556         PR bootstrap/43170
13557         * configure: Regenerate.
13559 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13561         PR other/43620
13562         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
13563         * configure: Regenerate.
13564         * Makefile.in: Regenerate.
13565         * testsuite/Makefile.in: Regenerate.
13567 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
13569         PR c/43893
13570         * testsuite/libgomp.c/pr43893.c: New test.
13571         * testsuite/libgomp.c++/pr43893.C: New test.
13573 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
13575         PR middle-end/43570
13576         * testsuite/libgomp.fortran/vla8.f90: New test.
13578 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
13580         PR libgomp/43706
13581         * config/linux/affinity.c (gomp_init_affinity): Decrease
13582         gomp_available_cpus if affinity mask confines the process to fewer
13583         CPUs.
13584         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
13585         non-NULL, just return gomp_available_cpus.
13587         PR libgomp/43569
13588         * sections.c (gomp_sections_init): Initialize ws->mode.
13590 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13592         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
13593         not unused bar variable.
13594         * configure: Regenerate.
13596 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13598         * Makefile.in: Regenerate.
13599         * aclocal.m4: Regenerate.
13600         * testsuite/Makefile.in: Regenerate.
13602 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
13604         PR libgomp/42942
13605         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
13606         (initialize_env): Adjust callers.
13607         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
13608         when the argument is 0.
13610         * testsuite/libgomp.c/pr42942.c: New test.
13612 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
13614         PR middle-end/42644
13615         PR middle-end/42130
13616         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13617         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
13619 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13621         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
13622         * testsuite/libgomp.c++/task-6.C: Likewise.
13624 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
13626         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
13628 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
13630         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
13631         * configure: Regenerate.
13633 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
13635         PR fortran/42866
13636         * testsuite/libgomp.fortran/allocatable5.f90: New test.
13638 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
13640         * configure.ac: Test for executability of GFORTRAN.
13641         * configure: Regenerate.
13643 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13645         * configure: Regenerate.
13647 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
13649         PR libgomp/42602
13650         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
13652 2010-01-03  Richard Guenther  <rguenther@suse.de>
13654         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
13656 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
13658         * testsuite/libgomp.graphite/pr4118.c: New.
13660 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
13662         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
13663         for darwin, protect the test with require-effective-target tls_runtime.
13664         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
13666 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
13668         PR target/41605
13669         * testsuite/lib/libgomp.exp: Provide -B options to allow for
13670         link spec %s substitutions for static libraries.
13672 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
13674         PR testsuite/42135
13675         * libgomp.graphite/force-parallel-2.c: Reduce array size.
13677 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13679         * Makefile.in: Regenerate.
13680         * configure: Regenerate.
13681         * testsuite/Makefile.in: Regenerate.
13683 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
13685         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
13686         settings for LC_ALL and LANG.
13688 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
13690         PR fortran/42162
13691         * testsuite/libgomp.fortran/pr42162.f90: New test.
13693 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
13695         PR middle-end/42029
13696         * testsuite/libgomp.c/pr42029.c: New test.
13698 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
13700         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
13701         *s.  Accept ld version without text in ()s.
13702         * configure: Regenerated.
13704 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
13706         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
13708 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13710         PR libgomp/41418
13711         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
13712         or a hyphen (happens with fortran language disabled).
13713         * configure: Regenerate.
13715 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13717         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
13718         use sed script portable to Solaris /bin/sed for extracting ld
13719         version.
13720         * configure: Regenerate.
13722 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
13724         * testsuite/libgomp.graphite/bounds.c: New test.
13726 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13728         * Makefile.am (libgomp_la_LINK): New.
13729         * Makefile.in: Regenerate.
13731 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13733         * configure.ac (AC_PREREQ): Bump to 2.64.
13735 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13737         * Makefile.am (install-html, install-pdf): Remove.
13738         * Makefile.in: Regenerate.
13740         * Makefile.in: Regenerate.
13741         * aclocal.m4: Regenerate.
13742         * config.h.in: Regenerate.
13743         * configure: Regenerate.
13744         * testsuite/Makefile.in: Regenerate.
13746 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13748         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
13749         * Makefile.in: Regenerate.
13751 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
13753         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
13754         * Makefile.in: Regenerate.
13756 2009-08-19  Tobias Burnus  <burnus@net-b.de>
13758         PR fortran/41102
13759         omp_lib.h.in: Fix -std=f95 errors.
13761 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
13763         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
13764         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
13765         * testsuite/libgomp.graphite/graphite.exp: New.
13767 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
13769         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
13770         only build.
13772 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
13774         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
13775         needed memory barrier semantics.
13776         * config/linux/mips/mutex.h: New file.
13778 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13780         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
13782 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
13784         * configure: Regenerate.
13786 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
13788         PR testsuite/40699
13789         PR testsuite/40707
13790         PR testsuite/40709
13791         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
13792         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
13793         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
13795 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
13797         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
13798         options when choosing a multilib.
13800 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
13802         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
13803         ld_library_path.  Use add_path.  Add just find_libgcc_s to
13804         ld_library_path, not every libgcc multilib directory.
13805         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
13806         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
13807         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
13808         Use add_path.
13809         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
13811 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
13813         * Makefile.am (LTLDFLAGS): Define.
13814         (LINK): Define.
13815         * Makefile.in: Regenerate.
13817 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
13819         PR fortran/39718
13820         * testsuite/libgomp.fortran/fortran.exp: Don't link with
13821         libgfortranbegin, check existence of libgfortran.a instead of
13822         libgfortranbegin.a.
13824 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
13826         PR libgomp/40174
13827         * team.c (gomp_thread_start): Destroy thr->release semaphore.
13828         (gomp_free_pool_helper): Likewise.
13830 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
13831             Jakub Jelinek  <jakub@redhat.com>
13833         PR fortran/35423
13834         * testsuite/libgomp.fortran/workshare2.f90: New test.
13836 2009-04-09  Nick Clifton  <nickc@redhat.com>
13838         * iter.c: Change copyright header to refer to version 3 of the
13839         GNU General Public License with version 3.1 of the GCC Runtime
13840         Library Exception and to point readers at the COPYING3 and
13841         COPYING3.RUNTIME files and the FSF's license web page.
13842         * alloc.c: Likewise.
13843         * barrier.c: Likewise.
13844         * config/bsd/proc.c: Likewise.
13845         * config/linux/affinity.c: Likewise.
13846         * config/linux/alpha/futex.h: Likewise.
13847         * config/linux/bar.c: Likewise.
13848         * config/linux/bar.h: Likewise.
13849         * config/linux/ia64/futex.h: Likewise.
13850         * config/linux/ia64/mutex.h: Likewise.
13851         * config/linux/lock.c: Likewise.
13852         * config/linux/mips/futex.h: Likewise.
13853         * config/linux/mutex.c: Likewise.
13854         * config/linux/mutex.h: Likewise.
13855         * config/linux/powerpc/futex.h: Likewise.
13856         * config/linux/proc.c: Likewise.
13857         * config/linux/ptrlock.c: Likewise.
13858         * config/linux/ptrlock.h: Likewise.
13859         * config/linux/s390/futex.h: Likewise.
13860         * config/linux/sem.c: Likewise.
13861         * config/linux/sem.h: Likewise.
13862         * config/linux/sparc/futex.h: Likewise.
13863         * config/linux/wait.h: Likewise.
13864         * config/linux/x86/futex.h: Likewise.
13865         * config/mingw32/proc.c: Likewise.
13866         * config/mingw32/time.c: Likewise.
13867         * config/posix/affinity.c: Likewise.
13868         * config/posix/bar.c: Likewise.
13869         * config/posix/bar.h: Likewise.
13870         * config/posix/lock.c: Likewise.
13871         * config/posix/mutex.h: Likewise.
13872         * config/posix/proc.c: Likewise.
13873         * config/posix/ptrlock.h: Likewise.
13874         * config/posix/sem.c: Likewise.
13875         * config/posix/sem.h: Likewise.
13876         * config/posix/time.c: Likewise.
13877         * config/posix95/lock.c: Likewise.
13878         * critical.c: Likewise.
13879         * env.c: Likewise.
13880         * error.c: Likewise.
13881         * fortran.c: Likewise.
13882         * iter_ull.c: Likewise.
13883         * libgomp.h: Likewise.
13884         * libgomp_f.h.in: Likewise.
13885         * libgomp_g.h: Likewise.
13886         * loop.c: Likewise.
13887         * loop_ull.c: Likewise.
13888         * omp.h.in: Likewise.
13889         * omp_lib.f90.in: Likewise.
13890         * omp_lib.h.in: Likewise.
13891         * ordered.c: Likewise.
13892         * parallel.c: Likewise.
13893         * sections.c: Likewise.
13894         * single.c: Likewise.
13895         * task.c: Likewise.
13896         * team.c: Likewise.
13897         * work.c: Likewise.
13899 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
13901         * testsuite/config/default.exp: Change copyright header to refer to
13902         version 3 of the GNU General Public License and to point readers
13903         at the COPYING3 file and the FSF's license web page.
13905 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
13907         PR middle-end/39573
13908         * libgomp.c++/pr39573.C: New test.
13910 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
13912         PR other/39591
13913         * testsuite/libgomp.c/pr39591-1.c: New test.
13914         * testsuite/libgomp.c/pr39591-2.c: New test.
13915         * testsuite/libgomp.c/pr39591-3.c: New test.
13917 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
13919         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
13920         * testsuite/libgomp.c/atomic-6.c: Ditto.
13922 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
13924         PR c/39495
13925         * testsuite/libgomp.c/loop-12.c: New test.
13926         * testsuite/libgomp.c/loop-11.c: New test.
13927         * testsuite/libgomp.c++/loop-11.C: New test.
13928         * testsuite/libgomp.c++/loop-12.C: New test.
13929         * testsuite/libgomp.c++/for-8.C: New test.
13931 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13933         * configure: Regenerate.
13935 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
13937         PR middle-end/39154
13938         * testsuite/libgomp.c/pr39154.c: New test.
13940 2009-01-30  Ian Lance Taylor  <iant@google.com>
13942         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
13943         libgomp_ld_is_gold.  Get gold version number.
13944         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
13945         * configure: Rebuild.
13947 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
13949         * testsuite/lib/libgomp.exp: Add -B option for targets that
13950         use libgfortran.a%s in their specs.
13952 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
13954         PR libgomp/38086
13955         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
13956         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
13957         HAVE_AS_SYMVER_DIRECTIVE is not defined.
13958         * configure: Regenerated.
13959         * config.h.in: Likewise.
13961 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
13963         PR c++/38650
13964         * testsuite/libgomp.c/pr38650.c: New test.
13965         * testsuite/libgomp.c++/pr38650.C: New test.
13967 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
13969         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
13971 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
13973         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
13975 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13977         * configure: Regenerate.
13979 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
13981         PR middle-end/36802
13982         * testsuite/libgomp.c/pr36802-1.c: New test.
13983         * testsuite/libgomp.c/pr36802-2.c: New test.
13984         * testsuite/libgomp.c/pr36802-3.c: New test.
13986 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
13988         PR libgomp/38270
13989         * config/linux/powerpc/mutex.h: New.
13991 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
13993         PR c++/38257
13994         * testsuite/libgomp.c++/for-7.C: New test.
13996         PR c++/38348
13997         * testsuite/libgomp.c++/for-6.C: New test.
13999 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
14001         PR testsuite/28870
14002         * testsuite/lib/libgomp.exp: Include new timeout library files.
14003         (libgomp_target_compile): Set timeout value from new proc.
14005 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
14007         PR libgomp/37938
14008         * config/linux/ia64/mutex.h: New.
14010 2008-11-04  Tobias Burnus  <burnus@net-b.de>
14012         PR libgomp/37935
14013         * libgomp.texi (Runtime library routines, environment variables):
14014         Update for OpenMP version 3.0.
14016 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
14017             Steve Ellcey  <sje@cup.hp.com>
14019         * configure: Regenerate for new libtool.
14020         * Makefile.in: Ditto.
14021         * testsuite/Makefile.in: Ditto.
14023 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
14024             Andreas Tobler  <a.tobler@schweiz.org>
14026         * config/bsd/proc.c: New file.
14027         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
14028         * configure.ac: Check for header <sys/sysctl.h>
14029         * configure: Regenerate.
14030         * config.h.in: Likewise.
14032 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
14034         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
14036 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
14038         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
14039         * Makefile.in: Regenerated.
14040         * testsuite/Makefile.in: Regenerated.
14042 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
14044         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
14045         depend on blddir if blddir exists.
14046         (libgomp_target_compile): Likewise.
14047         * testsuite/libgomp.c++/c++.exp: Likewise.
14048         * testsuite/libgomp.fortran/fortran.exp: Likewise.
14050 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14052         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
14053         Do not list GPL as Invariant Section.
14055 2008-07-28  Ilie Garbacea  <ilie@mips.com>
14056             Chao-ying Fu  <fu@mips.com>
14058         * configure.tgt: Enable futex for MIPS.
14059         * config/linux/mips/futex.h: New file.
14061 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
14063         * team.c (gomp_team_end): Free team immediately if it has
14064         just one thread.
14066 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
14068         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
14069         * testsuite/libgomp.fortran/fortran.exp: Same.
14070         * testsuite/libgomp.c/c.exp: Same.
14071         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
14072         directory to library path first.
14074 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
14076         * env.c (parse_stacksize): Add cast to avoid warning.
14077         (parse_spincount): Likewise.
14079 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
14081         * testsuite/libgomp.c/loop-10.c: New test.
14082         * libgomp.c/loop-3.c (main): Add lastprivate clause.
14083         * libgomp.c++/loop-6.C (main): Likewise.
14085         PR debug/36617
14086         * testsuite/libgomp.c/debug-1.c: New test.
14088 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
14090         * testsuite/libgomp.c/nqueens-1.c: New test.
14092         PR c++/36523
14093         * testsuite/libgomp.c++/task-7.C: New function.
14095 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14097         * configure: Regenerate.
14099 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14101         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
14102         mutex when HAVE_SYNC_BUILTINS isn't defined.
14104 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14106         * libgomp.texi (omp_test_lock): Fix typo.
14108 2008-06-12  Tobias Burnus  <burnus@net-b.de>
14110         * omp_lib.f90.in: Add "implicit none".
14112 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
14114         PR middle-end/36506
14115         * testsuite/libgomp.c/reduction-5.c: New test.
14117 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
14119         * libgomp.h (struct gomp_task): Add in_tied_task field.
14120         * task.c (gomp_init_task): Initialize it.
14121         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
14122         unconditionally.  Don't call gomp_team_barrier_wake if
14123         current task is implicit or if(0) from implicit and number of
14124         running tasks is equal to nthreads - 1.
14126         PR libgomp/36471
14127         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
14128         omp_get_team_size_8): Fix pastos.
14130         PR libgomp/36469
14131         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
14132         * configure: Regenerated.
14133         * config.h.in: Regenerated.
14134         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
14135         defined.
14137 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
14139         PR bootstrap/36452
14140         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
14141         (GOMP_loop_ull_dynamic_start): Likewise.
14142         (GOMP_loop_ull_guided_start): Likewise.
14143         (GOMP_loop_ull_ordered_static_start): Likewise.
14144         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
14145         (GOMP_loop_ull_ordered_guided_start): Likewise.
14147 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
14148             Richard Henderson  <rth@redhat.com>
14149             Ulrich Drepper  <drepper@redhat.com>
14150             Jakob Blomer  <jakob.blomer@ira.uka.de>
14152         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
14153         Substitute also OMP_*LOCK_25*.
14154         * configure: Regenerated.
14155         * config.h.in: Regenerated.
14156         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
14157         ptrlock.c and task.c.
14158         * Makefile.in: Regenerated.
14159         * testsuite/Makefile.in: Regenerated.
14160         * task.c: New file.
14161         * loop_ull.c: New file.
14162         * iter_ull.c: New file.
14163         * libgomp.h: Include ptrlock.h.
14164         (enum gomp_task_kind): New type.
14165         (struct gomp_team): Add task_lock, task_queue, task_count,
14166         task_running_count, single_count fields.  Add
14167         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
14168         Remove work_share_lock, generation_mask,
14169         oldest_live_gen, num_live_gen and init_work_shares fields, add
14170         work work_share_list_alloc, work_share_list_free and work_share_chunk
14171         fields.  Change work_shares from pointer to pointers into an array.
14172         Change ordered_release field into gomp_sem_t ** from flexible array
14173         member.  Add implicit_task and initial_work_shares fields.
14174         Move close to the end of the struct.
14175         (struct gomp_team_state): Add single_count, last_work_share,
14176         active_level and level fields, remove work_share_generation.
14177         (gomp_barrier_handle_tasks): New prototype.
14178         (gomp_finish_task): New inline function.
14179         (struct gomp_work_share): Move chunk_size, end, incr into
14180         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
14181         next_ll fields.  Reshuffle fields.  Add next_alloc,
14182         next_ws, next_free and inline_ordered_team_ids fields, change
14183         ordered_team_ids into pointer from flexible array member.
14184         Add mode field.  Put lock and next into a different cache line
14185         from most of the write-once fields.
14186         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
14187         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
14188         gomp_iter_ull_guided_next): New prototypes.
14189         (gomp_new_icv): New prototype.
14190         (struct gomp_thread): Add thread_pool and task fields.
14191         (struct gomp_thread_pool): New type.
14192         (gomp_new_team): New prototype.
14193         (gomp_team_start): Change type of last argument.
14194         (gomp_new_work_share): Removed.
14195         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
14196         (gomp_work_share_init_done): New static inline.
14197         (gomp_throttled_spin_count_var, gomp_available_cpus,
14198         gomp_managed_threads): New extern decls.
14199         (gomp_init_task): New prototype.
14200         (gomp_spin_count_var): New extern var decl.
14201         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
14202         or no alias support, or if not PIC.
14203         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
14204         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
14205         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
14206         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
14207         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
14208         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
14209         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
14210         gomp_test_nest_lock_25): New prototypes.
14211         (omp_lock_symver, strong_alias): Define.
14212         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
14213         decls.
14214         (gomp_end_task): New.
14215         (struct gomp_task_icv, gomp_global_icv): New.
14216         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
14217         (struct gomp_task): New.
14218         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
14219         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
14220         (gomp_icv): New.
14221         (gomp_schedule_type): Reorder enum to match
14222         omp_sched_t.
14223         * team.c (struct gomp_thread_start_data): Add thread_pool and task
14224         fields.
14225         (gomp_thread_start): Add gomp_team_barrier_wait call.
14226         For non-nested case remove clearing of docked thread thr fields.
14227         Use pool fields instead of global gomp_* variables.  Use
14228         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
14229         Create tasks for each member thread.
14230         (free_team): Only destroy team barrier, task_lock here and free it.
14231         (gomp_free_thread): Free last_team if non-NULL.
14232         (gomp_team_end): Call gomp_team_barrier_wait instead of
14233         gomp_barrier_wait.  For nested case call one extra
14234         gomp_barrier_wait.  Move here some destruction from free_team.
14235         Call free_team on pool->last_team if any, rather than freeing
14236         current team.  Destroy work_share_list_free_lock ifndef
14237         HAVE_SYNC_BUILTINS.
14238         (gomp_new_icv): New function.
14239         (gomp_threads, gomp_threads_size, gomp_threads_used,
14240         gomp_threads_dock): Removed.
14241         (gomp_thread_destructor): New variable.
14242         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
14243         functions.
14244         (gomp_team_start): Create new pool if current thread doesn't have
14245         one.  Use pool fields instead of global gomp_* variables.
14246         Initialize thread_pool field for new threads.  Clear single_count.
14247         Change last argument from ws to team, don't create
14248         new team, set ts.work_share to &team->work_shares[0] and clear
14249         ts.last_work_share.  Don't clear ts.work_share_generation.
14250         If number of threads changed, adjust atomically gomp_managed_threads.
14251         Use gomp_init_task instead of gomp_new_task,
14252         set thr->task to the corresponding implicit_task array entry.
14253         Create tasks for each member thread.  Initialize ts.level.
14254         (initialize_team): Call pthread_key_create on
14255         gomp_thread_destructor.
14256         (team_destructor): New function.
14257         (new_team): Removed.
14258         (gomp_new_team): New function.
14259         (free_team): Free gomp_work_share blocks chained through next_alloc,
14260         instead of freeing work_shares and destroying work_share_lock.
14261         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
14262         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
14263         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
14264         of gomp_barrier_wait.
14265         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
14266         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
14267         if gomp_work_share_start returned true.  Don't unlock ws->lock.
14268         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
14269         of gomp_barrier_wait.
14270         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
14271         gomp_work_share_init_done if gomp_work_share_start returned true.
14272         Don't unlock ws->lock.
14273         * work.c: Include stddef.h.
14274         (free_work_share): Use work_share_list_free_lock instead
14275         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
14276         Call gomp_fini_work_share and then either free ws if orphaned, or
14277         put it into work_share_list_free list of the current team.
14278         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
14279         functions.
14280         (gomp_work_share_start, gomp_work_share_end,
14281         gomp_work_share_end_nowait): Rewritten.
14282         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
14283         (openmp_version): Set to 200805.
14284         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
14285         omp_sched_guided, omp_sched_auto): New parameters.
14286         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14287         omp_set_max_active_levels, omp_get_max_active_levels,
14288         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14289         omp_get_active_level): New interfaces.
14290         * omp_lib.h.in (openmp_version): Set to 200805.
14291         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
14292         omp_sched_guided, omp_sched_auto): New parameters.
14293         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14294         omp_set_max_active_levels, omp_get_max_active_levels,
14295         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14296         omp_get_active_level): New externals.
14297         * loop.c: Include limits.h.
14298         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
14299         GFS_AUTO.
14300         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
14301         Likewise.  Use gomp_icv.
14302         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
14303         ts.static_trip here.
14304         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
14305         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
14306         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
14307         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
14308         don't unlock ws->lock, otherwise lock it.
14309         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
14310         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
14311         (gomp_parallel_loop_start): Call gomp_new_team instead of
14312         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
14313         Adjust gomp_team_start caller.  Pass 0 as second argument to
14314         gomp_resolve_num_threads.
14315         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
14316         If adding ws->chunk_size nthreads + 1 times after end won't
14317         overflow, set ws->mode to 1.
14318         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
14319         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
14320         GOMP_loop_ull_ordered_static_start,
14321         GOMP_loop_ull_ordered_dynamic_start,
14322         GOMP_loop_ull_ordered_guided_start,
14323         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
14324         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
14325         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
14326         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
14327         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
14328         prototypes.
14329         * libgomp.map: Export lock routines also @@OMP_2.0.
14330         (GOMP_loop_ordered_dynamic_first,
14331         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
14332         GOMP_loop_ordered_static_first): Remove.
14333         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
14334         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
14335         GOMP_loop_ull_ordered_dynamic_next,
14336         GOMP_loop_ull_ordered_dynamic_start,
14337         GOMP_loop_ull_ordered_guided_next,
14338         GOMP_loop_ull_ordered_guided_start,
14339         GOMP_loop_ull_ordered_runtime_next,
14340         GOMP_loop_ull_ordered_runtime_start,
14341         GOMP_loop_ull_ordered_static_next,
14342         GOMP_loop_ull_ordered_static_start,
14343         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
14344         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
14345         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
14346         (omp_set_schedule, omp_get_schedule,
14347         omp_get_thread_limit, omp_set_max_active_levels,
14348         omp_get_max_active_levels, omp_get_level,
14349         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
14350         omp_set_schedule_, omp_set_schedule_8_,
14351         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
14352         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
14353         omp_get_max_active_levels_, omp_get_level_,
14354         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
14355         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
14356         New exports @@OMP_3.0.
14357         * omp.h.in (omp_sched_t): New type.
14358         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14359         omp_set_max_active_levels, omp_get_max_active_levels,
14360         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14361         omp_get_active_level): New prototypes.
14362         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
14363         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
14364         gomp_thread_limit_var, gomp_remaining_threads_count,
14365         gomp_remaining_threads_lock): New variables.
14366         (parse_spincount): New function.
14367         (initialize_env): Call gomp_init_num_threads unconditionally.
14368         Initialize gomp_available_cpus.  Call parse_spincount,
14369         initialize gomp_{,throttled_}spin_count_var
14370         depending on presence and value of OMP_WAIT_POLICY and
14371         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
14372         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
14373         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
14374         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
14375         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
14376         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
14377         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
14378         (gomp_global_icv): New.
14379         (parse_schedule): Use it.  Parse "auto".
14380         (omp_set_num_threads): Use gomp_icv.
14381         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
14382         Likewise.
14383         (omp_get_max_threads): Move from parallel.c.
14384         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14385         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
14386         add ialias.
14387         (parse_stacksize, parse_wait_policy): New functions.
14388         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
14389         both wrappers for compatibility and new locks.
14390         (omp_set_schedule, omp_get_schedule,
14391         omp_get_thread_limit, omp_set_max_active_levels,
14392         omp_get_max_active_levels, omp_get_level,
14393         omp_get_ancestor_thread_num, omp_get_team_size,
14394         omp_get_active_level): New ialias_redirect.
14395         (omp_set_schedule_, omp_set_schedule_8_,
14396         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
14397         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
14398         omp_get_max_active_levels_, omp_get_level_,
14399         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
14400         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
14401         New functions.
14402         * parallel.c: Include limits.h.
14403         (gomp_resolve_num_threads): Add count argument.  Rewritten.
14404         (GOMP_parallel_start): Call gomp_new_team and pass that as last
14405         argument to gomp_team_start.  Pass 0 as second argument to
14406         gomp_resolve_num_threads.
14407         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
14408         if gomp_thread_limit_var != ULONG_MAX.
14409         (omp_in_parallel): Implement using ts.active_level.
14410         (omp_get_max_threads): Move to env.c.
14411         (omp_get_level, omp_get_ancestor_thread_num,
14412         omp_get_team_size, omp_get_active_level): New functions,
14413         add ialias.
14414         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
14415         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
14416         gomp_iter_dynamic_next instead of the _locked variant and don't take
14417         lock around it, otherwise acquire it before calling
14418         gomp_iter_dynamic_next_locked.
14419         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
14420         gomp_iter_dynamic_next instead of the _locked variant and don't take
14421         lock around it.
14422         (GOMP_parallel_sections_start): Call gomp_new_team instead of
14423         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
14424         Adjust gomp_team_start caller.  Pass count as second argument to
14425         gomp_resolve_num_threads, don't adjust num_threads after the call.
14426         Use gomp_icv.
14427         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
14428         ws->chunk_size by incr.
14429         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
14430         code.
14431         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
14432         types.
14433         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
14434         (omp_check_defines): Check even the compat defines.
14435         * config/linux/ptrlock.c: New file.
14436         * config/linux/ptrlock.h: New file.
14437         * config/linux/wait.h: New file.
14438         * config/posix/ptrlock.c: New file.
14439         * config/posix/ptrlock.h: New file.
14440         * config/linux/bar.h (gomp_team_barrier_wait,
14441         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14442         (gomp_team_barrier_set_task_pending,
14443         gomp_team_barrier_clear_task_pending,
14444         gomp_team_barrier_set_waiting_for_tasks,
14445         gomp_team_barrier_waiting_for_tasks,
14446         gomp_team_barrier_done): New inlines.
14447         (gomp_barrier_t): Rewritten.
14448         (gomp_barrier_state_t): New typedef.
14449         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
14450         gomp_barrier_wait_start): Rewritten.
14451         (gomp_barrier_wait_end): Change second argument to
14452         gomp_barrier_state_t.
14453         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14454         inlines.
14455         * config/linux/bar.c: Include wait.h instead of libgomp.h and
14456         futex.h.
14457         (gomp_barrier_wait_end): Rewritten.
14458         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14459         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
14460         * config/posix/bar.h (gomp_barrier_t): Add generation field.
14461         (gomp_barrier_state_t): New typedef.
14462         (gomp_team_barrier_wait,
14463         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14464         (gomp_barrier_wait_start): Or all but low 2 bits from generation
14465         into the return value.  Return gomp_barrier_state_t.
14466         (gomp_team_barrier_set_task_pending,
14467         gomp_team_barrier_clear_task_pending,
14468         gomp_team_barrier_set_waiting_for_tasks,
14469         gomp_team_barrier_waiting_for_tasks,
14470         gomp_team_barrier_done): New inlines.
14471         (gomp_barrier_wait_end): Change second argument to
14472         gomp_barrier_state_t.
14473         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14474         inlines.
14475         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
14476         (gomp_barrier_wait_end): Change second argument to
14477         gomp_barrier_state_t.
14478         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14479         gomp_team_barrier_wake): New functions.
14480         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
14481         futex.h.
14482         (gomp_futex_wake, gomp_futex_wait): New variables.
14483         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
14484         * config/linux/lock.c: Rewrite to make locks task owned,
14485         for backwards compatibility provide the old entrypoints
14486         if symbol versioning.  Include wait.h instead of libgomp.h and
14487         futex.h.
14488         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
14489         * config/posix95/lock.c: Rewrite to make locks task owned,
14490         for backwards compatibility provide the old entrypoints
14491         if symbol versioning.
14492         * config/posix/lock.c: Rewrite to make locks task owned,
14493         for backwards compatibility provide the old entrypoints
14494         if symbol versioning.
14495         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
14496         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
14497         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
14498         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14499         (sys_futex0): Return error code.
14500         (futex_wake, futex_wait): If ENOSYS was returned, clear
14501         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14502         (cpu_relax, atomic_write_barrier): New static inlines.
14503         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14504         (futex_wake, futex_wait): If ENOSYS was returned, clear
14505         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14506         (cpu_relax, atomic_write_barrier): New static inlines.
14507         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14508         (sys_futex0): Return error code.
14509         (futex_wake, futex_wait): If ENOSYS was returned, clear
14510         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14511         (cpu_relax, atomic_write_barrier): New static inlines.
14512         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14513         (sys_futex0): Return error code.
14514         (futex_wake, futex_wait): If ENOSYS was returned, clear
14515         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14516         (cpu_relax, atomic_write_barrier): New static inlines.
14517         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14518         (sys_futex0): Return error code.
14519         (futex_wake, futex_wait): If ENOSYS was returned, clear
14520         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14521         (cpu_relax, atomic_write_barrier): New static inlines.
14522         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14523         (sys_futex0): Return error code.
14524         (futex_wake, futex_wait): If ENOSYS was returned, clear
14525         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14526         (cpu_relax, atomic_write_barrier): New static inlines.
14527         * config/linux/sem.c: Include wait.h instead of libgomp.h and
14528         futex.h.
14529         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
14530         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
14531         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
14532         types.
14533         (omp_nest_lock_t): Change owner into void *, add lock field.
14534         * config/posix95/omp-lock.h: Include semaphore.h.
14535         (omp_lock_25_t, omp_nest_lock_25_t): New types.
14536         (omp_lock_t): Use sem_t instead of mutex if semaphores
14537         aren't broken.
14538         (omp_nest_lock_t): Likewise.  Change owner to void *.
14539         * config/posix/omp-lock.h: Include semaphore.h.
14540         (omp_lock_25_t, omp_nest_lock_25_t): New types.
14541         (omp_lock_t): Use sem_t instead of mutex if semaphores
14542         aren't broken.
14543         (omp_nest_lock_t): Likewise.  Add owner field.
14545 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
14547         * testsuite/libgomp.c/collapse-1.c: New test.
14548         * testsuite/libgomp.c/collapse-2.c: New test.
14549         * testsuite/libgomp.c/collapse-3.c: New test.
14550         * testsuite/libgomp.c/icv-1.c: New test.
14551         * testsuite/libgomp.c/icv-2.c: New test.
14552         * testsuite/libgomp.c/lib-2.c: New test.
14553         * testsuite/libgomp.c/lock-1.c: New test.
14554         * testsuite/libgomp.c/lock-2.c: New test.
14555         * testsuite/libgomp.c/lock-3.c: New test.
14556         * testsuite/libgomp.c/loop-4.c: New test.
14557         * testsuite/libgomp.c/loop-5.c: New test.
14558         * testsuite/libgomp.c/loop-6.c: New test.
14559         * testsuite/libgomp.c/loop-7.c: New test.
14560         * testsuite/libgomp.c/loop-8.c: New test.
14561         * testsuite/libgomp.c/loop-9.c: New test.
14562         * testsuite/libgomp.c/nested-3.c: New test.
14563         * testsuite/libgomp.c/nestedfn-6.c: New test.
14564         * testsuite/libgomp.c/sort-1.c: New test.
14565         * testsuite/libgomp.c/task-1.c: New test.
14566         * testsuite/libgomp.c/task-2.c: New test.
14567         * testsuite/libgomp.c/task-3.c: New test.
14568         * testsuite/libgomp.c/task-4.c: New test.
14569         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
14570         to C++ testsuite default compiler options.
14571         * testsuite/libgomp.c++/collapse-1.C: New test.
14572         * testsuite/libgomp.c++/collapse-2.C: New test.
14573         * testsuite/libgomp.c++/ctor-10.C: New test.
14574         * testsuite/libgomp.c++/for-1.C: New test.
14575         * testsuite/libgomp.c++/for-2.C: New test.
14576         * testsuite/libgomp.c++/for-3.C: New test.
14577         * testsuite/libgomp.c++/for-4.C: New test.
14578         * testsuite/libgomp.c++/for-5.C: New test.
14579         * testsuite/libgomp.c++/loop-8.C: New test.
14580         * testsuite/libgomp.c++/loop-9.C: New test.
14581         * testsuite/libgomp.c++/loop-10.C: New test.
14582         * testsuite/libgomp.c++/task-1.C: New test.
14583         * testsuite/libgomp.c++/task-2.C: New test.
14584         * testsuite/libgomp.c++/task-3.C: New test.
14585         * testsuite/libgomp.c++/task-4.C: New test.
14586         * testsuite/libgomp.c++/task-5.C: New test.
14587         * testsuite/libgomp.c++/task-6.C: New test.
14588         * testsuite/libgomp.fortran/allocatable1.f90: New test.
14589         * testsuite/libgomp.fortran/allocatable2.f90: New test.
14590         * testsuite/libgomp.fortran/allocatable3.f90: New test.
14591         * testsuite/libgomp.fortran/allocatable4.f90: New test.
14592         * testsuite/libgomp.fortran/collapse1.f90: New test.
14593         * testsuite/libgomp.fortran/collapse2.f90: New test.
14594         * testsuite/libgomp.fortran/collapse3.f90: New test.
14595         * testsuite/libgomp.fortran/collapse4.f90: New test.
14596         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
14597         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
14598         * testsuite/libgomp.fortran/lib4.f90: New test.
14599         * testsuite/libgomp.fortran/lock-1.f90: New test.
14600         * testsuite/libgomp.fortran/lock-2.f90: New test.
14601         * testsuite/libgomp.fortran/nested1.f90: New test.
14602         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
14603         * testsuite/libgomp.fortran/strassen.f90: New test.
14604         * testsuite/libgomp.fortran/tabs1.f90: New test.
14605         * testsuite/libgomp.fortran/tabs2.f: New test.
14606         * testsuite/libgomp.fortran/task1.f90: New test.
14607         * testsuite/libgomp.fortran/task2.f90: New test.
14608         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
14609         * testsuite/libgomp.fortran/vla5.f90: Likewise.
14610         * testsuite/libgomp.c/pr26943-2.c: Likewise.
14611         * testsuite/libgomp.c/pr26943-3.c: Likewise.
14612         * testsuite/libgomp.c/pr26943-4.c: Likewise.
14614 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
14616         PR c++/36308
14617         * testsuite/libgomp.c++/ctor-11.C: New test.
14618         * testsuite/libgomp.c++/ctor-12.C: New test.
14620 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
14622         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
14624 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
14626         PR middle-end/36106
14627         * testsuite/libgomp.c/atomic-5.c: New test.
14628         * testsuite/libgomp.c/atomic-6.c: New test.
14629         * testsuite/libgomp.c/autopar-1.c: New test.
14631 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14633         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
14634         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
14635         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
14636         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
14637         * configure: Regenerate.
14638         * Makefile.in, testsuite/Makefile.in: Likewise.
14640 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
14642         PR bootstrap/35457
14643         * aclocal.m4: Regenerate.
14644         * configure: Regenerate.
14646 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
14648         PR middle-end/35611
14649         * testsuite/libgomp.c/atomic-4.c: New test.
14651         PR libgomp/35625
14652         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
14653         (gomp_iter_guided_next): Likewise.
14654         * testsuite/libgomp.c/pr35625.c: New test.
14656 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14658         * aclocal.m4: Regenerate.
14659         * configure: Likewise.
14660         * Makefile.in: Likewise.
14661         * testsuite/Makefile.in: Likewise.
14663 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
14665         PR middle-end/35185
14666         * testsuite/libgomp.c++/pr35185.C: New test.
14668 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
14670         PR middle-end/35549
14671         * testsuite/libgomp.c/pr35549.c: New test.
14673 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
14675         * testsuite/libgomp.c/atomic-3.c: New test.
14677 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14679         PR fortran/33197
14680         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
14681         .F08 file suffixes.
14683 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
14685         PR libgomp/33131
14686         * configure.ac: Add ACX_HEADER_STRING.
14687         * env.c: Include strings.h.
14688         * aclocal.m4: Regenerate.
14689         * config.h.in: Regenerate.
14690         * configure: Regenerate.
14691         * Makefile.in: Regenerate.
14692         * testsuite/Makefile.in: Regenerate.
14694 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
14696         PR middle-end/35196
14697         * testsuite/libgomp.c/pr35196.c: New test.
14699         PR middle-end/35130
14700         * testsuite/libgomp.fortran/pr35130.f90: New test.
14701         * testsuite/libgomp.c/pr35130.c: New test.
14703 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
14705         PR middle-end/33880
14706         * testsuite/libgomp.c/pr33880.c: New test.
14707         * testsuite/libgomp.fortran/pr33880.f90: New test.
14709 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
14711         * configure: Regenerate.
14713 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
14715         * configure.ac: Move futex checking into ../config/futex.m4.
14716         * configure: Rebuilt.
14717         * aclocal.m4: Rebuilt.
14718         * Makefile.in: Rebuilt.
14720         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
14721         2007-10-15 ../config/tls.m4 change.
14723 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
14725         PR c++/34513
14726         * testsuite/libgomp.c/pr34513.c: New test.
14727         * testsuite/libgomp.c++/pr34513.C: New test.
14729 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
14731         PR target/32765
14732         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
14734 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
14736         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
14738 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
14740         * testsuite/libgomp.c/private-1.c: New test.
14742 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
14743             Paolo Bonzini  <bonzini@gnu.org>
14745         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
14746         instead of 'VPATH ='.
14747         * Makefile.in: Regenerate.
14749 2007-11-23  Matthias Klose  <doko@ubuntu.com>
14751         * configure.ac: Adjust makeinfo version check.
14752         * configure: Regenerate.
14754 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
14756         PR fortran/34020
14757         * testsuite/libgomp.fortran/pr34020.f90: New test.
14759 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
14761         PR c++/33894
14762         * testsuite/libgomp.c++/atomic-1.C: New test.
14764 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
14766         PR libgomp/33275
14767         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
14768         Make x and y integers rather than (implicit) reals.  Add private (j)
14769         clause to the last omp parallel.
14771 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
14773         * configure: Regenerate following changes to ../config/tls.m4.
14775 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
14777         * testsuite/libgomp.fortran/stack.f90: New test.
14779 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
14781         * config/mingw32/proc.c: New file.
14783 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
14785         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
14786         (main): Use __get_cpuid to get i386 target fetaures.
14787         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
14788         (main): Use __get_cpuid to get x86_64 target fetaures.
14790 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
14792         PR target/32765
14793         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
14794         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
14796 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
14798         PR fortran/32550
14799         * testsuite/libgomp.fortran/pr32550.f90: New test.
14800         * testsuite/libgomp.fortran/crayptr2.f90: New test.
14802 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
14804         * aclocal.m4: Regenerated.
14806 2007-07-05  Tobias Burnus  <burnus@net-b.de>
14808         PR fortran/32359
14809         * testsuite/libgomp.fortran/pr32359.f90: New.
14811 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
14813         PR libgomp/32468
14814         * sections.c (GOMP_parallel_sections_start): Only decrease
14815         number of threads to COUNT if dyn_var is true.
14816         * testsuite/libgomp.c/pr32468.c: New test.
14818 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14820         PR libgomp/26308
14821         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
14823 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
14825         PR middle-end/32362
14826         * testsuite/libgomp.c/pr32362-1.c: New test.
14827         * testsuite/libgomp.c/pr32362-2.c: New test.
14828         * testsuite/libgomp.c/pr32362-3.c: New test.
14830 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
14832         * team.c (gomp_team_start): Fix setting up thread_attr
14833         stack size.
14835 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
14837         * configure: Regenerate.
14839 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
14841         * Makefile.in: Regenerate.
14842         * configure: Regenerate.
14843         * aclocal.m4: Regenerate.
14844         * testsuite/Makefile.in: Regenerate.
14846 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
14848         * config/linux/proc.c: New file.
14850         PR libgomp/28482
14851         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
14853 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
14855         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
14857 2007-04-16  Matthias Klose  <doko@debian.org>
14859         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
14860         flags if not building with -m64.
14861         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
14862         flag for i?86-*-* targets, if current target matches -m64.
14864 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
14866         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
14867         * Makefile.in: Regenerate.
14869 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14871         PR testsuite/31369
14872         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
14873         ld_library_path.
14874         * testsuite/libgomp.fortran/fortran.exp: Likewise.
14876 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
14878         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
14879         decls.
14880         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
14881         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
14882         (parse_affinity): New function.
14883         (initialize_env): Call it and gomp_init_affinity.
14884         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
14885         create new pthread_attr_t and call gomp_init_thread_affinity
14886         on it for each thread before passing the attribute to pthread_create.
14887         * config/linux/affinity.c: New file.
14888         * config/posix/affinity.c: New file.
14889         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
14890         * configure: Rebuilt.
14891         * config.h.in: Rebuilt.
14892         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
14893         * Makefile.in: Rebuilt.
14895 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
14897         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
14898         *-*-darwin*.
14899         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
14900         and use it if found.
14902 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
14904         * testsuite/config/default.exp: New file.
14905         * testsuite/lib/libgomp.exp: New file.
14906         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
14907         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
14908         load_lib *, load_gcc_lib *): Move to libgomp.exp.
14909         (libgomp_load): Remove.
14910         * testsuite/lib/libgomp.exp (libgomp_init): Compute
14911         always_ld_library_path, not ld_library_path.  Set additional_flags
14912         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
14913         (target_compile): Do not call libgomp_init.  Append lang_library_path
14914         and lang_link_flags to options.
14915         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
14916         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
14917         here.
14918         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
14919         always_ld_library_path.  Set LD_LIBRARY_PATH here.
14920         * testsuite/libgomp.fortran/fortran.exp: Ditto.
14921         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
14922         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
14923         CX8 flag.
14924         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
14925         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
14926         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
14927         * testsuite/libgomp.c/pr29947-1.c: Ditto.
14928         * testsuite/libgomp.c/atomic-10.c: Ditto.
14930 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
14932         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
14933         dg-final cleanup-modules line.
14934         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
14935         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
14936         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
14937         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
14938         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
14939         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
14940         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
14942 2007-03-18  Andreas Schwab  <schwab@suse.de>
14944         * acinclude.m4: Adjust regular expression for ld version
14945         extraction.
14946         * configure: Regenerate.
14948 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
14950         * Makefile.am: Add install-pdf target as copied from
14951         automake v1.10 rules.
14952         * Makefile.in: Regenerate
14954 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
14956         PR libgomp/28486
14957         * configure: Regenerate.
14959         PR c++/30703
14960         * testsuite/libgomp.c++/pr30703.C: New test.
14962 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
14964         Revert:
14965         2006-07-05  Eric Christopher  <echristo@apple.com>
14966         * configure.ac: Depend addition of -pthread on host OS.
14967         * configure: Regenerate.
14969 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14971         * libgomp.texi: Fix spacing after abbreviations.
14973 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
14975         PR libgomp/30546
14976         * configure.ac: Add check for makeinfo
14977         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
14978         if an appropriate version of makeinfo is found.
14979         * aclocal.m4: Regenerated.
14980         * configure: Regenerated.
14981         * Makefile.in: Regenerated.
14982         * testsuite/Makefile.in: Regenerated.
14984 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
14986         PR libgomp/30540
14987         * libgomp.texi: More about implementation-dependent settings.
14989 2007-01-26  Tobias Burnus  <burnus@net-b.de>
14991         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
14993 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
14995         PR middle-end/30494
14996         * testsuite/libgomp.c/pr30494.c: New test.
14998 2007-01-15  Tom Tromey  <tromey@redhat.com>
15000         * configure: Rebuilt.
15001         * configure.ac: Fixed comment.
15003 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
15005         * libgomp.texi: Document implementation specific default values of
15006         environment variables.
15008 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
15010         PR libgomp/28209
15011         * libgomp.texi: New file.
15012         * configure.ac: Add --enable-generated-files-in-srcdir option.
15013         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
15014         files to srcdir.
15015         * Makefile.in: Regenerated.
15016         * config.h.in: Regenerated.
15017         * testsuite/Makefile.in: Regenerated.
15018         * NOTES: Removed.
15020 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
15022         PR libgomp/29949
15023         * env.c (omp_set_num_threads): Set illegal thread count to 1.
15025 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
15027         * configure: Regenerate.
15029 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
15031         PR libgomp/29947
15032         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
15033         start if there shouldn't be any loop iterations.
15034         (gomp_loop_ordered_static_start): Remove start == end test.
15035         * testsuite/libgomp.c/pr29947-1.c: New test.
15036         * testsuite/libgomp.c/pr29947-2.c: New test.
15038 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
15040         * configure.tgt: Force initial-exec TLS model on Linux only.
15042 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
15044         * configure: Regenerated.
15046 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
15048         * env.c (parse_schedule): Reject out of range values.
15049         (parse_unsigned_long): Reject out of range, negative or zero values.
15051 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
15053         PR fortran/29629
15054         * testsuite/libgomp.fortran/pr29629.f90: New test.
15056 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
15058         PR libgomp/29494
15059         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
15060         * config/posix95: New directory.
15061         * config/posix95/omp-lock.h: New file.
15062         * config/posix95/lock.c: Likewise.
15064 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
15066         * aclocal.m4: Regenerate.
15067         * configure: Regenerate.
15069 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
15071         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
15072         '<' to '<='.
15074 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
15076         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
15077         test.
15078         * configure: Regenerate.
15079         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
15081 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
15083         PR middle-end/25261
15084         PR middle-end/28790
15085         * testsuite/libgomp.c/nestedfn-4.c: New test.
15086         * testsuite/libgomp.c/nestedfn-5.c: New test.
15087         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
15089         PR fortran/29097
15090         * testsuite/libgomp.fortran/condinc1.f: New test.
15091         * testsuite/libgomp.fortran/condinc2.f: New test.
15092         * testsuite/libgomp.fortran/condinc3.f90: New test.
15093         * testsuite/libgomp.fortran/condinc4.f90: New test.
15094         * testsuite/libgomp.fortran/condinc1.inc: New file.
15096 2006-09-18  Tom Tromey  <tromey@redhat.com>
15098         * configure: Rebuilt.
15100 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
15102         PR c/28768
15103         PR preprocessor/14634
15104         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
15105         to AC_DEFINE.
15106         * configure: Regenerate.
15108 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
15110         * testsuite/libgomp.fortran/reduction3.f90: Change
15111         -2147483648 to -huge(i)-1 to avoid overflow.
15112         * testsuite/libgomp.fortran/reduction4.f90: Change
15113         Z'ffffffff' to not(0) to avoid overflow.
15115 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
15117         PR libgomp/25938
15118         * Makefile.am (libsubincludedir): New.
15119         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
15120         * Makefile.in: Regenerate.
15122 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
15124         PR libgomp/28725
15125         * env.c: Include ctype.h.
15126         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
15127         leading and/or trailing whitespace and compare strings case
15128         insensitively.
15130 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
15132         PR fortran/28390
15133         * testsuite/libgomp.fortran/pr28390.f: New test.
15135 2006-07-05  Eric Christopher  <echristo@apple.com>
15137         * configure.ac: Depend addition of -pthread on host OS.
15138         * configure: Regenerate.
15140 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
15142         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
15143         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
15144         defined.
15146 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
15148         PR libgomp/26175
15149         PR libgomp/26477
15150         * configure.ac: If neither --enable-linux-futex nor
15151         --disable-linux-futex is passed, determine the default by checking
15152         for compiling and/or running against NPTL.  With --enable-linux-futex,
15153         check if SYS_gettid and SYS_futex are defined.
15154         * configure: Rebuilt.
15156 2006-06-14  Richard Henderson  <rth@redhat.com>
15158         PR libgomp/28008
15159         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
15160         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
15162 2006-06-09  Richard Henderson  <rth@redhat.com>
15164         * env.c (gomp_nthreads_var): Change to unsigned long.
15165         (gomp_run_sched_chunk): Likewise.
15166         (parse_unsigned_long): Rename from parse_num_threads and generalize.
15167         (initialize_env): Initialize gomp_thread_attr.
15168         * libgomp.h (gomp_nthreads_var): Update decl.
15169         (gomp_run_sched_chunk): Likewise.
15170         (gomp_thread_attr): Declare.
15171         * team.c (gomp_thread_attr): Export.
15172         (initialize_team): Don't initialize it.
15174 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
15176         PR fortran/27916
15177         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
15178         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
15180 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
15182         * config/mingw32/time.c: New file.
15183         * configure.tgt: Use it.
15185 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
15187         * Makefile.am: Add install-html target. Add install-html to .PHONY
15188         * Makefile.in: Regenerate.
15190 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15192         PR libgomp/27612
15193         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
15194         * testsuite/libgomp.c/critical-1.c: Likewise.
15195         * testsuite/libgomp.c/loop-1.c: Likewise.
15196         * testsuite/libgomp.c/loop-2.c: Likewise.
15197         * testsuite/libgomp.c/single-1.c: Likewise.
15198         * testsuite/libgomp.c/ordered-1.c: Likewise.
15199         * testsuite/libgomp.c/ordered-2.c: Likewise.
15201 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
15203         PR middle-end/27416
15204         * libgomp.fortran/pr27416-1.f90: New test.
15206 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
15208         PR fortran/27395
15209         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
15210         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
15212 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
15214         PR c++/26943
15215         * testsuite/libgomp.c/pr26943-1.c: New test.
15216         * testsuite/libgomp.c/pr26943-2.c: New test.
15217         * testsuite/libgomp.c/pr26943-3.c: New test.
15218         * testsuite/libgomp.c/pr26943-4.c: New test.
15219         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
15220         * testsuite/libgomp.c++/pr26943.C: New test.
15222 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
15224         PR middle-end/27337
15225         * testsuite/libgomp.c++/pr27337.C: New test.
15227 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
15229         PR c/26171
15230         * testsuite/libgomp.c/pr26171.c: New test.
15232 2006-04-25  Richard Henderson  <rth@redhat.com>
15234         PR libgomp/25865
15235         * configure.ac: Use GCC_CHECK_TLS.
15236         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
15237         * Makefile.in, aclocal.m4, configure: Regenerate.
15239 2006-04-10  Matthias Klose  <doko@debian.org>
15241         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
15242         directory names containing underscores.
15244 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
15246         PR c++/26691
15247         * testsuite/libgomp.c++/pr26691.C: New test.
15249 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
15251         * testsuite/libgomp.fortran/retval2.f90: New test.
15253 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
15255         * testsuite/libgomp.c++: New directory.
15257 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
15259         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
15260         * config/posix/sem.c: Implement the above.
15262 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
15264         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
15265         define HAVE_BROKEN_POSIX_SEMAPHORES.
15266         * configure: Rebuilt.
15267         * config.h.in: Rebuilt.
15269 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
15271         PR bootstrap/26161
15272         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
15273         for the other pthread check.
15274         * configure: Regenerate.
15275         * config.h.in: Regenerate.
15277 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
15279         PR libgomp/25938
15280         PR libgomp/25984
15281         * Makefile.am (fincludedir): New variable.
15282         (nodist_include_HEADERS): Remove Fortran files.
15283         (nodist_finclude_HEADERS): New variable.
15284         * Makefile.in: Regenerated.
15286 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
15288         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
15289         Remove tests for returning assumed character length arrays.
15291 2006-02-12  Roger Sayle  <roger@eyesopen.com>
15292             John David Anglin  <dave@hiauly1.hia.nrc.ca>
15294         PR libgomp/25936
15295         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
15297 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
15299         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
15301 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
15303         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
15304         part of LD_LIBRARY_PATH manually.
15306 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
15308         PR libgomp/25852
15309         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
15310         libgomp_init.
15312 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
15314         PR libgomp/25884
15315         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
15316         * configure.ac (PERL): Don't set.
15317         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
15318         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
15319         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
15320         * omp.h.in: Wrap the new configure substitutions with @ characters.
15321         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
15322         * aclocal.m4, configure, Makefile.in: Regenerate.
15323         * mkomp_h.pl: Delete.
15325 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
15327         PR libgomp/25259
15328         * configure.ac: Use GCC_HEADER_STDINT.
15329         * libgomp.h: Include gstdint.h.
15330         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
15331         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
15333 2006-01-24  Richard Henderson  <rth@redhat.com>
15335         PR libgomp/25942
15336         * configure.ac: Add AM_MAINTAINER_MODE.
15337         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
15339 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
15341         * Makefile.in: Regenerate.
15342         * testsuite/Makefile.in: Regenerate.
15343         * aclocal.m4: Regenerate.
15345 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
15347         * config/posix/proc.c: Conditional include of sys/loadavg.h for
15348         Solaris.
15349         * configure.ac: Add check for loadavg.h.
15350         (link_gomp): Adjust comment.
15351         * configure: Regenerate.
15352         * config.h.in: Regenerate.
15354 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
15356         PR libgomp/25877
15357         * configure.ac: Remove check for alloca.h.
15358         * configure: Regenerate.
15359         * config.h.in: Regenerate.
15360         * libgomp.h: define gomp_alloca to be __builtin_alloca.
15361         * team.c: Remove use of alloca.h.
15362         Call gomp_alloca instead of alloca.
15364 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
15366         PR libgomp/25877
15367         * team.c: Add include of alloca.h.
15368         * configure.ac: Add check for alloca.h.
15369         * configure: Regenerate.
15370         * config.h.in: Regenerate.
15372 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
15374         PR fortran/25219
15375         * testsuite/libgomp.fortran/pr25219.f90: New test.
15377 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
15379         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
15380         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
15381         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
15382         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
15383         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
15384         testsuite/libgomp.fortran/threadprivate1.f90,
15385         testsuite/libgomp.fortran/threadprivate2.f90,
15386         testsuite/libgomp.fortran/threadprivate3.f90,
15387         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
15388         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
15389         testsuite/libgomp.fortran/omp_parse3.f90: Change required
15390         effective-target to TLS runtime.
15392         * testsuite/libgomp.fortran/pr25162.f: Require
15393         effective-target TLS runtime.
15395 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
15397         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
15398         * testsuite/libgomp.c/nestedfn-3.c: New test.
15400 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
15402         PR fortran/25162
15403         * testsuite/libgomp.fortran/pr25162.f: New test.
15405 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
15407         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
15408         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
15410 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
15412         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
15413         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
15414         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
15415         single.c, team.c, work.c, config/linux/alpha/futex.h,
15416         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
15417         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
15418         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
15419         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
15420         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
15421         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
15422         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
15423         FSF address.
15425 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
15427         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
15428         to nodist_noinst_HEADERS.
15429         * Makefile.in: Rebuilt.
15431         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
15432         add integer count field.
15433         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
15434         omp_nest_lock_t type change.
15435         (omp_init_nest_lock): Likewise.  Initialize count to 0.
15436         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
15437         Increment count.
15438         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
15439         Decrement count.
15440         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
15441         Increment count if successful and return the new nesting level.
15442         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
15443         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
15444         * testsuite/libgomp.c/lib-1.c: New test.
15445         * testsuite/libgomp.fortran/lib1.f90: New test.
15446         * testsuite/libgomp.fortran/lib2.f: New test.
15447         * testsuite/libgomp.fortran/lib3.f: New test.
15449 2005-11-17  Richard Henderson  <rth@redhat.com>
15451         PR 24845
15452         * Makefile.am (nodist_toolexeclib_HEADERS): New.
15453         * configure.ac (link_gomp): New.  Substitute it.
15454         (AC_CONFIG_FILES): Add libgomp.spec.
15455         * libgomp.spec.in: New file.
15456         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
15457         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
15459 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
15461         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
15462         reduction(-:var) behaving the same as reduction(+:var).
15463         * testsuite/libgomp.c/reduction-4.c: New test.
15465 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
15467         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
15468         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
15469         testsuite/libgomp.c/copyin-3.c,
15470         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
15471         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
15472         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
15473         testsuite/libgomp.c++/pr24455.C,
15474         testsuite/libgomp.fortran/threadprivate1.f90,
15475         testsuite/libgomp.fortran/threadprivate2.f90,
15476         testsuite/libgomp.fortran/threadprivate3.f90,
15477         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
15478         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
15479         testsuite/libgomp.fortran/omp_parse3.f90: Require
15480         effective-target TLS.
15482 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
15484         * HEADER: Remove.
15486 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
15488         PR libgomp/24797
15489         * team.c (initialize_team): Pass NULL rather than free as
15490         pthread_key_create destructor.  Initialize thread specific data
15491         pointer in initial thread to a static local variable rather than
15492         malloced memory.
15494 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
15496         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
15497         its location to ld_library_path.
15499 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
15501         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
15503 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
15505         * testsuite/libgomp.c: Rename from libgomp.dg.
15507 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
15509         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
15510         threadprivate variable 'i'.
15512 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
15514         * config/linux/s390/futex.h: New file.
15515         * configure.tgt: Use it.
15517         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
15518         before the parallel.
15520 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
15522         PR c++/24734
15523         * testsuite/libgomp.c++/master-1.C: New test.
15525 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
15527         * testsuite/libgomp.dg/copyin-3.c: New test.
15529 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
15531         * testsuite/libgomp.fortran/retval1.f90: New test.
15532         * testsuite/libgomp.fortran/vla7.f90: New test.
15534 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
15536         * testsuite/libgomp.fortran/vla2.f90: New test.
15537         * testsuite/libgomp.fortran/vla3.f90: New test.
15538         * testsuite/libgomp.fortran/vla4.f90: New test.
15539         * testsuite/libgomp.fortran/vla5.f90: New test.
15540         * testsuite/libgomp.fortran/vla6.f90: New test.
15542 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
15544         * config/linux/sparc/futex.h: New file.
15545         * configure.tgt: Use it.
15546         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
15548         * critical.c: Include stdlib.h.
15549         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
15550         ignoring return value.
15551         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
15552         LIBGOMP_CHECK_SYNC_BUILTINS check.
15553         * configure: Rebuilt.
15555 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
15557         * testsuite/libgomp.fortran/vla1.f90: New test.
15559 2005-10-31  Richard Henderson  <rth@redhat.com>
15561         * testsuite/libgomp.fortran/character2.f90: Fix race condition
15562         setting 's' in different threads.
15564 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
15566         * libgomp.h (attribute_hidden, ialias): Define.
15567         * config/posix/proc.c (omp_get_num_procs): Add ialias.
15568         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
15569         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
15570         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15571         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15572         omp_test_lock, omp_test_nest_lock): Likewise.
15573         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
15574         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15575         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15576         omp_test_lock, omp_test_nest_lock): Likewise.
15577         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
15578         omp_get_dynamic, omp_get_nested): Likewise.
15579         * parallel.c (omp_get_num_threads, omp_get_max_threads,
15580         omp_get_thread_num, omp_in_parallel): Likewise.
15581         * fortran.c (ialias_redirect): Define.
15582         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
15583         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
15584         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
15585         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
15586         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
15587         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
15588         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
15589         omp_get_wtime): Add ialias_redirect.
15591 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
15593         * fortran.c: Include stdlib.h.
15595 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
15597         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
15598         * Makefile.in: Regenerated.
15600 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
15602         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
15603         * libgomp_f.h.in (omp_check_defines): New function.
15604         * env.c: Include libgomp_f.h.
15605         (initialize_env): Call omp_check_defines.
15607         * testsuite/libgomp.dg/copyin-2.c: New test.
15608         * testsuite/libgomp.c++/copyin-2.C: New test.
15609         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
15611         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
15612         * testsuite/libgomp.fortran/sharing2.f90: New test.
15614         * testsuite/libgomp.dg/copyin-1.c: New test.
15615         * testsuite/libgomp.c++/copyin-1.C: New test.
15617 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
15619         * testsuite/libgomp.fortran/crayptr1.f90: New test.
15621         * testsuite/libgomp.fortran/workshare1.f90: New test.
15623         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
15624         only test.
15625         * libgomp.fortran/sharing1.f90: New test.
15627 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
15629         PR c++/24502
15630         * testsuite/libgomp.c++/loop-7.C: New test.
15632         * testsuite/libgomp.dg/nestedfn-2.c: New test.
15634         * testsuite/libgomp.dg/nestedfn-1.c: New test.
15635         * testsuite/libgomp.fortran/reduction6.f90: New test.
15636         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
15638 2005-10-23  Richard Henderson  <rth@redhat.com>
15640         * testsuite/libgomp.c++/ctor-1.C: New.
15641         * testsuite/libgomp.c++/ctor-2.C: New.
15642         * testsuite/libgomp.c++/ctor-3.C: New.
15643         * testsuite/libgomp.c++/ctor-4.C: New.
15644         * testsuite/libgomp.c++/ctor-5.C: New.
15645         * testsuite/libgomp.c++/ctor-6.C: New.
15646         * testsuite/libgomp.c++/ctor-7.C: New.
15647         * testsuite/libgomp.c++/ctor-8.C: New.
15648         * testsuite/libgomp.c++/ctor-9.C: New.
15650 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
15652         PR 24455
15653         * testsuite/libgomp.c++/pr24455-1.C: New test.
15654         * testsuite/libgomp.c++/pr24455.C: New test.
15655         * testsuite/libgomp.dg/pr24455-1.c: New test.
15656         * testsuite/libgomp.dg/pr24455.c: New test.
15658 2005-10-20  Richard Henderson  <rth@redhat.com>
15660         * testsuite/libgomp.c++/loop-6.C: New.
15661         * testsuite/libgomp.dg/loop-3.c: New.
15663 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
15665         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
15666         explicitly private.
15667         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
15668         explicitly shared.
15670 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
15672         * testsuite/libgomp.fortran/jacobi.f: New test.
15674 2005-10-19  Richard Henderson  <rth@redhat.com>
15676         * configure.tgt (i?86-linux): Default to with_arch instead of
15677         CFLAGS.  Add -mtune to match target_cpu.
15678         (x86_64-linux): Tune to i686.
15680         * fortran.c (omp_test_nest_lock_): Fix typo.
15682 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
15684         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
15685         gomp_ordered_sync): Do nothing if team->nthreads == 1.
15686         * testsuite/libgomp.dg/ordered-3.c: New test.
15688         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
15689         Remove volatile keyword.
15691         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
15692         in COMMON block to avoid warnings on 64-bit targets.
15694 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
15696         * testsuite/libgomp.dg/shared-3.c: New test.
15698 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
15700         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
15701         * testsuite/libgomp.fortran/reduction5.f90: New test.
15703 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
15705         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
15706         dg-options.
15707         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
15708         flush loop now that __sync_synchronize has proper memory barrier.
15709         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
15710         Add -ffixed-form to dg-options.
15712 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
15714         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
15715         from subdirectories.
15716         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
15717         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
15718         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
15719         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
15720         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
15721         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
15722         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
15723         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
15724         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
15725         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
15726         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
15727         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
15728         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
15729         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
15730         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
15731         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
15732         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
15733         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
15734         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
15735         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
15736         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
15737         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
15738         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
15739         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
15740         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
15742 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
15744         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
15745         lang_library_path exists.  Use find instead of glob to gather tests.
15746         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
15748 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
15750         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
15751         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
15752         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
15753         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
15754         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
15755         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
15756         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
15757         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
15758         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
15759         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
15760         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
15761         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
15762         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
15764 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
15766         * testsuite/libgomp.dg/vla-1.c: New test.
15768         * testsuite/libgomp.fortran/reference2.f90: New test.
15770         * testsuite/libgomp.fortran/character2.f90: Remove explicit
15771         declaration of omp_get_thread_num.
15772         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
15773         use omp_lib.
15775         * testsuite/libgomp.fortran/reduction1.f90: New test.
15776         * testsuite/libgomp.fortran/reduction2.f90: New test.
15777         * testsuite/libgomp.fortran/reduction3.f90: New test.
15778         * testsuite/libgomp.fortran/reduction4.f90: New test.
15780 2005-10-13  Richard Henderson  <rth@redhat.com>
15782         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
15783         * Makefile.in: Regenerate.
15784         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
15785         * libgomp.h: Include bar.h.
15786         (struct gomp_barrier): Remove.
15787         (struct gomp_team): Add barrier.  Replace master_barrier with
15788         master_release.  Replace threads with ordered_release.
15789         (struct gomp_thread): Replace barrier with release.
15790         * ordered.c (gomp_ordered_first): Update for ordered_release change.
15791         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
15792         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
15793         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
15794         (GOMP_single_copy_end): Likewise.
15795         * team.c (gomp_threads_dock): New.
15796         (gomp_barrier_init, gomp_barrier_destroy): Remove.
15797         (gomp_thread_start): Use gomp_barrier_wait.
15798         (new_team, free_team): Update for gomp_team changes.
15799         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
15800         (gomp_team_end): Use gomp_barrier_wait.
15801         (initialize_team): Update for gomp_thread changes.
15802         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
15803         (gomp_work_share_end_nowait): Use atomic ops when available.
15804         * config/linux/bar.c, config/linux/bar.h: New files.
15805         * config/posix/bar.c, config/posix/bar.h: New files.
15807 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
15809         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
15810         * testsuite/libgomp.dg/single-2.c: New test.
15812         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
15813         lang_link_flags): Unset, so that they aren't inherited from previously
15814         sourced *.exp.
15816         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
15818 2005-10-12  Richard Henderson  <rth@redhat.com>
15820         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
15821         (libgomp_init): Use lang_test_file, lang_library_path, and
15822         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
15824         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
15825         (lang_test_file, lang_link_flags): New.
15826         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
15828         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
15829         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
15830         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
15831         testsuite/libgomp.c++/parallel-1.C,
15832         testsuite/libgomp.c++/reduction-1.C,
15833         testsuite/libgomp.c++/reduction-2.C,
15834         testsuite/libgomp.c++/reduction-3.C,
15835         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
15836         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
15837         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
15838         New files, largely cribbed from the C testsuite.
15840 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
15842         * testsuite/libgomp.fortran/character1.f90: New test.
15843         * testsuite/libgomp.fortran/character2.f90: New test.
15845         * testsuite/libgomp.dg/nested-1.c: New test.
15846         * testsuite/libgomp.dg/nested-2.c: New test.
15847         * testsuite/libgomp.fortran/do1.f90: New test.
15848         * testsuite/libgomp.fortran/do2.f90: New test.
15850         * testsuite/libgomp.fortran/reference1.f90: New test.
15852 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
15854         * testsuite/libgomp.dg/reduction-1.c: New test.
15855         * testsuite/libgomp.dg/reduction-2.c: New test.
15856         * testsuite/libgomp.dg/reduction-3.c: New test.
15858 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
15860         * testsuite/libgomp.dg/atomic-1.c: New test.
15861         * testsuite/libgomp.dg/atomic-2.c: New test.
15863 2005-10-09  Richard Henderson  <rth@redhat.com>
15865         * critical.c (atomic_lock): New.
15866         (initialize_critical): Initialize it.
15867         (GOMP_atomic_start, GOMP_atomic_end): New.
15868         * libgomp.map: Export them.
15869         * libgomp_g.h: Declare them.
15871         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
15873 2005-10-02  Richard Henderson  <rth@redhat.com>
15875         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
15876         to XCFLAGS instead of CFLAGS.
15878 2005-09-30  Richard Henderson  <rth@redhat.com>
15880         * configure.ac: Determine whether -pthread or -lpthread is needed.
15881         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
15882         * Makefile.in, configure: Rebuild.
15884 2005-09-28  Richard Henderson  <rth@redhat.com>
15886         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
15887         * testsuite/libgomp.dg/omp-single-3.c: New test.
15889 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
15891         * testsuite/libgomp.dg/omp-single-2.c: New test.
15892         * testsuite/libgomp.dg/shared-2.c: Fix return code.
15894 2005-09-27  Richard Henderson  <rth@redhat.com>
15896         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
15897         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
15899 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
15901         * testsuite/libgomp.dg/omp-loop03.c: New test.
15903 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
15905         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
15907 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
15909         * testsuite/libgomp.dg/omp-single-1.c: New test.
15910         * testsuite/libgomp.dg/shared-1.c: Return 0.
15911         Add prototype for abort.
15912         * testsuite/libgomp.dg/shared-2.c: Likewise.
15914 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
15916         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
15917         constructs.
15919 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
15921         * testsuite/libgomp.dg/shared-1.c: New test.
15922         * testsuite/libgomp.dg/shared-2.c: New test.
15924 2005-09-24  Richard Henderson  <rth@redhat.com>
15926         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
15928 2005-09-24  Richard Henderson  <rth@redhat.com>
15930         * iter.c (gomp_iter_static_next): Round up when computing number
15931         of iterations.  Don't bother distributing a remainder equally.
15933         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
15934         Don't call srand.  Zero b before testing.
15935         (main): New.
15937 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
15939         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
15940         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
15942 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
15944         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
15945         without !$omp end do, followed immediately by subroutine end.
15947 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
15949         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
15951 2005-09-22  Richard Henderson  <rth@redhat.com>
15953         * critical.c (GOMP_critical_name_start): Change argument to void**.
15954         Reuse the pointer space if the mutex fits.
15955         (GOMP_critical_name_end): Likewise.
15956         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
15957         * libgomp_g.h (GOMP_critical_name_start): Update decl.
15958         (GOMP_critical_name_end): Likewise.
15959         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
15960         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
15962 2005-09-20  Richard Henderson  <rth@redhat.com>
15964         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
15965         (create_lock_lock): New.
15966         (initialize_critical): Initialize it.
15967         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
15968         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
15970 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
15972         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
15974 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
15976         * testsuite/libgomp.dg/omp-loop01.c: New test.
15977         * testsuite/libgomp.dg/omp-loop02.c: New test.
15979 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
15981         * configure.ac (AC_PROG_FC): Add.
15982         (USE_FORTRAN): New automake conditional.
15983         * configure: Rebuilt.
15984         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
15985         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
15986         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
15987         Add rules to build them.
15988         * Makefile.in: Rebuilt.
15989         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
15990         OMP_NEST_LOCK_KIND.
15991         * libgomp.map: Add Fortran wrappers.
15992         * libgomp_f.h.in: New file.
15993         * omp_lib.h.in: New file.
15994         * omp_lib.f90.in: New file.
15995         * fortran.c: New file.
15996         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
15997         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
15998         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
15999         libgfortran has been built.
16000         * testsuite/libgomp.fortran/fortran.exp: New file.
16001         * testsuite/libgomp.fortran/omp_cond1.f: New test.
16002         * testsuite/libgomp.fortran/omp_cond2.f: New test.
16003         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
16004         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
16005         * testsuite/libgomp.fortran/omp_hello.f: New test.
16006         * testsuite/libgomp.fortran/omp_orphan.f: New test.
16007         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
16008         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
16009         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
16010         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
16011         * testsuite/libgomp.fortran/omp_reduction.f: New test.
16012         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
16013         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
16015 2005-08-30  Richard Henderson  <rth@redhat.com>
16017         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
16018         function for when aliases are not usable.
16019         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
16020         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
16021         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
16022         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
16023         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
16024         GOMP_loop_ordered_guided_next): Likewise.
16025         * ordered.c (GOMP_ordered_start): Likewise.
16027 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
16029         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
16030         * testsuite/libgomp.dg/omp_hello.c: Fix return code
16031         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
16032         * testsuite/libgomp.dg/omp_orphan.c: Likewise
16033         * testsuite/libgomp.dg/omp_reduction.c: Likewise
16034         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
16035         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
16036         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
16037         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
16039 2005-07-07  Eric Christopher  <echristo@redhat.com>
16040             Diego Novillo  <dnovillo@redhat.com>
16042         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
16043         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
16044         up code.
16045         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
16046         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
16047         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
16048         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
16049         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
16050         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
16051         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
16053 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
16055         * TOPLEVEL.patch: Remove.
16057 2005-05-16  Richard Henderson  <rth@redhat.com>
16059         * configure.ac: Test for clock_gettime.
16060         * config.h.in, configure: Rebuild.
16061         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
16062         (omp_get_wtime): Use clock_gettime if available.
16063         (omp_get_wtick): Use clock_getres if available.
16065 2005-05-11  Richard Henderson  <rth@redhat.com>
16067         * config/linux/ia64/futex.h: New file.
16068         * configure.tgt: Use it.
16070         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
16072 2005-05-07  Richard Henderson  <rth@redhat.com>
16074         * config/linux/powerpc/futex.h: New file.
16075         * configure.tgt: Use it.
16077         * config/linux/i486/futex.h: Merge ...
16078         * config/linux/x86_64/futex.h: ... into ...
16079         * config/linux/x86/futex.h: ... here.
16080         * configure.tgt: Update to match.
16082 2005-05-06  Richard Henderson  <rth@redhat.com>
16084         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
16085         * config/linux/i486/futex.h: Likewise.
16086         * config/linux/x86_64/futex.h: Likewise.
16088         * config/linux/lock.c: New file.
16089         * config/linux/omp-lock.h: New file.
16091         * critical.c, env.h: Don't include omp.h
16092         * config/posix/lock.c: Include libgomp.h instead of omp.h.
16093         * config/posix/time.c: Likewise.
16094         * config/posix/omp-lock.h: New file.
16095         * libgomp.h: Include omp-lock.h and omp.h.
16096         * Makefile.am (nodist_include_HEADERS): New.
16097         (omp.h): New rule.
16098         * configure.ac (PERL): New.
16099         * mkomp_h.pl: New file.
16100         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
16101         with templates.
16102         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
16104         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
16105         build directory.  Re-add -march=i486 hack.
16107         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
16108         (libgomp_link_flags): Remove.
16109         (libgomp_initialized): Remove.
16110         (libgomp_init): Don't protect from reinitialization.  Copy code
16111         from libstdc++ for getting the multilib set correctly.
16113 2005-05-05  Richard Henderson  <rth@redhat.com>
16115         * config/linux/alpha/futex.h: New file.
16116         * configure.tgt (alpha*-*-linux*): Use it.
16118         * config/posix/mutex.c: New file.
16119         * config/posix/sem.c: Use libgomp.h.
16121         * configure.tgt (x86_64-linux): Also test CC for -m32.
16122         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
16124         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
16125         after $gccpath.
16127         * Makefile.am (SUBDIRS): New.
16128         (libgomp_la_LDFLAGS): Add -lpthread.
16129         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
16130         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
16132         * libgomp_g.h: New file.
16133         * libgomp.h: Split out all public declarations to libgomp_g.h.
16134         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
16135         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
16136         * config/linux/sem.h: Likewise.
16137         * config/posix/sem.h: Likewise.
16139         * Makefile.am (AM_LDFLAGS): New.
16140         (libgomp_version_script): Split out from ...
16141         (libgomp_la_LDFLAGS): ... here.
16142         (libgomp_version_info): New.
16143         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
16144         (LIBGOMP_ENABLE): New.
16145         (LIBGOMP_CHECK_LINKER_FEATURES): New.
16146         (LIBGOMP_ENABLE_SYMVERS): New.
16147         * configure.ac (AC_INIT): Version 1.0.
16148         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
16149         (enable-linux-futex): Likewise.  Rename from enable-futex.
16150         (libtool_VERSION): New.
16151         (LIBGOMP_ENABLE_SYMVERS): Use it.
16152         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
16153         * Makefile.in, aclocal.m4, configure: Rebuild.
16155         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
16156         (gomp_mutex_unlock_slow): Fix typo.
16157         * config/linux/sem.c: Similarly.
16158         (gomp_sem_post_slow): Fix typo.
16159         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
16160         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
16161         [__PIC__] (sys_futex0): Don't use tmp output in asm.
16163         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
16164         (libgomp_la_LDFLAGS): Add top_srcdir to path.
16165         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
16166         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
16167         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
16168         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
16169         LDFLAGS.  Pull enable_futex check to top-level.
16170         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
16171         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
16173         First attempt at real configury.
16174         * Makefile, config.h: Remove file.
16175         * Makefile.am, Makefile.in: New file.
16176         * acinclude.m4 aclocal.m4: New file.
16177         * configure.ac, configure.tgt, configure: New file.
16179         * config/posix/lock.c: Rename from sys-lock.c.
16180         * config/posix/mutex.h: Rename from sys-mutex.h.
16181         * config/posix/sem.c: Rename from sys-sem.c.
16182         * config/posix/sem.h: Rename from sys-sem.h.
16183         * config/posix/proc.c: Rename from sys-proc.c.
16184         * config/posix/time.c: Rename from sys-proc.c.
16186         * config/linux/mutex.c: New file.
16187         * config/linux/mutex.h: New file.
16188         * config/linux/sem.c: New file.
16189         * config/linux/sem.h: New file.
16190         * config/linux/i486/futex.h: New file.
16191         * config/linux/x86_64/futex.h: New file.
16193 2005-05-04  Richard Henderson  <rth@redhat.com>
16195         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
16196         * libgomp.h: Declare them.
16197         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
16198         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
16200 2005-05-04  Richard Henderson  <rth@redhat.com>
16202         * libgomp-1 code drop
16204 2005-05-04  Richard Henderson  <rth@redhat.com>
16206         * iter.c (gomp_iter_static_next): Return tri-state on 0.
16207         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
16208         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
16209         (gomp_iter_static_next): Update.
16210         (gomp_ordered_static_next): Update.
16211         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
16212         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
16213         totally empty range.
16214         (gomp_loop_ordered_static_next): Refine test for calling
16215         gomp_ordered_static_next.
16216         * testsuite/ordered-1.c: Add case for more threads than iterations.
16218         * iter.c (gomp_iter_runtime_next_locked): Remove.
16219         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
16220         gomp_loop_guided_start, gomp_loop_ordered_static_start,
16221         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
16222         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
16223         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
16224         gomp_loop_ordered_guided_next): Downcase name, make static, add
16225         an external alias with the old name.
16226         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
16227         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
16228         switch and call one of the above static functions.
16229         * libgomp.h: Update.
16231         * work.c (gomp_work_share_start): Lock the mutex for !first too.
16232         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
16233         GOMP_loop_guided_start, GOMP_loop_runtime_start,
16234         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
16235         GOMP_loop_ordered_guided_start): Update to match.
16236         * sections.c (GOMP_sections_start): Likewise.
16237         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
16239         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
16240         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
16241         Use bounds check instead of modulus.
16242         (gomp_ordered_sync): Split out of GOMP_ordered_start.
16243         (gomp_ordered_last): Don't sync with ordered_owner here.
16244         (gomp_ordered_next): Likewise.
16245         (gomp_ordered_static_loop_next): Likewise.
16246         * loop.c, libgomp.h: Update to match.
16248         * libgomp.h (GOMP_barrier): Declare.
16250         * testsuite/barrier-1.c: New file.
16251         * testsuite/critical-1.c: New file.
16252         * testsuite/ordered-2.c: New file.
16253         * testsuite/ordered-1.c: New file.
16254         * testsuite/sections-1.c: New file.
16255         * testsuite/single-1.c: New file.
16256         * testsuite/Makefile (TESTS): Add them.
16258 2005-05-04  Richard Henderson  <rth@redhat.com>
16260         * libgomp.h (struct gomp_work_share): Add ordered_owner.
16261         * loop.c (GOMP_loop_static_start): If not the startup thread,
16262         acquire the mutex to wait for initialization complete.
16263         (GOMP_loop_ordered_static_start): Likewise.
16264         (GOMP_loop_ordered_runtime_start): Likewise.
16265         (GOMP_loop_ordered_static_first): Remove.
16266         (GOMP_loop_ordered_dynamic_first): Remove.
16267         (GOMP_loop_ordered_guided_first): Remove.
16268         (GOMP_loop_ordered_runtime_first): Remove.
16269         * ordered.c (gomp_ordered_loop_first): Post to own release when
16270         we're the first thread.
16271         (gomp_ordered_loop_last): Wait on release if not owner.
16272         (gomp_ordered_loop_next): Likewise.
16273         (gomp_ordered_static_loop_init): New.
16274         (gomp_ordered_static_loop_next): Use ordered_owner.
16275         (GOMP_ordered_start): Likewise.
16276         * work.c (gomp_new_work_share): Initialize ordered_owner.
16278 2005-05-03  Richard Henderson  <rth@redhat.com>
16280         * Makefile (OPT): New.
16281         (CFLAGS): Use it.
16283         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
16284         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
16285         * libgomp.h, libgomp.map, NOTES: Update to match.
16287         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
16288         Add initialized and thr members.
16289         (gomp_thread_start): Pause when initially spawned to wait for
16290         the whole team to be created.
16291         (gomp_team_start): Release team members at the end.
16293         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
16294         (f_foo_1): Use GOMP_loop_end.
16295         (f_foo_2): Use GOMP_loop_end_nowait.
16297         * testsuite/loop-2.c: New file.
16298         * testsuite/Makefile (TESTS): Add it.
16300 2005-05-03  Richard Henderson  <rth@redhat.com>
16302         * iter.c (gomp_iter_static_next): Fix overflow check typo.
16303         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
16304         * team.c (new_team): Initialize oldest_live_gen to 1 if no
16305         initial work_share.
16307         * testsuite/Makefile: New file.
16308         * testsuite/loop-1.c: New file.
16310 2005-05-03  Richard Henderson  <rth@redhat.com>
16312         Initial implementation and checkin.
16314 Copyright (C) 2005-2021 Free Software Foundation, Inc.
16316 Copying and distribution of this file, with or without modification,
16317 are permitted in any medium without royalty provided the copyright
16318 notice and this notice are preserved.