Fix typo in t-dimode
[official-gcc.git] / libgomp / ChangeLog
blob2c2d77469a70b4f400dbaf34bce57f564d328d7d
1 2021-11-24  Jakub Jelinek  <jakub@redhat.com>
3         PR middle-end/103384
4         * testsuite/libgomp.c/declare-variant-2.c: New test.
6 2021-11-18  David Edelsohn  <dje.gcc@gmail.com>
8         * alloc.c (gomp_aligned_alloc): Fix typo.
10 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
12         PR libgomp/102838
13         * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
14         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
15         (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
16         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
17         * work.c (alloc_work_share, gomp_work_share_start): Likewise.
18         * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
19         gomp_aligned_alloc instead of team_malloc.
21 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
23         PR libgomp/102838
24         * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
25         memalign over posix_memalign over aligned_alloc over fallback
26         with malloc instead of aligned_alloc over _aligned_alloc over
27         posix_memalign over memalign over fallback with malloc.  For
28         aligned_alloc, round up size up to multiple of al.
30 2021-11-16  Jakub Jelinek  <jakub@redhat.com>
32         * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
33         construct as implemented.
35 2021-11-15  Tobias Burnus  <tobias@codesourcery.com>
37         * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
39 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
41         * task.c (gomp_create_target_task): Copy args array as well.
42         * target.c (gomp_target_fallback): Add args argument.
43         Set gomp_icv (true)->thread_limit_var if thread_limit is present.
44         (GOMP_target): Adjust gomp_target_fallback caller.
45         (GOMP_target_ext): Likewise.
46         (gomp_target_task_fn): Likewise.
47         * config/nvptx/team.c (gomp_nvptx_main): Set
48         gomp_global_icv.thread_limit_var.
49         * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
51 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
53         * config/nvptx/team.c (__gomp_team_num): Define as
54         __attribute__((shared)) var.
55         (gomp_nvptx_main): Initialize __gomp_team_num to 0.
56         * config/nvptx/target.c (__gomp_team_num): Declare as
57         extern __attribute__((shared)) var.
58         (GOMP_teams4): Use __gomp_team_num as the team number instead of
59         %ctaid.x.  If first, initialize it to %ctaid.x.  If num_teams_lower
60         is bigger than num_blocks, use num_teams_lower teams and arrange for
61         bumping of __gomp_team_num if !first and returning false once we run
62         out of teams.
63         * config/nvptx/teams.c (__gomp_team_num): Declare as
64         extern __attribute__((shared)) var.
65         (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
67 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
69         * testsuite/libgomp.c/teams-5.c: New test.
71 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
73         PR target/103201
74         * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
75         to ...
76         * config/gcn/teams.c: ... here.  New file.
78 2021-11-12  Chung-Lin Tang  <cltang@codesourcery.com>
80         * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
81         implicit map handling to allow a "superset" existing map as valid case.
82         (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
83         (get_implicit): New function to extract implicit status.
84         (gomp_map_fields_existing): Adjust arguments in calls to
85         gomp_map_vars_existing, and add uses of get_implicit.
86         (gomp_map_vars_internal): Likewise.
87         * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
89 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
91         * libgomp_g.h (GOMP_teams4): Declare.
92         * libgomp.map (GOMP_5.1): Export GOMP_teams4.
93         * target.c (GOMP_teams4): New function.
94         * config/nvptx/target.c (GOMP_teams): Remove.
95         (GOMP_teams4): New function.
96         * config/gcn/target.c (GOMP_teams): Remove.
97         (GOMP_teams4): New function.
98         * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
99         teams instead of <= 2.
100         * testsuite/libgomp.c-c++-common/teams-2.c: New test.
102 2021-11-11  Tobias Burnus  <tobias@codesourcery.com>
104         * testsuite/libgomp.fortran/teams-1.f90: New test.
106 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
108         * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
109         * team.c (struct gomp_thread_start_data): Likewise.
110         (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
111         (gomp_team_start): Initialize start_data->num_teams and
112         start_data->team_num.  Update nthr->num_teams and nthr->team_num.
113         * teams.c (gomp_num_teams, gomp_team_num): Remove.
114         (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
115         instead of gomp_num_teams and gomp_team_num.
116         (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
117         (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
118         * testsuite/libgomp.c/teams-4.c: New test.
120 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
122         * testsuite/libgomp.c-c++-common/teams-1.c: New test.
124 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
126         * env.c (parse_gomp_openacc_dim): Restore parsing.
128 2021-10-30  Tobias Burnus  <tobias@codesourcery.com>
130         PR middle-end/102972
131         * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
132         parallel construct.
133         * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
134         * testsuite/libgomp.c/target-3.c: Likewise.
135         * testsuite/libgomp.c/target-5.c: Likewise.
136         * testsuite/libgomp.c/target-6.c: Likewise.
137         * testsuite/libgomp.c/target-teams-1.c: Likewise.
138         * testsuite/libgomp.c/teams-1.c: Likewise.
139         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
140         * testsuite/libgomp.c/thread-limit-3.c: Likewise.
141         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
142         * testsuite/libgomp.c/thread-limit-5.c: Likewise.
143         * testsuite/libgomp.fortran/icv-3.f90: Likewise.
144         * testsuite/libgomp.fortran/icv-4.f90: Likewise.
145         * testsuite/libgomp.fortran/teams1.f90: Likewise.
147 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
149         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
150         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
152 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
154         * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
155         aren't implemented for Fortran yet.
157 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
159         * testsuite/libgomp.c/loop-26.c: New test.
160         * testsuite/libgomp.c/loop-27.c: New test.
162 2021-10-25  Tobias Burnus  <tobias@codesourcery.com>
164         PR testsuite/102910
165         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
166         instead of #include <alloca.h> + alloca.
168 2021-10-21  Chung-Lin Tang  <cltang@codesourcery.com>
170         * libgomp.texi (Support of strictly structured blocks in Fortran):
171         Adjust to 'Y'.
172         * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
174 2021-10-20  Chung-Lin Tang  <cltang@codesourcery.com>
176         * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
177         * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
179 2021-10-20  Jakub Jelinek  <jakub@redhat.com>
181         PR libgomp/102838
182         * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
183         (struct gomp_work_share): Only use aligned(64) attribute if
184         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
185         add padding before lock to ensure lock is at offset 64 bytes
186         into the structure.
187         (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
188         New poor man's static assertions.
189         * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
190         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
192 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
193             Richard Biener  <rguenther@suse.de>
195         * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
197 2021-10-18  Jakub Jelinek  <jakub@redhat.com>
199         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
200         && gomp_places_list_len < count after nfirst <= nlast loop condition.
202 2021-10-18  Tobias Burnus  <tobias@codesourcery.com>
204         PR fortran/102086
205         PR fortran/92189
206         PR fortran/92621
207         PR fortran/101308
208         PR fortran/101309
209         PR fortran/101635
210         PR fortran/92482
211         * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
213 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
215         * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
216         type from char [50] to const char *.
217         (places_array): Add a testcase for simplified syntax place followed
218         by length or length and stride.
220 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
222         * env.c (parse_one_place): Handle non-negative-number the same
223         as { non-negative-number }.  Reject even !number:1 and
224         !number:1:stride or !place:1 or !place:1:stride instead of just
225         length other than 1.
226         * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
227         and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
228         omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
229         as implemented.
230         * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
231         simplified syntax.
233 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
235         * env.c (parse_schedule): For strtoul or strtoull calls which don't
236         clearly reject return value 0 as invalid handle the case where end
237         pointer is the same as first argument as invalid.
238         (parse_unsigned_long_1): Likewise.
239         (parse_one_place): Likewise.
240         (parse_places_var): Likewise.
241         (parse_stacksize): Likewise.
242         (parse_spincount): Likewise.
243         (parse_affinity): Likewise.
244         (parse_gomp_openacc_dim): Likewise.  Avoid strict aliasing violation.
245         Make code valid C89.
246         * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
247         For strtoul calls which don't clearly reject return value 0 as
248         invalid handle the case where end pointer is the same as first
249         argument as invalid.
250         (gomp_affinity_init_level_1): Likewise.
251         (gomp_affinity_init_numa_domains): Likewise.
252         * config/rtems/proc.c (parse_thread_pools): Likewise.
254 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
256         * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
257         after creating count places clean up and return immediately.
258         * testsuite/libgomp.c/places-6.c: New test.
259         * testsuite/libgomp.c/places-7.c: New test.
260         * testsuite/libgomp.c/places-8.c: New test.
261         * testsuite/libgomp.c/places-9.c: New test.
262         * testsuite/libgomp.c/places-10.c: New test.
264 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
266         * env.c (parse_places_var): Handle numa_domains as level 5.
267         * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
268         function.
269         (gomp_affinity_init_level): Use it instead of
270         gomp_affinity_init_level_1 for level == 5.
271         * testsuite/libgomp.c/places-5.c: New test.
273 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
275         * env.c (parse_places_var): Handle ll_caches as level 4.
276         * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
277         function.
278         (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
279         last level cache.
280         (gomp_affinity_init_level): Likewise.
281         * testsuite/libgomp.c/places-1.c: New test.
282         * testsuite/libgomp.c/places-2.c: New test.
283         * testsuite/libgomp.c/places-3.c: New test.
284         * testsuite/libgomp.c/places-4.c: New test.
286 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
288         * libgomp.texi (OpenMP 5.0): Update entry for declare variant
289         directive.
291 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
293         * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
295 2021-10-12  Julian Brown  <julian@codesourcery.com>
297         * target.c (gomp_copy_host2dev): Release device lock on cbuf
298         error path.
300 2021-10-12  Tobias Burnus  <tobias@codesourcery.com>
302         * testsuite/libgomp.fortran/icv-3.f90: New.
303         * testsuite/libgomp.fortran/icv-4.f90: New.
305 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
307         * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
308         omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
309         OMP_TEAMS_THREAD_LIMIT): Document.
311 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
313         * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
314         to avoid makeinfo warnings.
316 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
318         * testsuite/libgomp.c-c++-common/icv-3.c: New test.
319         * testsuite/libgomp.c-c++-common/icv-4.c: New test.
321 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
323         PR libgomp/102628
324         PR libgomp/102668
325         * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
326         allocation sizes from 420 to 320 and from 768 to 568.
327         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
328         * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
329         for cr from 16 to 4.
331 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
333         * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
334         * testsuite/libgomp.c/scan-12.c: Likewise.
335         * testsuite/libgomp.c/scan-13.c: Likewise.
336         * testsuite/libgomp.c/scan-14.c: Likewise.
337         * testsuite/libgomp.c/scan-15.c: Likewise.
338         * testsuite/libgomp.c/scan-16.c: Likewise.
339         * testsuite/libgomp.c/scan-17.c: Likewise.
340         * testsuite/libgomp.c/scan-18.c: Likewise.
341         * testsuite/libgomp.c/scan-19.c: Likewise.
342         * testsuite/libgomp.c/scan-20.c: Likewise.
343         * testsuite/libgomp.c/scan-21.c: Likewise.
344         * testsuite/libgomp.c/scan-22.c: Likewise.
345         * testsuite/libgomp.c++/scan-9.C: Likewise.
346         * testsuite/libgomp.c++/scan-10.C: Likewise.
347         * testsuite/libgomp.c++/scan-11.C: Likewise.
348         * testsuite/libgomp.c++/scan-12.C: Likewise.
349         * testsuite/libgomp.c++/scan-13.C: Likewise.
350         * testsuite/libgomp.c++/scan-14.C: Likewise.
351         * testsuite/libgomp.c++/scan-15.C: Likewise.
352         * testsuite/libgomp.c++/scan-16.C: Likewise.
354 2021-10-12  Kewen Lin  <linkw@linux.ibm.com>
356         * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
358 2021-10-11  Marcel Vollweiler  <marcel@codesourcery.com>
360         * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
361         omp_atv_serialized.
362         * omp.h.in: Add deprecated flag for omp_atv_sequential.
363         * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
364         * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
365         * testsuite/libgomp.fortran/alloc-12.f90: New test.
367 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
369         * omp.h.in (omp_set_num_teams, omp_get_max_teams,
370         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
371         * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
372         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
373         * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
374         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
375         * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
376         * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
377         omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
378         omp_set_teams_thread_limit{,_,_8_}.
379         * icv.c (omp_set_num_teams, omp_get_max_teams,
380         omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
381         functions.
382         * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
383         (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
384         (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
385         vars.
386         * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
387         gomp_teams_thread_limit_var as fallback if not zero.  If num_teams
388         is not specified, use gomp_nteams_var.
389         * fortran.c (omp_set_num_teams, omp_get_max_teams,
390         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
391         ialias_redirect.
392         (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
393         omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
394         omp_get_teams_thread_limit_): New functions.
396 2021-10-09  liuhongt  <hongtao.liu@intel.com>
398         * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
399         * testsuite/libgomp.c++/scan-11.C: Ditto.
400         * testsuite/libgomp.c++/scan-12.C: Ditto.
401         * testsuite/libgomp.c++/scan-13.C: Ditto.
402         * testsuite/libgomp.c++/scan-14.C: Ditto.
403         * testsuite/libgomp.c++/scan-15.C: Ditto.
404         * testsuite/libgomp.c++/scan-16.C: Ditto.
405         * testsuite/libgomp.c++/scan-9.C: Ditto.
406         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
407         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
408         * testsuite/libgomp.c/scan-11.c: Ditto.
409         * testsuite/libgomp.c/scan-12.c: Ditto.
410         * testsuite/libgomp.c/scan-13.c: Ditto.
411         * testsuite/libgomp.c/scan-14.c: Ditto.
412         * testsuite/libgomp.c/scan-15.c: Ditto.
413         * testsuite/libgomp.c/scan-16.c: Ditto.
414         * testsuite/libgomp.c/scan-17.c: Ditto.
415         * testsuite/libgomp.c/scan-18.c: Ditto.
416         * testsuite/libgomp.c/scan-19.c: Ditto.
417         * testsuite/libgomp.c/scan-20.c: Ditto.
418         * testsuite/libgomp.c/scan-21.c: Ditto.
419         * testsuite/libgomp.c/scan-22.c: Ditto.
421 2021-10-09  Jakub Jelinek  <jakub@redhat.com>
423         * libgomp.texi (OpenMP 5.1): Mention implemented support for
424         structured block sequences in C/C++.  Mention support for
425         unconstrained/reproducible modifiers on order clause.
426         Mention partial (C/C++ only) support of extentensions to atomics
427         construct.  Mention partial (C/C++ on clause only) support of
428         align/allocator modifiers on allocate clause.
430 2021-10-02  Tobias Burnus  <tobias@codesourcery.com>
432         * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
433         based on libgomp.c-c++-common/order-reproducible-1.c.
434         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
435         * testsuite/libgomp.fortran/my-usleep.c: New test.
437 2021-10-01  Tobias Burnus  <tobias@codesourcery.com>
439         * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
440         * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
441         * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
442         * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
443         based on libgomp.c-c++-common/alloc-9.c.
445 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
447         * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
448         * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
450 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
452         * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
453         ialias_redirect.
454         * env.c (handle_omp_display_env): Use ialias_call.
455         * icv-device.c: Move ialias right below each function.
456         (omp_get_device_num): Use ialias_call.
457         * fortran.c (omp_fulfill_event): Add ialias_redirect.
458         * icv.c (omp_get_active_level): Add ialias_redirect.
460 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
462         * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
463         __alloc_align__ (1) attribute.
464         * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
466 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
468         * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
469         for -fintrinsic-modules-path= warning of the C compiler.
470         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
471         * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
473 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
475         * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
476         omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
477         * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
478         omp_realloc): Add.
479         * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
480         omp_realloc): Add.
481         * testsuite/libgomp.fortran/alloc-10.f90: New test.
482         * testsuite/libgomp.fortran/alloc-6.f90: New test.
483         * testsuite/libgomp.fortran/alloc-7.c: New test.
484         * testsuite/libgomp.fortran/alloc-7.f90: New test.
485         * testsuite/libgomp.fortran/alloc-8.f90: New test.
486         * testsuite/libgomp.fortran/alloc-9.f90: New test.
488 2021-09-30  Jakub Jelinek  <jakub@redhat.com>
490         * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
491         omp_realloc): New prototypes.
492         (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
493         attribute.
494         * allocator.c: Include string.h.
495         (omp_aligned_alloc): No longer static, add ialias.  Add new_alignment
496         variable and use it instead of alignment so that when retrying the old
497         alignment is used again.  Don't retry if new alignment is the same
498         as old alignment, unless allocator had pool size.
499         (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
500         (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
501         * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
502         omp_aligned_calloc and omp_realloc.
503         * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
504         omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
505         * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
506         * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
507         * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
508         * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
510 2021-09-28  Tobias Burnus  <tobias@codesourcery.com>
512         PR libgomp/96661
513         * configure.ac: Only check for int-type = 2*size_t support when
514         building with Fortran support.
515         * configure: Regenerate.
517 2021-09-28  Thomas Schwinge  <thomas@codesourcery.com>
519         * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
520         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
522 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
524         * team.c: Initialize start_data.
525         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
526         * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
528 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
530         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
531         dg-message back to dg-note.
533 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
535         PR fortran/94070
536         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
537         expected dg-note output.
539 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
541         PR fortran/55534
542         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
543         r12-3722 by removing -Wno-missing-include-dirs.
544         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
546 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
548         * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
549         * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
551 2021-09-21  Tobias Burnus  <tobias@codesourcery.com>
553         PR fortran/55534
554         * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
555         to ALWAYS_CFLAGS.
556         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
558 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
560         * testsuite/libgomp.c++/default-1.C: New test.
561         * testsuite/libgomp.c-c++-common/default-1.c: New test.
562         * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
563         to default clause in C and C++" as implemented.
565 2021-09-17  Julian Brown  <julian@codesourcery.com>
567         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
569 2021-09-17  Julian Brown  <julian@codesourcery.com>
571         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
573 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
575         * libgomp.texi (OpenMP 5.1): Spelling fix,
576         declare variante -> declare variant.
578 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
580         * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
581         Use /* */ comments instead of //.
582         * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
583         * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
584         * testsuite/libgomp.c++/atomic-16.C: New test.
585         * testsuite/libgomp.c++/atomic-17.C: New test.
587 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
589         * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
590         * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
591         * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
593 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
595         * libgomp.texi (OpenMP Implementation Status): Extend
596         OpenMP 5.0 section.
597         (OpenACC Profiling Interface): Fix typo.
599 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
601         * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
602         not to 4.5; link to new section.
603         (OpenMP Implementation Status): New.
605 2021-09-06  Thomas Schwinge  <thomas@codesourcery.com>
607         * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
609 2021-09-03  Tobias Burnus  <tobias@codesourcery.com>
611         * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
612         dg-output.
613         * testsuite/libgomp.fortran/error-1.f90: Likewise.
615 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
616             Jakub Jelinek  <jakub@redhat.com>
618         * testsuite/libgomp.c/address-space-1.c: New file.
620 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
622         * testsuite/lib/libgomp.exp
623         (check_effective_target_offload_target_intelmic): Remove 'proc'.
624         (check_effective_target_offload_device_intel_mic): New 'proc'.
625         * testsuite/libgomp.c-c++-common/on_device_arch.h
626         (device_arch_intel_mic, on_device_arch_intel_mic): New.
627         * testsuite/libgomp.c-c++-common/target-45.c: Use that for
628         'dg-xfail-run-if'.
629         * testsuite/libgomp.fortran/target10.f90: Likewise.
631 2021-08-23  Tobias Burnus  <tobias@codesourcery.com>
633         * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
634         * testsuite/libgomp.fortran/taskloop-4.f90: New test.
635         * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
636         * testsuite/libgomp.fortran/taskloop-5.f90: New test.
638 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
640         * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
641         * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
642         * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
644 2021-08-22  Thomas Schwinge  <thomas@codesourcery.com>
646         * config/nvptx/error.c (fwrite, exit): Override, too.
647         * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
648         of offloading testing.
649         * testsuite/libgomp.fortran/error-1.f90: Likewise.
651 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
653         * testsuite/libgomp.fortran/error-1.f90: New test.
655 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
657         * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
658         * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
659         * error.c (GOMP_warning, GOMP_error): New functions.
660         * testsuite/libgomp.c-c++-common/error-1.c: New test.
662 2021-08-18  Tobias Burnus  <tobias@codesourcery.com>
664         * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
665         omp_target_free. omp_target_is_present, omp_target_memcpy,
666         omp_target_memcpy_rect, omp_target_associate_ptr,
667         omp_target_disassociate_ptr): Add interface.
668         * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
669         omp_target_free. omp_target_is_present, omp_target_memcpy,
670         omp_target_memcpy_rect, omp_target_associate_ptr,
671         omp_target_disassociate_ptr): Add interface.
672         * testsuite/libgomp.fortran/alloc-1.F90: Remove local
673         interface block for omp_alloc + omp_free.
674         * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
675         * testsuite/libgomp.fortran/refcount-1.f90: New test.
676         * testsuite/libgomp.fortran/target-12.f90: New test.
678 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
680         * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
682 2021-08-17  Tobias Burnus  <tobias@codesourcery.com>
684         * testsuite/libgomp.fortran/scope-1.f90: New test.
685         * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
687 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
689         * Makefile.am (libgomp_la_SOURCES): Add scope.c
690         * Makefile.in: Regenerated.
691         * libgomp_g.h (GOMP_scope_start): Declare.
692         * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
693         * scope.c: New file.
694         * testsuite/libgomp.c-c++-common/scope-1.c: New test.
695         * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
697 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
699         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
700         '?:' issues.
702 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
704         * testsuite/libgomp.fortran/masked-1.f90: New test.
706 2021-08-13  Thomas Schwinge  <thomas@codesourcery.com>
708         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
710 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
712         * testsuite/libgomp.c-c++-common/masked-1.c: New test.
714 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
716         * env.c (parse_bind_var): Accept 'primary' as alias for
717         'master'.
718         (omp_display_env): Add TODO comment to
719         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
720         * libgomp.texi: Change 'master thread' to 'primary thread'
721         in line with OpenMP 5.1.
722         (omp_get_proc_bind): Add omp_proc_bind_primary and note that
723         omp_proc_bind_master is an alias of it.
724         (OMP_PROC_BIND): Mention 'PRIMARY'.
725         * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
726         (omp_proc_bind_primary): Add.
727         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
728         * omp_lib.f90.in (omp_proc_bind_primary): Add.
729         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
730         * omp_lib.h.in (omp_proc_bind_primary): Add.
731         * testsuite/libgomp.c/affinity-1.c: Check that
732         'primary' works and is identical to 'master'.
734 2021-08-09  Julian Brown  <julian@codesourcery.com>
735             Kwok Cheung Yeung  <kcy@codesourcery.com>
736             Thomas Schwinge  <thomas@codesourcery.com>
738         * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
739         16.
740         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
741         [acc_device_radeon]: Update.
742         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
743         [ACC_DEVICE_TYPE_radeon]: Likewise.
744         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
745         [acc_device_radeon]: Likewise.
746         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
747         [ACC_DEVICE_TYPE_radeon]: Likewise.
748         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
749         'openacc_radeon_accel_selected' and '-O0'.
750         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
752 2021-08-05  Chung-Lin Tang  <cltang@codesourcery.com>
754         * icv-device.c (omp_get_device_num): New API function, host side.
755         * fortran.c (omp_get_device_num_): New interface function.
756         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
757         * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
758         omp_get_device_num_.
759         * libgomp.texi (omp_get_device_num): Add documentation for new API
760         function.
761         * omp.h.in (omp_get_device_num): Add declaration.
762         * omp_lib.f90.in (omp_get_device_num): Likewise.
763         * omp_lib.h.in (omp_get_device_num): Likewise.
764         * target.c (gomp_load_image_to_device): If additional entry for device
765         number exists at end of returned entries from 'load_image_func' hook,
766         copy the assigned device number over to the device variable.
767         * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
768         (omp_get_device_num): New API function, device side.
769         * plugin/plugin-gcn.c ("symcat.h"): Add include.
770         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
771         at end of returned 'target_table' entries.
772         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
773         (omp_get_device_num): New API function, device side.
774         * plugin/plugin-nvptx.c ("symcat.h"): Add include.
775         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
776         at end of returned 'target_table' entries.
777         * testsuite/lib/libgomp.exp
778         (check_effective_target_offload_target_intelmic): New function for
779         testing for intelmic offloading.
780         * testsuite/libgomp.c-c++-common/target-45.c: New test.
781         * testsuite/libgomp.fortran/target10.f90: New test.
783 2021-07-30  Thomas Schwinge  <thomas@codesourcery.com>
784             Ulrich Drepper  <drepper@redhat.com>
786         * fortran.c (omp_display_env_, omp_display_env_8_): Only
787         '#ifndef LIBGOMP_OFFLOADED_ONLY'.
789 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
790             Julian Brown  <julian@codesourcery.com>
791             Kwok Cheung Yeung  <kcy@codesourcery.com>
793         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
794         's%oaccdevlow%oaccloops%g'.
795         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
796         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
797         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
798         Likewise.
799         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
800         Likewise.
801         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
802         Likewise.
803         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
804         Likewise.
805         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
806         Likewise.
807         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
808         Likewise.
809         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
810         Likewise.
811         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
812         Likewise.
813         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
815 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
817         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
818         threader.
819         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
821 2021-07-27  Ulrich Drepper  <drepper@gmail.com>
823         * env.c (wait_policy, stacksize): New static variables,
824         move out of handle_omp_display_env.
825         (omp_display_env): New function.  The meat of the old
826         handle_omp_display_env function.
827         (handle_omp_display_env): Change to not take parameters
828         and instead use the global variables.  Only perform
829         parsing, defer to omp_display_env for the implementation.
830         (initialize_env): Remove local variables wait_policy and
831         stacksize.  Don't pass parameters to handle_omp_display_env.
832         * fortran.c: Add ialias_redirect for omp_display_env.
833         (omp_display_env_, omp_display_env_8_): New functions.
834         * libgomp.map (OMP_5.1): New version.  Add omp_display_env,
835         omp_display_env_, and omp_display_env_8_.
836         * omp.h.in: Declare omp_display_env.
837         * omp_lib.f90.in: Likewise.
838         * omp_lib.h.in: Likewise.
840 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
841             Julian Brown  <julian@codesourcery.com>
843         * target.c (gomp_coalesce_buf_add): Update comment.
844         (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
845         'aq && cbuf'.
846         (gomp_map_vars_internal): Only 'if (!aq)', do
847         'gomp_coalesce_buf_add'.
848         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
849         XFAIL.
851 2021-07-27  Julian Brown  <julian@codesourcery.com>
852             Thomas Schwinge  <thomas@codesourcery.com>
854         * libgomp.h (gomp_copy_host2dev): Update prototype.
855         * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
856         argument to gomp_copy_host2dev (false).
857         * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
858         (copy_data): Don't free src.
859         (queue_push_copy): Remove free_src handling.
860         (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
861         (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
862         snapshotting.
863         (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
864         queue_push_copy.
865         * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
866         (gomp_copy_host2dev): Add EPHEMERAL parameter.  Snapshot source
867         data when true, and set up deferred freeing of temporary buffer.
868         (gomp_copy_dev2host): Update call to goacc_device_copy_async.
869         (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
870         (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
871         calls to gomp_copy_host2dev with appropriate ephemeral argument.
872         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
873         XFAIL.
875 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
876             Tom de Vries  <tom@codesourcery.com>
878         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
879         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
881 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
883         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
884         sequencing of 'async' data copying vs. profiling events.
885         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
886         Likewise.
888 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
889             Julian Brown  <julian@codesourcery.com>
891         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
892         'async'/'wait' issue.
893         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
894         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
895         * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
897 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
898             Joseph Myers  <joseph@codesourcery.com>
899             Cesar Philippidis  <cesar@codesourcery.com>
901         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
902         file.
903         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
904         Likewise.
905         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
906         Likewise.
907         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
909 2021-07-20  Thomas Schwinge  <thomas@codesourcery.com>
911         PR target/101484
912         * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
913         '-Wno-error=array-bounds'.
914         * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
915         * libgomp.h [__AMDGCN__]: Likewise.
917 2021-07-19  Thomas Schwinge  <thomas@codesourcery.com>
919         PR target/101484
920         * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
921         * libgomp.h [__AMDGCN__]: Likewise.
923 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
924             Florian Weimer  <fweimer@redhat.com>
926         * config/linux/sem.h: Don't include limits.h.
927         (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
928         * config/linux/affinity.c: Include limits.h.
930 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
932         PR middle-end/94366
933         * testsuite/libgomp.c-c++-common/pr94366.c: New test.
935 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
937         PR other/67300
938         * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
939         -foffload=nvptx-none= by -foffload-options=nvptx-none= to
940         avoid disabling other offload targets.
941         * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
942         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
943         * testsuite/libgomp.c/target-44.c: Likewise.
945 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
947         * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
948         target has shared memory and disable some scalar pointer/allocatable
949         checks if not as firstprivate does not work.
951 2021-06-25  Chung-Lin Tang  <cltang@codesourcery.com>
953         PR testsuite/101114
954         * testsuite/libgomp.c-c++-common/struct-elem-5.c:
955         Add "target offload_device_nonshared_as" condition for enabling test.
957 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
959         * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
960         * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
961         * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
962         * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
964 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
966         PR middle-end/101167
967         * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
969 2021-06-17  Chung-Lin Tang  <cltang@codesourcery.com>
971         * hashtab.h (htab_clear): New function with initialization code
972         factored out from...
973         (htab_create): ...here, adjust to use htab_clear function.
974         * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
975         special refcount values, add comments.
976         (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
977         (REFCOUNT_LINK): Likewise.
978         (REFCOUNT_STRUCTELEM): New special refcount range for structure
979         element siblings.
980         (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
981         sibling maps.
982         (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
983         (REFCOUNT_STRUCTELEM_FLAG_LAST):  Flag to indicate last sibling.
984         (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
985         (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
986         (struct splay_tree_key_s): Add structelem_refcount and
987         structelem_refcount_ptr fields into a union with dynamic_refcount.
988         Add comments.
989         (gomp_map_vars): Delete declaration.
990         (gomp_map_vars_async): Likewise.
991         (gomp_unmap_vars): Likewise.
992         (gomp_unmap_vars_async): Likewise.
993         (goacc_map_vars): New declaration.
994         (goacc_unmap_vars): Likewise.
995         * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
996         (goacc_enter_datum): Likewise.
997         (goacc_enter_data_internal): Likewise.
998         * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
999         and goacc_unmap_vars.
1000         (GOACC_data_start): Adjust to use goacc_map_vars.
1001         (GOACC_data_end): Adjust to use goacc_unmap_vars.
1002         * target.c (hash_entry_type): New typedef.
1003         (htab_alloc): New function hook for hashtab.h.
1004         (htab_free): Likewise.
1005         (htab_hash): Likewise.
1006         (htab_eq): Likewise.
1007         (hashtab.h): Add file include.
1008         (gomp_increment_refcount): New function.
1009         (gomp_decrement_refcount): Likewise.
1010         (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
1011         gomp_increment_refcount.
1012         (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
1013         to gomp_map_vars_existing.
1014         (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
1015         variable to guard OpenMP specific paths, adjust calls to
1016         gomp_map_vars_existing, add structure element sibling splay_tree_key
1017         sequence creation code, adjust Fortran map case to avoid increment
1018         under OpenMP.
1019         (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
1020         local refcount_set if caller passed in NULL, adjust call to
1021         gomp_map_vars_internal.
1022         (gomp_map_vars_async): Adjust and rename into...
1023         (goacc_map_vars): ...this new function, adjust call to
1024         gomp_map_vars_internal.
1025         (gomp_remove_splay_tree_key): New function with code factored out from
1026         gomp_remove_var_internal.
1027         (gomp_remove_var_internal): Add code to handle removing multiple
1028         splay_tree_key sequence for structure elements, adjust code to use
1029         gomp_remove_splay_tree_key for splay-tree key removal.
1030         (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
1031         gomp_decrement_refcount.
1032         (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
1033         local refcount_set if caller passed in NULL, adjust call to
1034         gomp_unmap_vars_internal.
1035         (gomp_unmap_vars_async): Adjust and rename into...
1036         (goacc_unmap_vars): ...this new function, adjust call to
1037         gomp_unmap_vars_internal.
1038         (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
1039         gomp_unmap_vars.
1040         (GOMP_target_ext): Likewise.
1041         (gomp_target_data_fallback): Adjust call to gomp_map_vars.
1042         (GOMP_target_data): Likewise.
1043         (GOMP_target_data_ext): Likewise.
1044         (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
1045         (gomp_exit_data): Add refcount_set parameter, adjust to use
1046         gomp_decrement_refcount, adjust to queue splay-tree keys for removal
1047         after main loop.
1048         (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
1049         gomp_map_vars and gomp_exit_data.
1050         (gomp_target_task_fn): Likewise.
1051         * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
1052         * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
1053         * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
1054         * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
1055         * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
1056         * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
1058 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
1060         PR fortran/92568
1061         * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
1063 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
1064             Thomas Schwinge  <thomas@codesourcery.com>
1066         * libgomp.map (GOACC_2.0.2): New symbol version.
1067         * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
1068         * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
1070 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
1071             Andrew Stubbs  <ams@codesourcery.com>
1073         * oacc-mem.c (goacc_enter_exit_data_internal): New function,
1074         extracted from...
1075         (GOACC_enter_exit_data): ... here.
1076         (GOACC_declare): Use it.
1078 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
1080         * oacc-parallel.c (GOACC_declare): Move...
1081         * oacc-mem.c: ... here.
1082         * libgomp_g.h: Adjust.
1084 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
1085             Thomas Schwinge  <thomas@codesourcery.com>
1087         * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
1088         handling.
1090 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
1092         PR tree-optimization/100981
1093         * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
1094         dsdotr and dsdoti to 0.
1096 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
1098         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
1099         if atomic compare-and-swap is supported on 'int'.
1101 2021-06-09  Richard Biener  <rguenther@suse.de>
1103         PR tree-optimization/100981
1104         * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
1106 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1108         * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
1109         unconditionally.
1110         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1111         Update.
1112         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1113         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
1115 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1117         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
1118         '-DACC_MEM_SHARED=0'.
1119         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
1120         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
1121         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
1122         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1123         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1124         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
1125         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1126         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1127         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1128         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1129         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
1130         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
1131         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
1132         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
1133         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
1134         'acc_device_radeon' testing.
1135         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
1136         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
1137         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
1138         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
1139         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1140         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1141         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
1142         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
1143         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
1144         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
1145         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
1146         for non-'openacc_nvidia_accel_selected'.
1147         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1148         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
1149         all implement this checking".
1150         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1151         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1152         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1153         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1154         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1156 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1158         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
1159         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
1161 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1163         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
1164         for 'acc_device_radeon'.
1166 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1168         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
1169         for non-'acc_device_nvidia'.
1171 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1173         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
1174         'acc_device_radeon' testing.
1175         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1176         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1177         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1179 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1181         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
1182         require 'openacc_nvidia_accel_selected'.  Fix up for
1183         'ACC_DEVICE_TYPE_radeon'.
1185 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1187         * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
1188         'openacc_nvidia_accel_selected'.
1189         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
1191 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1193         * testsuite/lib/libgomp.exp
1194         (check_effective_target_openacc_radeon_accel_selected):
1195         Streamline.
1197 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1199         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
1200         PR80547 workaround.
1202 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1204         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
1205         <acc_device_nvidia>: Update comment.
1207 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
1209         * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
1211 2021-05-27  Jakub Jelinek  <jakub@redhat.com>
1213         * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
1214         check_effective_target_openacc_cublas,
1215         check_effective_target_openacc_cudart): New.
1216         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
1217         target openacc_cublas.
1218         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
1219         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
1220         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
1221         target openacc_cuda.
1222         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
1223         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
1224         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
1225         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
1226         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
1227         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
1228         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
1229         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
1230         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
1231         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
1232         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
1233         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1234         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
1235         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
1236         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
1237         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
1238         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
1239         targets openacc_cublas and openacc_cudart.
1240         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
1241         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
1242         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
1243         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
1244         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
1245         Require effective target openacc_cudart.
1246         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
1247         for effective target openacc_cuda and add && defined USE_CUDA_H to
1248         preprocessor conditionals.  Guard -lcuda also on openacc_cuda
1249         effective target.
1251 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
1253         PR libgomp/100573
1254         * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
1255         GOMP_target_end_data, GOMP_target_update_ext,
1256         GOMP_target_enter_exit_data): New dummy entrypoints.
1257         * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
1258         GOMP_target_end_data, GOMP_target_update_ext,
1259         GOMP_target_enter_exit_data): Likewise.
1260         * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
1261         OMPFROM, OMPTO): Define.
1262         (main): Remove #pragma omp target teams around all the tests.
1263         * testsuite/libgomp.c-c++-common/target-41.c: New test.
1264         * testsuite/libgomp.c-c++-common/target-42.c: New test.
1266 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
1268         PR middle-end/99928
1269         * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
1271 2021-05-24  Tobias Burnus  <tobias@codesourcery.com>
1273         PR fortran/86470
1274         * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
1275         * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
1276         * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
1278 2021-05-22  Thomas Schwinge  <thomas@codesourcery.com>
1280         PR testsuite/90115
1281         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
1282         uninteresting/varying diagnostics.
1284 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
1286         PR middle-end/90115
1287         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
1288         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1290 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
1292         PR middle-end/90115
1293         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
1294         file.
1295         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
1296         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
1297         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1298         Likewise.
1299         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1300         Likewise.
1301         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1302         Likewise.
1303         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1304         Likewise.
1305         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1306         Likewise.
1307         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1308         Likewise.
1309         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1310         Likewise.
1311         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1312         Likewise.
1313         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1314         Likewise.
1315         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1316         Likewise.
1317         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1318         Likewise.
1319         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1320         Likewise.
1321         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1322         Likewise.
1323         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1324         Likewise.
1325         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1326         Likewise.
1327         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1328         Likewise.
1329         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1330         Likewise.
1331         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1332         Likewise.
1333         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1334         Likewise.
1335         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1336         Likewise.
1337         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1338         Likewise.
1339         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
1340         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
1341         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
1342         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
1343         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
1344         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
1345         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
1346         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
1347         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1348         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1349         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
1350         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
1351         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1352         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
1353         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1354         Likewise.
1355         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
1356         Likewise.
1357         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
1358         Likewise.
1359         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1360         Likewise.
1361         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
1362         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
1363         Likewise.
1364         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1365         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1366         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1367         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
1368         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
1369         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1370         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1371         Likewise.
1372         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1373         Likewise.
1374         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1375         Likewise.
1376         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1377         Likewise.
1378         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1379         Likewise.
1380         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1381         Likewise.
1382         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1383         Likewise.
1384         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1385         Likewise.
1386         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1387         Likewise.
1388         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1389         Likewise.
1390         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1391         Likewise.
1392         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1393         Likewise.
1394         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1395         Likewise.
1396         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1397         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1398         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
1399         Likewise.
1400         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
1401         Likewise.
1402         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1403         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1404         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1406 2021-05-21  Julian Brown  <julian@codesourcery.com>
1407             Chung-Lin Tang  <cltang@codesourcery.com>
1408             Thomas Schwinge  <thomas@codesourcery.com>
1410         PR middle-end/90115
1411         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
1412         test.
1413         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
1414         Likewise.
1415         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
1416         Likewise.
1418 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
1420         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
1421         for nvptx offloading.
1423 2021-05-21  Tobias Burnus  <tobias@codesourcery.com>
1425         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
1427 2021-05-19  Thomas Schwinge  <thomas@codesourcery.com>
1429         PR target/83812
1430         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
1432 2021-05-19  Julian Brown  <julian@codesourcery.com>
1434         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
1436 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
1438         * testsuite/lib/libgomp.exp
1439         (check_effective_target_offload_target_nvptx): Don't shadow global
1440         'offload_targets' variable.
1442 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
1444         * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
1445         '-latomic' to nvptx offloading compilation.
1446         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1448 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
1450         * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
1451         offloading compilation.
1453 2021-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
1455         * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
1456         if new tasks generated.
1457         * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
1459 2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
1461         * testsuite/libgomp.fortran/parallel-master.f90: New test.
1463 2021-05-13  Martin Liska  <mliska@suse.cz>
1465         PR testsuite/100569
1466         * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
1467         * testsuite/libgomp.c/pr46032-2.c: Likewise.
1468         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
1469         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
1471 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
1473         * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
1474         * testsuite/libgomp.fortran/task-detach-12.f90: New test.
1476 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
1478         PR middle-end/100471
1479         * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
1480         GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
1481         reduction pointer.
1482         * testsuite/libgomp.c/task-reduction-4.c: New test.
1484 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
1485             Tom de Vries  <tdevries@suse.de>
1487         * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
1488         complex/floating-point || + && reduction with 'omp target'.
1489         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1491 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
1493         * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
1494         * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
1495         * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
1496         * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
1498 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
1500         PR testsuite/100397
1501         * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
1502         declaration to scope of non-'depend'-guarded assignment to avoid races.
1504 2021-05-03  Tom de Vries  <tdevries@suse.de>
1506         PR target/100321
1507         * testsuite/libgomp.c/target-44.c: New test.
1509 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
1511         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
1513 2021-04-29  Tom de Vries  <tdevries@suse.de>
1515         * testsuite/libgomp.c/pr81778.c: New test.
1517 2021-04-29  Tom de Vries  <tdevries@suse.de>
1519         PR target/100232
1520         * testsuite/libgomp.c/target-43.c: New file.
1522 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
1523             Tobias Burnus  <tobias@codesourcery.com>
1525         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
1526         * target.c (gomp_load_plugin_for_device): If set and if a plugin
1527         can't be dlopened, silently assume it has no devices.
1528         * Makefile.in: Regenerate.
1529         * config.h.in: Regenerate.
1530         * configure: Regenerate.
1532 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
1534         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1535         Use [Ww]arning in dg-bogus as FE diagnostic and default
1536         diagnostic differ and the result depends on ENABLE_OFFLOAD.
1537         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1538         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1539         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1541 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
1543         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1544         Correct spelling in dg-bogus to match -Wopenacc-parallelism.
1545         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1546         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1547         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1549 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
1550             Nathan Sidwell  <nathan@codesourcery.com>
1551             Tom de Vries  <vries@codesourcery.com>
1552             Julian Brown  <julian@codesourcery.com>
1553             Kwok Cheung Yeung  <kcy@codesourcery.com>
1555         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
1556         '-Wopenacc-parallelism', and match diagnostics, as appropriate.
1557         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
1558         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1559         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1560         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1561         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
1562         Likewise.
1563         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
1564         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1565         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1566         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1567         Likewise.
1568         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
1569         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1570         Likewise.
1571         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1572         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
1573         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
1574         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
1575         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
1576         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
1577         Likewise.
1578         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1579         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
1580         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1581         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1582         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1583         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
1584         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1585         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1586         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1587         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1588         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1590 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
1592         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
1593         compile with '-w'.
1594         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1595         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1596         Likewise.
1597         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1598         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
1599         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1600         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1601         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1602         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1603         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
1605 2021-04-22  Richard Biener  <rguenther@suse.de>
1607         * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
1608         only on nvptx-none.
1610 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
1612         * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
1613         omp_depend_kind instead of defining it as 16.
1615 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
1617         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
1618         New, based on check_effective_target_offload_target_nvptx.
1619         (check_effective_target_offload_target_nvptx): Call it.
1620         (check_effective_target_offload_target_amdgcn): New.
1621         * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
1622         Require target offload_target_nvptx || offload_target_amdgcn.
1623         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
1624         * testsuite/libgomp.c/pr86416-1.c: Likewise.
1625         * testsuite/libgomp.c/pr86416-2.c: Likewise.
1627 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
1629         * testsuite/libgomp.fortran/depobj-1.f90: New test.
1631 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
1633         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1634         '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
1635         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1636         Likewise.
1637         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1638         Likewise.
1639         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1641 2021-04-15  Thomas Schwinge  <thomas@codesourcery.com>
1643         PR target/99555
1644         * testsuite/lib/libgomp.exp
1645         (check_effective_target_offload_device_nvptx): New.
1646         * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
1647         resolved, make sure that we exit quickly, with error status,
1648         XFAILed.
1649         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
1650         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1652 2021-04-14  Jakub Jelinek  <jakub@redhat.com>
1654         PR testsuite/100071
1655         * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
1656         cp = omp_alloc with cp, p arguments instead of cq, q and call
1657         c_f_pointer after last cq = omp_alloc with cq, q.
1659 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
1661         PR middle-end/98088
1662         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
1663         for loop with GT/GE condition.
1664         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
1666 2021-04-09  Thomas Schwinge  <thomas@codesourcery.com>
1668         PR middle-end/84991
1669         PR middle-end/84992
1670         PR middle-end/90779
1671         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
1673 2021-04-09  Jakub Jelinek  <jakub@redhat.com>
1675         PR libgomp/99984
1676         * team.c (gomp_thread_start): Call pthread_setspecific for
1677         !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
1678         has been initialized to avoid false positive warning.
1680 2021-03-29  Tobias Burnus  <tobias@codesourcery.com>
1682         PR target/99555
1683         * testsuite/lib/on_device_arch.c: Move to ...
1684         * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
1685         * testsuite/libgomp.fortran/on_device_arch.c: New file;
1686         #include on_device_arch.h.
1687         * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
1688         on_device_arch.h instead of using dg-additional-source.
1689         * testsuite/libgomp.c/pr99555-1.c: Likewise.
1690         * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
1691         on_device_arch.c without relative paths.
1693 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
1695         * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
1696         the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
1697         * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
1698         * config.h.in: Regenerate.
1699         * configure: Likewise.
1701 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
1703         PR target/99555
1704         * testsuite/lib/on_device_arch.c: New file.
1705         * testsuite/libgomp.c/pr99555-1.c: Likewise.
1706         * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
1707         skip for nvptx offloading, with error status.
1708         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1710 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
1712         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
1713         OpenACC 'serial' construct diagnostic for nvptx offloading.
1715 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
1717         PR c++/99509
1718         * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
1720 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
1722         PR fortran/98858
1723         * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
1725 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
1727         * configure.ac: Add AC_CHECK_SIZEOF([void *]).
1728         * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
1729         checking of -m32 or -mx32 options on the command line.
1730         * config.h.in: Regenerated.
1731         * configure: Regenerated.
1733 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
1735         * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
1736         support from the target.
1738 2021-02-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
1739             Jakub Jelinek  <jakub@redhat.com>
1741         PR libgomp/98738
1742         * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
1743         (struct gomp_task): Replace detach and completion_sem fields with
1744         union containing completion_sem and detach_team.  Add deferred_p
1745         field.
1746         (struct gomp_team): Remove task_detach_queue.
1747         * task.c: Include assert.h.
1748         (gomp_init_task): Initialize deferred_p and completion_sem fields.
1749         Rearrange initialization order of fields.
1750         (task_fulfilled_p): Delete.
1751         (GOMP_task): Use address of task as the event handle.  Remove
1752         initialization of detach field.  Initialize deferred_p field.
1753         Use automatic local for completion_sem.  Initialize detach_team field
1754         for deferred tasks.
1755         (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
1756         Set kind of suspended detach task to GOMP_TASK_DETACHED and
1757         decrement task_running_count.  Move finish_cancelled block out of
1758         else branch.  Relocate call to gomp_team_barrier_done.
1759         (GOMP_taskwait): Handle tasks with completion events that have not
1760         been fulfilled.
1761         (GOMP_taskgroup_end): Likewise.
1762         (omp_fulfill_event): Use address of task as event handle.  Post to
1763         completion_sem for undeferred tasks.  Clear detach_team if task
1764         has not finished.  For finished tasks, handle post-execution tasks,
1765         call gomp_team_barrier_wake if necessary, and free task.
1766         * team.c (gomp_new_team): Remove initialization of task_detach_queue.
1767         (free_team): Remove free of task_detach_queue.
1768         * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
1769         * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
1770         * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
1771         * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
1772         * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
1773         Change data-sharing of detach events on enclosing parallel to private.
1774         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.  Remove
1775         taskwait directive.
1776         * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
1777         * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
1778         * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
1779         * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
1780         * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
1781         * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
1782         * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
1783         * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
1784         * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
1785         * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
1786         Change data-sharing of detach events on enclosing parallel to private.
1787         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.  Remove
1788         taskwait directive.
1789         * testsuite/libgomp.fortran/task-detach-7.f90: New.
1790         * testsuite/libgomp.fortran/task-detach-8.f90: New.
1791         * testsuite/libgomp.fortran/task-detach-9.f90: New.
1792         * testsuite/libgomp.fortran/task-detach-10.f90: New.
1793         * testsuite/libgomp.fortran/task-detach-11.f90: New.
1795 2021-02-22  Tobias Burnus  <tobias@codesourcery.com>
1797         PR fortran/99171
1798         * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
1800 2021-02-17  Julian Brown  <julian@codesourcery.com>
1802         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
1803         expected errors.
1805 2021-02-17  Julian Brown  <julian@codesourcery.com>
1807         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
1808         * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
1810 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1812         * config/linux/x86/futex.h (__futex_wait):
1813         Revert output type back to long.
1814         (__futex_wake): Ditto.
1815         (futex_wait): Update for revert.
1816         (futex_wake): Ditto.
1818 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1820         * config/linux/x86/futex.h (__futex_wait): New static inline
1821         wrapper function.  Correct output type to int and
1822         timeout type to void *.
1823         (__futex_wake): New static inline wrapper function.
1824         Correct output type to int.
1825         (futex_wait): Use __futex_wait.
1826         (futex_wake): Use __futex_wake.
1828 2021-02-10  Julian Brown  <julian@codesourcery.com>
1830         PR fortran/98979
1831         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
1832         errors.
1834 2021-02-04  Julian Brown  <julian@codesourcery.com>
1836         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
1838 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
1840         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
1841         EF_AMDGPU_MACH_AMDGCN_GFX908.
1842         (gcn_gfx908_s): New constant string.
1843         (isa_hsa_name): Add gfx908.
1844         (isa_code): Add gfx908.
1846 2021-01-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
1848         * libgomp.texi (omp_fulfill_event): New entry.
1850 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
1852         * task.c (GOMP_task): Rename priority argument to priority_arg,
1853         add priority automatic variable and modify that variable.  Instead of
1854         clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
1855         check flags for that bit.
1857 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
1859         PR fortran/98476
1860         * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
1862 2021-01-18  Andreas Schwab  <schwab@suse.de>
1864         * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
1866 2021-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1868         * config/rtems/sem.h (gomp_sem_getcount): New function.
1870 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
1872         * config/linux/sem.h (gomp_sem_getcount): New function.
1873         * config/posix/sem.h (gomp_sem_getcount): New function.
1874         * config/posix/sem.c (gomp_sem_getcount): New function.
1875         * config/accel/sem.h (gomp_sem_getcount): New function.
1876         * task.c (task_fulfilled_p): Use gomp_sem_getcount.
1877         (omp_fulfill_event): Likewise.
1879 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
1881         * fortran.c (omp_fulfill_event_): New.
1882         * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
1883         (struct gomp_team): Add task_detach_queue and task_detach_count
1884         fields.
1885         * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
1886         * libgomp_g.h (GOMP_task): Add extra argument.
1887         * omp.h.in (enum omp_event_handle_t): New.
1888         (omp_fulfill_event): New.
1889         * omp_lib.f90.in (omp_event_handle_kind): New.
1890         (omp_fulfill_event): New.
1891         * omp_lib.h.in (omp_event_handle_kind): New.
1892         (omp_fulfill_event): Declare.
1893         * priority_queue.c (priority_tree_find): New.
1894         (priority_list_find): New.
1895         (priority_queue_find): New.
1896         * priority_queue.h (priority_queue_predicate): New.
1897         (priority_queue_find): New.
1898         * task.c (gomp_init_task): Initialize detach field.
1899         (task_fulfilled_p): New.
1900         (GOMP_task): Add detach argument.  Ignore detach argument if
1901         GOMP_TASK_FLAG_DETACH not set in flags.  Initialize completion_sem
1902         field.  Copy address of completion_sem into detach argument and
1903         into the start of the data record.  Wait for detach event if task
1904         not deferred.
1905         (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
1906         Remove completed tasks and requeue dependent tasks.
1907         (omp_fulfill_event): New.
1908         * team.c (gomp_new_team): Initialize task_detach_queue and
1909         task_detach_count fields.
1910         (free_team): Free task_detach_queue field.
1911         * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
1912         * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
1913         * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
1914         * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
1915         * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
1916         * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
1917         * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
1918         * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
1919         * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
1920         * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
1921         * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
1922         * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
1924 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
1926         PR target/70454
1927         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
1928         be added through preprocessor check on
1929         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
1931 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
1933         PR libgomp/65099
1934         * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
1935         configurations.
1936         * configure: Regenerate.
1937         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
1938         check.
1940 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1942         * configure: Re-generate.
1944 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1946         * configure: Re-generate.
1948 2021-01-05  Julian Brown  <julian@codesourcery.com>
1950         * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
1951         (struct ptx_device): Add omp_stacks struct.
1952         (nvptx_open_device): Initialise cached-stacks housekeeping info.
1953         (nvptx_close_device): Free cached stacks block and mutex.
1954         (nvptx_stacks_free): New function.
1955         (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
1956         (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
1957         (nvptx_stacks_alloc): Rename to...
1958         (nvptx_stacks_acquire): This.  Cache stacks block between runs if same
1959         size or smaller is required.
1960         (nvptx_stacks_free): Remove.
1961         (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
1962         during kernel execution.
1964 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
1966         * libgomp.texi: Bump @copying's copyright year.
1968 2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
1970         * libgomp.texi (Top): Avoid bad "up" link.
1972 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
1974         * testsuite/libgomp.c/task-6.c: New test.
1976 2020-12-09  Andrew Stubbs  <ams@codesourcery.com>
1978         * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
1979         (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
1981 2020-12-08  Tobias Burnus  <tobias@codesourcery.com>
1983         * testsuite/libgomp.fortran/scan-1.f90: New test.
1985 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
1987         PR target/97865
1988         * configure: Regenerate.
1990 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
1992         * configure: Regenerate.
1994 2020-11-25  Thomas Schwinge  <thomas@codesourcery.com>
1996         * testsuite/libgomp.oacc-c++/cache-1.C: New.
1997         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
1999 2020-11-25  Andrew Stubbs  <ams@codesourcery.com>
2001         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
2002         expected results.
2004 2020-11-24  Andrew Stubbs  <ams@codesourcery.com>
2006         * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
2007         (reserved): Delete unused define.
2009 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
2011         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
2012         Tcl 8.5-specific behavior.
2013         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
2015 2020-11-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
2017         * env.c (gomp_global_icv): Remove nest_var field.  Add
2018         max_active_levels_var field.
2019         (gomp_max_active_levels_var): Remove.
2020         (parse_boolean): Return true on success.
2021         (handle_omp_display_env): Express OMP_NESTED in terms of
2022         max_active_levels_var.  Change format specifier for
2023         max_active_levels_var.
2024         (initialize_env): Set max_active_levels_var from
2025         OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
2026         OMP_PROC_BIND.
2027         * icv.c (omp_set_nested): Express in terms of
2028         max_active_levels_var.
2029         (omp_get_nested): Likewise.
2030         (omp_set_max_active_levels): Use max_active_levels_var field instead
2031         of gomp_max_active_levels_var.
2032         (omp_get_max_active_levels): Likewise.
2033         * libgomp.h (struct gomp_task_icv): Remove nest_var field.  Add
2034         max_active_levels_var field.
2035         (gomp_supported_active_levels): Set to UCHAR_MAX.
2036         (gomp_max_active_levels_var): Delete.
2037         * libgomp.texi (omp_get_nested): Update documentation.
2038         (omp_set_nested): Likewise.
2039         (OMP_MAX_ACTIVE_LEVELS): Likewise.
2040         (OMP_NESTED): Likewise.
2041         (OMP_NUM_THREADS): Likewise.
2042         (OMP_PROC_BIND): Likewise.
2043         * parallel.c (gomp_resolve_num_threads): Replace reference
2044         to nest_var with max_active_levels_var.  Use max_active_levels_var
2045         field instead of gomp_max_active_levels_var.
2047 2020-11-18  Tobias Burnus  <tobias@codesourcery.com>
2049         * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
2050         nvptx_usleep; use also for device={arch(gcn)}.
2052 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
2054         * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
2055         (foo): Add tests for non-VLA private and firstprivate clauses on
2056         omp task.
2057         (bar): Likewise.  Remove taking of address from private/firstprivate
2058         variables.
2059         * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
2060         (foo): Add p, q, px and s arguments.  Add tests for array reductions
2061         and for non-VLA private and firstprivate clauses on omp task.
2062         (bar): Removed.
2063         (main): Adjust foo caller.  Don't call bar.
2065 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
2066             Thomas Schwinge  <thomas@codesourcery.com>
2068         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2069         New.
2070         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
2071         Likewise.
2072         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2073         Likewise.
2074         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
2075         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
2077 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
2078             Thomas Schwinge  <thomas@codesourcery.com>
2080         PR fortran/94358
2081         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
2083 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
2085         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
2086         for array reductions.
2087         (main): Adjust foo callers.
2089 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
2091         * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
2092         * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
2093         * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
2094         * allocator.c (omp_aligned_alloc): New for now static function,
2095         add alignment argument and handle it.
2096         (omp_alloc): Reimplement using omp_aligned_alloc.
2097         (GOMP_alloc, GOMP_free): New functions.
2098         (omp_free): Add ialias.
2099         * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
2100         * testsuite/libgomp.c++/allocate-1.C: New test.
2102 2020-11-12  Thomas Schwinge  <thomas@codesourcery.com>
2104         PR fortran/97782
2105         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
2107 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
2109         * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
2110         usable.
2111         * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
2112         'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
2113         (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
2114         (goacc_enter_data_internal): Likewise.
2115         * target.c (gomp_map_vars_internal):
2116         Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
2117         of gomp_attach_pointer for OpenMP cases.
2118         (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
2119         (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
2120         * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
2122 2020-11-05  Ulrich Drepper  <drepper@redhat.com>
2123             Kwok Cheung Yeung  <kcy@codesourcery.com>
2125         * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
2126         * Makefile.in: Regenerate.
2127         * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
2128         pragmas to ignore -Wdeprecated-declarations warnings.
2129         * icv.c: Likewise.
2130         * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
2131         Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
2132         and omp_get_nested with __GOMP_DEPRECATED_5_0.
2133         * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
2134         deprecated.
2135         * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
2136         to test options.
2137         * testsuite/libgomp.c/affinity-1.c: Likewise.
2138         * testsuite/libgomp.c/affinity-2.c: Likewise.
2139         * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
2140         * testsuite/libgomp.c/lib-1.c: Likewise.
2141         * testsuite/libgomp.c/nested-1.c: Likewise.
2142         * testsuite/libgomp.c/nested-2.c: Likewise.
2143         * testsuite/libgomp.c/nested-3.c: Likewise.
2144         * testsuite/libgomp.c/pr32362-1.c: Likewise.
2145         * testsuite/libgomp.c/pr32362-2.c: Likewise.
2146         * testsuite/libgomp.c/pr32362-3.c: Likewise.
2147         * testsuite/libgomp.c/pr35549.c: Likewise.
2148         * testsuite/libgomp.c/pr42942.c: Likewise.
2149         * testsuite/libgomp.c/pr61200.c: Likewise.
2150         * testsuite/libgomp.c/sort-1.c: Likewise.
2151         * testsuite/libgomp.c/target-5.c: Likewise.
2152         * testsuite/libgomp.c/target-6.c: Likewise.
2153         * testsuite/libgomp.c/teams-1.c: Likewise.
2154         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
2155         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
2156         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
2157         * testsuite/libgomp.fortran/affinity1.f90: Likewise.
2158         * testsuite/libgomp.fortran/lib1.f90: Likewise.
2159         * testsuite/libgomp.fortran/lib2.f: Likewise.
2160         * testsuite/libgomp.fortran/nested1.f90: Likewise.
2161         * testsuite/libgomp.fortran/teams1.f90: Likewise.
2163 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2165         PR target/85486
2166         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
2167         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
2168         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2170 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2172         PR testsuite/80219
2173         PR testsuite/85303
2174         * testsuite/lib/libgomp.exp (libgomp_init): Set
2175         'gcc_warning_prefix', 'gcc_error_prefix'.
2177 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
2179         * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
2180         even in field_tgt_clear initializer.
2182 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
2184         * testsuite/libgomp.c/target-42.c: New test.
2186 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
2187             Tom de Vries  <tdevries@suse.de>
2189         PR testsuite/81690
2190         * testsuite/libgomp.c/usleep.h: New file.
2191         * testsuite/libgomp.c/target-32.c: Include usleep.h.
2192         (main): Use tgt_usleep instead of usleep.
2193         * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
2194         (main): Use tgt_usleep instead of usleep.
2196 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
2198         PR lto/96680
2199         * testsuite/libgomp.c/declare-variant-1.c: New test.
2201 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
2203         * testsuite/libgomp.c/target-41.c: New test.
2205 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
2207         * icv.c (omp_get_initial_device): Remove including corresponding
2208         ialias.
2209         * icv-device.c (omp_get_initial_device): New function.  Return
2210         gomp_get_num_devices ().  Add ialias.
2211         * target.c (resolve_device): Don't fail with
2212         OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
2213         gomp_get_num_devices ().
2214         (omp_target_alloc, omp_target_free, omp_target_is_present,
2215         omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
2216         omp_target_disassociate_ptr, omp_pause_resource): Use
2217         gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
2218         first use in the functions, in uses dominated by the
2219         gomp_get_num_devices call use num_devices_openmp instead.
2220         * libgomp.texi (omp_get_initial_device): Document.
2221         * config/gcn/icv-device.c (omp_get_initial_device): New function.
2222         Add ialias.
2223         * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
2224         * testsuite/libgomp.c/target-40.c: New test.
2226 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
2228         * env.c (parse_target_offload): Change new_offload var type to int,
2229         preinitialize to -1, remove found var and test new_offload != -1
2230         instead of found.
2232 2020-10-20  Jakub Jelinek  <jakub@redhat.com>
2234         * target.c (gomp_target_init): Inside of the function, use automatic
2235         variables corresponding to num_devices, num_devices_openmp and devices
2236         global variables and update the globals only at the end of the
2237         function.
2239 2020-10-20  Kwok Cheung Yeung  <kcy@codesourcery.com>
2241         * env.c (gomp_target_offload_var): New.
2242         (parse_target_offload): New.
2243         (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
2244         (initialize_env): Parse OMP_TARGET_OFFLOAD.
2245         * libgomp.h (gomp_target_offload_t): New.
2246         (gomp_target_offload_var): New.
2247         * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
2248         * target.c (resolve_device): Generate error if device not found and
2249         offloading is mandatory.
2250         (gomp_target_fallback): Generate error if offloading is mandatory.
2251         (GOMP_target): Add argument in call to gomp_target_fallback.
2252         (GOMP_target_ext): Likewise.
2253         (gomp_target_data_fallback): Generate error if offloading is mandatory.
2254         (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
2255         (GOMP_target_data_ext): Likewise.
2256         (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
2257         (gomp_target_init): Return early if offloading is disabled.
2259 2020-10-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
2261         * libgomp.texi (omp_get_max_active_levels): Modify description.
2262         (omp_get_supported_active_levels): Make descriptions consistent.
2264 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
2266         * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
2268 2020-10-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
2270         * env.c (gomp_max_active_levels_var): Initialize to
2271         gomp_supported_active_levels.
2272         (initialize_env): Limit gomp_max_active_levels_var to be at most
2273         equal to gomp_supported_active_levels.
2274         * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
2275         (omp_get_supported_active_levels_): New.
2276         * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
2277         to at most equal to gomp_supported_active_levels.
2278         (omp_get_supported_active_levels): New.
2279         * libgomp.h (gomp_supported_active_levels): New.
2280         * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
2281         omp_get_supported_active_levels_.
2282         * libgomp.texi (omp_get_supported_active_levels): New.
2283         (omp_set_max_active_levels): Update.  Add reference to
2284         omp_get_supported_active_levels.
2285         * omp.h.in (omp_get_supported_active_levels): New.
2286         * omp_lib.f90.in (omp_get_supported_active_levels): New.
2287         * omp_lib.h.in (omp_get_supported_active_levels): New.
2288         * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
2289         against omp_get_supported_active_levels.
2290         * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
2292 2020-10-11  Clement Chigot  <clement.chigot@atos.net>
2294         * config/t-aix: Delete and recreate libgomp before creating
2295         FAT library.
2297 2020-10-08  Tom de Vries  <tdevries@suse.de>
2299         PR libgomp/81802
2300         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
2301         dimensions.
2303 2020-10-06  Tom de Vries  <tdevries@suse.de>
2305         * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
2307 2020-10-06  Tom de Vries  <tdevries@suse.de>
2309         PR middle-end/90861
2310         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
2312 2020-10-05  Tom de Vries  <tdevries@suse.de>
2314         PR fortran/95654
2315         * testsuite/libgomp.fortran/pr95654.f90: New test.
2317 2020-10-02  Tobias Burnus  <tobias@codesourcery.com>
2319         * Makefile.in: Regenerate with automake 1.15.1.
2320         * aclocal.m4: Likewise.
2321         * configure: Likewise.
2322         * testsuite/Makefile.in: Likewise.
2324 2020-09-30  Andrew Stubbs  <ams@codesourcery.com>
2326         * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
2327         and amdgcn targets.
2329 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
2331         * testsuite/libgomp.fortran/declare-target-3.f90: New test.
2333 2020-09-29  Andrew Stubbs  <ams@codesourcery.com>
2335         * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
2336         total number of threads is one.
2337         (gomp_team_barrier_wake): Likewise.
2338         (gomp_team_barrier_wait_end): Likewise.
2339         (gomp_team_barrier_wait_cancel_end): Likewise.
2340         * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
2341         (gomp_team_barrier_wake): Likewise.
2342         (gomp_team_barrier_wait_end): Likewise.
2343         (gomp_team_barrier_wait_cancel_end): Likewise.
2344         * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
2346 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
2348         PR middle-end/96390
2349         * testsuite/libgomp.c++/pr96390.C: New test.
2350         * testsuite/libgomp.c-c++-common/pr96390.c: New test.
2352 2020-09-27  Clement Chigot  <clement.chigot@atos.net>
2354         * config/t-aix: Use $(AR) without -X32_64.
2356 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
2358         * testsuite/libgomp.c/loop-25.c: New test.
2360 2020-09-22  Tobias Burnus  <tobias@codesourcery.com>
2362         PR fortran/95654
2363         * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
2365 2020-09-22  Tom de Vries  <tdevries@suse.de>
2367         * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
2368         fails.
2370 2020-09-16  Nathan Sidwell  <nathan@acm.org>
2372         * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
2374 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
2376         PR fortran/96668
2377         * target.c (gomp_map_vars_internal): Initialize has_nullptr.
2379 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
2381         PR fortran/96668
2382         * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
2383         * target.c (gomp_map_vars_existing): Add always_to_flag flag.
2384         (gomp_map_vars_existing): Update call to it.
2385         (gomp_map_fields_existing): Likewise
2386         (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
2387         now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
2388         remapped.
2389         (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
2390         GOMP_MAP_POINTER.
2391         * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
2392         * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
2394 2020-09-14  Tom de Vries  <tdevries@suse.de>
2396         * config/nvptx/atomic.c: New file.  Add
2397         __sync_val_compare_and_swap_16.
2398         * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
2399         target offload_target_nvptx.
2401 2020-09-08  Julian Brown  <julian@codesourcery.com>
2403         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
2404         iteration-ordering assumptions.
2406 2020-09-08  Julian Brown  <julian@codesourcery.com>
2408         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
2409         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2411 2020-08-20  Chung-Lin Tang  <cltang@codesourcery.com>
2413         * plugin/plugin-nvptx.c (nvptx_free):
2414         Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
2415         CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
2416         comments.
2418 2020-08-20  Tobias Burnus  <tobias@codesourcery.com>
2420         * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
2422 2020-08-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
2424         * testsuite/libgomp.c-c++-common/reduction-16.c: New.
2426 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
2428         * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
2429         * testsuite/libgomp.c/loop-23.c (main): Likewise.
2430         * testsuite/libgomp.c/loop-24.c: New test.
2432 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
2433             Tobias Burnus  <tobias@codesourcery.com>
2435         PR fortran/93553
2436         * testsuite/libgomp.fortran/pr93553.f90: New test.
2438 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
2440         * testsuite/libgomp.c/loop-22.c: New test.
2441         * testsuite/libgomp.c/loop-23.c: New test.
2443 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
2445         PR middle-end/96459
2446         * testsuite/libgomp.c/teams-3.c: New test.
2447         * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
2448         if not defined yet.
2449         (N(test)): Use it before all N(f*) calls.
2450         * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
2451         (main): Don't call all test_* functions from within
2452         #pragma omp teams reduction(|:err), call them directly.
2454 2020-08-04  Tom de Vries  <tdevries@suse.de>
2456         PR target/96428
2457         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
2458         * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
2460 2020-08-03  Julian Brown  <julian@codesourcery.com>
2461             Thomas Schwinge  <thomas@codesourcery.com>
2463         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
2464         shared-memory devices.  Extend with further checking.
2466 2020-08-03  Martin Jambor  <mjambor@suse.cz>
2468         * plugin/Makefrag.am: Remove configuration of HSA plugin.
2469         * aclocal.m4: Regenerated.
2470         * Makefile.in: Regenerated.
2471         * config.h.in: Regenerated.
2472         * configure: Regenerated.
2473         * plugin/configfrag.ac: Likewise.
2474         * plugin/hsa_ext_finalize.h: Removed.
2475         * plugin/plugin-hsa.c: Likewise.
2476         * testsuite/Makefile.in: Regenerated.
2477         * testsuite/lib/libgomp.exp
2478         (offload_target_to_openacc_device_type): Remove hsa case.
2479         (check_effective_target_hsa_offloading_selected_nocache): Removed
2480         (check_effective_target_hsa_offloading_selected): Likewise.
2481         (libgomp_init): Do not add -Wno-hsa to additional_flags.
2482         * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
2483         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
2484         * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
2485         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
2486         * testsuite/libgomp.hsa.c/c.exp: Likewise.
2487         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
2488         * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
2489         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
2490         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
2491         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
2492         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
2493         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
2494         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
2495         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
2496         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
2497         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
2498         * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
2499         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
2500         * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
2501         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
2502         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
2503         * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
2504         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
2505         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
2507 2020-07-27  Julian Brown  <julian@codesourcery.com>
2508             Thomas Schwinge  <thomas@codesourcery.com>
2510         * libgomp.h (struct target_var_desc): Rename do_detach field to
2511         is_attach.
2512         * oacc-mem.c (goacc_exit_datum_1): Add assert.  Don't set finalize for
2513         GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
2514         (goacc_enter_data_internal): Don't affect reference counts
2515         for attach mappings.
2516         (goacc_exit_data_internal): Don't affect reference counts for detach
2517         mappings.
2518         * target.c (gomp_map_vars_existing): Don't affect reference counts for
2519         attach mappings.
2520         (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
2521         mark attach mappings.
2522         (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
2523         reference count for attach mappings.
2524         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
2525         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2526         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2527         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
2528         test as shouldfail.
2529         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
2530         gracefully in no-finalize mode.
2531         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
2533 2020-07-24  Thomas Schwinge  <thomas@codesourcery.com>
2535         * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
2536         use.
2537         * testsuite/libgomp.oacc-c/c.exp: Likewise.
2538         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2540 2020-07-23  Julian Brown  <julian@codesourcery.com>
2541             Thomas Schwinge  <thomas@codesourcery.com>
2543         * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
2544         finalization for detach operation.
2545         * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
2546         New test.
2548 2020-07-23  Tobias Burnus  <tobias@codesourcery.com>
2550         * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
2551         * libgomp_f.h.in (omp_check_defines): Check whether
2552         sizeof of determined Fortran kind and C typedef match.
2553         * omp_lib.f90.in: Add omp_depened_kind.
2554         * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
2555         * configure: Regenerate.
2556         * Makefile.in: Regenerate.
2557         * testsuite/Makefile.in: Regenerate.
2559 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
2561         * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
2562         gcc/testsuite/c-c++-common/gomp/.
2563         * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
2564         * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
2565         from gcc/testsuite/gfortran.dg/gomp/.
2566         * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
2568 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
2570         * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
2571         * omp_lib.h.in: Likewise.
2573 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
2575         PR target/95620
2576         * testsuite/libgomp.c/pr95620.c: New test.
2578 2020-07-16  Julian Brown  <julian@codesourcery.com>
2579             Thomas Schwinge  <thomas@codesourcery.com>
2581         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
2582         * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
2584 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
2586         * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
2587         avoid conversion on 32bit systems from 32bit to 64bit due
2588         to -fdefault-integer-8.
2590 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
2592         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
2593         variables; add character(kind=4) tests; update TODO comment.
2595 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
2597         * allocator.c: Add ialias for omp_init_allocator and
2598         omp_destroy_allocator.
2599         * configure.ac: Set INTPTR_T_KIND.
2600         * configure: Regenerate.
2601         * Makefile.in: Regenerate.
2602         * testsuite/Makefile.in: Regenerate.
2603         * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
2604         omp_set_default_allocator_, omp_get_default_allocator_): New
2605         functions and ialias_redirect.
2606         * icv.c: Add ialias for omp_set_default_allocator and
2607         omp_get_default_allocator.
2608         * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
2609         omp_destroy_allocator_, omp_set_default_allocator_ and
2610         omp_get_default_allocator_.
2611         * omp_lib.f90.in: Add allocator traits parameters, declare
2612         allocator routines and add related kind parameters.
2613         * omp_lib.h.in: Likewise.
2614         * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
2615         * testsuite/libgomp.fortran/alloc-1.F90: New test.
2616         * testsuite/libgomp.fortran/alloc-2.F90: New test.
2617         * testsuite/libgomp.fortran/alloc-3.F: New test.
2618         * testsuite/libgomp.fortran/alloc-4.f90: New test.
2619         * testsuite/libgomp.fortran/alloc-5.f90: New test.
2621 2020-07-14  Tom de Vries  <tom@codesourcery.com>
2622             Cesar Philippidis  <cesar@codesourcery.com>
2623             Thomas Schwinge  <thomas@codesourcery.com>
2624             Kwok Cheung Yeung  <kcy@codesourcery.com>
2626         * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
2627         New variable.
2628         (acc_init_1): Set acc_init_thread to pthread_self ().  Set
2629         acc_init_state to initializing at the start, and to initialized at the
2630         end.
2631         (self_initializing_p): New function.
2632         (acc_get_device_type): Return acc_device_none if called by thread that
2633         is currently executing acc_init_1.
2634         * libgomp.texi (acc_get_device_type): Update documentation.
2635         (Implementation Status and Implementation-Defined Behavior): Likewise.
2636         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
2638 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
2640         * config/t-aix: Set BITS from compiler cpp macro.
2642 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
2644         * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
2646 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
2648         PR fortran/67311
2649         * testsuite/libgomp.fortran/target-map-1.f90: New test.
2651 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
2653         * testsuite/libgomp.c/loop-21.c: New test.
2655 2020-07-13  Julian Brown  <julian@codesourcery.com>
2656             Thomas Schwinge  <thomas@codesourcery.com>
2658         * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
2660 2020-07-10  Julian Brown  <julian@codesourcery.com>
2661             Thomas Schwinge  <thomas@codesourcery.com>
2663         * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
2664         dynamic_refcount.
2665         (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
2666         * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
2667         dynamic_refcount.
2668         (acc_unmap_data): Update comment.
2669         (goacc_map_var_existing, goacc_enter_datum): Adjust for
2670         dynamic_refcount semantics.
2671         (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
2672         Adjust for dynamic_refcount semantics.
2673         (goacc_enter_data_internal): Implement "present" case of dynamic
2674         memory-map handling here.  Update "non-present" case for
2675         dynamic_refcount semantics.
2676         (goacc_exit_data_internal): Use goacc_exit_datum_1.
2677         * target.c (gomp_map_vars_internal): Remove
2678         GOMP_MAP_VARS_OPENACC_ENTER_DATA handling.  Update for dynamic_refcount
2679         handling.
2680         (gomp_unmap_vars_internal): Remove virtual_refcount handling.
2681         (gomp_load_image_to_device): Substitute dynamic_refcount for
2682         virtual_refcount.
2683         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
2684         * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
2685         * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
2686         * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
2687         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
2688         trace output.
2689         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
2690         trace output.
2691         * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
2692         test.
2693         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
2694         Remove stale comment.
2695         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
2696         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
2697         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2698         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2699         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2700         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
2702 2020-07-10  Julian Brown  <julian@codesourcery.com>
2703             Thomas Schwinge  <thomas@codesourcery.com>
2705         * oacc-mem.c (goacc_map_var_existing): New function.
2706         (goacc_enter_datum): Use above function.
2707         (goacc_exit_datum_1): New function.
2708         (goacc_exit_datum): Use above function.
2710 2020-07-09  Julian Brown  <julian@codesourcery.com>
2711             Thomas Schwinge  <thomas@codesourcery.com>
2713         PR middle-end/95270
2714         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
2715         * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
2717 2020-07-09  Julian Brown  <julian@codesourcery.com>
2719         * oacc-mem.c (find_group_last): Group data-movement clauses
2720         (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
2721         GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
2723 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
2725         * testsuite/libgomp.c/loop-19.c: New test.
2726         * testsuite/libgomp.c/loop-20.c: New test.
2728 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
2730         * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
2731         2 to -1.  Add omp_atv_serialized and define omp_atv_sequential using
2732         it.  Remove __omp_alloctrait_value_max__.
2733         * allocator.c (omp_init_allocator): Handle omp_atv_default for
2734         omp_atk_alignment and omp_atk_pool_size.
2736 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
2738         * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
2739         behavior for 'GOMP_MAP_FORCE_FROM'.
2740         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
2742 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
2744         * oacc-mem.c (goacc_exit_data_internal): Remove
2745         'GOMP_MAP_ALWAYS_FROM' handling.
2747 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
2749         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
2750         'scan-assembler' with 'scan-offload-rtl'.
2751         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
2752         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
2753         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
2754         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
2756 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
2758         * target.c (gomp_map_vars_existing): Assert 'kind !=
2759         GOMP_MAP_ATTACH'.
2760         (gomp_map_vars_internal): Clean up.
2762 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
2764         * testsuite/libgomp.c/loop-17.c: New test.
2765         * testsuite/libgomp.c/loop-18.c: New test.
2767 2020-06-26  Marek Polacek  <polacek@redhat.com>
2769         * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
2771 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
2773         * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
2774         * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
2776 2020-06-22  David Edelsohn  <dje.gcc@gmail.com>
2778         * Makefile.am: Use -include.
2779         * Makefile.in: Regenerate.
2781 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
2783         * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
2784         * Makefile.in: Regenerate
2785         * configure.ac (tmake_file): Substitute.
2786         * configure: Regenerate.
2787         * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
2788         * config/t-aix: New file.
2790 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
2792         PR lto/94848
2793         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
2794         'dg-do run'.
2796 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
2798         * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
2799         variant for HSA_RUNTIME_LIB name.
2800         (find_executable_symbol_1): Delete.
2801         (find_executable_symbol): Delete.
2802         (init_kernel_properties): Add ".kd" suffix to symbol names.
2803         (find_load_offset): Delete.
2804         (create_and_finalize_hsa_program): Remove relocation handling.
2806 2020-06-16  Tobias Burnus  <tobias@codesourcery.com>
2808         * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
2810 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
2812         PR lto/94848
2813         PR middle-end/95551
2814         * testsuite/libgomp.fortran/target-var.f90: New test.
2816 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
2817             Julian Brown  <julian@codesourcery.com>
2819         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
2820         special handling.
2822 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
2823             Julian Brown  <julian@codesourcery.com>
2825         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2826         Simplify.
2828 2020-06-05  Julian Brown  <julian@codesourcery.com>
2830         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
2831         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
2833 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2835         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2836         Evaluate 'copyfrom' individually for each entry.
2837         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
2839 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2841         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2842         Evaluate 'finalize' individually for each entry.
2843         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
2844         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
2845         file.
2847 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2849         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
2850         usage.
2851         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
2853 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2854             Julian Brown  <julian@codesourcery.com>
2856         * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
2857         checking.
2858         (acc_unmap_data, goacc_exit_data_internal): Restore
2859         'is_tgt_unmapped' checking.
2860         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
2861         file.
2862         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
2863         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
2864         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2865         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2866         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2867         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
2869 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2870             Julian Brown  <julian@codesourcery.com>
2872         * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
2874 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2876         PR libgomp/92854
2877         * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
2879 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2881         PR libgomp/92854
2882         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
2883         more.
2885 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2886             Julian Brown  <julian@codesourcery.com>
2888         * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
2889         'gomp_map_vars'.
2890          (acc_map_data): Clean up accordingly.
2892 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2894         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
2895         of over-eager 'finalize' clause.
2896         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
2897         file.
2898         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
2899         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
2900         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2901         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2902         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2903         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
2904         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
2905         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
2907 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2909         * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
2911 2020-06-04  Julian Brown  <julian@codesourcery.com>
2913         * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
2914         error path.
2915         (goacc_detach_internal): Likewise.
2917 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2919         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
2920         the checkpoint.
2921         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
2922         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
2923         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
2924         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
2925         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
2927 2020-06-02  Jakub Jelinek  <jakub@redhat.com>
2929         * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
2930         defined.
2932 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
2934         * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
2936 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
2938         * allocator.c (omp_alloc): For size == 0, return NULL early.
2940 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
2942         PR bootstrap/95413
2943         * configure: Regenerated.
2945 2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
2947         PR libfortran/95191
2948         * testsuite/libgomp.fortran/async_io_9.f90: New test.
2950 2020-05-19  Jakub Jelinek  <jakub@redhat.com>
2952         * omp.h.in (omp_uintptr_t): New typedef.
2953         (__GOMP_UINTPTR_T_ENUM): Define.
2954         (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
2955         omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
2956         (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
2957         (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
2958         omp_get_default_allocator, omp_alloc, omp_free): Declare.
2959         * libgomp.h (struct gomp_team_state): Add def_allocator field.
2960         (gomp_def_allocator): Declare.
2961         * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
2962         omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
2963         omp_alloc and omp_free.
2964         * team.c (gomp_team_start): Copy over ts.def_allocator.
2965         * env.c (gomp_def_allocator): New variable.
2966         (parse_wait_policy): Adjust function comment.
2967         (parse_allocator): New function.
2968         (handle_omp_display_env): Print OMP_ALLOCATOR.
2969         (initialize_env): Call parse_allocator.
2970         * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
2971         * allocator.c: New file.
2972         * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
2973         functions.
2974         * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
2975         * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
2976         * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
2977         * Makefile.in: Regenerated.
2979 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2981         PR bootstrap/95147
2982         * configure: Regenerated.
2984 2020-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
2986         PR libfortran/95119
2987         * testsuite/libgomp.fortran/close_errors_1.f90: New test.
2989 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2991         * configure: Regenerated.
2993 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
2995         * testsuite/libgomp.c-c++-common/target-40.c: New test.
2997 2020-05-13  Tobias Burnus  <tobias@codesourcery.com>
2999         PR fortran/94690
3000         * testsuite/libgomp.fortran/pr66199-3.f90: New.
3001         * testsuite/libgomp.fortran/pr66199-4.f90: New.
3002         * testsuite/libgomp.fortran/pr66199-5.f90: New.
3003         * testsuite/libgomp.fortran/pr66199-6.f90: New.
3004         * testsuite/libgomp.fortran/pr66199-7.f90: New.
3005         * testsuite/libgomp.fortran/pr66199-8.f90: New.
3006         * testsuite/libgomp.fortran/pr66199-9.f90: New.
3008 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
3010         * testsuite/libgomp.c/target-39.c: New test.
3012 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
3014         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
3015         * openacc.f90 (acc_device_current): Likewise.
3016         * openacc.h (acc_device_current): Likewise.
3017         * openacc_lib.h (acc_device_current): Likewise.
3019         PR target/94282
3020         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
3021         'dg-allow-blank-lines-in-output'.
3023         * oacc-init.c (get_openacc_name): Handle 'gcn'.
3024         * testsuite/lib/libgomp.exp
3025         (offload_target_to_openacc_device_type) [amdgcn*]: Return
3026         'radeon'.  Adjust all users.
3027         (check_effective_target_openacc_amdgcn_accel_present): Rename
3028         to...
3029         (check_effective_target_openacc_radeon_accel_present): ... this.
3030         Adjust all users.
3031         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
3032         (check_effective_target_openacc_radeon_accel_selected): ... this.
3033         Adjust all users.
3035         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
3036         'dg-do run'.
3038 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
3040         PR other/94629
3042         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
3043         hsa_iterate_agents.
3044         (GOMP_OFFLOAD_init_device): Check return values from both calls to
3045         hsa_agent_iterate_regions.
3047 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
3049         PR middle-end/94635
3050         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
3051         run'.
3053 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
3055         PR middle-end/94120
3056         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
3057         test case.
3059 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
3061         PR middle-end/94635
3062         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
3064 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
3066         PR libgomp/92843
3067         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
3068         Rename to...
3069         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
3070         ... this.
3071         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
3072         Rename to...
3073         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
3074         ... this.
3075         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
3076         Rename to...
3077         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
3078         ... this.
3079         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
3080         Rename to...
3081         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
3082         ... this.
3083         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
3084         Rename to...
3085         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
3086         ... this.
3087         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
3088         Rename to...
3089         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
3090         ... this.
3091         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
3092         Rename to...
3093         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
3094         ... this.
3095         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
3096         Rename to...
3097         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
3098         ... this.
3099         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
3100         Rename to...
3101         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
3102         ... this.
3103         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
3104         Rename to...
3105         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
3106         ... this.
3107         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
3108         Rename to...
3109         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
3110         ... this.
3111         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
3112         Rename to...
3113         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
3114         ... this.
3115         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
3116         Rename to...
3117         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
3118         ... this.
3119         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
3120         Rename to...
3121         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
3122         ... this.
3123         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
3124         Rename to...
3125         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
3126         ... this.
3127         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
3128         Rename to...
3129         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
3130         ... this.
3132 2020-04-10  Julian Brown  <julian@codesourcery.com>
3133             Thomas Schwinge  <thomas@codesourcery.com>
3135         PR libgomp/92843
3136         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
3137         New file.
3138         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
3139         Likewise.
3140         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
3141         Likewise.
3142         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
3143         Likewise.
3144         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
3145         Likewise.
3146         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
3147         Likewise.
3148         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
3149         Likewise.
3150         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
3151         Likewise.
3152         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
3153         Likewise.
3154         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
3155         Likewise.
3156         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
3157         Likewise.
3158         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
3159         Likewise.
3160         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
3161         Likewise.
3162         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
3163         Likewise.
3164         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
3165         Likewise.
3166         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
3167         Likewise.
3169 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
3171         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
3172         run'.
3174 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
3176         PR middle-end/94120
3177         * libgomp.oacc-c++/declare-pr94120.C: New.
3179 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
3181         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
3182         files.
3183         * configure: Regenerate.
3184         * testsuite/libgomp-site-extra.exp.in: New file.
3185         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
3186         variable.
3187         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
3188         variable.
3189         * testsuite/Makefile.in: Regenerate.
3191 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
3193         PR tree-optimization/89713
3194         PR c/94392
3195         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
3196         'bar.sync'.
3197         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
3199 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
3201         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
3202         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
3204 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
3206         PR libgomp/81689
3207         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
3209 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
3211         PR libgomp/94251
3212         * target.c (gomp_load_image_to_device): Fix link
3213         variable handling.
3215 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
3217         PR c++/93931
3218         * testsuite/libgomp.c++/pr93931.C: New test.
3220 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
3222         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
3223         dg-allow-blank-lines-in-output.
3225 2020-03-18  Julian Brown <julian@codesourcery.com>
3226             Tobias Burnus  <tobias@codesourcery.com>
3228         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
3229         it work concurrently.
3231 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
3233         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
3234         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
3235         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
3237 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
3239         PR middle-end/93566
3240         * testsuite/libgomp.c/pr93566.c: New test.
3242 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
3244         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
3245         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
3246         integer(acc_device_property) for the type of the return value of
3247         acc_get_property.
3249 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
3251         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
3252         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
3253         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
3254         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
3255         (acc_set_device_num): Fix Fortran argument name, use same name for C.
3256         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
3257         corrections; add note about the previous interface and named constant.
3258         (OpenACC library and environment variables): Fix two typos.
3259         * openacc.f90: Use for all procedures the argument names from the spec
3260         as for â€¦_h they are user visible.
3261         (openacc_kinds): Rename acc_device_property to
3262         acc_device_property_kinds and change value to int32 ; and update users.
3263         Re-add acc_device_property for for backward compatibility.
3264         (acc_get_property_string_h): Clean up as acc_device_property_kind
3265         changed.
3266         (acc_get_property_h): Likewise and return c_size_t instead of
3267         acc_device_property.
3268         (openacc): Also export acc_device_property_kinds.
3269         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
3270         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
3271         handling; check against /= 0 instead of == 1 to match C.
3272         * openacc_lib.h: Use for all procedures the argument names from the spec
3273         as for â€¦_h they are user visible. Place !GCC$ into the first column to
3274         be active also for fixed-form souce form.
3275         (acc_device_current, acc_device_property_kind, acc_device_property,
3276         acc_property_memory, acc_property_free_memory, acc_property_name,
3277         acc_property_vendor, acc_property_driver): New named constants.
3278         (acc_get_property, acc_get_property_string): New generic interface.
3280 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
3282         PR libgomp/93481
3283         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
3284         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
3285         optional.
3286         (gomp_target_task_fn): Assert "devicep->async_run_func".
3287         (clear_unsupported_flags): New function to remove unsupported flags
3288         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
3289         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
3290         * testsuite/libgomp.c/target-33.c:
3291         Remove xfail for offload_target_nvptx.
3292         * testsuite/libgomp.c/target-34.c: Likewise.
3294 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
3296         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
3297         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
3298         * testsuite/libgomp.c/target-34.c: Likewise.
3299         * testsuite/libgomp.c/target-link-1.c: Add xfail for
3300         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
3302 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
3304         * testsuite/libgomp.c/target-38.c: New test.
3306 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
3308         PR libgomp/93515
3309         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
3311 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
3313         * testsuite/lib/libgomp.exp
3314         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
3315         and not as 'source' argument to libgomp_target_compile.
3317 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
3319         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
3320         (gcn_gfx801_s): Remove.
3321         (isa_hsa_name): Remove gfx801.
3322         (isa_gcc_name): Remove gfx801/carizzo.
3323         (isa_code): Remove gfx801.
3325 2020-02-03  Julian Brown  <julian@codesourcery.com>
3326             Tobias Burnus  <tobias@codesourcery.com>
3328         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
3329         and *_finalize variants; document acc_attach and acc_detach; update
3330         references from OpenACC 2.0 to 2.6.
3331         * openacc.f90 (openacc_version): Update to 201711.
3332         * openacc_lib.h (openacc_version): Update to 201711.
3333         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
3334         openacc_version to 201711.
3335         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3337 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
3339         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
3340         and vgpr_count fields.
3341         (struct kernel_info): Add a field for a hsa_kernel_description.
3342         (run_kernel): Reduce the number of threads/workers if the requested
3343         number would require too many VGPRs.
3344         (init_basic_kernel_info): Initialize description field with
3345         the hsa_kernel_description entry for the kernel.
3347 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
3349         PR bootstrap/93409
3350         * plugin/configfrag.ac (enable_offload_targets): Skip
3351         HSA and GCN plugin besides -m32 also for -mx32.
3352         * configure: Regenerate.
3354 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
3356         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
3358 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
3360         * plugin-gcn.c (struct agent_info): Add fields "name" and
3361         "vendor_name" ...
3362         (GOMP_OFFLOAD_init_device): ... and init from here.
3363         (struct hsa_context_info): Add field "driver_version_s" ...
3364         (init_hsa_contest): ... and init from here.
3365         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
3366         implementation.
3367         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
3368         Enable test execution for amdgcn and host offloading targets.
3369         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
3370         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
3371         (expect_device_properties): Split function into ...
3372         (expect_device_string_properties): ... this new function ...
3373         (expect_device_memory): ... and this new function.
3374         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
3375         Add test.
3377 2020-01-28  Julian Brown  <julian@codesourcery.com>
3379         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
3380         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
3381         component/non-component variable refs in a single directive.
3382         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
3384 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
3386         * configure.ac: Handle `--with-toolexeclibdir='.
3387         * Makefile.in: Regenerate.
3388         * aclocal.m4: Regenerate.
3389         * configure: Regenerate.
3390         * testsuite/Makefile.in: Regenerate.
3392 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
3394         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
3395         (expect_device_properties): Remove "expected_free_mem" argument,
3396         change "expected_total_mem" argument type to size_t;
3397         change types of acc_get_property results to size_t,
3398         adapt format strings.
3399         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
3400         Use %zu instead of %zd to print size_t values.
3401         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
3402         rename to ...
3403         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
3404         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
3405         rename to ...
3406         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
3408 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
3410         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
3411         the device id.
3413 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
3415         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
3416         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
3417         Adjust test dimensions for amdgcn.
3418         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
3419         gang/worker/vector expectations dynamically.
3420         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
3421         (main): Likewise.
3422         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
3423         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
3424         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
3425         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
3426         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
3427         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
3428         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
3429         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
3430         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
3431         (acc_gang): Recognise acc_device_radeon.
3432         (acc_worker): Likewise.
3433         (acc_vector): Likewise.
3434         (main): Set expectations for amdgcn.
3435         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
3436         (main): Adjust gang/worker/vector expectations dynamically.
3437         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
3438         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
3439         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
3440         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
3441         for amdgcn.
3443 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
3445         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
3446         acc_device_radeon.
3447         (openacc): Likewise.
3448         * openacc.f90 (openacc_kinds): Likewise.
3449         (openacc): Likewise.
3450         * openacc.h (acc_device_t): Likewise.
3451         * openacc_lib.h: Likewise.
3452         * testsuite/lib/libgomp.exp
3453         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
3454         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
3455         (cb_compute_construct_end): Likewise.
3456         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
3457         (cb_enqueue_launch_start): Likewise.
3458         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
3459         (cb_enter_data_end): Likewise.
3460         (cb_exit_data_start): Likewise.
3461         (cb_exit_data_end): Likewise.
3462         (cb_compute_construct_end): Likewise.
3463         (cb_enqueue_launch_start): Likewise.
3464         (cb_enqueue_launch_end): Likewise.
3465         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
3466         (main): Likewise.
3468 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
3470         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
3471         to use this instead of 'enum gomp_device_property'.
3472         (GOMP_OFFLOAD_get_property): Rename to...
3473         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
3474         * libgomp.h (struct gomp_device_descr): Move
3475         'GOMP_OFFLOAD_openacc_get_property'...
3476         (struct acc_dispatch_t): ... here.  Adjust all users.
3477         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
3479         * target.c (gomp_map_vars_internal)
3480         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
3481         paths.
3483 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
3485         PR libgomp/93219
3486         * libgomp.h (gomp_print_string): Change return type from void to int.
3487         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
3488         not all characters have been written.
3490 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
3492         * libgomp.texi: Fix typos, use https.
3494 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
3496         * testsuite/libgomp.fortran/optional-map.f90: Add test for
3497         unallocated/disassociated actual arguments to nonallocatable/nonpointer
3498         dummy arguments; those are/shall be regarded as absent arguments.
3499         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
3500         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
3502 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
3504         Update copyright years.
3506         * libgomp.texi: Bump @copying's copyright year.
3508 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
3510         PR libgomp/93065
3511         * oacc-init.c (goacc_runtime_deinitialize): New function.
3513 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
3515         PR bootstrap/93074
3516         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
3517         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
3519 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
3520             Frederik Harwath  <frederik@codesourcery.com>
3521             Thomas Schwinge  <tschwinge@codesourcery.com>
3523         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
3524         * libgomp-plugin.h (gomp_device_property_value): New union.
3525         (gomp_device_property_value): New prototype.
3526         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
3527         constant.
3528         (acc_device_property_t): New enum.
3529         (acc_get_property, acc_get_property_string): New prototypes.
3530         * oacc-init.c (acc_get_device_type): Also assert that result
3531         is not `acc_device_current'.
3532         (get_property_any, acc_get_property, acc_get_property_string):
3533         New functions.
3534         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
3535         `acc_property_memory', `acc_property_free_memory',
3536         `acc_property_name', `acc_property_vendor' and
3537         `acc_property_driver' constants.  Add `acc_device_property' data
3538         type.
3539         (openacc_internal): Add `acc_get_property' and
3540         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
3541         `acc_get_property_string_h', `acc_get_property_l' and
3542         `acc_get_property_string_l'.
3543         * oacc-host.c (host_get_property): New function.
3544         (host_dispatch): Wire it.
3545         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
3546         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
3547         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
3548         * libgomp.texi (OpenACC Runtime Library Routines): Add
3549         `acc_get_property'.
3550         (acc_get_property): New node.
3551         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
3552         function (stub).
3553         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
3554         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
3555         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
3556         calls.
3557         (GOMP_OFFLOAD_get_property): New function.
3558         (struct ptx_device): Add new field "name".
3559         (cuda_driver_version_s): Add new static variable ...
3560         (nvptx_init): ... and init from here.
3562         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
3563         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
3564         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
3565         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
3566         with test helper functions.
3568         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
3570 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
3572         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
3573         variable.
3575 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
3577         * target.c (gomp_map_vars_internal): Restore 'omp declare target
3578         link' handling.
3580 2019-12-19  Julian Brown  <julian@codesourcery.com>
3582         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
3583         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
3584         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
3586 2019-12-19  Julian Brown  <julian@codesourcery.com>
3587             Cesar Philippidis  <cesar@codesourcery.com>
3589         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
3590         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
3591         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
3592         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
3593         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
3594         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
3595         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
3596         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
3597         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
3598         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
3599         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
3600         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
3601         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
3603 2019-12-19  Julian Brown  <julian@codesourcery.com>
3605         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
3606         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
3607         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
3608         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
3609         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
3610         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
3611         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
3612         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
3613         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
3614         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
3615         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
3616         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
3618 2019-12-19  Julian Brown  <julian@codesourcery.com>
3620         * libgomp.h (struct target_var_desc): Add do_detach flag.
3621         * oacc-init.c (acc_shutdown_1): Free aux block if present.
3622         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
3623         struct components.  Tidy up and add some new checks.
3624         (goacc_enter_data_internal): Update call to find_group_last.
3625         (goacc_exit_data_internal): Support detach operations and
3626         GOMP_MAP_STRUCT.
3627         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
3628         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
3629         attach/detach in enter/exit data detection code.
3630         * target.c (gomp_map_vars_existing): Initialise do_detach field of
3631         tgt_var_desc.
3632         (gomp_map_vars_internal): Support attach.
3633         (gomp_unmap_vars_internal): Support detach.
3635 2019-12-19  Julian Brown  <julian@codesourcery.com>
3636             Thomas Schwinge  <thomas@codesourcery.com>
3638         * libgomp.h (struct splay_tree_aux): Add attach_count field.
3639         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
3640         * libgomp.map (OACC_2.6): New section. Add acc_attach,
3641         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
3642         acc_detach_finalize_async.
3643         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
3644         acc_detach, acc_detach_async, acc_detach_finalize,
3645         acc_detach_finalize_async): New functions.
3646         * openacc.h (acc_attach, acc_attach_async, acc_detach,
3647         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
3648         prototypes.
3649         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
3650         (gomp_remove_var_internal): Free attachment counts if present.
3651         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
3652         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
3654 2019-12-19  Julian Brown  <julian@codesourcery.com>
3655             Cesar Philippidis  <cesar@codesourcery.com>
3657         * libgomp.h (gomp_map_val): Add prototype.
3658         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
3659         open-coding device-address calculation.
3660         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
3661         non-present case.
3663 2019-12-19  Julian Brown  <julian@codesourcery.com>
3665         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
3666         field for virtual_refcount.
3667         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
3668         (gomp_free_memmap): Remove prototype.
3669         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
3670         instead of calling gomp_free_memmap.
3671         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
3672         dynamic_refcount.
3673         (acc_unmap_data): Open code instead of forcing target_mem_desc's
3674         to_free field to NULL then calling gomp_unmap_vars.  Handle
3675         REFCOUNT_INFINITY on target blocks.
3676         (goacc_enter_data): Rename to...
3677         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
3678         handling for mapping groups.  Use virtual_refcount instead of
3679         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
3680         map_map_vars_async call.  Re-do lookup for target pointer return value.
3681         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
3682         renamed goacc_enter_datum function.
3683         (goacc_exit_data): Rename to...
3684         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
3685         (acc_delete, acc_delete_async, acc_delete_finalize,
3686         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
3687         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
3688         goacc_exit_datum function.
3689         (gomp_acc_remove_pointer, find_pointer): Remove functions.
3690         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
3691         New functions.
3692         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
3693         goacc_exit_data_internal helper functions.
3694         * target.c (gomp_map_vars_internal): Handle
3695         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
3696         semantics.
3697         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
3698         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
3699         virtual_refcount field instead of dynamic_refcount.
3700         (gomp_free_memmap): Remove function.
3701         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
3702         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
3703         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
3705 2019-12-19  Julian Brown  <julian@codesourcery.com>
3706             Thomas Schwinge  <thomas@codesourcery.com>
3708         * libgomp.h (struct splay_tree_aux): New.
3709         (struct splay_tree_key_s): Replace link_key field with aux pointer.
3710         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
3711         to aux struct.
3712         (gomp_remove_var_internal): Free aux block if present.
3713         (gomp_load_image_to_device): Zero-initialise aux field instead of
3714         link_key field.
3715         (omp_target_associate_pointer): Zero-initialise aux field.
3717 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
3719         PR middle-end/86416
3720         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
3721         q or none.
3722         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
3723         L or none.
3725 2019-12-19  Julian Brown  <julian@codesourcery.com>
3726             Maciej W. Rozycki  <macro@codesourcery.com>
3727             Tobias Burnus  <tobias@codesourcery.com>
3728             Thomas Schwinge  <thomas@codesourcery.com>
3730         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
3731         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
3732         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
3733         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
3734         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
3735         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
3736         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
3737         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
3738         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
3740 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
3742         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
3743         called...
3744         (goacc_insert_pointer): ... from here, "present" case.
3745         (goacc_insert_pointer): Inline function into...
3746         (GOACC_enter_exit_data): ... here, and simplify.
3748         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
3749         called...
3750         (goacc_insert_pointer): ... from here, "not present" case.
3752         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
3753         all users.
3755         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
3756         'goacc_enter_data', 'goacc_exit_data'.
3758         * oacc-mem.c (delete_copyout): Refactor into...
3759         (goacc_exit_data): ... this.  Adjust all users.
3761         * oacc-mem.c (present_create_copy): Refactor into...
3762         (goacc_enter_data): ... this.  Adjust all users.
3764         * target.c (gomp_unmap_vars_internal): Add a safeguard to
3765         'gomp_remove_var'.
3767         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
3768         like 'GOMP_MAP_FROM'.
3770         PR libgomp/92726
3771         PR libgomp/92970
3772         PR libgomp/92984
3773         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
3774         fails.
3775         (GOACC_enter_exit_data): Simplify accordingly.
3776         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
3777         subsuming...
3778         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
3779         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
3780         file.
3781         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
3782         subsuming...
3783         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
3784         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
3785         file.
3786         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
3787         subsuming...
3788         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
3790         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
3791         'finalize' handling.
3793         PR libgomp/92848
3794         * oacc-mem.c (acc_map_data, present_create_copy)
3795         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
3796         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
3797         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
3798         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
3799         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
3800         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
3801         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
3802         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
3803         Remove "XFAIL"s.
3805         * target.c (gomp_unmap_tgt): Make it 'static'.
3806         * libgomp.h (gomp_unmap_tgt): Remove.
3808 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
3810         PR middle-end/86416
3811         * testsuite/libgomp.c/pr86416-1.c: New.
3812         * testsuite/libgomp.c/pr86416-2.c: New.
3814 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
3816         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
3817         all symbols as public except for the 'use â€¦, only' imported symbol,
3818         which is private.
3819         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
3820         all symbols from module openacc_kinds as PUBLIC
3821         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
3822         fix comment typo.
3823         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
3825 2019-12-13  Julian Brown  <julian@codesourcery.com>
3827         PR libgomp/92881
3829         * libgomp.h (gomp_remove_var_async): Add prototype.
3830         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
3831         gomp_remove_var.
3832         * target.c (gomp_unref_tgt): Change return type to bool, indicating
3833         whether target_mem_desc was unmapped.
3834         (gomp_unref_tgt_void): New.
3835         (gomp_remove_var): Reimplement in terms of...
3836         (gomp_remove_var_internal): ...this new helper function.
3837         (gomp_remove_var_async): New, implemented using above helper function.
3838         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
3839         gomp_unref_tgt.
3841 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
3843         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
3844         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3845         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
3846         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
3847         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
3848         Likewise.
3849         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
3850         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
3852 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
3854         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
3855         as public except for the 'use â€¦, only' imported symbol, which is
3856         private.
3857         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
3858         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
3859         attributes for acc_copyout_finalize and acc_delete_finalize.
3861 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
3863         PR fortran/92899
3864         * testsuite/libgomp.fortran/atomic1.f90: New test.
3866 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
3868         PR libgomp/92843
3869         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
3870         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
3871         assertions.
3872         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
3873         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
3874         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
3875         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
3876         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3878         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
3879         * oacc-mem.c: ... here.
3880         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
3881         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
3882         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
3883         Remove.
3884         * libgomp_g.h: Update.
3886         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
3887         * oacc-async.c: ... here.
3888         * oacc-int.h (goacc_wait): Declare.
3889         * libgomp_g.h: Update
3891         PR libgomp/92854
3892         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
3893         New file.
3894         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
3895         Likewise.
3896         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
3897         Likewise.
3898         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
3899         Likewise.
3900         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
3901         Likewise.
3902         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
3903         Likewise.
3905 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
3906             Julian Brown  <julian@codesourcery.com>
3908         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
3909         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
3911 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
3913         * omp_lib.h.in: Fix spelling of function declaration
3914         omp_get_cancell(l)ation.
3915         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
3916         Fix typos.
3917         * env.c: Fix comment typos.
3918         * oacc-host.c: Likewise.
3919         * ordered.c: Likewise.
3920         * task.c: Likewise.
3921         * team.c: Likewise.
3922         * config/gcn/task.c: Likewise.
3923         * config/gcn/team.c: Likewise.
3924         * config/nvptx/task.c: Likewise.
3925         * config/nvptx/team.c: Likewise.
3926         * plugin/plugin-gcn.c: Likewise.
3927         * testsuite/libgomp.fortran/jacobi.f: Likewise.
3928         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
3929         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
3931 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
3933         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
3934         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
3935         unnecessary 'dg-additional-options "-w"'.
3937 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
3938             Julian Brown  <julian@codesourcery.com>
3940         PR libgomp/92116
3941         PR libgomp/92877
3943         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
3944         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
3945         Adjust all users.
3946         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
3947         Remove XFAIL.
3948         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
3949         Likewise.
3950         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
3952 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
3954         PR libgomp/92503
3955         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
3956         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
3957         file.
3958         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
3959         Likewise.
3960         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
3961         Likewise.
3962         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
3963         Likewise.
3964         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
3965         Likewise.
3966         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
3967         Likewise.
3968         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
3969         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
3970         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
3971         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
3972         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
3973         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
3974         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3975         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3976         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
3977         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3979         PR libgomp/92840
3980         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
3981         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
3982         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
3983         New file.
3984         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
3985         Likewise.
3986         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
3987         Likewise.
3988         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
3989         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
3991         PR libgomp/92511
3992         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
3993         this file...
3994         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
3995         this file...
3996         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
3997         file...
3998         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
3999         file...
4000         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
4001         ... with their content moved into, and extended in this new file.
4002         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
4003         New file.
4004         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
4005         Likewise.
4006         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
4007         Likewise.
4008         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
4009         Likewise.
4011         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
4013         PR libgomp/92854
4014         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
4016         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
4018         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
4020 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
4022         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
4023         unique.
4024         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
4025         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
4026         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
4027         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
4028         Ditto.
4029         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
4030         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
4032 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
4034         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
4036 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
4037             Kwok Cheung Yeung <kcy@codesourcery.com>
4039         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
4040         if input it a NULL pointer.
4041         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
4042         diagnostic of NULL pointer.
4043         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
4044         * testsuite/libgomp.fortran/optional-map.f90: New.
4045         * testsuite/libgomp.fortran/use_device_addr-1.f90
4046         (test_dummy_opt_callee_1_absent): New.
4047         (test_dummy_opt_call_1): Call it.
4048         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
4049         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
4050         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
4051         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
4052         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
4053         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
4054         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
4055         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
4056         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
4057         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
4058         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
4059         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
4060         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
4061         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
4062         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
4063         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
4065 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
4067         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
4068         expect dg-output of 'Error termination.' for GCN.
4069         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
4070         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
4072 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
4074         PR fortran/92756
4075         * testsuite/libgomp.fortran/teams1.f90: New test.
4076         * testsuite/libgomp.fortran/teams2.f90: New test.
4078 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
4080         * oacc-init.c (acc_known_device_type): Add function.
4081         (unknown_device_type_error): Add function.
4082         (name_of_acc_device_t): Change to call unknown_device_type_error
4083         on unknown type.
4084         (resolve_device): Use acc_known_device_type.
4085         (acc_init): Fail if acc_device_t argument is not valid.
4086         (acc_shutdown): Likewise.
4087         (acc_get_num_devices): Likewise.
4088         (acc_set_device_type): Likewise.
4089         (acc_get_device_num): Likewise.
4090         (acc_set_device_num): Likewise.
4091         (acc_on_device): Add comment that argument validity is not checked.
4093 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
4095         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
4096         Recognize amdgcn.
4097         (check_effective_target_openacc_amdgcn_accel_present): New proc.
4098         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
4099         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
4100         * testsuite/libgomp.oacc-c/c.exp: Likewise.
4101         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4103 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4105         PR libgomp/91938
4106         * configure.tgt: Avoid IE tls on *-*-musl*.
4108 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
4110         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
4111         adding a common-block test case.
4113 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
4115         PR c++/60228
4116         * testsuite/libgomp.c++/udr-20.C: New test.
4117         * testsuite/libgomp.c++/udr-21.C: New test.
4119 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
4121         * testsuite/lib/libgomp.exp
4122         (check_effective_target_offload_target_nvptx): New proc.
4123         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
4124         'dg-skip-if'.
4125         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
4126         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
4127         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
4129 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4131         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
4132         * testsuite/libgomp.c/pr39591-2.c: Likewise.
4133         * testsuite/libgomp.c/pr39591-3.c: Likewise.
4134         * testsuite/libgomp.c/private-1.c: Likewise.
4135         * testsuite/libgomp.c/task-1.c: Likewise.
4136         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
4138 2019-11-20  Julian Brown  <julian@codesourcery.com>
4140         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
4141         aq->mutex here.
4142         (queue_push_launch): Lock aq->mutex before calling
4143         wait_for_queue_nonfull.
4144         (queue_push_callback): Likewise.
4145         (queue_push_asyncwait): Likewise.
4146         (queue_push_placeholder): Likewise.
4148 2019-11-20  Julian Brown  <julian@codesourcery.com>
4150         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
4151         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
4152         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
4153         return code.
4155 2019-11-20  Julian Brown  <julian@codesourcery.com>
4157         PR libgomp/92511
4159         * oacc-mem.c (present_create_copy): Fix device pointer return value in
4160         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
4161         in non-present/create case.
4162         (delete_copyout): Change error condition to fail only on copies outside
4163         of mapped block.  Adjust error message accordingly.
4164         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
4165         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
4166         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
4167         message.
4168         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4169         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
4170         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
4172 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
4174         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
4175         libatomic in build-tree testing.
4177 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
4179         * testsuite/Makefile.in: Regenerate.
4181 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
4183         * testsuite/libgomp.c/target-print-1.c: New file.
4184         * testsuite/libgomp.fortran/target-print-1.f90: New file.
4185         * testsuite/libgomp.oacc-c/print-1.c: New file.
4186         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
4188 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4189             Kwok Cheung Yeung  <kcy@codesourcery.com>
4190             Julian Brown  <julian@codesourcery.com>
4191             Tom de Vries  <tom@codesourcery.com>
4193         * plugin/Makefrag.am: Add amdgcn plugin support.
4194         * plugin/configfrag.ac: Likewise.
4195         * plugin/plugin-gcn.c: New file.
4196         * configure: Regenerate.
4197         * Makefile.in: Regenerate.
4198         * testsuite/Makefile.in: Regenerate.
4200 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4202         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
4203         and use team_malloc variants.
4204         (gomp_gcn_exit_kernel): Use team_free.
4205         * libgomp.h (TEAM_ARENA_SIZE): Define.
4206         (TEAM_ARENA_START): Define.
4207         (TEAM_ARENA_FREE): Define.
4208         (TEAM_ARENA_END): Define.
4209         (team_malloc): New function.
4210         (team_malloc_cleared): New function.
4211         (team_free): New function.
4212         * team.c (gomp_new_team): Initialize and use team_malloc.
4213         (free_team): Use team_free.
4214         (gomp_free_thread): Use team_free.
4215         (gomp_pause_host): Use team_free.
4216         * work.c (gomp_init_work_share): Use team_malloc.
4217         (gomp_fini_work_share): Use team_free.
4219 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4220             Kwok Cheung Yeung  <kcy@codesourcery.com>
4221             Julian Brown  <julian@codesourcery.com>
4222             Tom de Vries  <tom@codesourcery.com>
4224         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
4225         * Makefile.in: Regenerate.
4226         * config.h.in (PLUGIN_GCN): Add new undef.
4227         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
4228         * config/gcn/affinity-fmt.c: New file.
4229         * config/gcn/bar.c: New file.
4230         * config/gcn/bar.h: New file.
4231         * config/gcn/doacross.h: New file.
4232         * config/gcn/icv-device.c: New file.
4233         * config/gcn/oacc-target.c: New file.
4234         * config/gcn/simple-bar.h: New file.
4235         * config/gcn/target.c: New file.
4236         * config/gcn/task.c: New file.
4237         * config/gcn/team.c: New file.
4238         * config/gcn/time.c: New file.
4239         * configure.ac: Add amdgcn*-*-*.
4240         * configure: Regenerate.
4241         * configure.tgt: Add amdgcn*-*-*.
4242         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
4243         * libgomp.h (gcn_thrs): Add amdgcn variant.
4244         (set_gcn_thrs): Likewise.
4245         (gomp_thread): Likewise.
4246         * oacc-int.h (goacc_thread): Likewise.
4247         * oacc-target.c: New file.
4248         * openacc.f90 (acc_device_gcn): New parameter.
4249         * openacc.h (acc_device_t): Add acc_device_gcn.
4250         * team.c (gomp_free_pool_helper): Add amdgcn support.
4252 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4253             Julian Brown  <julian@codesourcery.com>
4255         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
4256         parameter.
4257         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
4258         queue constructor.
4259         * oacc-host.c (host_openacc_async_construct): Add device parameter.
4260         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
4261         device parameter.
4263 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4265         * configure.tgt (nvptx*-*-*): Add "accel" directory.
4266         * config/nvptx/libgomp-plugin.c: Move ...
4267         * config/accel/libgomp-plugin.c: ... to here.
4268         * config/nvptx/lock.c: Move ...
4269         * config/accel/lock.c: ... to here.
4270         * config/nvptx/mutex.c: Move ...
4271         * config/accel/mutex.c: ... to here.
4272         * config/nvptx/mutex.h: Move ...
4273         * config/accel/mutex.h: ... to here.
4274         * config/nvptx/oacc-async.c: Move ...
4275         * config/accel/oacc-async.c: ... to here.
4276         * config/nvptx/oacc-cuda.c: Move ...
4277         * config/accel/oacc-cuda.c: ... to here.
4278         * config/nvptx/oacc-host.c: Move ...
4279         * config/accel/oacc-host.c: ... to here.
4280         * config/nvptx/oacc-init.c: Move ...
4281         * config/accel/oacc-init.c: ... to here.
4282         * config/nvptx/oacc-mem.c: Move ...
4283         * config/accel/oacc-mem.c: ... to here.
4284         * config/nvptx/oacc-plugin.c: Move ...
4285         * config/accel/oacc-plugin.c: ... to here.
4286         * config/nvptx/omp-lock.h: Move ...
4287         * config/accel/omp-lock.h: ... to here.
4288         * config/nvptx/openacc.f90: Move ...
4289         * config/accel/openacc.f90: ... to here.
4290         * config/nvptx/pool.h: Move ...
4291         * config/accel/pool.h: ... to here.
4292         * config/nvptx/proc.c: Move ...
4293         * config/accel/proc.c: ... to here.
4294         * config/nvptx/ptrlock.c: Move ...
4295         * config/accel/ptrlock.c: ... to here.
4296         * config/nvptx/ptrlock.h: Move ...
4297         * config/accel/ptrlock.h: ... to here.
4298         * config/nvptx/sem.c: Move ...
4299         * config/accel/sem.c: ... to here.
4300         * config/nvptx/sem.h: Move ...
4301         * config/accel/sem.h: ... to here.
4302         * config/nvptx/thread-stacksize.h: Move ...
4303         * config/accel/thread-stacksize.h: ... to here.
4305 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
4306             Tobias Burnus  <tobias@codesourcery.com>
4307             Frederik Harwath  <frederik@codesourcery.com>
4308             Thomas Schwinge  <thomas@codesourcery.com>
4310         libgomp/
4311         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
4312         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
4313         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
4315 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
4316             Kwok Cheung Yeung  <kcy@codesourcery.com>
4318         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
4319         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
4321 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
4323         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
4325         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
4326         run'.
4327         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
4328         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
4330 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
4332         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
4333         Add expected warnings about missing reduction clauses.
4334         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
4335         Likewise.
4336         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
4337         Likewise.
4338         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4339         Likewise.
4341 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
4343         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
4344         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
4345         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
4346         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
4347         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
4348         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
4350 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
4352         PR fortran/92305
4353         * testsuite/libgomp.fortran/allocatable2.f90: Use
4354         unique numbers with 'stop'.
4355         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
4356         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
4357         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
4358         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
4359         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
4361 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
4363         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
4364         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
4365         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
4366         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
4367         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
4368         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
4370 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
4372         * testsuite/libgomp.fortran/target9.f90: New.
4374 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
4376         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
4377         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
4378         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
4379         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
4380         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
4381         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
4382         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
4383         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
4384         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
4385         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
4386         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
4387         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
4388         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
4389         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
4390         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
4391         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
4392         * testsuite/libgomp.fortran/associate1.f90: Ditto.
4393         * testsuite/libgomp.fortran/associate2.f90: Ditto.
4394         * testsuite/libgomp.fortran/associate3.f90: Ditto.
4395         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
4396         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
4397         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
4398         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
4399         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
4400         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
4401         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
4402         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
4403         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
4404         * testsuite/libgomp.fortran/character1.f90: Ditto.
4405         * testsuite/libgomp.fortran/character2.f90: Ditto.
4406         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
4407         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
4408         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
4409         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
4410         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
4411         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
4412         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
4413         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
4414         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
4415         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
4416         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
4417         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
4418         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
4419         * testsuite/libgomp.fortran/do1.f90: Ditto.
4420         * testsuite/libgomp.fortran/do2.f90: Ditto.
4421         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
4422         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
4423         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
4424         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
4425         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
4426         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
4427         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
4428         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
4429         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
4430         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
4431         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
4432         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
4433         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
4434         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
4435         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
4436         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
4437         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
4438         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
4439         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
4440         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
4441         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
4442         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
4443         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
4444         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
4445         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
4446         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
4447         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
4448         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
4449         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
4450         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
4451         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
4452         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
4453         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
4454         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
4455         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
4456         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
4457         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
4458         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
4459         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
4460         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
4461         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
4462         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
4463         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
4464         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
4465         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
4466         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
4467         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
4468         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
4469         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
4470         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
4471         * testsuite/libgomp.fortran/lib1.f90: Ditto.
4472         * testsuite/libgomp.fortran/lib4.f90: Ditto.
4473         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
4474         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
4475         * testsuite/libgomp.fortran/nested1.f90: Ditto.
4476         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
4477         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
4478         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
4479         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
4480         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
4481         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
4482         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
4483         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
4484         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
4485         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
4486         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
4487         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
4488         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
4489         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
4490         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
4491         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
4492         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
4493         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
4494         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
4495         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
4496         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
4497         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
4498         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
4499         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
4500         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
4501         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
4502         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
4503         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
4504         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
4505         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
4506         * testsuite/libgomp.fortran/pr28390.f: Ditto.
4507         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
4508         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
4509         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
4510         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
4511         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4512         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
4513         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
4514         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
4515         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
4516         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
4517         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
4518         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
4519         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
4520         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
4521         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
4522         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
4523         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
4524         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
4525         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
4526         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
4527         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
4528         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
4529         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
4530         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
4531         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
4532         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
4533         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
4534         * testsuite/libgomp.fortran/reference1.f90: Ditto.
4535         * testsuite/libgomp.fortran/reference2.f90: Ditto.
4536         * testsuite/libgomp.fortran/retval1.f90: Ditto.
4537         * testsuite/libgomp.fortran/retval2.f90: Ditto.
4538         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
4539         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
4540         * testsuite/libgomp.fortran/simd1.f90: Ditto.
4541         * testsuite/libgomp.fortran/simd2.f90: Ditto.
4542         * testsuite/libgomp.fortran/simd3.f90: Ditto.
4543         * testsuite/libgomp.fortran/simd4.f90: Ditto.
4544         * testsuite/libgomp.fortran/simd5.f90: Ditto.
4545         * testsuite/libgomp.fortran/simd6.f90: Ditto.
4546         * testsuite/libgomp.fortran/simd7.f90: Ditto.
4547         * testsuite/libgomp.fortran/stack.f90: Ditto.
4548         * testsuite/libgomp.fortran/strassen.f90: Ditto.
4549         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
4550         * testsuite/libgomp.fortran/tabs2.f: Ditto.
4551         * testsuite/libgomp.fortran/target1.f90: Ditto.
4552         * testsuite/libgomp.fortran/target2.f90: Ditto.
4553         * testsuite/libgomp.fortran/target3.f90: Ditto.
4554         * testsuite/libgomp.fortran/target4.f90: Ditto.
4555         * testsuite/libgomp.fortran/target5.f90: Ditto.
4556         * testsuite/libgomp.fortran/target6.f90: Ditto.
4557         * testsuite/libgomp.fortran/target7.f90: Ditto.
4558         * testsuite/libgomp.fortran/target8.f90: Ditto.
4559         * testsuite/libgomp.fortran/task1.f90: Ditto.
4560         * testsuite/libgomp.fortran/task2.f90: Ditto.
4561         * testsuite/libgomp.fortran/task3.f90: Ditto.
4562         * testsuite/libgomp.fortran/task4.f90: Ditto.
4563         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4564         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4565         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
4566         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
4567         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
4568         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
4569         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
4570         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
4571         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
4572         * testsuite/libgomp.fortran/udr1.f90: Ditto.
4573         * testsuite/libgomp.fortran/udr10.f90: Ditto.
4574         * testsuite/libgomp.fortran/udr11.f90: Ditto.
4575         * testsuite/libgomp.fortran/udr12.f90: Ditto.
4576         * testsuite/libgomp.fortran/udr13.f90: Ditto.
4577         * testsuite/libgomp.fortran/udr14.f90: Ditto.
4578         * testsuite/libgomp.fortran/udr15.f90: Ditto.
4579         * testsuite/libgomp.fortran/udr2.f90: Ditto.
4580         * testsuite/libgomp.fortran/udr3.f90: Ditto.
4581         * testsuite/libgomp.fortran/udr4.f90: Ditto.
4582         * testsuite/libgomp.fortran/udr5.f90: Ditto.
4583         * testsuite/libgomp.fortran/udr6.f90: Ditto.
4584         * testsuite/libgomp.fortran/udr7.f90: Ditto.
4585         * testsuite/libgomp.fortran/udr8.f90: Ditto.
4586         * testsuite/libgomp.fortran/udr9.f90: Ditto.
4587         * testsuite/libgomp.fortran/vla1.f90: Ditto.
4588         * testsuite/libgomp.fortran/vla2.f90: Ditto.
4589         * testsuite/libgomp.fortran/vla3.f90: Ditto.
4590         * testsuite/libgomp.fortran/vla4.f90: Ditto.
4591         * testsuite/libgomp.fortran/vla5.f90: Ditto.
4592         * testsuite/libgomp.fortran/vla6.f90: Ditto.
4593         * testsuite/libgomp.fortran/vla7.f90: Ditto.
4594         * testsuite/libgomp.fortran/vla8.f90: Ditto.
4595         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4596         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4598 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
4600         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
4601         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
4602         Ditto; add 'dg-do run' for torture testing.
4603         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
4604         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
4605         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
4606         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
4607         * testsuite/libgomp.fortran/pr28390.f: Ditto.
4608         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4609         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
4610         * testsuite/libgomp.fortran/task2.f90: Ditto.
4611         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4612         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4613         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
4614         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
4615         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4616         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4618 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
4620         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
4621         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
4622         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
4623         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
4624         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
4625         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
4626         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
4627         Use 'stop' not abort().
4628         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
4629         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
4630         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
4631         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
4632         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
4633         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
4634         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
4635         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
4636         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
4637         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
4638         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
4639         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
4640         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
4641         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
4642         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
4643         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
4644         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
4645         Ditto.
4646         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4647         Ditto.
4648         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4649         Ditto.
4650         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4651         Ditto.
4652         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4653         Ditto.
4654         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
4655         Ditto.
4656         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
4657         Ditto.
4658         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
4659         Ditto.
4660         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
4661         Ditto.
4662         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
4663         Ditto.
4664         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
4665         Ditto.
4666         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
4667         Ditto.
4668         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
4669         Ditto.
4670         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
4671         Ditto.
4672         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
4673         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
4674         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
4675         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
4676         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
4677         Likewise and also add 'dg-do run'.
4678         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
4679         Ditto.
4681 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
4682             Tobias Burnus  <tobias@codesourcery.com>
4684         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
4685         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
4686         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
4688 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
4690         PR libgomp/92081
4691         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
4692         than 0.
4694 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
4696         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
4697         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
4699 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
4701         PR middle-end/92036
4702         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
4703         file.
4705 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
4707         PR testsuite/91884
4708         * testsuite/libgomp.fortran/fortran.exp: Conditionally
4709         add -lquadmath.
4710         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
4712 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
4714         PR libgomp/92028
4715         * target.c (gomp_map_vars_internal): Readd the previous
4716         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
4717         though do that just in the !not_found_cnt case.
4719 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
4721         * gfortran.dg/gomp/target-simd.f90: New.
4723 2019-10-02  Julian Brown  <julian@codesourcery.com>
4724             Cesar Philippidis  <cesar@codesourcery.com>
4726         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
4727         * target.c (FIELD_TGT_EMPTY): Define.
4728         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
4729         as switch instead of list of ifs.
4730         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
4732 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
4734         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
4735         include. Replace alloca () with __builtin_alloca ().
4736         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
4738 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
4740         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
4741         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
4742         * oacc-parallel.c: Don't include "libgomp_g.h".
4743         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
4744         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
4745         * aclocal.m4: Regenerated.
4746         * config.h.in: Regenerated.
4747         * configure: Regenerated.
4748         * Makefile.in: Regenerated.
4750 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
4752         * libgomp_g.h: Include stdint.h instead of gstdint.h.
4754 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
4756         * configure: Regenerate.
4758 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
4760         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
4761         string is initialized.
4763 2019-09-06  Florian Weimer  <fweimer@redhat.com>
4765         * configure: Regenerate.
4767 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
4769         PR other/79543
4770         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
4771         scanning to conform to the GNU Coding Standards.
4772         * configure: Regenerate.
4774 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
4776         PR libgomp/91530
4777         * testsuite/libgomp.c/scan-21.c: New test.
4778         * testsuite/libgomp.c/scan-22.c: New test.
4780 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
4782         PR libgomp/91530
4783         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
4784         targets.
4785         * testsuite/libgomp.c/scan-12.c: Likewise.
4786         * testsuite/libgomp.c/scan-13.c: Likewise.
4787         * testsuite/libgomp.c/scan-14.c: Likewise.
4788         * testsuite/libgomp.c/scan-15.c: Likewise.
4789         * testsuite/libgomp.c/scan-16.c: Likewise.
4790         * testsuite/libgomp.c/scan-17.c: Likewise.
4791         * testsuite/libgomp.c/scan-18.c: Likewise.
4792         * testsuite/libgomp.c/scan-19.c: Likewise.
4793         * testsuite/libgomp.c/scan-20.c: Likewise.
4794         * testsuite/libgomp.c++/scan-9.C: Likewise.
4795         * testsuite/libgomp.c++/scan-10.C: Likewise.
4796         * testsuite/libgomp.c++/scan-11.C: Likewise.
4797         * testsuite/libgomp.c++/scan-12.C: Likewise.
4798         * testsuite/libgomp.c++/scan-14.C: Likewise.
4799         * testsuite/libgomp.c++/scan-15.C: Likewise.
4800         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
4801         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
4802         * testsuite/libgomp.c++/scan-16.C: Likewise.
4804 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
4806         PR fortran/91473
4807         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
4808         -std=legacy so invalid code in the test case is accepted.
4810 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
4812         PR fortran/91422
4813         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
4814         dimension.
4816 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
4818         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
4819         perform the lookup in the first loop only if !not_found_cnt, otherwise
4820         perform lookups for it in the second loop guarded with
4821         if (not_found_cnt || has_firstprivate).
4822         * testsuite/libgomp.c/target-37.c: New test.
4823         * testsuite/libgomp.c++/target-22.C: New test.
4825 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
4827         * testsuite/libgomp.c/target-18.c (struct S): New type.
4828         (foo): Use use_device_addr clause instead of use_device_ptr clause
4829         where required by OpenMP 5.0, add further tests for both use_device_ptr
4830         and use_device_addr clauses.
4831         * testsuite/libgomp.c++/target-9.C (struct S): New type.
4832         (foo): Use use_device_addr clause instead of use_device_ptr clause
4833         where required by OpenMP 5.0, add further tests for both use_device_ptr
4834         and use_device_addr clauses.  Add t and u arguments.
4835         (main): Adjust caller.
4837 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
4839         * testsuite/libgomp.c++/loop-13.C: New test.
4840         * testsuite/libgomp.c++/loop-14.C: New test.
4841         * testsuite/libgomp.c++/loop-15.C: New test.
4843 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
4845         PR middle-end/91301
4846         * testsuite/libgomp.c++/for-27.C: New test.
4848 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
4850         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
4851         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
4853 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
4855         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
4857 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
4859         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
4860         * testsuite/libgomp.c++/scan-16.C: Likewise.
4862 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
4864         * testsuite/libgomp.c/scan-19.c: New test.
4865         * testsuite/libgomp.c/scan-20.c: New test.
4867         * testsuite/libgomp.c/scan-11.c: New test.
4868         * testsuite/libgomp.c/scan-12.c: New test.
4869         * testsuite/libgomp.c/scan-13.c: New test.
4870         * testsuite/libgomp.c/scan-14.c: New test.
4871         * testsuite/libgomp.c/scan-15.c: New test.
4872         * testsuite/libgomp.c/scan-16.c: New test.
4873         * testsuite/libgomp.c/scan-17.c: New test.
4874         * testsuite/libgomp.c/scan-18.c: New test.
4875         * testsuite/libgomp.c++/scan-9.C: New test.
4876         * testsuite/libgomp.c++/scan-10.C: New test.
4877         * testsuite/libgomp.c++/scan-11.C: New test.
4878         * testsuite/libgomp.c++/scan-12.C: New test.
4879         * testsuite/libgomp.c++/scan-13.C: New test.
4880         * testsuite/libgomp.c++/scan-14.C: New test.
4881         * testsuite/libgomp.c++/scan-15.C: New test.
4882         * testsuite/libgomp.c++/scan-16.C: New test.
4884 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
4886         * testsuite/libgomp.c/scan-9.c: New test.
4887         * testsuite/libgomp.c/scan-10.c: New test.
4889 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
4891         * testsuite/libgomp.c++/scan-1.C: New test.
4892         * testsuite/libgomp.c++/scan-2.C: New test.
4893         * testsuite/libgomp.c++/scan-3.C: New test.
4894         * testsuite/libgomp.c++/scan-4.C: New test.
4895         * testsuite/libgomp.c++/scan-5.C: New test.
4896         * testsuite/libgomp.c++/scan-6.C: New test.
4897         * testsuite/libgomp.c++/scan-7.C: New test.
4898         * testsuite/libgomp.c++/scan-8.C: New test.
4899         * testsuite/libgomp.c/scan-1.c: New test.
4900         * testsuite/libgomp.c/scan-2.c: New test.
4901         * testsuite/libgomp.c/scan-3.c: New test.
4902         * testsuite/libgomp.c/scan-4.c: New test.
4903         * testsuite/libgomp.c/scan-5.c: New test.
4904         * testsuite/libgomp.c/scan-6.c: New test.
4905         * testsuite/libgomp.c/scan-7.c: New test.
4906         * testsuite/libgomp.c/scan-8.c: New test.
4908 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
4910         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
4911         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
4912         Likewise.
4914         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
4915         check.
4917 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
4919         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
4920         file.
4922 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
4924         PR fortran/90743
4925         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
4926         case.
4927         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
4928         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
4929         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
4930         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
4932         PR testsuite/90861
4933         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
4935         PR middle-end/90862
4936         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
4938 2019-06-16  Tom de Vries  <tdevries@suse.de>
4940         PR tree-optimization/89376
4941         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
4943 2019-06-15  Tom de Vries  <tdevries@suse.de>
4945         PR tree-optimization/89713
4946         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
4947         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
4949 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
4951         PR middle-end/90779
4952         * testsuite/libgomp.c/pr90779.c: New test.
4953         * testsuite/libgomp.fortran/pr90779.f90: New test.
4955 2019-06-15  Tom de Vries  <tdevries@suse.de>
4957         PR tree-optimization/90009
4958         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
4960 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
4962         PR tree-optimization/89713
4963         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
4965 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
4967         PR target/90811
4968         * testsuite/libgomp.c/pr90811.c: New test.
4970 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
4972         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
4973         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
4975 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
4977         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
4978         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
4979         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
4980         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
4982 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4984         * configure.ac: Call AX_COUNT_CPUS.
4985         Substitute CPU_COUNT.
4986         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
4987         count fallback.
4988         * aclocal.m4: Regenerate.
4989         * configure: Regenerate.
4990         * Makefile.in, testsuite/Makefile.in: Regenerate.
4992 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
4994         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
4995         to ...
4996         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
4997         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
4998         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
5000 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
5002         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
5004         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
5006         PR libgomp/90641
5007         * work.c (gomp_init_work_share): Instead of aligning final ordered
5008         value to multiples of long long alignment, align to that the
5009         first part (ordered team ids) and if inline_ordered_team_ids
5010         is not on a long long alignment boundary within the structure,
5011         use __alignof__ (long long) - 1 pad size always.
5012         * loop.c (GOMP_loop_start): Fix *mem computation if
5013         inline_ordered_team_ids is not aligned on long long alignment boundary
5014         within the structure.
5015         * loop-ull.c (GOMP_loop_ull_start): Likewise.
5016         * sections.c (GOMP_sections2_start): Likewise.
5018 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
5020         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
5021         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
5023         PR libgomp/90585
5024         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
5025         HAVE_INTTYPES_H is defined.
5026         (print_uint64_t): New typedef.
5027         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
5028         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
5029         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
5030         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
5031         before casting to void *.
5032         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
5033         * oacc-mem.c: Don't include config.h nor stdint.h.
5034         * target.c: Don't include config.h.
5035         * oacc-cuda.c: Likewise.
5036         * oacc-host.c: Don't include stdint.h.
5038 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
5040         PR libgomp/90527
5041         * alloc.c (_GNU_SOURCE): Define.
5043 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
5045         * acc_prof.h: New file.
5046         * oacc-profiling.c: Likewise.
5047         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
5048         Add these, respectively.
5049         * Makefile.in: Regenerate.
5050         * env.c (initialize_env): Call goacc_profiling_initialize.
5051         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
5052         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
5053         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
5054         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
5055         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
5056         acc_prof_register, acc_prof_unregister, and acc_register_library.
5057         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
5058         GOMP_PLUGIN_goacc_thread.
5059         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
5060         prof_callbacks_enabled members.
5061         (goacc_prof_enabled, goacc_profiling_initialize)
5062         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
5063         (goacc_profiling_dispatch): Declare.
5064         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
5065         (GOACC_PROFILING_SETUP_P): Define.
5066         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
5067         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
5068         OpenACC Profiling Interface.
5069         * oacc-cuda.c (acc_get_current_cuda_device)
5070         (acc_get_current_cuda_context, acc_get_cuda_stream)
5071         (acc_set_cuda_stream): Likewise.
5072         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
5073         (acc_init, acc_set_device_type, acc_get_device_type)
5074         (acc_get_device_num, goacc_lazy_initialize): Likewise.
5075         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
5076         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
5077         (acc_unmap_data, present_create_copy, delete_copyout)
5078         (update_dev_host): Likewise.
5079         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
5080         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
5081         Likewise.
5082         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
5083         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
5084         Likewise.
5085         * libgomp.texi: Update.
5086         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
5087         file.
5088         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
5089         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5090         Likewise.
5091         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5092         Likewise.
5093         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
5094         Likewise.
5095         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
5096         Likewise.
5098 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
5100         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
5101         (struct goacc_asyncqueue_list): Likewise.
5102         (goacc_aq): Likewise.
5103         (goacc_aq_list): Likewise.
5104         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
5105         (GOMP_OFFLOAD_openacc_async_test): Remove.
5106         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
5107         (GOMP_OFFLOAD_openacc_async_wait): Remove.
5108         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
5109         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
5110         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
5111         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
5112         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
5113         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
5114         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
5115         (GOMP_OFFLOAD_openacc_async_exec): Declare.
5116         (GOMP_OFFLOAD_openacc_async_construct): Declare.
5117         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
5118         (GOMP_OFFLOAD_openacc_async_test): Declare.
5119         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
5120         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
5121         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
5122         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
5123         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
5125         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
5126         (gomp_acc_insert_pointer): Adjust declaration.
5127         (gomp_copy_host2dev): New declaration.
5128         (gomp_copy_dev2host): Likewise.
5129         (gomp_map_vars_async): Likewise.
5130         (gomp_unmap_tgt): Likewise.
5131         (gomp_unmap_vars_async): Likewise.
5132         (gomp_fini_device): Likewise.
5134         * oacc-async.c (get_goacc_thread): New function.
5135         (get_goacc_thread_device): New function.
5136         (lookup_goacc_asyncqueue): New function.
5137         (get_goacc_asyncqueue): New function.
5138         (acc_async_test): Adjust code to use new async design.
5139         (acc_async_test_all): Likewise.
5140         (acc_wait): Likewise.
5141         (acc_wait_async): Likewise.
5142         (acc_wait_all): Likewise.
5143         (acc_wait_all_async): Likewise.
5144         (goacc_async_free): New function.
5145         (goacc_init_asyncqueues): Likewise.
5146         (goacc_fini_asyncqueues): Likewise.
5147         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
5148         design.
5149         (acc_set_cuda_stream): Likewise.
5150         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
5151         (host_openacc_register_async_cleanup): Remove.
5152         (host_openacc_async_exec): New function.
5153         (host_openacc_async_test): Adjust parameters.
5154         (host_openacc_async_test_all): Remove.
5155         (host_openacc_async_wait): Remove.
5156         (host_openacc_async_wait_async): Remove.
5157         (host_openacc_async_wait_all): Remove.
5158         (host_openacc_async_wait_all_async): Remove.
5159         (host_openacc_async_set_async): Remove.
5160         (host_openacc_async_synchronize): New function.
5161         (host_openacc_async_serialize): New function.
5162         (host_openacc_async_host2dev): New function.
5163         (host_openacc_async_dev2host): New function.
5164         (host_openacc_async_queue_callback): New function.
5165         (host_openacc_async_construct): New function.
5166         (host_openacc_async_destruct): New function.
5167         (struct gomp_device_descr host_dispatch): Remove initialization of old
5168         interface, add initialization of new async sub-struct.
5169         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
5170         (goacc_attach_host_thread_to_device): Remove old async code usage.
5171         * oacc-int.h (goacc_init_asyncqueues): New declaration.
5172         (goacc_fini_asyncqueues): Likewise.
5173         (goacc_async_copyout_unmap_vars): Likewise.
5174         (goacc_async_free): Likewise.
5175         (get_goacc_asyncqueue): Likewise.
5176         (lookup_goacc_asyncqueue): Likewise.
5177         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
5178         design.
5179         (present_create_copy): Adjust code to use new async design.
5180         (delete_copyout): Likewise.
5181         (update_dev_host): Likewise.
5182         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
5183         async design.
5184         (gomp_acc_remove_pointer): Adjust code to use new async design.
5185         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
5186         design.
5187         (GOACC_enter_exit_data): Likewise.
5188         (goacc_wait): Likewise.
5189         (GOACC_update): Likewise.
5190         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
5191         when called, warn as obsolete in comment.
5192         * target.c (goacc_device_copy_async): New function.
5193         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
5194         add goacc_device_copy_async case.
5195         (gomp_copy_dev2host): Likewise.
5196         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
5197         (gomp_map_pointer): Likewise.
5198         (gomp_map_fields_existing): Likewise.
5199         (gomp_map_vars_internal): New always_inline function, renamed from
5200         gomp_map_vars.
5201         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
5202         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
5203         passing goacc_asyncqueue argument.
5204         (gomp_unmap_tgt): Remove static, add attribute_hidden.
5205         (gomp_unref_tgt): New function.
5206         (gomp_unmap_vars_internal): New always_inline function, renamed from
5207         gomp_unmap_vars.
5208         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
5209         (gomp_unmap_vars_async): Implement by calling
5210         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
5211         (gomp_fini_device): New function.
5212         (gomp_exit_data): Adjust gomp_copy_dev2host call.
5213         (gomp_load_plugin_for_device): Remove old interface, adjust to load
5214         new async interface.
5215         (gomp_target_fini): Adjust code to call gomp_fini_device.
5217         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
5218         (struct ptx_stream): Remove.
5219         (struct nvptx_thread): Remove current_stream field.
5220         (cuda_map_create): Remove.
5221         (cuda_map_destroy): Remove.
5222         (map_init): Remove.
5223         (map_fini): Remove.
5224         (map_pop): Remove.
5225         (map_push): Remove.
5226         (struct goacc_asyncqueue): Define.
5227         (struct nvptx_callback): Define.
5228         (struct ptx_free_block): Define.
5229         (struct ptx_device): Remove null_stream, active_streams, async_streams,
5230         stream_lock, and next fields.
5231         (enum ptx_event_type): Remove.
5232         (struct ptx_event): Remove.
5233         (ptx_event_lock): Remove.
5234         (ptx_events): Remove.
5235         (init_streams_for_device): Remove.
5236         (fini_streams_for_device): Remove.
5237         (select_stream_for_async): Remove.
5238         (nvptx_init): Remove ptx_events and ptx_event_lock references.
5239         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
5240         case.
5241         (nvptx_open_device): Add free_blocks initialization, remove
5242         init_streams_for_device call.
5243         (nvptx_close_device): Remove fini_streams_for_device call, add
5244         free_blocks destruct code.
5245         (event_gc): Remove.
5246         (event_add): Remove.
5247         (nvptx_exec): Adjust parameters and code.
5248         (nvptx_free): Likewise.
5249         (nvptx_host2dev): Remove.
5250         (nvptx_dev2host): Remove.
5251         (nvptx_set_async): Remove.
5252         (nvptx_async_test): Remove.
5253         (nvptx_async_test_all): Remove.
5254         (nvptx_wait): Remove.
5255         (nvptx_wait_async): Remove.
5256         (nvptx_wait_all): Remove.
5257         (nvptx_wait_all_async): Remove.
5258         (nvptx_get_cuda_stream): Remove.
5259         (nvptx_set_cuda_stream): Remove.
5260         (GOMP_OFFLOAD_alloc): Adjust code.
5261         (GOMP_OFFLOAD_free): Likewise.
5262         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
5263         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
5264         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
5265         (GOMP_OFFLOAD_openacc_async_wait): Remove.
5266         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
5267         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
5268         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
5269         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
5270         (cuda_free_argmem): New function.
5271         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
5272         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
5273         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
5274         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
5275         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
5276         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
5277         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
5278         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
5279         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
5280         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
5281         (cuda_callback_wrapper): New function.
5282         (cuda_memcpy_sanity_check): New function.
5283         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
5284         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
5285         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
5286         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
5288 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
5290         PR target/87835
5291         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
5293 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
5295         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
5297 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
5299         * team.c (gomp_team_start): Initialize pool->threads[0].
5301 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
5303         * testsuite/libgomp.oacc-c++/c++.exp: Specify
5304         "-foffload=$offload_target".
5305         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5306         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5307         * testsuite/lib/libgomp.exp
5308         (check_effective_target_openacc_nvidia_accel_configured): Remove,
5309         as (conceptually) merged into
5310         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
5311         users.
5313         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
5314         * testsuite/libgomp-test-support.exp.in: Adjust.
5315         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
5316         openacc_device_types_s.
5317         (offload_target_to_openacc_device_type): New proc.
5318         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
5319         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5320         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5321         * Makefile.in: Regenerate.
5322         * configure: Likewise.
5323         * testsuite/Makefile.in: Likewise.
5325         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
5326         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
5327         instead of OFFLOAD_TARGETS.
5328         * target.c (gomp_target_init): Adjust.
5329         * testsuite/libgomp-test-support.exp.in: Likewise.
5330         * testsuite/lib/libgomp.exp: Likewise.  Populate
5331         openacc_device_types_s instead of offload_targets_s_openacc.
5332         (check_effective_target_openacc_nvidia_accel_selected)
5333         (check_effective_target_openacc_host_selected): Adjust.
5334         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
5335         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5336         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5337         * Makefile.in: Regenerate.
5338         * config.h.in: Likewise.
5339         * configure: Likewise.
5340         * testsuite/Makefile.in: Likewise.
5342         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
5343         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
5344         "offloading: supported, but hardware not accessible".
5345         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5346         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5348 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
5350         PR c/87924
5351         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
5352         goacc_wait().
5353         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
5354         and related adjustment.
5356 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
5358         PR c++/88988
5359         * testsuite/libgomp.c++/pr88988.C: New test.
5361 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
5363         PR middle-end/89002
5364         * testsuite/libgomp.c/pr89002.c: New test.
5366 2019-01-28  Richard Biener  <rguenther@suse.de>
5368         PR testsuite/89064
5369         PR tree-optimization/86865
5370         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
5372 2019-01-24  Tom de Vries  <tdevries@suse.de>
5374         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
5375         once instantiated_devices drops to 0.
5377 2019-01-23  Tom de Vries  <tdevries@suse.de>
5379         PR target/PR88946
5380         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
5381         cuMemFree.
5382         (nvptx_exec): Don't call map_push if mapnum == 0.
5383         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
5385 2019-01-23  Tom de Vries  <tdevries@suse.de>
5387         PR target/88941
5388         PR target/88939
5389         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
5390         (map_fini): Remove "assert (!s->map->active)".
5391         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
5393 2019-01-23  Tom de Vries  <tdevries@suse.de>
5395         PR target/87835
5396         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
5397         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
5399 2019-01-15  Tom de Vries  <tdevries@suse.de>
5401         PR target/80547
5402         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
5403         New test.
5405 2019-01-12  Tom de Vries  <tdevries@suse.de>
5407         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
5408         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
5409         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
5410         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
5412 2019-01-12  Tom de Vries  <tdevries@suse.de>
5414         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
5416 2019-01-12  Tom de Vries  <tdevries@suse.de>
5418         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
5419         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
5420         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
5422 2019-01-12  Tom de Vries  <tdevries@suse.de>
5424         PR target/85486
5425         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
5426         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
5428 2019-01-12  Tom de Vries  <tdevries@suse.de>
5430         PR target/85381
5431         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
5432         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
5434 2019-01-12  Tom de Vries  <tdevries@suse.de>
5436         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
5437         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
5438         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
5440 2019-01-12  Tom de Vries  <tdevries@suse.de>
5442         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
5443         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
5444         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
5446 2019-01-12  Tom de Vries  <tdevries@suse.de>
5448         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
5449         resources diagnostic.
5451 2019-01-12  Tom de Vries  <tdevries@suse.de>
5453         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
5454         vector length to be 128.
5455         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
5456         length 2097152 to be reduced to 1024 instead of 32.
5458 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
5459             James Norris  <jnorris@codesourcery.com>
5461         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
5462         Library Routines", and "Environment Variables".
5464 2019-01-11  Tom de Vries  <tdevries@suse.de>
5466         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
5467         num_workers 16.
5469 2019-01-11  Tom de Vries  <tdevries@suse.de>
5471         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
5472         -foffload=-w.
5473         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
5474         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
5475         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
5476         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
5478 2019-01-11  Tom de Vries  <tdevries@suse.de>
5480         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
5481         test.
5483 2019-01-10  Nathan Sidwell  <nathan@acm.org>
5484             Julian Brown  <julian@codesourcery.com>
5486         PR lto/71959
5487         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
5488         * testsuite/libgomp.oacc-c++/pr71959.C: New.
5490 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5492         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
5493         and paste code.
5495 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5497         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
5498         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
5499         write.
5501 2019-01-09  Tom de Vries  <tdevries@suse.de>
5503         PR target/88756
5504         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
5505         #define instead of "const int".
5506         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
5507         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
5508         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
5509         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
5511 2019-01-09  Tom de Vries  <tdevries@suse.de>
5513         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
5514         one worker.
5516 2019-01-07  Tom de Vries  <tdevries@suse.de>
5518         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
5519         GOMP_OPENACC_DIM argument.
5521 2019-01-03  Tom de Vries  <tdevries@suse.de>
5523         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
5524         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
5526 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
5528         Update copyright years.
5530 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
5532         * libgomp.texi: Bump @copying's copyright year.
5534 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
5536         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
5537         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
5538         (GOACC_declare): Redefine the "device" argument to "flags".
5540 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
5541             Cesar Philippidis  <cesar@codesourcery.com>
5543         * target.c (struct gomp_coalesce_chunk): New structure.
5544         (struct gomp_coalesce_buf): Update the chunks member to use that
5545         type.  Adjust all users.
5547 2018-12-19  Tom de Vries  <tdevries@suse.de>
5549         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
5550         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
5551         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
5553 2018-12-19  Tom de Vries  <tdevries@suse.de>
5555         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
5556         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
5557         gcc/testsuite/gcc.dg/goacc.
5558         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
5560 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
5561             Chung-Lin Tang  <cltang@codesourcery.com>
5563         * oacc-mem.c (acc_present_or_create): Remove definition and change
5564         to alias of acc_create.
5565         (acc_present_or_copyin): Remove definition and change to alias of
5566         acc_copyin.
5567         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
5568         of acc_present_or_create.
5569         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
5570         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5571         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5572         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5573         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5574         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5575         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5576         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5577         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5578         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5579         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5580         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5581         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5582         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5583         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5584         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5586 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
5588         PR libgomp/88495
5589         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
5590         "identical parameters".
5591         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
5592         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
5594         PR libgomp/88484
5595         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
5596         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
5598         PR libgomp/88407
5599         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
5600         (nvptx_wait_async): Unseen async-argument is a no-op.
5601         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
5602         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
5603         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5604         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5605         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
5606         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
5607         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
5608         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
5609         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
5611         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
5612         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5614 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
5616         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
5617         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5618         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5620 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
5622         PR libgomp/88370
5623         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
5624         (acc_set_cuda_stream): Clarify.
5625         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
5626         "async_valid_p".
5627         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
5628         acc_async_sync".
5629         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
5630         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
5631         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
5632         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5634 2018-12-14  Tom de Vries  <tdevries@suse.de>
5636         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
5637         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
5638         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
5639         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
5640         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
5642 2018-12-13  Tom de Vries  <tdevries@suse.de>
5644         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
5645         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
5646         * fortran.c (omp_display_affinity_): ... here.
5647         * libgomp.h (gomp_print_string): Declare.
5648         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
5649         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
5650         write.
5652 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
5654         PR libgomp/88460
5655         * testsuite/libgomp.c++/for-24.C (results): Include it in
5656         omp declare target region.
5657         (main): Use map (always, tofrom: results) instead of
5658         map (tofrom: results).
5660 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
5662         PR fortran/88463
5663         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
5664         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
5666         * testsuite/libgomp.c-c++-common/for-16.c: New test.
5668 2018-12-12  Andreas Schwab  <schwab@suse.de>
5670         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
5671         clobbered.
5673 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
5675         PR fortran/88411
5676         * testsuite/libgomp.fortran/async_io_8.f90: New test.
5678 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
5679             Jakub Jelinek  <jakub@redhat.com>
5681         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
5682         devicep->host2dev_func.
5684 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
5686         PR libgomp/87995
5687         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
5688         tls_runtime effective target.
5689         (t): New threadprivate variable.
5690         (main): Set t in threads which execute iterations of the worksharing
5691         loop.  Propagate that to the task after the loop and don't abort
5692         if the current taskgroup hasn't been cancelled.
5694 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
5696         * testsuite/libgomp.c/task-reduction-3.c: New test.
5698         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
5700 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
5702         PR libgomp/88288
5703         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
5704         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
5706 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
5708         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
5710 2018-10-19  Richard Biener  <rguenther@suse.de>
5712         PR tree-optimization/88182
5713         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
5715 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
5717         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
5718         (RUNTEST): Don't define.
5719         (RUNTESTDEFAULTFLAGS): Add.
5720         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
5721         (distclean-am): Depend on distclean-DEJAGNU.
5722         (check-am): If -j% option is present in MFLAGS and if
5723         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
5724         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
5725         * testsuite/Makefile.in: Regenerated.
5727 2018-11-26  Richard Biener  <rguenther@suse.de>
5729         PR tree-optimization/88182
5730         * testsuite/libgomp.c++/pr88182.C: New testcase.
5732 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
5734         PR bootstrap/88106
5735         * config/mingw32/affinity-fmt.c: New file.
5737 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
5739         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
5740         (gomp_display_affinity): Use __builtin_choose_expr to handle
5741         properly handle argument having integral, or pointer or some other
5742         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
5743         with uint64_t type instead of %llx and unsigned long long.
5745         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
5746         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
5748 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5750         * affinity.c: Include <string.h>, <stdio.h>.
5751         (gomp_display_affinity_place): Remove cpusetp.
5752         * teams.c: Include <limits.h>.
5754 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
5756         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
5757         in_reduction clause for s[0].
5759         * affinity.c (gomp_display_affinity_place): New function.
5760         * affinity-fmt.c: New file.
5761         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
5762         * config/linux/affinity.c (gomp_display_affinity_place): New function.
5763         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
5764         Move these functions to ...
5765         * config/nvptx/teams.c: ... here.  New file.
5766         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
5767         New functions.
5768         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
5769         functions.
5770         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
5771         and _aligned_malloc.
5772         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
5773         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
5774         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
5775         gomp_affinity_format_len): New variables.
5776         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
5777         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
5778         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
5779         modifiers.  Display (non-default) chunk sizes.  Print
5780         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
5781         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
5782         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
5783         * fortran.c: Include stdio.h and string.h.
5784         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
5785         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
5786         (omp_set_affinity_format_, omp_get_affinity_format_,
5787         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
5788         omp_pause_resource_all_): New functions.
5789         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
5790         switch.
5791         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
5792         functions to ...
5793         * teams.c: ... here.  New file.
5794         * libgomp_g.h: Include gstdint.h.
5795         (GOMP_loop_nonmonotonic_runtime_start,
5796         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
5797         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
5798         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
5799         GOMP_parallel_loop_nonmonotonic_runtime,
5800         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5801         GOMP_loop_ull_nonmonotonic_runtime_start,
5802         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
5803         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
5804         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5805         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
5806         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
5807         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5808         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
5809         GOMP_teams_reg): Declare.
5810         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
5811         gomp_aligned_alloc uses fallback implementation.
5812         (gomp_aligned_alloc, gomp_aligned_free): Declare.
5813         (enum gomp_schedule_type): Add GFS_MONOTONIC.
5814         (struct gomp_doacross_work_share): Add extra field.
5815         (struct gomp_work_share): Add task_reductions field.
5816         (struct gomp_taskgroup): Add workshare and reductions fields.
5817         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
5818         (gomp_thread_handle): New typedef.
5819         (gomp_display_affinity_place, gomp_set_affinity_format,
5820         gomp_display_string, gomp_display_affinity,
5821         gomp_display_affinity_thread): Declare.
5822         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
5823         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
5824         gomp_workshare_task_reduction_register): Declare.
5825         (gomp_team_start): Add taskgroup argument.
5826         (gomp_pause_host): Declare.
5827         (gomp_init_work_share, gomp_work_share_start): Change bool argument
5828         to size_t.
5829         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
5830         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
5831         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
5832         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
5833         GOMP_loop_ull_doacross_start,
5834         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
5835         GOMP_loop_maybe_nonmonotonic_runtime_next,
5836         GOMP_loop_maybe_nonmonotonic_runtime_start,
5837         GOMP_loop_nonmonotonic_runtime_next,
5838         GOMP_loop_nonmonotonic_runtime_start,
5839         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5840         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
5841         GOMP_loop_ull_nonmonotonic_runtime_next,
5842         GOMP_loop_ull_nonmonotonic_runtime_start,
5843         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5844         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
5845         GOMP_taskgroup_reduction_register,
5846         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5847         GOMP_teams_reg and GOMP_taskwait_depend.
5848         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
5849         omp_{capture,display}_affinity{,_}, and
5850         omp_[gs]et_affinity_format{,_}.
5851         * loop.c: Include string.h.
5852         (GOMP_loop_runtime_next): Add ialias.
5853         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5854         (gomp_loop_static_start, gomp_loop_dynamic_start,
5855         gomp_loop_guided_start, gomp_loop_ordered_static_start,
5856         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
5857         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
5858         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
5859         or gomp_doacross_init callers.
5860         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
5861         GOMP_loop_doacross_start): New functions.
5862         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
5863         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
5864         Mask off GFS_MONOTONIC bit.
5865         (GOMP_loop_maybe_nonmonotonic_runtime_next,
5866         GOMP_loop_maybe_nonmonotonic_runtime_start,
5867         GOMP_loop_nonmonotonic_runtime_next,
5868         GOMP_loop_nonmonotonic_runtime_start,
5869         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5870         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
5871         functions.
5872         (gomp_parallel_loop_start): Pass NULL as taskgroup to
5873         gomp_team_start.
5874         * loop_ull.c: Include string.h.
5875         (GOMP_loop_ull_runtime_next): Add ialias.
5876         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5877         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
5878         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
5879         gomp_loop_ull_ordered_dynamic_start,
5880         gomp_loop_ull_ordered_guided_start,
5881         gomp_loop_ull_doacross_static_start,
5882         gomp_loop_ull_doacross_dynamic_start,
5883         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
5884         and gomp_doacross_ull_init callers.
5885         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
5886         GOMP_loop_ull_doacross_start): New functions.
5887         (GOMP_loop_ull_runtime_start,
5888         GOMP_loop_ull_ordered_runtime_start,
5889         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
5890         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5891         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
5892         GOMP_loop_ull_nonmonotonic_runtime_next,
5893         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
5894         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
5895         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
5896         (omp_pause_resource_t, omp_depend_t): New typedefs.
5897         (enum omp_lock_hint_t): Renamed to ...
5898         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
5899         enumerators using numbers and omp_lock_hint_* as their aliases.
5900         (omp_lock_hint_t): New typedef.  Rename to ...
5901         (omp_sync_hint_t): ... this.
5902         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
5903         omp_sync_hint_t instead of omp_lock_hint_t.
5904         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5905         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5906         Declare.
5907         (omp_target_is_present, omp_target_disassociate_ptr):
5908         Change first argument from void * to const void *.
5909         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
5910         from void * to const void *.
5911         (omp_target_associate_ptr): Change first and second arguments from
5912         void * to const void *.
5913         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
5914         omp_pause_hard): New parameters.
5915         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5916         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5917         New interfaces.
5918         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
5919         omp_pause_hard): New parameters.
5920         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5921         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5922         New externals.
5923         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
5924         EXTRA argument.  If not needed to prepare array, if extra is 0,
5925         clear ws->doacross, otherwise allocate just doacross structure and
5926         extra payload.  If array is needed, allocate also extra payload.
5927         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
5928         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
5929         doacross == NULL.
5930         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
5931         gomp_team_start.
5932         (GOMP_parallel): Likewise.  Formatting fix.
5933         (GOMP_parallel_reductions): New function.
5934         (GOMP_cancellation_point): If taskgroup has workshare
5935         flag set, check cancelled of prev taskgroup if any.
5936         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
5937         on prev taskgroup if any.
5938         * sections.c: Include string.h.
5939         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5940         (GOMP_sections_start): Adjust gomp_work_share_start caller.
5941         (GOMP_sections2_start): New function.
5942         (GOMP_parallel_sections_start, GOMP_parallel_sections):
5943         Pass NULL as taskgroup to gomp_team_start.
5944         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
5945         gomp_work_share_start callers.
5946         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
5947         If taskgroup has workshare flag set, check cancelled on prev
5948         taskgroup if any.  Guard all cancellation tests with
5949         gomp_cancel_var test.
5950         (omp_target_is_present, omp_target_disassociate_ptr):
5951         Change ptr argument from void * to const void *.
5952         (omp_target_memcpy): Change src argument from void * to const void *.
5953         (omp_target_memcpy_rect): Likewise.
5954         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
5955         instead of char * where needed.
5956         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
5957         from void * to const void *.
5958         (omp_pause_resource, omp_pause_resource_all): New functions.
5959         * task.c (gomp_task_handle_depend): Handle new depend array format
5960         in addition to the old.  Handle mutexinoutset kinds the same as
5961         inout for now, handle unspecified kinds.
5962         (gomp_create_target_task): If taskgroup has workshare flag set, check
5963         cancelled on prev taskgroup if any.  Guard all cancellation tests with
5964         gomp_cancel_var test.  Handle new depend array format count in
5965         addition to the old.
5966         (GOMP_task): Likewise.  Adjust function comment.
5967         (gomp_task_run_pre): If taskgroup has workshare flag set, check
5968         cancelled on prev taskgroup if any.  Guard all cancellation tests with
5969         gomp_cancel_var test.
5970         (GOMP_taskwait_depend): New function.
5971         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
5972         format in addition to the old.  Handle mutexinoutset kinds the same as
5973         inout for now, handle unspecified kinds.  Fix a function comment typo.
5974         (gomp_taskgroup_init): New function.
5975         (GOMP_taskgroup_start): Use it.
5976         (gomp_reduction_register, gomp_create_artificial_team,
5977         GOMP_taskgroup_reduction_register,
5978         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5979         gomp_parallel_reduction_register,
5980         gomp_workshare_task_reduction_register,
5981         gomp_workshare_taskgroup_start,
5982         GOMP_workshare_task_reduction_unregister): New functions.
5983         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
5984         check cancelled on prev taskgroup if any.  Guard all cancellation
5985         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
5986         by calling GOMP_taskgroup_reduction_register.
5987         * team.c (gomp_thread_attr): Remove comment.
5988         (struct gomp_thread_start_data): Add handle field.
5989         (gomp_thread_start): Call pthread_detach.
5990         (gomp_new_team): Adjust gomp_init_work_share caller.
5991         (gomp_free_pool_helper): Call pthread_detach.
5992         (gomp_team_start): Add taskgroup argument, initialize implicit
5993         tasks' taskgroup field to that.  Don't call
5994         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
5995         (gomp_team_end): Determine nesting by thr->ts.level != 0
5996         rather than thr->ts.team != NULL.
5997         (gomp_pause_pool_helper, gomp_pause_host): New functions.
5998         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
5999         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
6000         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
6001         if more than 1 allocate also extra payload at the end of array.  Never
6002         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
6003         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
6004         return true instead of ws.
6005         * Makefile.in: Regenerated.
6006         * configure: Regenerated.
6007         * config.h.in: Regenerated.
6008         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
6009         in some cases.
6010         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
6011         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
6012         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
6013         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
6014         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
6015         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
6016         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
6017         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
6018         * testsuite/libgomp.c-c++-common/for-10.c: New test.
6019         * testsuite/libgomp.c-c++-common/for-11.c: New test.
6020         * testsuite/libgomp.c-c++-common/for-12.c: New test.
6021         * testsuite/libgomp.c-c++-common/for-13.c: New test.
6022         * testsuite/libgomp.c-c++-common/for-14.c: New test.
6023         * testsuite/libgomp.c-c++-common/for-15.c: New test.
6024         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
6025         define a different N(test), don't define N(f0) to N(f14), but instead
6026         define N(f20) to N(f34) using != comparisons.
6027         * testsuite/libgomp.c-c++-common/for-7.c: New test.
6028         * testsuite/libgomp.c-c++-common/for-8.c: New test.
6029         * testsuite/libgomp.c-c++-common/for-9.c: New test.
6030         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
6031         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
6032         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
6033         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
6034         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
6035         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
6036         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
6037         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
6038         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
6039         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
6040         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
6041         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
6042         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
6043         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
6044         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
6045         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
6046         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
6047         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
6048         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
6049         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
6050         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
6051         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
6052         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
6053         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
6054         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
6055         * testsuite/libgomp.c++/depend-1.C: New test.
6056         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
6057         * testsuite/libgomp.c++/depobj-1.C: New test.
6058         * testsuite/libgomp.c++/for-16.C: New test.
6059         * testsuite/libgomp.c++/for-21.C: New test.
6060         * testsuite/libgomp.c++/for-22.C: New test.
6061         * testsuite/libgomp.c++/for-23.C: New test.
6062         * testsuite/libgomp.c++/for-24.C: New test.
6063         * testsuite/libgomp.c++/for-25.C: New test.
6064         * testsuite/libgomp.c++/for-26.C: New test.
6065         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
6066         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
6067         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
6068         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
6069         * testsuite/libgomp.c++/task-reduction-10.C: New test.
6070         * testsuite/libgomp.c++/task-reduction-11.C: New test.
6071         * testsuite/libgomp.c++/task-reduction-12.C: New test.
6072         * testsuite/libgomp.c++/task-reduction-13.C: New test.
6073         * testsuite/libgomp.c++/task-reduction-14.C: New test.
6074         * testsuite/libgomp.c++/task-reduction-15.C: New test.
6075         * testsuite/libgomp.c++/task-reduction-16.C: New test.
6076         * testsuite/libgomp.c++/task-reduction-17.C: New test.
6077         * testsuite/libgomp.c++/task-reduction-18.C: New test.
6078         * testsuite/libgomp.c++/task-reduction-19.C: New test.
6079         * testsuite/libgomp.c/task-reduction-1.c: New test.
6080         * testsuite/libgomp.c++/task-reduction-1.C: New test.
6081         * testsuite/libgomp.c/task-reduction-2.c: New test.
6082         * testsuite/libgomp.c++/task-reduction-2.C: New test.
6083         * testsuite/libgomp.c++/task-reduction-3.C: New test.
6084         * testsuite/libgomp.c++/task-reduction-4.C: New test.
6085         * testsuite/libgomp.c++/task-reduction-5.C: New test.
6086         * testsuite/libgomp.c++/task-reduction-6.C: New test.
6087         * testsuite/libgomp.c++/task-reduction-7.C: New test.
6088         * testsuite/libgomp.c++/task-reduction-8.C: New test.
6089         * testsuite/libgomp.c++/task-reduction-9.C: New test.
6090         * testsuite/libgomp.c/teams-1.c: New test.
6091         * testsuite/libgomp.c/teams-2.c: New test.
6092         * testsuite/libgomp.c/thread-limit-4.c: New test.
6093         * testsuite/libgomp.c/thread-limit-5.c: New test.
6094         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
6096 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
6098         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
6099         acc_memcpy_to/from_device functions, now with async parameter.
6100         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
6101         (acc_memcpy_from_device): Likewise.
6102         (acc_memcpy_to_device_async): New API function.
6103         (acc_memcpy_from_device_async): Likewise.
6104         (present_create_copy): Add async parameter and async setting/unsetting.
6105         (acc_create): Adjust present_create_copy call.
6106         (acc_copyin): Likewise.
6107         (acc_present_or_create): Likewise.
6108         (acc_present_or_copyin): Likewise.
6109         (acc_create_async): New API function.
6110         (acc_copyin_async): New API function.
6111         (delete_copyout): Add async parameter and async setting/unsetting.
6112         (acc_delete): Adjust delete_copyout call.
6113         (acc_copyout): Likewise.
6114         (acc_delete_async): New API function.
6115         (acc_copyout_async): Likewise.
6116         (update_dev_host): Add async parameter and async setting/unsetting.
6117         (acc_update_device): Adjust update_dev_host call.
6118         (acc_update_self): Likewise.
6119         (acc_update_device_async): New API function.
6120         (acc_update_self_async): Likewise.
6121         * openacc.h (acc_copyin_async): Declare new API function.
6122         (acc_create_async): Likewise.
6123         (acc_copyout_async): Likewise.
6124         (acc_delete_async): Likewise.
6125         (acc_update_device_async): Likewise.
6126         (acc_update_self_async): Likewise.
6127         (acc_memcpy_to_device_async): Likewise.
6128         (acc_memcpy_from_device_async): Likewise.
6129         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
6130         (acc_copyin_async_64_h): New subroutine.
6131         (acc_copyin_async_array_h): New subroutine.
6132         (acc_create_async_32_h): New subroutine.
6133         (acc_create_async_64_h): New subroutine.
6134         (acc_create_async_array_h): New subroutine.
6135         (acc_copyout_async_32_h): New subroutine.
6136         (acc_copyout_async_64_h): New subroutine.
6137         (acc_copyout_async_array_h): New subroutine.
6138         (acc_delete_async_32_h): New subroutine.
6139         (acc_delete_async_64_h): New subroutine.
6140         (acc_delete_async_array_h): New subroutine.
6141         (acc_update_device_async_32_h): New subroutine.
6142         (acc_update_device_async_64_h): New subroutine.
6143         (acc_update_device_async_array_h): New subroutine.
6144         (acc_update_self_async_32_h): New subroutine.
6145         (acc_update_self_async_64_h): New subroutine.
6146         (acc_update_self_async_array_h): New subroutine.
6147         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
6148         (acc_copyin_async_64_h): New subroutine.
6149         (acc_copyin_async_array_h): New subroutine.
6150         (acc_create_async_32_h): New subroutine.
6151         (acc_create_async_64_h): New subroutine.
6152         (acc_create_async_array_h): New subroutine.
6153         (acc_copyout_async_32_h): New subroutine.
6154         (acc_copyout_async_64_h): New subroutine.
6155         (acc_copyout_async_array_h): New subroutine.
6156         (acc_delete_async_32_h): New subroutine.
6157         (acc_delete_async_64_h): New subroutine.
6158         (acc_delete_async_array_h): New subroutine.
6159         (acc_update_device_async_32_h): New subroutine.
6160         (acc_update_device_async_64_h): New subroutine.
6161         (acc_update_device_async_array_h): New subroutine.
6162         (acc_update_self_async_32_h): New subroutine.
6163         (acc_update_self_async_64_h): New subroutine.
6164         (acc_update_self_async_array_h): New subroutine.
6165         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
6166         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
6167         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
6168         acc_memcpy_to_device_async*, acc_update_device_async*, and
6169         acc_update_self_async* entries.
6170         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
6171         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
6172         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
6174 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
6176         PR bootstrap/82856
6177         * Makefile.am: Include multilib.am
6178         (AUTOMAKE_OPTIONS): Add info-in-builddir.
6179         (CLEANFILES): Remove libgomp.info.
6180         * configure.ac: Remove AC_PREREQ.
6181         * testsuite/Makefile.am (RUNTEST): Remove quotes.
6182         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
6183         Regenerate.
6185 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
6186             Julian Brown  <julian@codesourcery.com>
6188         * testsuite/libgomp.oacc-c++/this.C: New.
6190 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
6192         * plugin/plugin-nvptx.c (struct cuda_map): New.
6193         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
6194         h_tail with (cuda_map *) map.
6195         (cuda_map_create): New function.
6196         (cuda_map_destroy): New function.
6197         (map_init): Update to use a linked list of cuda_map objects.
6198         (map_fini): Likewise.
6199         (map_pop): Likewise.
6200         (map_push): Likewise.  Return CUdeviceptr instead of void.
6201         (init_streams_for_device): Remove stales references to ptx_stream
6202         members.
6203         (select_stream_for_async): Likewise.
6204         (nvptx_exec): Update call to map_init.
6206 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
6207             Julian Brown  <julian@codesourcery.com>
6209         PR middle-end/86336
6210         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
6212 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
6213         Thomas Koenig <tkoenig@gcc.gnu.org>
6215         PR fortran/25829
6216         * testsuite/libgomp.fortran/async_io_1.f90: New test.
6217         * testsuite/libgomp.fortran/async_io_2.f90: New test.
6218         * testsuite/libgomp.fortran/async_io_3.f90: New test.
6219         * testsuite/libgomp.fortran/async_io_4.f90: New test.
6220         * testsuite/libgomp.fortran/async_io_5.f90: New test.
6221         * testsuite/libgomp.fortran/async_io_6.f90: New test.
6222         * testsuite/libgomp.fortran/async_io_7.f90: New test.
6224 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
6225             Tom de Vries  <tdevries@suse.de>
6227         PR target/85590
6228         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
6229         (cuOccupancyMaxPotentialBlockSize): Declare.
6230         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
6231         CUDA_ONE_CALL_MAYBE_NULL.
6232         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
6233         CUoccupancyB2DSize and declare
6234         cuOccupancyMaxPotentialBlockSize.
6235         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
6236         default num_gangs and num_workers when the driver supports it.
6238 2018-08-08  Tom de Vries  <tdevries@suse.de>
6240         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
6241         CUDA_ONE_CALL_MAYBE_NULL.
6242         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
6243         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
6244         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
6245         are not found.
6247 2018-08-08  Tom de Vries  <tdevries@suse.de>
6249         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
6250         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
6251         present.
6253 2018-08-08  Tom de Vries  <tdevries@suse.de>
6255         * plugin/plugin-nvptx.c
6256         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
6257         (nvptx_open_device): Use
6258         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
6260 2018-08-08  Tom de Vries  <tdevries@suse.de>
6262         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
6263         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
6265 2018-08-07  Tom de Vries  <tdevries@suse.de>
6267         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
6268         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
6269         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
6270         corresponding call in CUDA_ONE_CALL.  Add def/undef of
6271         CUDA_ONE_CALL_MAYBE_NULL.
6272         (CUDA_CALL_EXISTS): Define.
6274 2018-08-07  Tom de Vries  <tdevries@suse.de>
6276         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
6277         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
6278         corresponding undefs right after.
6280 2018-08-04  Tom de Vries  <tdevries@suse.de>
6282         * plugin/configfrag.ac: For --without-cuda-driver, set
6283         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
6284         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
6285         * configure: Regenerate.
6287 2018-08-02  Tom de Vries  <tdevries@suse.de>
6289         PR target/86660
6290         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
6291         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
6292         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
6293         Same.
6294         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
6295         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
6296         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
6298 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
6299             Thomas Schwinge <thomas@codesourcery.com>
6301         * config/nvptx/oacc-parallel.c: Truncate.
6303 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
6304             James Norris <jnorris@codesourcery.com>
6306         * plugin/plugin-nvptx.c (struct map): Removed.
6307         (map_init, map_pop): Remove use of struct map.
6308         (map_push): Likewise and change argument list.
6309         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
6311 2018-08-01  Tom de Vries  <tdevries@suse.de>
6313         * plugin/cuda-lib.def: New file.  Factor out of ...
6314         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
6315         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
6316         using CUDA_CALLS.
6318 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6320         Revert 'AsyncI/O patch committed'.
6321         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
6322                 Thomas Koenig <tkoenig@gcc.gnu.org>
6324         PR fortran/25829
6325         * testsuite/libgomp.fortran/async_io_1.f90: New test.
6326         * testsuite/libgomp.fortran/async_io_2.f90: New test.
6327         * testsuite/libgomp.fortran/async_io_3.f90: New test.
6328         * testsuite/libgomp.fortran/async_io_4.f90: New test.
6329         * testsuite/libgomp.fortran/async_io_5.f90: New test.
6330         * testsuite/libgomp.fortran/async_io_6.f90: New test.
6331         * testsuite/libgomp.fortran/async_io_7.f90: New test.
6333 2018-07-30  Tom de Vries  <tdevries@suse.de>
6335         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
6336         (nvptx_exec): Ensure worker and vector default dims don't exceed
6337         targ_fn->max_threads_per_block.
6339 2018-07-30  Tom de Vries  <tdevries@suse.de>
6341         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
6342         (nvptx_open_device): Init default_dims for device.
6343         (nvptx_exec): Use default_dims from device.
6345 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
6347         PR testsuite/86660
6348         * testsuite/libgomp.c++/for-15.C (results): Include it in
6349         omp declare target region.
6350         (main): Use map (always, tofrom: results) instead of
6351         map (tofrom: results).
6353         PR middle-end/86660
6354         * testsuite/libgomp.c/pr86660.c: New test.
6356 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
6357             Tom de Vries  <tdevries@suse.de>
6359         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
6360         sufficient resources to launch a kernel, and give a hint on how to fix
6361         it.
6363 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
6364             Tom de Vries  <tdevries@suse.de>
6366         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
6367         max_threads_per_block and max_threads_per_multiprocessor fields.
6368         (nvptx_open_device): Initialize new fields.
6369         (nvptx_exec): Use num_sms, and new fields.
6371 2018-07-26  Tom de Vries  <tdevries@suse.de>
6373         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
6374         to correct locations.  Remove xfail.
6376 2018-07-26  Tom de Vries  <tdevries@suse.de>
6378         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
6379         acc_wait.  Move acc_async_test calls to correct locations.  Remove
6380         xfail.
6382 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
6383         Thomas Koenig <tkoenig@gcc.gnu.org>
6385         PR fortran/25829
6386         * testsuite/libgomp.fortran/async_io_1.f90: New test.
6387         * testsuite/libgomp.fortran/async_io_2.f90: New test.
6388         * testsuite/libgomp.fortran/async_io_3.f90: New test.
6389         * testsuite/libgomp.fortran/async_io_4.f90: New test.
6390         * testsuite/libgomp.fortran/async_io_5.f90: New test.
6391         * testsuite/libgomp.fortran/async_io_6.f90: New test.
6392         * testsuite/libgomp.fortran/async_io_7.f90: New test.
6394 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
6396         PR middle-end/86542
6397         * testsuite/libgomp.c++/pr86542.C: New test.
6399         PR middle-end/86539
6400         * testsuite/libgomp.c++/pr86539.C: New test.
6402 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
6404         PR c++/86443
6405         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
6406         (results): Make sure the variable is not inside declare target region.
6407         (qux): Remove unused function.
6409 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
6411         PR c++/86443
6412         * testsuite/libgomp.c++/for-15.C: New test.
6414 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
6416         PR c++/86291
6417         * testsuite/libgomp.c++/pr86291.C: New test.
6419 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
6421         * libgomp.texi (Top): Move www.openmp.org to https.
6422         (Enabling OpenMP): Ditto.
6423         (omp_get_active_level): Ditto.
6424         (omp_get_ancestor_thread_num): Ditto.
6425         (omp_get_cancellation): Ditto.
6426         (omp_get_default_device): Ditto.
6427         (omp_get_dynamic): Ditto.
6428         (omp_get_level): Ditto.
6429         (omp_get_max_active_levels): Ditto.
6430         (omp_get_max_task_priority): Ditto.
6431         (omp_get_max_threads): Ditto.
6432         (omp_get_nested): Ditto.
6433         (omp_get_num_devices): Ditto.
6434         (omp_get_num_procs): Ditto.
6435         (omp_get_num_teams): Ditto.
6436         (omp_get_num_threads): Ditto.
6437         (omp_get_proc_bind): Ditto.
6438         (omp_get_schedule): Ditto.
6439         (omp_get_team_num): Ditto.
6440         (omp_get_team_size): Ditto.
6441         (omp_get_thread_limit): Ditto.
6442         (omp_get_thread_num): Ditto.
6443         (omp_in_parallel): Ditto.
6444         (omp_in_final): Ditto.
6445         (omp_is_initial_device): Ditto.
6446         (omp_set_default_device): Ditto.
6447         (omp_set_dynamic): Ditto.
6448         (omp_set_max_active_levels): Ditto.
6449         (omp_set_nested): Ditto.
6450         (omp_set_num_threads): Ditto.
6451         (omp_set_schedule): Ditto.
6452         (omp_init_lock): Ditto.
6453         (omp_set_lock): Ditto.
6454         (omp_test_lock): Ditto.
6455         (omp_unset_lock): Ditto.
6456         (omp_destroy_lock): Ditto.
6457         (omp_init_nest_lock): Ditto.
6458         (omp_set_nest_lock): Ditto.
6459         (omp_test_nest_lock): Ditto.
6460         (omp_unset_nest_lock): Ditto.
6461         (omp_destroy_nest_lock): Ditto.
6462         (omp_get_wtick): Ditto.
6463         (omp_get_wtime): Ditto.
6464         (OMP_CANCELLATION): Ditto.
6465         (OMP_DISPLAY_ENV): Ditto.
6466         (OMP_DEFAULT_DEVICE): Ditto.
6467         (OMP_DYNAMIC): Ditto.
6468         (OMP_MAX_ACTIVE_LEVELS): Ditto.
6469         (OMP_MAX_TASK_PRIORITY): Ditto.
6470         (OMP_NESTED): Ditto.
6471         (OMP_NUM_THREADS): Ditto.
6472         (OMP_PROC_BIND): Ditto.
6473         (OMP_PLACES): Ditto.
6474         (OMP_STACKSIZE): Ditto.
6475         (OMP_SCHEDULE): Ditto.
6476         (OMP_THREAD_LIMIT): Ditto.
6477         (OMP_WAIT_POLICY): Ditto.
6479 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
6480             James Norris  <jnorris@codesourcery.com>
6481             Julian Brown  <julian@codesourcery.com>
6482             Thomas Schwinge  <thomas@codesourcery.com>
6483             Tom de Vries  <tom@codesourcery.com>
6485         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
6486         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
6487         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
6488         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
6489         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
6490         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
6491         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
6492         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
6493         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
6494         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
6495         Likewise.
6496         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6497         Likewise.
6498         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6499         Likewise.
6500         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
6501         Likewise.
6502         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
6503         Likewise.
6504         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6505         Likewise.
6506         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
6507         Likewise.
6508         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
6509         Likewise.
6510         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
6511         Likewise.
6512         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
6513         Likewise.
6514         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
6515         Likewise.
6516         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
6517         Likewise.
6518         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
6519         Likewise.
6520         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
6521         Likewise.
6522         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
6523         Likewise.
6524         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
6525         Likewise.
6526         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
6527         Likewise.
6528         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
6529         Likewise.
6530         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
6531         Likewise.
6532         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
6533         Likewise.
6534         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
6535         Likewise.
6536         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
6537         Likewise.
6538         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
6539         Likewise.
6540         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
6541         Likewise.
6542         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
6543         Likewise.
6544         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
6545         Likewise.
6546         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
6547         Likewise.
6548         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
6549         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
6550         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
6551         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
6552         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
6553         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
6554         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
6555         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
6556         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
6557         Likewise.
6558         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
6559         Likewise.
6560         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
6561         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
6562         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
6563         Likewise.
6564         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
6565         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
6566         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
6567         Likewise.
6568         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6569         Likewise.
6570         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6571         Likewise.
6572         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6573         Likewise.
6574         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6575         Likewise.
6576         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
6577         Likewise.
6578         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
6579         Likewise.
6580         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
6581         Likewise.
6582         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
6583         Likewise.
6584         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
6585         Likewise.
6586         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
6587         Likewise.
6588         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
6589         Likewise.
6590         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
6591         Likewise.
6592         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
6593         Likewise.
6594         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
6595         Likewise.
6596         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
6597         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
6598         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
6599         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
6600         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
6601         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
6602         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
6604 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
6605             Thomas Schwinge <thomas@codesourcery.com>
6606             Cesar Philippidis  <cesar@codesourcery.com>
6608         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
6609         (gomp_acc_remove_pointer): Update declaration.
6610         (gomp_acc_declare_allocate): Declare.
6611         (gomp_remove_var): Declare.
6612         * libgomp.map (OACC_2.5): Define.
6613         * oacc-mem.c (acc_map_data): Update refcount.
6614         (acc_unmap_data): Likewise.
6615         (present_create_copy): Likewise.
6616         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
6617         (acc_copyin): Likewise.
6618         (FLAG_FINALIZE): Define.
6619         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
6620         (acc_delete_finalize): New function.
6621         (acc_delete_finalize_async): New function.
6622         (acc_copyout_finalize): New function.
6623         (acc_copyout_finalize_async): New function.
6624         (gomp_acc_insert_pointer): Update refcounts.
6625         (gomp_acc_remove_pointer): Return if data is not present on the
6626         accelerator.
6627         * oacc-parallel.c (find_pset): Rename to find_pointer.
6628         (find_pointer): Add support for GOMP_MAP_POINTER.
6629         (handle_ftn_pointers): New function.
6630         (GOACC_parallel_keyed): Update refcounts of variables.
6631         (GOACC_enter_exit_data): Add support for finalized data mappings.
6632         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
6633         of fortran arrays.
6634         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
6635         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
6636         for GOMP_MAP_FORCE_FROM.
6637         * openacc.f90 (module openacc_internal): Add
6638         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
6639         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
6640         acc_copyout_finalize and acc_delete_finalize.
6641         (acc_copyout_finalize_32_h): New subroutine.
6642         (acc_copyout_finalize_64_h): New subroutine.
6643         (acc_copyout_finalize_array_h): New subroutine.
6644         (acc_delete_finalize_32_h): New subroutine.
6645         (acc_delete_finalize_64_h): New subroutine.
6646         (acc_delete_finalize_array_h): New subroutine.
6647         * openacc.h (acc_copyout_finalize): Declare.
6648         (acc_copyout_finalize_async): Declare.
6649         (acc_delete_finalize): Declare.
6650         (acc_delete_finalize_async): Declare.
6651         * openacc_lib.h (acc_copyout_finalize): New interface.
6652         (acc_delete_finalize): New interface.
6653         * target.c (gomp_map_vars): Update dynamic_refcount.
6654         (gomp_remove_var): New function.
6655         (gomp_unmap_vars): Use it.
6656         (gomp_unload_image_from_device): Likewise.
6657         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
6658         case to utilize OpenACC 2.5 data clause semantics.
6659         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6660         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6661         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6662         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6663         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6664         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6665         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6666         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6667         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6668         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
6669         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6670         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
6671         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
6672         utilize OpenACC 2.5 data clause semantics.
6673         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6674         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6675         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6676         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6677         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6678         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6679         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6680         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
6681         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
6683 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
6685         PR fortran/85841
6686         PR testsuite/85865
6687         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
6688         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
6689         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
6690         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
6691         * testsuite/libgomp.fortran/task2.f90: Ditto.
6692         * testsuite/libgomp.fortran/vla1.f90: Ditto.
6693         * testsuite/libgomp.fortran/vla2.f90: Ditto.
6694         * testsuite/libgomp.fortran/vla3.f90: Ditto.
6695         * testsuite/libgomp.fortran/vla4.f90: Ditto.
6696         * testsuite/libgomp.fortran/vla5.f90: Ditto.
6697         * testsuite/libgomp.fortran/vla6.f90: Ditto.
6698         * testsuite/libgomp.fortran/vla8.f90: Ditto.
6699         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
6700         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
6702 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
6704         PR c++/85782
6705         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
6707 2018-05-09  Tom de Vries  <tom@codesourcery.com>
6709         PR libgomp/82901
6710         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
6711         to GOACC_enter_exit_data.
6713 2018-05-09  Tom de Vries  <tom@codesourcery.com>
6715         PR libgomp/83792
6716         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
6717         (async_synchronous_p): New function.
6718         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
6719         async_valid_p.
6720         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
6721         async_valid_stream_id_p.
6722         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
6723         * oacc-parallel.c (GOACC_parallel_keyed): Same.
6725 2018-05-07  Tom de Vries  <tom@codesourcery.com>
6727         PR testsuite/85677
6728         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
6729         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
6731 2018-05-03  Tom de Vries  <tom@codesourcery.com>
6733         PR testsuite/85106
6734         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
6735         extra_tool_flags if it contains an -foffload=-fdump-* flag.
6736         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
6737         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
6739 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6741         PR libgomp/85411
6742         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
6743         GOMP_OPENACC_DIM ...
6744         * env.c (parse_gomp_openacc_dim): ... here.  New function.
6745         (initialize_env): Call parse_gomp_openacc_dim.
6746         (goacc_default_dims): Define.
6747         * libgomp.h (goacc_default_dims): Declare.
6748         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
6749         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
6750         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
6751         GOMP_PLUGIN_acc_default_dim.
6752         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
6753         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
6755 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6757         PR testsuite/83791
6758         * testsuite/libgomp.c++/udr-9.C: Update.
6759         * testsuite/libgomp.c++/atomic-16.C: Remove.
6760         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
6761         * testsuite/libgomp.c++/loop-13.C: Remove.
6762         * testsuite/libgomp.c++/loop-14.C: Remove.
6763         * testsuite/libgomp.c++/loop-15.C: Remove.
6764         * testsuite/libgomp.c++/monotonic-1.C: Remove.
6765         * testsuite/libgomp.c++/monotonic-2.C: Remove.
6766         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
6767         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
6768         * testsuite/libgomp.c++/ordered-1.C: Remove.
6769         * testsuite/libgomp.c++/pr45784.C: Remove.
6770         * testsuite/libgomp.c++/pr64824.C: Remove.
6771         * testsuite/libgomp.c++/pr64868.C: Remove.
6772         * testsuite/libgomp.c++/pr66199-1.C: Remove.
6773         * testsuite/libgomp.c++/pr66199-2.C: Remove.
6774         * testsuite/libgomp.c++/pr66199-3.C: Remove.
6775         * testsuite/libgomp.c++/pr66199-4.C: Remove.
6776         * testsuite/libgomp.c++/pr66199-5.C: Remove.
6777         * testsuite/libgomp.c++/pr66199-6.C: Remove.
6778         * testsuite/libgomp.c++/pr66199-7.C: Remove.
6779         * testsuite/libgomp.c++/pr66199-8.C: Remove.
6780         * testsuite/libgomp.c++/pr66199-9.C: Remove.
6781         * testsuite/libgomp.c++/pr69389.C: Remove.
6782         * testsuite/libgomp.c++/simd10.C: Remove.
6783         * testsuite/libgomp.c++/simd11.C: Remove.
6784         * testsuite/libgomp.c++/simd12.C: Remove.
6785         * testsuite/libgomp.c++/simd13.C: Remove.
6786         * testsuite/libgomp.c++/target-1.C: Remove.
6787         * testsuite/libgomp.c++/target-3.C: Remove.
6788         * testsuite/libgomp.c++/target-4.C: Remove.
6789         * testsuite/libgomp.c++/target-5.C: Remove.
6790         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
6791         * testsuite/libgomp.c++/taskloop-1.C: Remove.
6792         * testsuite/libgomp.c++/taskloop-2.C: Remove.
6793         * testsuite/libgomp.c++/taskloop-3.C: Remove.
6794         * testsuite/libgomp.c++/taskloop-4.C: Remove.
6795         * testsuite/libgomp.c++/udr-9.C: Remove.
6796         * testsuite/libgomp.c++/for-10.C: Remove.
6797         * testsuite/libgomp.c++/for-11.C: Remove.
6798         * testsuite/libgomp.c++/for-12.C: Remove.
6799         * testsuite/libgomp.c++/for-13.C: Remove.
6800         * testsuite/libgomp.c++/for-14.C: Remove.
6801         * testsuite/libgomp.c++/for-9.C: Remove.
6802         * testsuite/libgomp.c/atomic-18.c: Move ...
6803         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
6804         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
6805         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
6806         * testsuite/libgomp.c/loop-13.c: Move ...
6807         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
6808         * testsuite/libgomp.c/loop-14.c: Move ...
6809         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
6810         * testsuite/libgomp.c/loop-15.c: Remove.
6811         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
6812         * testsuite/libgomp.c/monotonic-1.c: Move ...
6813         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
6814         * testsuite/libgomp.c/monotonic-2.c: Move ...
6815         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
6816         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
6817         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
6818         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
6819         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
6820         * testsuite/libgomp.c/ordered-4.c: Move ...
6821         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
6822         * testsuite/libgomp.c/pr45784.c: Move ...
6823         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
6824         * testsuite/libgomp.c/pr64824.c: Move ...
6825         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
6826         * testsuite/libgomp.c/pr64868.c: Move ...
6827         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
6828         * testsuite/libgomp.c/pr66199-1.c: Move ...
6829         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
6830         * testsuite/libgomp.c/pr66199-2.c: Move ...
6831         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
6832         * testsuite/libgomp.c/pr66199-3.c: Move ...
6833         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
6834         * testsuite/libgomp.c/pr66199-4.c: Move ...
6835         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
6836         * testsuite/libgomp.c/pr66199-5.c: Move ...
6837         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
6838         * testsuite/libgomp.c/pr66199-6.c: Move ...
6839         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
6840         * testsuite/libgomp.c/pr66199-7.c: Move ...
6841         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
6842         * testsuite/libgomp.c/pr66199-8.c: Move ...
6843         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
6844         * testsuite/libgomp.c/pr66199-9.c: Move ...
6845         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
6846         * testsuite/libgomp.c/pr69389.c: Move ...
6847         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
6848         * testsuite/libgomp.c/simd-14.c: Move ...
6849         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
6850         * testsuite/libgomp.c/simd-15.c: Move ...
6851         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
6852         * testsuite/libgomp.c/simd-16.c: Move ...
6853         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
6854         * testsuite/libgomp.c/simd-17.c: Move ...
6855         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
6856         * testsuite/libgomp.c/target-1.c: Move ...
6857         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
6858         * testsuite/libgomp.c/target-10.c: Move ...
6859         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
6860         * testsuite/libgomp.c/target-13.c: Move ...
6861         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
6862         * testsuite/libgomp.c/target-2.c: Move ...
6863         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
6864         * testsuite/libgomp.c/taskgroup-1.c: Move ...
6865         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
6866         * testsuite/libgomp.c/taskloop-1.c: Move ...
6867         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
6868         * testsuite/libgomp.c/taskloop-2.c: Move ...
6869         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
6870         * testsuite/libgomp.c/taskloop-3.c: Move ...
6871         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
6872         * testsuite/libgomp.c/taskloop-4.c: Move ...
6873         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
6874         * testsuite/libgomp.c/udr-1.c: Move ...
6875         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
6876         * testsuite/libgomp.c/for-1.c: Move ...
6877         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
6878         * testsuite/libgomp.c/for-1.h: Move ...
6879         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
6880         * testsuite/libgomp.c/for-2.c: Move ...
6881         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
6882         * testsuite/libgomp.c/for-2.h: Move ...
6883         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
6884         * testsuite/libgomp.c/for-3.c: Move ...
6885         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
6886         * testsuite/libgomp.c/for-4.c: Move ...
6887         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
6888         * testsuite/libgomp.c/for-5.c: Move ...
6889         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
6890         * testsuite/libgomp.c/for-6.c: Move ...
6891         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
6893 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6895         PR libgomp/82428
6896         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
6897         __builtin_goacc_parlevel_{id,size}.
6898         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
6899         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
6900         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
6901         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
6902         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
6903         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
6904         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
6905         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
6906         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
6907         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
6908         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
6909         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
6910         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
6911         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
6912         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
6913         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
6914         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
6915         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
6916         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
6917         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
6918         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
6919         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
6920         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
6922 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6924         PR testsuite/85106
6925         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
6927 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6929         PR testsuite/85106
6930         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
6932 2018-04-29  Julian Brown  <julian@codesourcery.com>
6933             Tom de Vries  <tom@codesourcery.com>
6935         PR testsuite/85527
6936         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
6937         arbitrary order for iterations of atomic subtract check.
6939 2018-04-28  Tom de Vries  <tom@codesourcery.com>
6941         PR testsuite/85527
6942         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
6943         atomic capture results obtained in parallel loop to an array, instead of
6944         to a scalar.
6946 2018-04-26  Tom de Vries  <tom@codesourcery.com>
6948         PR libgomp/84020
6949         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
6950         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
6951         (process_GOMP_NVPTX_JIT): New function.
6952         (link_ptx): Use process_GOMP_NVPTX_JIT.
6954 2018-04-26  Richard Biener <rguenther@suse.de>
6955             Tom de Vries  <tom@codesourcery.com>
6957         PR lto/85422
6958         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
6960 2018-04-26  Tom de Vries  <tom@codesourcery.com>
6962         PR target/85519
6963         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
6964         recursion depth from 25 to 23.
6965         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
6967 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
6969         * configure: Regenerated.
6971 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
6972             Tom de Vries  <tom@codesourcery.com>
6974         PR target/85445
6975         * testsuite/libgomp.oacc-c++/ref-1.C: New.
6977 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
6979         PR libgomp/85463
6980         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
6981         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6982         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6983         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
6984         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
6985         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
6987         PR libfortran/85166
6988         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
6989         abort".
6990         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
6992 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
6994         * configure: Regenerated.
6996 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
6998         PR jit/85384
6999         * configure: Regenerate.
7001 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
7002             Tom de Vries  <tom@codesourcery.com>
7004         PR middle-end/84955
7005         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
7006         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
7008 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
7010         PR fortran/83064
7011         PR testsuite/85346
7012         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
7013         test from gfortran.dg to here.
7015 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
7017         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
7018         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
7020 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
7022         PR middle-end/84955
7023         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
7024         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
7026 2018-04-05  Tom de Vries  <tom@codesourcery.com>
7028         PR target/85204
7029         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
7031 2018-03-26  Tom de Vries  <tom@codesourcery.com>
7033         PR tree-optimization/85063
7034         * testsuite/libgomp.c/switch-conversion-2.c: New test.
7035         * testsuite/libgomp.c/switch-conversion.c: New test.
7036         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
7037         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
7039 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
7041         PR fortran/84381
7042         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
7043         call abort by STOP n.
7044         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
7045         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
7046         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
7047         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
7048         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
7049         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
7050         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
7051         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
7052         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
7053         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
7054         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
7055         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
7056         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
7057         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
7058         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
7059         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
7060         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
7061         * testsuite/libgomp.fortran/associate1.f90: Likewise.
7062         * testsuite/libgomp.fortran/associate2.f90: Likewise.
7063         * testsuite/libgomp.fortran/associate3.f90: Likewise.
7064         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
7065         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
7066         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
7067         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
7068         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
7069         * testsuite/libgomp.fortran/character1.f90: Likewise.
7070         * testsuite/libgomp.fortran/character2.f90: Likewise.
7071         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
7072         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
7073         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
7074         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
7075         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
7076         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
7077         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
7078         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
7079         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
7080         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
7081         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
7082         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
7083         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
7084         * testsuite/libgomp.fortran/do1.f90: Likewise.
7085         * testsuite/libgomp.fortran/do2.f90: Likewise.
7086         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
7087         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
7088         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
7089         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
7090         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
7091         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
7092         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
7093         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
7094         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
7095         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
7096         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
7097         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
7098         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
7099         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
7100         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
7101         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
7102         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
7103         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
7104         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
7105         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
7106         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
7107         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
7108         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
7109         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
7110         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
7111         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
7112         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
7113         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
7114         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
7115         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
7116         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
7117         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
7118         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
7119         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
7120         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
7121         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
7122         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
7123         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
7124         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
7125         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
7126         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
7127         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
7128         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
7129         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
7130         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
7131         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
7132         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
7133         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
7134         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
7135         * testsuite/libgomp.fortran/lib1.f90: Likewise.
7136         * testsuite/libgomp.fortran/lib2.f: Likewise.
7137         * testsuite/libgomp.fortran/lib3.f: Likewise.
7138         * testsuite/libgomp.fortran/lib4.f90: Likewise.
7139         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
7140         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
7141         * testsuite/libgomp.fortran/nested1.f90: Likewise.
7142         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
7143         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
7144         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
7145         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
7146         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
7147         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
7148         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
7149         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
7150         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
7151         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
7152         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
7153         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
7154         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
7155         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
7156         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
7157         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
7158         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
7159         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
7160         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
7161         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7162         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
7163         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
7164         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
7165         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
7166         * testsuite/libgomp.fortran/pr25162.f: Likewise.
7167         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
7168         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
7169         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
7170         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
7171         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
7172         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
7173         * testsuite/libgomp.fortran/pr28390.f: Likewise.
7174         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
7175         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
7176         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
7177         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
7178         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
7179         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
7180         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
7181         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
7182         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
7183         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
7184         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
7185         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
7186         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
7187         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
7188         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
7189         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
7190         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
7191         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
7192         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
7193         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
7194         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
7195         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
7196         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
7197         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
7198         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
7199         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
7200         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
7201         * testsuite/libgomp.fortran/reference1.f90: Likewise.
7202         * testsuite/libgomp.fortran/reference2.f90: Likewise.
7203         * testsuite/libgomp.fortran/retval1.f90: Likewise.
7204         * testsuite/libgomp.fortran/retval2.f90: Likewise.
7205         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
7206         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
7207         * testsuite/libgomp.fortran/simd1.f90: Likewise.
7208         * testsuite/libgomp.fortran/simd2.f90: Likewise.
7209         * testsuite/libgomp.fortran/simd3.f90: Likewise.
7210         * testsuite/libgomp.fortran/simd4.f90: Likewise.
7211         * testsuite/libgomp.fortran/simd5.f90: Likewise.
7212         * testsuite/libgomp.fortran/simd6.f90: Likewise.
7213         * testsuite/libgomp.fortran/simd7.f90: Likewise.
7214         * testsuite/libgomp.fortran/stack.f90: Likewise.
7215         * testsuite/libgomp.fortran/strassen.f90: Likewise.
7216         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
7217         * testsuite/libgomp.fortran/tabs2.f: Likewise.
7218         * testsuite/libgomp.fortran/target1.f90: Likewise.
7219         * testsuite/libgomp.fortran/target2.f90: Likewise.
7220         * testsuite/libgomp.fortran/target3.f90: Likewise.
7221         * testsuite/libgomp.fortran/target4.f90: Likewise.
7222         * testsuite/libgomp.fortran/target5.f90: Likewise.
7223         * testsuite/libgomp.fortran/target6.f90: Likewise.
7224         * testsuite/libgomp.fortran/target7.f90: Likewise.
7225         * testsuite/libgomp.fortran/target8.f90: Likewise.
7226         * testsuite/libgomp.fortran/task1.f90: Likewise.
7227         * testsuite/libgomp.fortran/task2.f90: Likewise.
7228         * testsuite/libgomp.fortran/task3.f90: Likewise.
7229         * testsuite/libgomp.fortran/task4.f90: Likewise.
7230         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
7231         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
7232         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
7233         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
7234         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
7235         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
7236         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
7237         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
7238         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
7239         * testsuite/libgomp.fortran/udr1.f90: Likewise.
7240         * testsuite/libgomp.fortran/udr10.f90: Likewise.
7241         * testsuite/libgomp.fortran/udr11.f90: Likewise.
7242         * testsuite/libgomp.fortran/udr12.f90: Likewise.
7243         * testsuite/libgomp.fortran/udr13.f90: Likewise.
7244         * testsuite/libgomp.fortran/udr14.f90: Likewise.
7245         * testsuite/libgomp.fortran/udr15.f90: Likewise.
7246         * testsuite/libgomp.fortran/udr2.f90: Likewise.
7247         * testsuite/libgomp.fortran/udr3.f90: Likewise.
7248         * testsuite/libgomp.fortran/udr4.f90: Likewise.
7249         * testsuite/libgomp.fortran/udr5.f90: Likewise.
7250         * testsuite/libgomp.fortran/udr6.f90: Likewise.
7251         * testsuite/libgomp.fortran/udr7.f90: Likewise.
7252         * testsuite/libgomp.fortran/udr8.f90: Likewise.
7253         * testsuite/libgomp.fortran/udr9.f90: Likewise.
7254         * testsuite/libgomp.fortran/vla1.f90: Likewise.
7255         * testsuite/libgomp.fortran/vla2.f90: Likewise.
7256         * testsuite/libgomp.fortran/vla3.f90: Likewise.
7257         * testsuite/libgomp.fortran/vla4.f90: Likewise.
7258         * testsuite/libgomp.fortran/vla5.f90: Likewise.
7259         * testsuite/libgomp.fortran/vla6.f90: Likewise.
7260         * testsuite/libgomp.fortran/vla7.f90: Likewise.
7261         * testsuite/libgomp.fortran/vla8.f90: Likewise.
7262         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
7263         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
7264         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7265         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
7266         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7267         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7268         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7269         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
7270         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
7271         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
7272         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
7273         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
7274         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
7275         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
7276         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
7277         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
7278         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7279         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
7280         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
7281         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
7282         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
7283         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
7284         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
7285         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
7286         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
7287         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
7288         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
7289         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
7290         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7291         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
7292         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
7293         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7294         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7295         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7296         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7297         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7298         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
7299         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
7300         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
7301         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
7302         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
7303         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
7304         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
7305         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
7306         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
7307         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
7308         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
7309         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
7310         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
7311         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
7312         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
7313         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
7314         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
7315         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7316         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
7317         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
7318         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
7319         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
7320         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
7321         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
7322         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
7323         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
7324         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
7325         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
7326         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
7327         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7328         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
7329         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7330         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
7331         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
7332         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
7333         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
7334         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
7335         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
7336         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
7337         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
7338         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
7339         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7340         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7341         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7342         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
7343         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7344         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
7345         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
7346         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
7347         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
7348         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
7349         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
7350         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
7351         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
7352         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
7353         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
7354         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
7355         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
7357 2018-03-20  Richard Biener  <rguenther@suse.de>
7359         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
7360         parallelizable loop.
7362 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
7364         PR target/84148
7365         * configure: Regenerate.
7367 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
7369         PR fortran/84418
7370         * libgomp.fortran/pr84418-1.f90: New test.
7371         * libgomp.fortran/pr84418-2.f90: New test.
7373 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
7375         PR fortran/84313
7376         * testsuite/libgomp.fortran/threadprivate4.f90: Add
7377         -std=f2003 -fall-intrinsics into dg-additional-options.
7379 2018-02-08  Martin Jambor  <mjambor@suse.cz>
7381         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
7382         clonable.
7384 2018-02-08  Martin Jambor  <mjambor@suse.cz>
7386         * testsuite/libgomp.hsa.c/staticvar.c: New test.
7388 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7390         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
7391         [__cplusplus]: Declare extern "C".
7393 2018-02-07  Tom de Vries  <tom@codesourcery.com>
7395         PR libgomp/84217
7396         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
7398 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
7399             Jakub Jelinek  <jakub@redhat.com>
7401         PR libgomp/84096
7402         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
7403         instead of omp_lock_t.
7405 2018-01-25  Tom de Vries  <tom@codesourcery.com>
7407         PR target/84028
7408         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
7410 2018-01-24  Tom de Vries  <tom@codesourcery.com>
7412         PR target/83589
7413         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
7415 2018-01-24  Tom de Vries  <tom@codesourcery.com>
7417         PR target/81352
7418         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
7420 2018-01-19  Tom de Vries  <tom@codesourcery.com>
7421             Cesar Philippidis  <cesar@codesourcery.com>
7423         PR target/83920
7424         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
7425         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
7427 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
7429         Update copyright years.
7431         * libgomp.texi: Bump @copying's copyright year.
7433 2017-12-30  Tom de Vries  <tom@codesourcery.com>
7435         PR libgomp/83046
7436         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
7437         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
7439 2017-12-27  Tom de Vries  <tom@codesourcery.com>
7441         PR c++/83046
7442         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
7443         (test_nonstatic): Fix return type to workaround PR83046.
7445 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
7447         PR testsuite/83281
7448         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
7449         j suffix instead of i.
7450         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
7451         Likewise.
7453 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
7455         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
7456         call to acc_wait (1).
7458 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
7460         PR fortran/81304
7461         * testsuite/libgomp.fortran/pr81304.f90: New test.
7463 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
7465         PR fortran/81841
7466         * libgomp.fortran/pr81841.f90: New test.
7468 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
7470         PR libgomp/83106
7471         * target.c (gomp_target_init): Compute lengths just once and
7472         use them in both malloc size and subsequent copying.
7474 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
7476         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
7477         * acinclude.m4: Add cet.m4.
7478         * configure: Regenerate.
7479         * Makefile.in: Likewise.
7480         * testsuite/Makefile.in: Likewise.
7482 2017-11-15  Tom de Vries  <tom@codesourcery.com>
7484         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
7485         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
7486         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
7487         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
7488         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
7489         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
7491 2017-11-14  Tom de Vries  <tom@codesourcery.com>
7493         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
7494         non-nvidia devices.
7496 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
7498         PR c++/82835
7499         * testsuite/libgomp.c++/pr82835.C: New test.
7501 2017-11-06  Martin Liska  <mliska@suse.cz>
7503         * testsuite/libgomp.c++/loop-2.C: Return a value
7504         for functions with non-void return type, or change type to void,
7505         or add -Wno-return-type for test.
7506         * testsuite/libgomp.c++/loop-4.C: Likewise.
7507         * testsuite/libgomp.c++/parallel-1.C: Likewise.
7508         * testsuite/libgomp.c++/shared-1.C: Likewise.
7509         * testsuite/libgomp.c++/single-1.C: Likewise.
7510         * testsuite/libgomp.c++/single-2.C: Likewise.
7512 2017-10-31  Tom de Vries  <tom@codesourcery.com>
7514         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
7515         "do {} while (false)".
7516         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
7517         after HSA_DEBUG call.
7519 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
7521         * target.c (struct gomp_coalesce_buf): New type.
7522         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
7523         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
7524         (gomp_copy_host2dev): Add CBUF argument, if copying into
7525         the cached ranges, memcpy into buffer instead of copying
7526         into device.
7527         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
7528         Add CBUF argument, pass it through to other calls.
7529         (gomp_map_vars): Aggregate copies from host to device if small enough
7530         and with small enough gaps in between into memcpy into a buffer and
7531         fewer host to device copies from the buffer.
7532         (gomp_update): Adjust gomp_copy_host2dev caller.
7534 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
7536         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
7537         run" directive.
7538         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7539         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7540         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7541         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7543 2017-10-16  Tom de Vries  <tom@codesourcery.com>
7545         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
7546         openacc_nvidia_accel_selected.
7547         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
7548         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
7549         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
7550         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
7551         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
7552         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
7553         openacc_nvidia_accel_selected. Skip for shared memory device.
7554         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
7555         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
7557 2017-10-09  Martin Jambor  <mjambor@suse.cz>
7559         PR hsa/82416
7560         * testsuite/libgomp.hsa.c/pr82416.c: New test.
7562 2017-10-07  Tom de Vries  <tom@codesourcery.com>
7564         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
7565         Remove acc_device_nvidia references.
7566         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
7567         Same.
7569 2017-10-05  Tom de Vries  <tom@codesourcery.com>
7571         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
7572         vector_length(32) clause from acc parallel directive.
7573         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
7575 2017-10-04  Tom de Vries  <tom@codesourcery.com>
7577         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
7578         (main): Reduce sum of arr elements.  Assert that hres is exactly
7579         representable in 32-bit floating point.
7580         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
7581         (main): Reduce sum of arr elements.  Assert that hres and hmres are
7582         exactly representable in 32-bit floating point.
7583         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
7585 2017-09-28  Tom de Vries  <tom@codesourcery.com>
7587         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
7588         setting.
7589         * testsuite/libgomp.c++/pr69393.C: Same.
7590         * testsuite/libgomp.c++/taskloop-1.C: Same.
7591         * testsuite/libgomp.c++/taskloop-3.C: Same.
7592         * testsuite/libgomp.c++/taskloop-4.C: Same.
7593         * testsuite/libgomp.c/for-4.c: Same.
7594         * testsuite/libgomp.c/pr66199-3.c: Same.
7595         * testsuite/libgomp.c/pr66199-4.c: Same.
7596         * testsuite/libgomp.c/pr66199-6.c: Same.
7597         * testsuite/libgomp.c/taskloop-1.c: Same.
7598         * testsuite/libgomp.c/taskloop-3.c: Same.
7599         * testsuite/libgomp.c/taskloop-4.c: Same.
7600         * testsuite/libgomp.fortran/aligned1.f03: Same.
7601         * testsuite/libgomp.fortran/condinc1.f: Same.
7602         * testsuite/libgomp.fortran/condinc3.f90: Same.
7603         * testsuite/libgomp.fortran/crayptr1.f90: Same.
7604         * testsuite/libgomp.fortran/crayptr2.f90: Same.
7605         * testsuite/libgomp.fortran/crayptr3.f90: Same.
7606         * testsuite/libgomp.fortran/omp_cond1.f: Same.
7607         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
7608         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
7609         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
7610         * testsuite/libgomp.fortran/recursion1.f90: Same.
7611         * testsuite/libgomp.fortran/target2.f90: Same.
7612         * testsuite/libgomp.fortran/target5.f90: Same.
7613         * testsuite/libgomp.fortran/task3.f90: Same.
7615 2017-09-28  Tom de Vries  <tom@codesourcery.com>
7617         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
7618         vector_length(32) clause from acc parallel directive.
7619         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
7621 2017-09-27  Tom de Vries  <tom@codesourcery.com>
7623         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
7624         Remove acc_device_nvidia references.
7626 2017-09-16  Tom de Vries  <tom@codesourcery.com>
7628         PR c/81875
7629         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
7631 2017-09-14  Tom de Vries  <tom@codesourcery.com>
7633         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
7634         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
7635         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
7636         * testsuite/libgomp.c/c.exp: Include test-cases from
7637         libgomp.c-c++-common.
7638         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
7639         files.
7641 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
7643         PR c++/81314
7644         * testsuite/libgomp.c++/pr81314.C: New test.
7646 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
7648         * libgomp.texi (Top): www.openacc.org now uses https.
7649         (Enabling OpenACC): Ditto.
7650         (acc_get_num_devices): Ditto.
7651         (acc_set_device_type): Ditto.
7652         (acc_get_device_type): Ditto.
7653         (acc_set_device_num): Ditto.
7654         (acc_get_device_num): Ditto.
7655         (acc_async_test): Ditto.
7656         (acc_async_test_all): Ditto.
7657         (acc_wait): Ditto.
7658         (acc_wait_all): Ditto.
7659         (acc_wait_all_async): Ditto.
7660         (acc_wait_async): Ditto.
7661         (acc_init): Ditto.
7662         (acc_shutdown): Ditto.
7663         (acc_on_device): Ditto.
7664         (acc_malloc): Ditto.
7665         (acc_free): Ditto.
7666         (acc_copyin): Ditto.
7667         (acc_present_or_copyin): Ditto.
7668         (acc_create): Ditto.
7669         (acc_present_or_create): Ditto.
7670         (acc_copyout): Ditto.
7671         (acc_delete): Ditto.
7672         (acc_update_device): Ditto.
7673         (acc_update_self): Ditto.
7674         (acc_map_data): Ditto.
7675         (acc_unmap_data): Ditto.
7676         (acc_deviceptr): Ditto.
7677         (acc_hostptr): Ditto.
7678         (acc_is_present): Ditto.
7679         (acc_memcpy_to_device): Ditto.
7680         (acc_memcpy_from_device): Ditto.
7681         (acc_get_current_cuda_device): Ditto.
7682         (acc_get_current_cuda_context): Ditto.
7683         (acc_get_cuda_stream): Ditto.
7684         (acc_set_cuda_stream): Ditto.
7685         (ACC_DEVICE_TYPE): Ditto.
7686         (ACC_DEVICE_NUM): Ditto.
7687         (OpenACC Library Interoperability): Ditto.
7689 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
7691         PR c/81687
7692         * testsuite/libgomp.c/pr81687-1.c: New test.
7693         * testsuite/libgomp.c/pr81687-2.c: New test.
7695 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
7697         PR c/69389
7698         * testsuite/libgomp.c/pr69389.c: New test.
7699         * testsuite/libgomp.c++/pr69389.C: New test.
7701 2017-08-07  Tom de Vries  <tom@codesourcery.com>
7703         PR middle-end/78266
7704         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
7705         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
7707 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
7709         PR c/45784
7710         * testsuite/libgomp.c/pr45784.c: New test.
7711         * testsuite/libgomp.c++/pr45784.C: New test.
7713 2017-07-19  Tom de Vries  <tom@codesourcery.com>
7715         * testsuite/libgomp.oacc-c/vec.c: New test.
7717 2017-07-03  Tom de Vries  <tom@codesourcery.com>
7719         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
7721 2017-06-27  Tom de Vries  <tom@codesourcery.com>
7723         * plugin/plugin-nvptx.c (notify_var): New function.
7724         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
7726 2017-06-27  Tom de Vries  <tom@codesourcery.com>
7728         * env.c (parse_unsigned_long_1): Factor out of ...
7729         (parse_unsigned_long): ... here.
7730         (parse_int_1): Factor out of ...
7731         (parse_int): ... here.
7732         (parse_int_secure): New function.
7733         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
7734         * secure_getenv.h: Factor out of ...
7735         * plugin/plugin-hsa.c: ... here.
7736         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
7738 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
7740         PR c++/81130
7741         * testsuite/libgomp.c++/pr81130.C: New test.
7743 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7745         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
7746         default args.
7747         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
7748         dg-xfail-run-if default args.
7750 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7752         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
7753         * testsuite/libgomp.c/pr39591-3.c: Likewise.
7755 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
7757         PR libgomp/80822
7758         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
7759         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
7760         sibling lists, depending on level just pick up what CPUs to put
7761         together into a place vs. whether add multiple ordered places.
7763 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
7765         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
7766         * libgomp.map (OACC_2.0.1): Add these.
7767         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
7768         for "acc_wait", and "acc_wait_all", respectively.
7769         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
7770         for "acc_wait", and "acc_wait_all", respectively.
7771         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
7772         * libgomp.texi (acc_wait, acc_wait_all): Update.
7773         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
7774         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
7775         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7777         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
7778         acc_present_or_copyin and acc_present_or_create procedures,
7779         respectively.
7780         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
7781         generally different variants of OpenACC Runtime Library functions.
7782         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7784         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
7785         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7787         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
7788         of preprocessor definitions.
7789         * libgomp.h (strong_alias): Guard by "#ifdef
7790         HAVE_ATTRIBUTE_ALIAS".
7791         * oacc-mem.c: Provide "acc_pcreate" as alias for
7792         "acc_present_or_create", and "acc_pcopyin" as alias for
7793         "acc_present_or_copyin".
7794         * libgomp.map: New version "OACC_2.0.1".
7795         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
7796         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
7797         its content into...
7798         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
7799         Extend testing.
7801         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
7802         when disabling nvptx offloading.
7804 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
7806         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
7807         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
7808         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
7810         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
7811         * testsuite/lib/libgomp.exp
7812         (check_effective_target_openacc_nvidia_accel_configured): New
7813         proc.
7814         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
7815         (check_effective_target_c++): New procs.
7816         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
7817         (check_effective_target_c++): Likewise.
7819 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
7821         PR middle-end/80809
7822         * testsuite/libgomp.c/pr80809-2.c: New test.
7823         * testsuite/libgomp.c/pr80809-3.c: New test.
7825         PR middle-end/80809
7826         * testsuite/libgomp.c/pr80809-1.c: New test.
7828         PR middle-end/80853
7829         * testsuite/libgomp.c/pr80853.c: New test.
7831 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
7833         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
7834         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
7835         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7836         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7837         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
7839         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
7840         Debug output for failure.
7842 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7844         * testsuite/lib/libgomp.exp: Load scanlang.exp.
7846 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
7848         PR bootstrap/80531
7849         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
7850         bootstrap compare failures.
7852 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
7854         * testsuite/libgomp.c/target-36.c: New testcase.
7856 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
7858         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
7859         instead of char.
7861 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
7863         PR libgomp/80394
7864         * testsuite/libgomp.c/pr80394.c: New test.
7866 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
7868         PR libgomp/79876
7869         * config/posix/thread-stacksize.h: New file.
7870         * config/darwin/thread-stacksize.h: New file.
7871         * config/nvptx/thread-stacksize.h: New file.
7872         * env.c: Include thread-stacksize.h.
7873         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
7874         instead of 0.  Call pthread_attr_setstacksize even if
7875         GOMP_DEFAULT_STACKSIZE is non-zero.
7877 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
7879         * env.c (initialize_env): Initialize stacksize to 0.
7881 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
7883         PR c++/80029
7884         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
7886 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
7888         PR c/79940
7889         * testsuite/libgomp.c/pr79940.c: New test.
7891 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7893         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
7894         targets.
7895         Add __float128 options.
7897 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
7899         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
7900         hppa*-*-* dg-skip-if directive.
7902 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
7904         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
7905         dg-skip-if directive into a comment.
7907 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
7908             Chung-Lin Tang  <cltang@codesourcery.com>
7910         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
7911         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
7912         add additional case.
7913         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
7914         "openacc_nvidia_accel_selected".
7915         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
7916         Add num_workers(8) clause.
7918 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
7920         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
7921         hppa*-*-*.
7922         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
7923         include complex.h on hppa*-*-hpux*.
7924         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
7926 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
7928         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
7930         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
7931         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
7932         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
7933         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
7934         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
7935         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
7936         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
7937         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
7938         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
7939         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
7941 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
7943         * libgomp-plugin.h: #include <stdbool.h>.
7944         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
7945         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
7946         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
7947         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
7948         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
7949         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
7950         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
7951         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
7952         (GOMP_OFFLOAD_openacc_register_async_cleanup)
7953         (GOMP_OFFLOAD_openacc_async_test)
7954         (GOMP_OFFLOAD_openacc_async_test_all)
7955         (GOMP_OFFLOAD_openacc_async_wait)
7956         (GOMP_OFFLOAD_openacc_async_wait_async)
7957         (GOMP_OFFLOAD_openacc_async_wait_all)
7958         (GOMP_OFFLOAD_openacc_async_wait_all_async)
7959         (GOMP_OFFLOAD_openacc_async_set_async)
7960         (GOMP_OFFLOAD_openacc_create_thread_data)
7961         (GOMP_OFFLOAD_openacc_destroy_thread_data)
7962         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
7963         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
7964         (GOMP_OFFLOAD_openacc_get_cuda_stream)
7965         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
7966         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
7967         these.
7968         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
7969         (GOMP_OFFLOAD_unload_image): Fix argument types.
7971 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
7973         * testsuite/lib/libgomp.exp
7974         (check_effective_target_hsa_offloading_selected_nocache): Fix up
7975         check_compile invocation.  Fix up removal of executable.  Drop
7976         bogus "2>&1" argument.
7978         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
7979         directive.
7981 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
7982             Martin Jambor  <mjambor@suse.cz>
7984         * plugin/hsa.h: Moved to top level include.
7985         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
7987 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
7989         PR other/79046
7990         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
7991         of cat to get version from BASE-VER file.
7992         * testsuite/Makefile.in: Regenerated.
7994 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
7996         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
7997         for _WIN64.
7999 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
8001         * plugin/hsa.h: Add GCC runtime library exception.
8002         * plugin/hsa_ext_finalize.h: Likewise.
8004         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
8005         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
8006         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
8007         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
8008         plugin/include/cuda as include dir and -ldl instead of -lcuda as
8009         library to link ptx plugin against.
8010         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
8011         (CUDA_CALLS): Define.
8012         (cuda_lib, cuda_lib_inited): New variables.
8013         (init_cuda_lib): New function.
8014         (CUDA_CALL_PREFIX): Define.
8015         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
8016         (CUDA_CALL): Use FN instead of (FN).
8017         (CUDA_CALL_NOCHECK): Define.
8018         (cuda_error, fini_streams_for_device, select_stream_for_async,
8019         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
8020         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
8021         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
8022         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
8023         CUDA_CALL_NOCHECK.
8024         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
8025         CUDA_CALL_NOCHECK.
8026         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
8027         Use CUDA_CALL_NOCHECK.
8028         * plugin/cuda/cuda.h: New file.
8029         * config.h.in: Regenerated.
8030         * configure: Regenerated.
8032         PR other/79046
8033         * configure.ac: Add GCC_BASE_VER.
8034         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
8035         get version from BASE-VER file.
8036         * testsuite/Makefile.in: Regenerated.
8037         * configure: Regenerated.
8038         * Makefile.in: Regenerated.
8040 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8042         PR libgomp/60670
8043         * Makefile.am: Make fincludedir multilib-aware.
8044         * Makefile.in: Regenerate.
8046 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
8048         Update copyright years.
8050         * libgomp.texi: Bump @copying's copyright year.
8052 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8054         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
8055         pthread_spinlock_t instead of gomp_mutex_t lock.
8056         (gomp_get_thread_pool): Likewise.
8057         (gomp_release_thread_pool): Likewise.
8058         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
8059         Likewise.
8061 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8063         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
8064         thread pool in case nthreads == 1.
8066 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
8068         * config/nvptx/env.c: Delete.
8069         * icv.c: Move definitions of ICV variables back ...
8070         * env.c: ...here.  Do not compile environment-related functionality if
8071         LIBGOMP_OFFLOADED_ONLY is set.
8073 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
8075         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
8076         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
8077         * configure: Regenerate.
8078         * config.h.in: Likewise.
8080 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
8082         * Makefile.in: Regenerate with automake-1.11.6.
8083         * aclocal.m4: Likewise.
8084         * configure: Likewise.
8085         * testsuite/Makefile.in: Likewise.
8087 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
8089         * config/nvptx/critical.c: Delete to use generic implementation.
8091 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
8093         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
8094         ../../affinity.c as fallback.
8095         * config/nvptx/affinity.c: Delete to use fallback implementation.
8097 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
8098             Jakub Jelinek  <jakub@redhat.com>
8099             Dmitry Melnik  <dm@ispras.ru>
8101         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
8102         * Makefile.in. Regenerate.
8103         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
8104         (LIBGOMP_USE_PTHREADS): ...here; new define.
8105         * configure: Regenerate.
8106         * config.h.in: Likewise.
8107         * config/posix/affinity.c: Move to...
8108         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
8109         interface by LIBGOMP_USE_PTHREADS. 
8110         * critical.c: Split out GOMP_atomic_{start,end} into...
8111         * atomic.c: ...here (new file).
8112         * env.c: Split out ICV definitions into...
8113         * icv.c: ...here (new file) and...
8114         * icv-device.c: ...here. New file.
8115         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
8116         (gomp_destroy_lock_30): Ditto.
8117         (gomp_set_lock_30): Ditto.
8118         (gomp_unset_lock_30): Ditto.
8119         (gomp_test_lock_30): Ditto.
8120         (gomp_init_nest_lock_30): Ditto.
8121         (gomp_destroy_nest_lock_30): Ditto.
8122         (gomp_set_nest_lock_30): Ditto.
8123         (gomp_unset_nest_lock_30): Ditto.
8124         (gomp_test_nest_lock_30): Ditto.
8125         * lock.c: New.
8126         * config/nvptx/lock.c: New.
8127         * config/nvptx/bar.c: New.
8128         * config/nvptx/bar.h: New.
8129         * config/nvptx/doacross.h: New.
8130         * config/nvptx/error.c: New.
8131         * config/nvptx/icv-device.c: New.
8132         * config/nvptx/mutex.h: New.
8133         * config/nvptx/pool.h: New.
8134         * config/nvptx/proc.c: New.
8135         * config/nvptx/ptrlock.h: New.
8136         * config/nvptx/sem.h: New.
8137         * config/nvptx/simple-bar.h: New.
8138         * config/nvptx/target.c: New.
8139         * config/nvptx/task.c: New.
8140         * config/nvptx/team.c: New.
8141         * config/nvptx/time.c: New.
8142         * config/posix/simple-bar.h: New.
8143         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
8144         (gomp_num_teams_var): Declare.
8145         (struct gomp_thread_pool): Change threads_dock member to
8146         gomp_simple_barrier_t.
8147         [__nvptx__] (gomp_thread): New implementation.
8148         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
8149         (gomp_thread_destructor): Ditto.
8150         (gomp_init_thread_affinity): Ditto.
8151         * team.c: Guard uses of Pthreads-specific interfaces by
8152         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
8153         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
8154         * config/nvptx/alloc.c: Delete.
8155         * config/nvptx/barrier.c: Ditto.
8156         * config/nvptx/fortran.c: Ditto.
8157         * config/nvptx/iter.c: Ditto.
8158         * config/nvptx/iter_ull.c: Ditto.
8159         * config/nvptx/loop.c: Ditto.
8160         * config/nvptx/loop_ull.c: Ditto.
8161         * config/nvptx/ordered.c: Ditto.
8162         * config/nvptx/parallel.c: Ditto.
8163         * config/nvptx/priority_queue.c: Ditto.
8164         * config/nvptx/sections.c: Ditto.
8165         * config/nvptx/single.c: Ditto.
8166         * config/nvptx/splay-tree.c: Ditto.
8167         * config/nvptx/work.c: Ditto.
8168         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
8169         -foffload=-lgfortran in addition to -lgfortran.
8170         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
8171         * plugin/plugin-nvptx.c: Include <limits.h>.
8172         (struct targ_fn_descriptor): Add new fields.
8173         (struct ptx_device): Ditto.  Set them...
8174         (nvptx_open_device): ...here.
8175         (nvptx_adjust_launch_bounds): New.
8176         (nvptx_host2dev): Allow NULL 'nvthd'.
8177         (nvptx_dev2host): Ditto.
8178         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
8179         (link_ptx): Adjust log sizes.
8180         (nvptx_host2dev): Allow NULL 'nvthd'.
8181         (nvptx_dev2host): Ditto.
8182         (nvptx_set_clocktick): New.  Use it...
8183         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
8184         fields.
8185         (GOMP_OFFLOAD_dev2dev): New.
8186         (nvptx_adjust_launch_bounds): New.
8187         (nvptx_stacks_size): New.
8188         (nvptx_stacks_alloc): New.
8189         (nvptx_stacks_free): New.
8190         (GOMP_OFFLOAD_run): New.
8191         (GOMP_OFFLOAD_async_run): New (stub).
8193 2016-11-23  Martin Jambor  <mjambor@suse.cz>
8195         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
8196         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
8197         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8199 2016-11-23  Martin Liska  <mliska@suse.cz>
8200             Martin Jambor  <mjambor@suse.cz>
8202         * plugin/hsa.h: New file.
8203         * plugin/hsa_ext_finalize.h: New file.
8204         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
8205         header file unistd.h, and functions secure_getenv, __secure_getenv,
8206         getuid, geteuid, getgid and getegid.
8207         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
8208         -D_GNU_SOURCE.
8209         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
8210         Handle various cases of secure_getenv presence, add an implementation
8211         when we can test effective UID and GID.
8212         (struct hsa_runtime_fn_info): New structure.
8213         (hsa_runtime_fn_info hsa_fns): New variable.
8214         (hsa_runtime_lib): Likewise.
8215         (support_cpu_devices): Likewise.
8216         (init_enviroment_variables): Load newly introduced ENV
8217         variables.
8218         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
8219         (hsa_fatal): Likewise.
8220         (DLSYM_FN): New macro.
8221         (init_hsa_runtime_functions): New function.
8222         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
8223         structure.  Depending on environment, also allow CPU devices.
8224         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
8225         (get_kernarg_memory_region): Likewise.
8226         (GOMP_OFFLOAD_init_device): Likewise.
8227         (destroy_hsa_program): Likewise.
8228         (init_basic_kernel_info): New function.
8229         (GOMP_OFFLOAD_load_image): Use it.
8230         (create_and_finalize_hsa_program): Call hsa run-time functions via
8231         hsa_fns structure.
8232         (create_single_kernel_dispatch): Likewise.
8233         (release_kernel_dispatch): Likewise.
8234         (init_single_kernel): Likewise.
8235         (parse_target_attributes): Allow up multiple HSA grid dimensions.
8236         (get_group_size): New function.
8237         (run_kernel): Likewise.
8238         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
8239         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
8240         structure.
8241         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
8242         * testsuite/libgomp-test-support.exp.in: Likewise.
8243         * Makefile.in: Regenerated.
8244         * aclocal.m4: Likewise.
8245         * config.h.in: Likewise.
8246         * configure: Likewise.
8247         * testsuite/Makefile.in: Likewise.
8249 2016-11-15  Martin Jambor  <mjambor@suse.cz>
8250             Alexander Monakov  <amonakov@ispras.ru>
8252         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
8253         mapping clauses to target constructs.
8254         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
8256 2016-11-15  Matthias Klose  <doko@ubuntu.com>
8258         * configure: Regenerate.
8260 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
8262         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
8263         * omp_lib.h.in (openmp_version): Likewise.
8264         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
8265         of 201307.
8266         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8268         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
8269         (fib_wrapper): Add map(from: x) clause.
8270         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
8271         (e_53_2): Likewise.
8272         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
8273         (accum): Add map(tmp) clause.
8274         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
8275         (accum): Add map(tofrom: tmp) clause.
8276         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
8277         (gramSchmidt): Likewise.
8278         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
8279         map(tofrom: sum) clause.
8280         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
8281         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
8282         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
8283         only allowed on the loop iterator.
8284         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
8285         * testsuite/libgomp.fortran/taskloop2.f90: New test.
8286         * testsuite/libgomp.fortran/taskloop4.f90: New test.
8287         * testsuite/libgomp.fortran/doacross1.f90: New test.
8288         * testsuite/libgomp.fortran/doacross3.f90: New test.
8289         * testsuite/libgomp.fortran/taskloop1.f90: New test.
8290         * testsuite/libgomp.fortran/taskloop3.f90: New test.
8291         * testsuite/libgomp.fortran/doacross2.f90: New test.
8292         * testsuite/libgomp.c/doacross-1.c (main): Add missing
8293         #pragma omp atomic read.
8294         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
8295         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
8297 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
8298             Nathan Sidwell  <nathan@acm.org>
8300         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
8301         to determine default geometry.
8302         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
8303         dimension.
8305 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
8307         * hashtab.h: Use standard GPLv3 with runtime exception
8308         boilerplate.
8310 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
8312         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
8313         size when allocating new thread.
8315 2016-09-14  Marek Polacek  <polacek@redhat.com>
8317         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
8319 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
8321         PR fortran/71014
8322         * testsuite/libgomp.fortran/pr71014.f90: New test.
8324 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
8326         PR middle-end/70895
8327         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
8328         firstprivate clauses.
8329         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
8330         copy clauses.
8331         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
8332         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
8333         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
8334         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8335         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
8336         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8337         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
8338         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
8339         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
8340         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
8341         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
8342         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
8344 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
8346         PR fortran/70598
8347         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
8349 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
8351         PR c++/58706
8352         * testsuite/libgomp.c++/pr58706.C: New test.
8354 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
8356         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
8357         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
8358         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
8359         Likewise.
8360         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
8361         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
8362         Likewise.
8363         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
8365         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
8366         test, and don't hardcode -O0.
8368 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
8370         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
8372 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
8374         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
8375         test.
8377 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
8379         PR middle-end/71734
8380         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
8381         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
8383 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
8385         PR fortran/71717
8386         * testsuite/libgomp.fortran/associate3.f90: New test.
8388 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
8390         * testsuite/libgomp.c++/target-21.C: New test.
8392 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
8394         * testsuite/libgomp.c++/target-20.C: New test.
8396 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
8397             Cesar Philippidis  <cesar@codesourcery.com>
8399         PR middle-end/71373
8400         * libgomp.oacc-c/nested-function-1.c: New file.
8401         * libgomp.oacc-c/nested-function-2.c: Likewise.
8402         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
8403         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
8404         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
8406 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
8408         PR c/71381
8409         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
8410         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
8411         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
8413 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
8415         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
8416         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
8418 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
8420         PR c/70688
8421         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
8423 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
8425         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
8426         instead of invalid schedule(static, 0).
8427         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
8429 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
8431         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
8432         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
8433         parameter, use to set async stream around call to gomp_unmap_vars,
8434         call gomp_unmap_vars() with 'do_copyfrom' set to true.
8435         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
8436         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
8437         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
8438         (event_add): Add int parameter, initialize 'val' field when
8439         adding new ptx_event struct.
8440         (nvptx_evec): Adjust event_add() call arguments.
8441         (nvptx_host2dev): Likewise.
8442         (nvptx_dev2host): Likewise.
8443         (nvptx_wait_async): Likewise.
8444         (nvptx_wait_all_async): Likewise.
8445         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
8446         pass to event_add() call.
8447         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
8448         parameter.
8449         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
8450         call openacc.register_async_cleanup_func() hook.
8451         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
8452         * target.c (gomp_copy_from_async): Delete function.
8453         (gomp_map_vars): Remove async_refcount.
8454         (gomp_unmap_vars): Likewise.
8455         (gomp_load_image_to_device): Likewise.
8456         (omp_target_associate_ptr): Likewise.
8457         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
8458         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
8459         (gomp_copy_from_async): Remove.
8461 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
8463         * target.c (gomp_device_copy): New function.
8464         (gomp_copy_host2dev): Likewise.
8465         (gomp_copy_dev2host): Likewise.
8466         (gomp_free_device_memory): Likewise.
8467         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
8468         (gomp_map_pointer): Likewise.
8469         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
8470         NULL value from alloc_func plugin hook.
8471         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
8472         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
8473         (gomp_unmap_vars): Likewise.
8474         (gomp_update): Adjust to call gomp_copy_dev2host and
8475         gomp_copy_host2dev functions.
8476         (gomp_unload_image_from_device): Handle false value from
8477         unload_image_func plugin hook.
8478         (gomp_init_device): Handle false value from init_device_func
8479         plugin hook.
8480         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
8481         (omp_target_free): Adjust to call gomp_free_device_memory.
8482         (omp_target_memcpy): Handle return values from host2dev_func,
8483         dev2host_func, and dev2dev_func plugin hooks.
8484         (omp_target_memcpy_rect_worker): Likewise.
8485         (gomp_target_fini): Handle false value from fini_device_func
8486         plugin hook.
8487         * libgomp.h (struct gomp_device_descr): Adjust return type of
8488         init_device_func, fini_device_func, unload_image_func, free_func,
8489         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
8490         * oacc-init.c (acc_shutdown_1): Handle false value from
8491         fini_device_func plugin hook.
8492         * oacc-host.c (host_init_device): Change return type to bool.
8493         (host_fini_device): Likewise.
8494         (host_unload_image): Likewise.
8495         (host_free): Likewise.
8496         (host_dev2host): Likewise.
8497         (host_host2dev): Likewise.
8498         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
8499         (acc_memcpy_to_device): Likewise.
8500         (acc_memcpy_from_device): Likewise.
8501         (delete_copyout): Add libfnname parameter, handle free_func
8502         hook fatal error case.
8503         (acc_delete): Adjust delete_copyout call.
8504         (acc_copyout): Likewise.
8505         (update_dev_host): Move gomp_mutex_unlock to after
8506         host2dev/dev2host hook calls.
8508         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
8509         to 'hsa_error_msg', for clarity.
8510         (hsa_fatal): Likewise.
8511         (hsa_error): New function.
8512         (init_hsa_context): Change return type to bool, adjust to return
8513         false on error.
8514         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
8515         return value.
8516         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
8517         return false on error.
8518         (get_agent_info): Adjust to return NULL on error.
8519         (destroy_hsa_program): Change return type to bool, adjust to
8520         return false on error.
8521         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
8522         (destroy_module): Change return type to bool, adjust to
8523         return false on error.
8524         (GOMP_OFFLOAD_unload_image): Likewise.
8525         (GOMP_OFFLOAD_fini_device): Likewise.
8526         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
8527         (GOMP_OFFLOAD_free): Change to return false when called.
8528         (GOMP_OFFLOAD_dev2host): Likewise.
8529         (GOMP_OFFLOAD_host2dev): Likewise.
8530         (GOMP_OFFLOAD_dev2dev): Likewise.
8532         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
8533         (CUDA_CALL): Likewise.
8534         (CUDA_CALL_ASSERT): Likewise.
8535         (map_init): Change return type to bool, use CUDA_CALL* macros.
8536         (map_fini): Likewise.
8537         (init_streams_for_device): Change return type to bool, adjust
8538         call to map_init.
8539         (fini_streams_for_device): Change return type to bool, adjust
8540         call to map_fini.
8541         (select_stream_for_async): Release stream_lock before calls to
8542         GOMP_PLUGIN_fatal, adjust call to map_init.
8543         (nvptx_init): Use CUDA_CALL* macros.
8544         (nvptx_attach_host_thread_to_device): Change return type to bool,
8545         use CUDA_CALL* macros.
8546         (nvptx_open_device): Use CUDA_CALL* macros.
8547         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
8548         macros.
8549         (nvptx_get_num_devices): Use CUDA_CALL* macros.
8550         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
8551         (nvptx_exec): Use CUDA_CALL* macros.
8552         (nvptx_alloc): Use CUDA_CALL* macros.
8553         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
8554         (nvptx_host2dev): Likewise.
8555         (nvptx_dev2host): Likewise.
8556         (nvptx_wait): Use CUDA_CALL* macros.
8557         (nvptx_wait_async): Likewise.
8558         (nvptx_wait_all): Likewise.
8559         (nvptx_wait_all_async): Likewise.
8560         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
8561         use CUDA_CALL* macros, adjust call to map_fini.
8562         (GOMP_OFFLOAD_init_device): Change return type to bool,
8563         adjust code accordingly.
8564         (GOMP_OFFLOAD_fini_device): Likewise.
8565         (GOMP_OFFLOAD_load_image): Adjust calls to
8566         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
8567         use CUDA_CALL* macros.
8568         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
8569         return code.
8570         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
8571         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
8572         handle error return.
8573         (GOMP_OFFLOAD_dev2host): Likewise.
8574         (GOMP_OFFLOAD_host2dev): Likewise.
8575         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
8576         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
8578 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
8580         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
8581         (acc_free): Likewise.
8582         (acc_memcpy_to_device): Likewise.
8583         (acc_memcpy_from_device): Likewise.
8584         (acc_deviceptr): Likewise.
8585         (acc_hostptr): Likewise.
8586         (acc_is_present): Likewise.
8587         (acc_map_data): Likewise.
8588         (acc_unmap_data): Likewise.
8589         (present_create_copy): Likewise.
8590         (delete_copyout): Likewise.
8591         (update_dev_host): Likewise.
8592         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
8593         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
8594         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
8595         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8596         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
8597         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
8598         it only runs on nvptx targets.
8599         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8600         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8601         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8602         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8603         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8604         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8605         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8606         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8607         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8608         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8609         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8610         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8611         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8612         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8613         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8614         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8615         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8616         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8617         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8618         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8619         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8620         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8621         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8623 2016-05-23  Martin Jambor  <mjambor@suse.cz>
8625         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
8627 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
8629         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
8630         to gomp_init_targets_once.
8631         (acc_set_device_type): Remove !cached_base_dev condition on call to
8632         gomp_init_targets_once, move call to before acc_device_lock acquire,
8633         to avoid deadlock.
8634         (acc_get_device_num): Remove !cached_base_dev condition on call to
8635         gomp_init_targets_once.
8636         (acc_set_device_num): Likewise.
8638 2016-05-16  Martin Jambor  <mjambor@suse.cz>
8640         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
8642 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
8644         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
8645         expected partitioning.
8647 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
8649         PR middle-end/70626
8650         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
8651         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
8652         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
8654 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
8656         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
8657         non-fatal.
8659 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
8661         PR middle-end/70680
8662         * testsuite/libgomp.c/pr70680-1.c: New test.
8663         * testsuite/libgomp.c/pr70680-2.c: New test.
8665 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
8667         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
8668         pass parameter variables to subroutines.
8670 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
8672         PR middle-end/70643
8673         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
8675 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
8677         PR testsuite/68242
8678         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
8679         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8681 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
8683         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
8684         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
8685         GOACC_declare prototype.
8687         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
8688         Merge this file, and...
8689         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
8690         ... this file, and...
8691         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
8692         ... this file, and...
8693         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
8694         ... this file, and...
8695         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
8696         ... this file, and...
8697         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
8698         ... this file, and...
8699         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
8700         ... this file, and...
8701         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
8702         ... this file, and...
8703         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
8704         ... this file, and...
8705         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
8706         ... this file, and...
8707         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
8708         ... this file, and...
8709         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
8710         ... this file, and...
8711         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
8712         ... this file into...
8713         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
8714         file.
8716         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8717         Make failure observable.
8719 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
8721         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
8722         field.
8723         * target.c (gomp_target_fallback_firstprivate,
8724         gomp_target_unshare_firstprivate): Removed.
8725         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
8726         before waiting for dependencies.
8727         (gomp_target_task_fn): Don't copy firstprivate vars here.
8728         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
8729         firstprivate_copies here.
8730         (gomp_create_target_task): Don't initialize firstprivate_copies field.
8731         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
8732         explicit/implicit firstprivate.
8734 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
8736         PR lto/70289
8737         PR ipa/70348
8738         PR tree-optimization/70373
8739         PR middle-end/70533
8740         PR middle-end/70534
8741         PR middle-end/70535
8742         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
8743         test.
8744         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
8745         test.
8746         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
8747         test.
8748         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
8749         test.
8750         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
8751         test.
8752         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
8753         test.
8754         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
8755         test.
8756         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
8757         test.
8758         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
8759         test.
8760         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
8761         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
8762         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
8763         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
8764         test.
8765         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
8766         test.
8767         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
8768         test.
8769         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
8770         test.
8771         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
8772         coverage.
8773         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
8774         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
8775         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
8776         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
8777         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
8778         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
8779         coverage.
8780         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8781         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8782         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8783         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8784         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
8785         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
8786         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
8787         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
8788         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
8789         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8790         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8791         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8792         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8793         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8794         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
8796 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
8797             James Norris  <jnorris@codesourcery.com>
8798             Nathan Sidwell  <nathan@codesourcery.com>
8799             Julian Brown  <julian@codesourcery.com>
8800             Cesar Philippidis  <cesar@codesourcery.com>
8801             Chung-Lin Tang  <cltang@codesourcery.com>
8802             Tom de Vries  <tom@codesourcery.com>
8804         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
8805         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8806         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8807         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
8808         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8809         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8810         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8811         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
8812         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8813         XFAIL.
8814         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
8815         Incorporate...
8816         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
8817         file.
8818         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
8819         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
8820         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
8821         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
8822         Likewise.
8823         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
8824         Likewise.
8825         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
8826         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
8827         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
8828         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
8829         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
8830         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
8831         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
8832         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
8833         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
8834         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
8835         Likewise.
8836         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
8837         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
8838         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
8839         file...
8840         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
8841         file into...
8842         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
8843         file.  Update.
8844         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
8845         file.
8846         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
8847         Likewise.
8848         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
8849         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
8850         ... this new file.  Update.
8851         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
8852         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
8853         ... this new file.  Update.
8854         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
8855         file.  Incorporate...
8856         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
8857         file, and...
8858         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
8859         file, and...
8860         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
8861         file.
8862         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
8864 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
8866         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
8867         set-torture-options.
8869 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
8871         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
8872         gcc-dg-runtest.
8873         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8874         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
8875         -fno-builtin-acc_on_device instead of -O0.
8876         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
8877         -O0.
8878         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
8879         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
8880         Likewise.
8881         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
8882         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
8883         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
8884         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
8885         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
8886         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
8887         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
8888         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
8889         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
8890         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
8891         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
8892         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
8893         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
8894         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
8895         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
8896         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
8897         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
8898         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
8899         Don't specify -O2.
8900         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
8901         Likewise.
8902         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
8903         Likewise.
8905 2016-03-24  Martin Liska  <mliska@suse.cz>
8907         * plugin/plugin-hsa.c (packet_store_release): New function
8908         that is taken from the HSA runtime manual.
8909         (GOMP_OFFLOAD_run): Use the function.
8911 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
8913         PR c++/70376
8914         * testsuite/libgomp.c++/pr70376.C: New test.
8916 2016-03-23  Tom de Vries  <tom@codesourcery.com>
8918         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
8919         initialization of lresult and lvresult.
8920         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
8922 2016-03-23  James Norris  <jnorris@codesourcery.com>
8923             Daichi Fukuoka <dc-fukuoka@sgi.com>
8925         PR libgomp/69414
8926         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
8927         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
8928         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8929         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
8931 2016-03-23  Martin Liska  <mliska@suse.cz>
8933         PR hsa/70337
8934         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
8935         argument just in case a dispatched kernel uses that argument.
8937 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
8939         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
8940         -ftree-parallelize-loops/-fopenacc changes.
8941         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
8942         Likewise.
8943         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
8944         Likewise.
8945         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
8946         Likewise.
8947         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
8948         Likewise.
8949         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
8950         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
8952 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
8954         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
8955         always_ld_library_path the path to libgcc_s.
8957 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
8959         PR testsuite/70009
8960         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
8962 2016-03-09  Tom de Vries  <tom@codesourcery.com>
8964         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
8965         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
8966         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
8967         Same.
8968         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
8969         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
8970         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
8971         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
8973 2016-03-07  Martin Jambor  <mjambor@suse.cz>
8975         * testsuite/lib/libgomp.exp
8976         (check_effective_target_hsa_offloading_selected_nocache): New.
8977         (check_effective_target_hsa_offloading_selected): Likewise.
8978         * testsuite/libgomp.hsa.c/c.exp: Likewise.
8979         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
8980         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
8981         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
8982         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
8983         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
8984         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
8985         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
8986         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
8987         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
8988         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
8989         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
8990         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
8991         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
8992         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
8993         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
8994         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
8996 2016-03-07  Martin Jambor  <mjambor@suse.cz>
8998         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
8999         non-shared memory accelerators.
9000         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
9001         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
9002         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
9003         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
9004         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
9005         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
9006         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
9007         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
9008         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
9010 2016-03-07  Martin Jambor  <mjambor@suse.cz>
9012         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
9013         ALWAYS_CFLAGS.
9015 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
9017         PR libgomp/69555
9018         * testsuite/libgomp.c++/pr69555-1.C: New test.
9019         * testsuite/libgomp.c++/pr69555-2.C: New test.
9021 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
9022             Martin Jambor  <mjambor@suse.cz>
9024         * testsuite/lib/libgomp.exp
9025         (check_effective_target_offload_device_shared_as): New proc.
9026         * testsuite/libgomp.c++/declare_target-1.C: New test.
9028 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
9030         PR driver/68463
9031         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
9033 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
9035         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
9036         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
9037         dims.
9038         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
9039         -ftree-parallelize-loops/-fopenacc changes.
9040         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
9041         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
9042         Likewise.
9043         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
9044         Likewise.
9045         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
9046         Likewise.
9047         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
9048         Likewise.
9049         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
9050         Likewise.
9051         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
9052         Likewise.
9053         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
9054         Likewise.
9055         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
9056         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
9057         Likewise.
9058         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
9059         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
9060         Likewise.
9061         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
9062         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
9063         Likewise.
9065 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
9067         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
9069 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
9071         PR driver/69805
9072         * testsuite/libgomp.c/pr69805.c: New test.
9074 2016-02-16  Tom de Vries  <tom@codesourcery.com>
9076         PR lto/67709
9077         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
9079 2016-02-09  Tom de Vries  <tom@codesourcery.com>
9081         PR tree-optimization/69599
9082         * testsuite/libgomp.c/omp-nested-3.c: New test.
9083         * testsuite/libgomp.c/pr46032-2.c: New test.
9084         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
9085         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
9087 2016-02-09  Tom de Vries  <tom@codesourcery.com>
9089         PR lto/69707
9090         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
9092 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
9094         * testsuite/libgomp.c/target-31.c: Fix testcase.
9096 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
9098         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
9099         clause.
9100         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
9101         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
9102         reduction and map clauses.
9103         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
9105 2016-02-02  James Norris  <jnorris@codesourcery.com>
9107         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
9109 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
9111         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
9112         * oacc-parallel.c (GOACC_host_data): Remove function definition.
9114         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
9115         cases.
9117         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
9118         variables.
9119         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
9120         (hsa_kmt_lib): Set variables.
9121         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
9122         always_ld_library_path.
9123         * Makefile.in: Regenerate.
9124         * configure: Likewise.
9125         * testsuite/Makefile.in: Likewise.
9127         * plugin/configfrag.ac (offload_additional_options)
9128         (offload_additional_lib_paths): Don't amend for hsa offloading.
9129         * configure: Regenerate.
9131         * plugin/configfrag.ac: Don't configure for offloading target if
9132         we don't build the corresponding plugin.
9133         * configure: Regenerate.
9135 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
9137         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
9138         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
9140 2016-01-26  Tom de Vries  <tom@codesourcery.com>
9142         PR tree-optimization/69110
9143         * testsuite/libgomp.c/pr69110.c: New test.
9145 2016-01-25  Richard Biener  <rguenther@suse.de>
9147         PR lto/69393
9148         * testsuite/libgomp.c++/pr69393.C: New testcase.
9150 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
9152         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
9153         function wasn't mapped to the device with non-shared memory.
9155 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
9157         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
9159 2016-01-19  Martin Jambor  <mjambor@suse.cz>
9160             Martin Liska  <mliska@suse.cz>
9162         * plugin/Makefrag.am: Add HSA plugin requirements.
9163         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
9164         (HSA_RUNTIME_LIB): Likewise.
9165         (HSA_RUNTIME_CPPFLAGS): Likewise.
9166         (HSA_RUNTIME_INCLUDE): New substitution.
9167         (HSA_RUNTIME_LIB): Likewise.
9168         (HSA_RUNTIME_LDFLAGS): Likewise.
9169         (hsa-runtime): New configure option.
9170         (hsa-runtime-include): Likewise.
9171         (hsa-runtime-lib): Likewise.
9172         (PLUGIN_HSA): New substitution variable.
9173         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
9174         configure options.
9175         (PLUGIN_HSA_CPPFLAGS): Likewise.
9176         (PLUGIN_HSA_LDFLAGS): Likewise.
9177         (PLUGIN_HSA_LIBS): Likewise.
9178         Check that we have access to HSA run-time.
9179         * libgomp-plugin.h (offload_target_type): New element
9180         OFFLOAD_TARGET_TYPE_HSA.
9181         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
9182         args.
9183         (bool gomp_create_target_task): Updated.
9184         (gomp_device_descr): Extra parameter of run_func and async_run_func,
9185         new field can_run_func.
9186         * libgomp_g.h (GOMP_target_ext): Update prototype.
9187         * oacc-host.c (host_run): Added a new parameter args.
9188         * target.c (calculate_firstprivate_requirements): New function.
9189         (copy_firstprivate_data): Likewise.
9190         (gomp_target_fallback_firstprivate): Use them.
9191         (gomp_target_unshare_firstprivate): New function.
9192         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
9193         devices.
9194         (GOMP_target): Do host fallback for all shared memory devices.  Do not
9195         pass any args to plugins.
9196         (GOMP_target_ext): Introduce device-specific argument parameter args.
9197         Allow host fallback if device shares memory.  Do not remap data if
9198         device has shared memory.
9199         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
9200         like host fallback for mappings.
9201         (GOMP_target_data): Treat shared memory devices like host fallback.
9202         (GOMP_target_data_ext): Likewise.
9203         (GOMP_target_update): Likewise.
9204         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
9205         gomp_create_target_task.
9206         (GOMP_target_enter_exit_data): Likewise.
9207         (omp_target_alloc): Treat shared memory devices like host fallback.
9208         (omp_target_free): Likewise.
9209         (omp_target_is_present): Likewise.
9210         (omp_target_memcpy): Likewise.
9211         (omp_target_memcpy_rect): Likewise.
9212         (omp_target_associate_ptr): Likewise.
9213         (gomp_load_plugin_for_device): Also load can_run.
9214         * task.c (GOMP_PLUGIN_target_task_completion): Free
9215         firstprivate_copies.
9216         (gomp_create_target_task): Accept new argument args and store it to
9217         ttask.
9218         * plugin/plugin-hsa.c: New file.
9220 2016-01-18  Tom de Vries  <tom@codesourcery.com>
9222         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
9223         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
9224         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
9225         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
9226         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
9227         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
9228         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
9229         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
9230         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
9231         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
9232         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
9233         Same.
9234         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
9235         Same.
9236         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
9237         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
9238         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
9239         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
9240         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
9241         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
9242         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
9243         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
9244         Same.
9245         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
9247 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
9249         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
9251 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
9253         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
9255 2016-01-12  James Norris  <jnorris@codesourcery.com>
9257         * libgomp.texi: Updates for OpenACC.
9259 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
9261         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
9263 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
9265         PR fortran/66680
9266         * testsuite/libgomp.fortran/pr66680.f90: New test.
9268 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
9270         PR middle-end/68960
9271         * testsuite/libgomp.c/pr68960.c: New test.
9273 2016-01-06  Nathan Sidwell  <nathan@acm.org>
9275         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
9276         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
9278 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
9280         Update copyright years.
9282         * libgomp.texi: Bump @copying's copyright year.
9284 2015-12-31  Nathan Sidwell  <nathan@acm.org>
9286         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
9287         dg-additional-options syntax.
9288         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
9289         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
9290         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
9291         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
9292         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
9293         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
9294         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
9295         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
9296         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
9297         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
9298         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
9299         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
9300         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
9301         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
9302         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
9303         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
9304         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
9305         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
9307 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
9309         * libgomp.h (REFCOUNT_LINK): Define.
9310         (struct splay_tree_key_s): Add link_key.
9311         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
9312         Replace target address of the pointer with target address of newly
9313         mapped object in the splay tree.  Set link pointer on target to the
9314         device address of the mapped object.
9315         (gomp_unmap_vars): Restore target address of the pointer in the splay
9316         tree for REFCOUNT_LINK objects after unmapping.
9317         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
9318         declare target link" objects.
9319         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
9320         "omp declare target link" objects, which were mapped for the image.
9321         (gomp_exit_data): Restore target address of the pointer in the splay
9322         tree for REFCOUNT_LINK objects after unmapping.
9323         * testsuite/libgomp.c/target-link-1.c: New file.
9325 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
9327         * libgomp.h (gomp_device_state): New enum.
9328         (struct gomp_device_descr): Replace is_initialized with state.
9329         (gomp_fini_device): Remove declaration.
9330         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
9331         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
9332         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
9333         (acc_set_device_type): Use state instead of is_initialized.
9334         (acc_set_device_num): Likewise.
9335         * target.c (resolve_device): Use state instead of is_initialized.
9336         Do not initialize finalized device.
9337         (gomp_map_vars): Do nothing if device is finalized.
9338         (gomp_unmap_vars): Likewise.
9339         (gomp_update): Likewise.
9340         (GOMP_offload_register_ver): Use state instead of is_initialized.
9341         (GOMP_offload_unregister_ver): Likewise.
9342         (gomp_init_device): Likewise.
9343         (gomp_unload_device): Likewise.
9344         (gomp_fini_device): Remove.
9345         (gomp_get_target_fn_addr): Do nothing if device is finalized.
9346         (GOMP_target): Go to host fallback if device is finalized.
9347         (GOMP_target_ext): Likewise.
9348         (gomp_exit_data): Do nothing if device is finalized.
9349         (gomp_target_task_fn): Go to host fallback if device is finalized.
9350         (gomp_target_fini): New static function.
9351         (gomp_target_init): Use state instead of is_initialized.
9352         Call gomp_target_fini at exit.
9354 2015-12-09  Tom de Vries  <tom@codesourcery.com>
9356         PR tree-optimization/68716
9357         * testsuite/libgomp.c/omp-nested-2.c: New test.
9359 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
9361         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
9362         target openacc_nvidia_accel_selected.
9363         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
9364         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
9365         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
9366         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
9368 2015-12-01  Julian Brown  <julian@codesourcery.com>
9369             James Norris  <James_Norris@mentor.com>
9371         * oacc-parallel.c (GOACC_host_data): New function.
9372         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
9373         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
9374         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
9375         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
9376         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
9377         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
9378         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
9380 2015-11-30  James Norris  <jnorris@codesourcery.com>
9381             Cesar Philippidis  <cesar@codesourcery.com>
9383         libgomp/
9384         * libgomp.oacc-fortran/routine-5.f90: New test.
9385         * libgomp.oacc-fortran/routine-7.f90: New test.
9386         * libgomp.oacc-fortran/routine-9.f90: New test.
9388 2015-11-30  Tom de Vries  <tom@codesourcery.com>
9390         PR tree-optimization/46032
9391         * testsuite/libgomp.c/pr46032.c: New test.
9393 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
9395         PR libgomp/68579
9396         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
9397         (gomp_create_target_task): Call it before freeing
9398         GOMP_TARGET_TASK_DATA tasks.
9400         PR c/63326
9401         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
9402         in between case label and OpenMP standalone directives.
9403         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
9405 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
9407         * configure: Regenerate.
9409 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
9411         * testsuite/libgomp.c/target-35.c: New test.
9413 2015-11-22  James Norris  <jnorris@codesourcery.com>
9414             Cesar Philippidis  <cesar@codesourcery.com>
9416         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
9417         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
9418         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
9419         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
9420         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
9422 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
9424         PR middle-end/68221
9425         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
9426         * testsuite/libgomp.c/reduction-12.c: Likewise.
9427         * testsuite/libgomp.c++/reduction-11.C: Likewise.
9428         * testsuite/libgomp.c++/reduction-12.C: Likewise.
9430 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
9432         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
9433         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
9434         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
9435         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
9436         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
9437         and fix.
9438         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9439         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9441 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
9443         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
9444         worker & gang cases.
9445         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
9447 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
9449         * config/nvptx/priority_queue.c: New file.
9451 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
9453         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
9454         sections.
9456 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
9457             Aldy Hernandez  <aldyh@redhat.com>
9458             Ilya Verbin  <ilya.verbin@intel.com>
9460         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
9461         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
9462         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
9463         iterators or IV by chunk size.
9464         * parallel.c (gomp_resolve_num_threads): Don't assume that
9465         if thr->ts.team is non-NULL, then pool must be non-NULL.
9466         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
9467         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
9468         GOMP_PLUGIN_target_task_completion.
9469         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
9470         * Makefile.in: Regenerate.
9471         * libgomp.h: Shuffle prototypes and forward definitions around so
9472         priority queues can be defined.
9473         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
9474         (enum gomp_target_task_state): New enum.
9475         (struct gomp_target_task): Add state, tgt, task and team fields.
9476         (gomp_create_target_task): Change return type to bool, add
9477         state argument.
9478         (gomp_target_task_fn): Change return type to bool.
9479         (struct gomp_device_descr): Add async_run_func.
9480         (struct gomp_task): Remove children, next_child, prev_child,
9481         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
9482         Add pnode field.
9483         (struct gomp_taskgroup): Remove children.
9484         Add taskgroup_queue.
9485         (struct gomp_team): Change task_queue type to a priority queue.
9486         (splay_compare): Define inline.
9487         (priority_queue_offset): New.
9488         (priority_node_to_task): New.
9489         (task_to_priority_node): New.
9490         * oacc-mem.c: Do not include splay-tree.h.
9491         * priority_queue.c: New file.
9492         * priority_queue.h: New file.
9493         * splay-tree.c: Do not include splay-tree.h.
9494         (splay_tree_foreach_internal): New.
9495         (splay_tree_foreach): New.
9496         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
9497         (splay_tree_callback): Define typedef.
9498         * target.c (splay_compare): Move to libgomp.h.
9499         (GOMP_target): Don't adjust *thr in any way around running offloaded
9500         task.
9501         (GOMP_target_ext): Likewise.  Handle target nowait.
9502         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
9503         return value from gomp_create_target_task, if false, fallthrough
9504         as if no dependencies exist.
9505         (gomp_target_task_fn): Change return type to bool, return true
9506         if the task should have another part scheduled later.  Handle
9507         target nowait.
9508         (gomp_load_plugin_for_device): Initialize async_run.
9509         * task.c (gomp_init_task): Initialize children_queue.
9510         (gomp_clear_parent_in_list): New.
9511         (gomp_clear_parent_in_tree): New.
9512         (gomp_clear_parent): Handle priorities.
9513         (GOMP_task): Likewise.
9514         (priority_queue_move_task_first,
9515         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
9516         New functions.
9517         (gomp_create_target_task): Use priority queues.  Change return type
9518         to bool, add state argument, return false if for async
9519         {{enter,exit} data,update} constructs no dependencies need to be
9520         waited for, handle target nowait.  Set task->fn to NULL instead of
9521         gomp_target_task_fn.
9522         (verify_children_queue): Remove.
9523         (priority_list_upgrade_task): New.
9524         (priority_queue_upgrade_task): New.
9525         (verify_task_queue): Remove.
9526         (priority_list_downgrade_task): New.
9527         (priority_queue_downgrade_task): New.
9528         (gomp_task_run_pre): Use priority queues.
9529         Abstract code out to priority_queue_downgrade_task.
9530         (gomp_task_run_post_handle_dependers): Use priority queues.
9531         (gomp_task_run_post_remove_parent): Likewise.
9532         (gomp_task_run_post_remove_taskgroup): Likewise.
9533         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
9534         tasks specially.
9535         (GOMP_taskwait): Likewise.
9536         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
9537         priority-queue_upgrade_task.
9538         (GOMP_taskgroup_start): Use priority queues.
9539         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
9540         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
9541         barrier.
9542         * taskloop.c (GOMP_taskloop): Handle priorities.
9543         * team.c (gomp_new_team): Call priority_queue_init.
9544         (free_team): Call priority_queue_free.
9545         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
9546         team created for target nowait in implicit parallel region.
9547         (gomp_team_start): For nested check, test thr->ts.level instead of
9548         thr->ts.team != NULL.
9549         * testsuite/libgomp.c/doacross-3.c: New test.
9550         * testsuite/libgomp.c/ordered-5.c: New test.
9551         * testsuite/libgomp.c/priority.c: New test.
9552         * testsuite/libgomp.c/target-31.c: New test.
9553         * testsuite/libgomp.c/target-32.c: New test.
9554         * testsuite/libgomp.c/target-33.c: New test.
9555         * testsuite/libgomp.c/target-34.c: New test.
9557 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
9559         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
9561         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
9562         loop is sequential.
9564 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
9566         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
9567         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
9569 2015-11-12  James Norris  <jnorris@codesourcery.com>
9570             Joseph Myers  <joseph@codesourcery.com>
9572         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
9573         * oacc-parallel.c (GOACC_declare): New function.
9574         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
9575         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
9576         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
9577         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
9578         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
9580 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
9582         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
9584 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
9586         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
9587         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
9589 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
9591         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
9592         inadvertent commit.
9594 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
9596         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
9597         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
9598         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
9599         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
9600         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
9602 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
9604         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
9605         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
9607 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
9608             Ilya Verbin  <ilya.verbin@intel.com>
9610         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
9611         GOMP_loop_nonmonotonic_dynamic_start,
9612         GOMP_loop_nonmonotonic_guided_next,
9613         GOMP_loop_nonmonotonic_guided_start,
9614         GOMP_loop_ull_nonmonotonic_dynamic_next,
9615         GOMP_loop_ull_nonmonotonic_dynamic_start,
9616         GOMP_loop_ull_nonmonotonic_guided_next,
9617         GOMP_loop_ull_nonmonotonic_guided_start,
9618         GOMP_parallel_loop_nonmonotonic_dynamic,
9619         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
9620         (GOMP_target_41): Renamed to ...
9621         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
9622         arguments.
9623         (GOMP_target_data_41): Renamed to ...
9624         (GOMP_target_data_ext): ... this.
9625         (GOMP_target_update_41): Renamed to ...
9626         (GOMP_target_update_ext): ... this.
9627         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
9628         GOMP_target_data_ext and GOMP_target_update_ext instead of
9629         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
9630         Export GOMP_loop_nonmonotonic_dynamic_next,
9631         GOMP_loop_nonmonotonic_dynamic_start,
9632         GOMP_loop_nonmonotonic_guided_next,
9633         GOMP_loop_nonmonotonic_guided_start,
9634         GOMP_loop_ull_nonmonotonic_dynamic_next,
9635         GOMP_loop_ull_nonmonotonic_dynamic_start,
9636         GOMP_loop_ull_nonmonotonic_guided_next,
9637         GOMP_loop_ull_nonmonotonic_guided_start,
9638         GOMP_parallel_loop_nonmonotonic_dynamic and
9639         GOMP_parallel_loop_nonmonotonic_guided.
9640         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
9641         GOMP_parallel_loop_nonmonotonic_guided,
9642         GOMP_loop_nonmonotonic_dynamic_start,
9643         GOMP_loop_nonmonotonic_guided_start,
9644         GOMP_loop_nonmonotonic_dynamic_next,
9645         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
9646         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
9647         GOMP_loop_ull_nonmonotonic_guided_start,
9648         GOMP_loop_ull_nonmonotonic_dynamic_next,
9649         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
9650         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
9651         functions.
9652         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
9653         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
9654         Use gomp_map_val function.
9655         (gomp_target_fallback_firstprivate): New static function.
9656         (GOMP_target_41): Renamed to ...
9657         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
9658         arguments.  Move firstprivate fallback handling into a new
9659         function.
9660         (GOMP_target_data_41): Renamed to ...
9661         (GOMP_target_data_ext): ... this.
9662         (GOMP_target_update_41): Renamed to ...
9663         (GOMP_target_update_ext): ... this.
9664         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
9665         gomp_map_0len_lookup instead of gomp_map_lookup.
9666         (omp_target_is_present): Use gomp_map_0len_lookup instead of
9667         gomp_map_lookup.
9668         * testsuite/libgomp.c/target-28.c: Likewise.
9669         * testsuite/libgomp.c/monotonic-1.c: New test.
9670         * testsuite/libgomp.c/monotonic-2.c: New test.
9671         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
9672         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
9673         * testsuite/libgomp.c/pr66199-5.c: New test.
9674         * testsuite/libgomp.c/pr66199-6.c: New test.
9675         * testsuite/libgomp.c/pr66199-7.c: New test.
9676         * testsuite/libgomp.c/pr66199-8.c: New test.
9677         * testsuite/libgomp.c/pr66199-9.c: New test.
9678         * testsuite/libgomp.c/reduction-11.c: New test.
9679         * testsuite/libgomp.c/reduction-12.c: New test.
9680         * testsuite/libgomp.c/reduction-13.c: New test.
9681         * testsuite/libgomp.c/reduction-14.c: New test.
9682         * testsuite/libgomp.c/reduction-15.c: New test.
9683         * testsuite/libgomp.c/target-12.c (main): Adjust for
9684         omp_target_is_present change for one-past-last element.
9685         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
9686         the same var is both mapped and privatized.
9687         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
9688         handling of zero-length array sections.
9689         * testsuite/libgomp.c/target-28.c: New test.
9690         * testsuite/libgomp.c/target-29.c: New test.
9691         * testsuite/libgomp.c/target-30.c: New test.
9692         * testsuite/libgomp.c/target-teams-1.c: New test.
9693         * testsuite/libgomp.c++/member-6.C: New test.
9694         * testsuite/libgomp.c++/member-7.C: New test.
9695         * testsuite/libgomp.c++/monotonic-1.C: New test.
9696         * testsuite/libgomp.c++/monotonic-2.C: New test.
9697         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
9698         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
9699         * testsuite/libgomp.c++/pr66199-3.C: New test.
9700         * testsuite/libgomp.c++/pr66199-4.C: New test.
9701         * testsuite/libgomp.c++/pr66199-5.C: New test.
9702         * testsuite/libgomp.c++/pr66199-6.C: New test.
9703         * testsuite/libgomp.c++/pr66199-7.C: New test.
9704         * testsuite/libgomp.c++/pr66199-8.C: New test.
9705         * testsuite/libgomp.c++/pr66199-9.C: New test.
9706         * testsuite/libgomp.c++/reduction-11.C: New test.
9707         * testsuite/libgomp.c++/reduction-12.C: New test.
9708         * testsuite/libgomp.c++/target-13.C: New test.
9709         * testsuite/libgomp.c++/target-14.C: New test.
9710         * testsuite/libgomp.c++/target-15.C: New test.
9711         * testsuite/libgomp.c++/target-16.C: New test.
9712         * testsuite/libgomp.c++/target-17.C: New test.
9713         * testsuite/libgomp.c++/target-18.C: New test.
9714         * testsuite/libgomp.c++/target-19.C: New test.
9716 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
9718         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
9719         and reduction copy.
9720         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9721         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9722         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9723         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9724         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
9725         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9726         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
9727         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
9728         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9729         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
9730         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
9731         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
9732         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
9733         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
9735 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
9737         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
9738         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
9739         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
9740         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
9741         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
9742         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
9743         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
9744         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
9746 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
9748         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
9749         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
9750         (GOMP_OFFLOAD_openacc_parallel): Likewise.
9751         * oacc-host.c (host_openacc_exec): Likewise.
9752         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
9754 2015-11-03  Julian Brown  <julian@codesourcery.com>
9755             Thomas Schwinge  <thomas@codesourcery.com>
9757         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
9758         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
9759         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
9760         Likewise.
9761         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
9762         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
9764 2015-11-03  James Norris  <jnorris@codesourcery.com>
9766         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
9767         file.
9768         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
9769         Likewise.
9770         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
9771         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
9772         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
9773         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
9774         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
9776 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
9778         * openacc.h (enum acc_device_t): Reformat. Ensure layout
9779         compatibility.
9780         (enum acc_async_t): Reformat.
9781         (acc_on_device): Declare compatible with builtin and provide C++
9782         wrapper.
9783         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
9785 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
9786             Cesar Philippidis  <cesar@codesourcery.com>
9788         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
9789         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
9790         ... this.  Add a description of the test at the top of the file.
9791         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
9792         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
9793         ... this.  Add a description of the test at the top of the file.
9795 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
9797         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
9798         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
9799         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
9800         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
9801         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
9802         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
9804 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9806         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
9807         dimensions.
9809 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
9811         PR testsuite/68063
9812         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
9814 2015-10-27  James Norris  <jnorris@codesourcery.com>
9816         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
9817         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
9819 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
9821         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
9822         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
9824         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
9825         acc_device_nvidia usage.
9826         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
9827         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
9828         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
9830         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
9831         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
9833         PR libgomp/66518
9834         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
9836         PR libgomp/65437
9837         PR libgomp/66518
9838         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
9839         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
9841 2015-10-23  Tom de Vries  <tom@codesourcery.com>
9843         PR testsuite/68063
9844         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
9846 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
9848         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
9849         vector_length.
9850         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9852 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
9853             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
9855         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
9856         to 0 when mapnum is 0.
9858 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9860         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
9861         Cast to int from int32_t.
9863 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
9864             Aldy Hernandez  <aldyh@redhat.com>
9865             Ilya Verbin  <ilya.verbin@intel.com>
9867         * config/linux/affinity.c (omp_get_place_num_procs,
9868         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
9869         * config/linux/doacross.h: New file.
9870         * config/posix/affinity.c (omp_get_place_num_procs,
9871         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
9872         * config/posix/doacross.h: New file.
9873         * env.c: Include gomp-constants.h.
9874         (struct gomp_task_icv): Rename run_sched_modifier to
9875         run_sched_chunk_size.
9876         (gomp_max_task_priority_var): New variable.
9877         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
9878         (handle_omp_display_env): Change _OPENMP value from 201307 to
9879         201511.  Print OMP_MAX_TASK_PRIORITY.
9880         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
9881         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
9882         chunk_size and run_sched_modifier to run_sched_chunk_size.
9883         (omp_get_max_task_priority, omp_get_initial_device,
9884         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
9885         omp_get_partition_place_nums): New functions.
9886         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
9887         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
9888         to chunk_size.
9889         (omp_get_num_places_, omp_get_place_num_procs_,
9890         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
9891         omp_get_place_proc_ids_8_, omp_get_place_num_,
9892         omp_get_partition_num_places_, omp_get_partition_place_nums_,
9893         omp_get_partition_place_nums_8_, omp_get_initial_device_,
9894         omp_get_max_task_priority_): New functions.
9895         * libgomp_g.h (GOMP_loop_doacross_static_start,
9896         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
9897         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
9898         GOMP_loop_ull_doacross_dynamic_start,
9899         GOMP_loop_ull_doacross_guided_start,
9900         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
9901         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
9902         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
9903         GOMP_target_data_41, GOMP_target_update_41,
9904         GOMP_target_enter_exit_data): New prototypes.
9905         (GOMP_task): Add prototype argument.
9906         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
9907         (struct gomp_doacross_work_share): New type.
9908         (struct gomp_work_share): Add doacross field.
9909         (struct gomp_task_icv): Rename run_sched_modifier to
9910         run_sched_chunk_size.
9911         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
9912         GOMP_TASK_UNDEFERRED.  Add comments.
9913         (struct gomp_task_depend_entry): Add comments.
9914         (struct gomp_task): Likewise.
9915         (struct gomp_taskgroup): Likewise.
9916         (struct gomp_target_task): New type.
9917         (struct gomp_team): Add comment.
9918         (gomp_get_place_proc_ids_8, gomp_doacross_init,
9919         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
9920         gomp_create_target_task, gomp_target_task_fn): New prototypes.
9921         (struct target_var_desc): New type.
9922         (struct target_mem_desc): Adjust comment.  Use struct
9923         target_var_desc instead of splay_tree_key for list.
9924         (REFCOUNT_INFINITY): Define.
9925         (struct splay_tree_key_s): Remove copy_from field.
9926         (struct gomp_device_descr): Add dev2dev_func field.
9927         (enum gomp_map_vars_kind): New enum.
9928         (gomp_map_vars): Add one argument.
9929         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
9930         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
9931         omp_get_place_num_procs, omp_get_place_num_procs_,
9932         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
9933         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
9934         omp_get_place_num_, omp_get_partition_num_places,
9935         omp_get_partition_num_places_, omp_get_partition_place_nums,
9936         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
9937         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
9938         omp_target_free, omp_target_is_present, omp_target_memcpy,
9939         omp_target_memcpy_rect, omp_target_associate_ptr and
9940         omp_target_disassociate_ptr.
9941         (GOMP_4.0.2): Renamed to ...
9942         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
9943         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
9944         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
9945         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
9946         GOMP_loop_doacross_static_start, GOMP_doacross_post,
9947         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
9948         GOMP_loop_ull_doacross_guided_start,
9949         GOMP_loop_ull_doacross_runtime_start,
9950         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
9951         GOMP_doacross_ull_wait.
9952         * libgomp.texi: Document omp_get_max_task_priority.
9953         Rename modifier argument to chunk_size for omp_set_schedule and
9954         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
9955         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
9956         to run_sched_chunk_size renaming.
9957         (GOMP_loop_ordered_runtime_start): Likewise.
9958         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
9959         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
9960         GOMP_parallel_loop_runtime_start): New functions.
9961         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
9962         to run_sched_chunk_size renaming.
9963         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
9964         GOMP_loop_doacross_guided_start): New functions or aliases.
9965         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
9966         run_sched_modifier to run_sched_chunk_size renaming.
9967         (GOMP_loop_ull_ordered_runtime_start): Likewise.
9968         (gomp_loop_ull_doacross_static_start,
9969         gomp_loop_ull_doacross_dynamic_start,
9970         gomp_loop_ull_doacross_guided_start,
9971         GOMP_loop_ull_doacross_runtime_start): New functions.
9972         (GOMP_loop_ull_doacross_static_start,
9973         GOMP_loop_ull_doacross_dynamic_start,
9974         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
9975         * oacc-mem.c (acc_map_data, present_create_copy,
9976         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
9977         to gomp_map_vars.
9978         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
9979         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
9980         instead of false to gomp_map_vars.
9981         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
9982         * omp.h.in (omp_lock_hint_t): New type.
9983         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
9984         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
9985         omp_get_place_num, omp_get_partition_num_places,
9986         omp_get_partition_place_nums, omp_get_initial_device,
9987         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
9988         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
9989         omp_target_associate_ptr, omp_target_disassociate_ptr): New
9990         prototypes.
9991         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
9992         (omp_lock_hint_none, omp_lock_hint_uncontended,
9993         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
9994         omp_lock_hint_speculative): New parameters.
9995         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
9996         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
9997         omp_get_place_num, omp_get_partition_num_places,
9998         omp_get_partition_place_nums, omp_get_initial_device,
9999         omp_get_max_task_priority): New interfaces.
10000         (omp_set_schedule, omp_get_schedule): Rename modifier argument
10001         to chunk_size.
10002         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
10003         (omp_lock_hint_none, omp_lock_hint_uncontended,
10004         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
10005         omp_lock_hint_speculative): New parameters.
10006         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
10007         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
10008         omp_get_place_num, omp_get_partition_num_places,
10009         omp_get_partition_place_nums, omp_get_initial_device,
10010         omp_get_max_task_priority): New functions and subroutines.
10011         * ordered.c: Include stdarg.h and string.h.
10012         (MAX_COLLAPSED_BITS): Define.
10013         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
10014         gomp_doacross_ull_init, GOMP_doacross_ull_post,
10015         GOMP_doacross_ull_wait): New functions.
10016         * target.c: Include errno.h.
10017         (resolve_device): If device is not initialized, call
10018         gomp_init_device on it.
10019         (gomp_map_lookup): New function.
10020         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
10021         Don't bump refcount if REFCOUNT_INFINITY.  Handle
10022         GOMP_MAP_ALWAYS_TO_P.
10023         (get_kind): Rename is_openacc argument to short_mapkind.
10024         (gomp_map_pointer): Use gomp_map_lookup.
10025         (gomp_map_fields_existing): New function.
10026         (gomp_map_vars): Rename is_openacc argument to short_mapkind
10027         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
10028         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
10029         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
10030         Adjust for tgt->list changed type and copy_from living in there.
10031         (gomp_copy_from_async): Adjust for tgt->list changed type and
10032         copy_from living in there.
10033         (gomp_unmap_vars): Likewise.
10034         (gomp_update): Likewise.  Rename is_openacc argument to
10035         short_mapkind.  Don't fail if object is not mapped.
10036         (gomp_load_image_to_device): Initialize refcount to
10037         REFCOUNT_INFINITY.
10038         (gomp_target_fallback): New function.
10039         (gomp_get_target_fn_addr): Likewise.
10040         (GOMP_target): Adjust gomp_map_vars caller, use
10041         gomp_get_target_fn_addr and gomp_target_fallback.
10042         (GOMP_target_41): New function.
10043         (gomp_target_data_fallback): New function.
10044         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
10045         (GOMP_target_data_41): New function.
10046         (GOMP_target_update): Adjust gomp_update caller.
10047         (GOMP_target_update_41): New function.
10048         (gomp_exit_data, GOMP_target_enter_exit_data,
10049         gomp_target_task_fn, omp_target_alloc, omp_target_free,
10050         omp_target_is_present, omp_target_memcpy,
10051         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
10052         omp_target_associate_ptr, omp_target_disassociate_ptr,
10053         gomp_load_plugin_for_device): New functions.
10054         * task.c: Include gomp-constants.h.  Include taskloop.c
10055         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
10056         (gomp_task_handle_depend): New function.
10057         (GOMP_task): Use it.  Add priority argument.  Use
10058         gomp-constant.h constants instead of hardcoded numbers.
10059         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
10060         (gomp_create_target_task): New function.
10061         (verify_children_queue, verify_taskgroup_queue,
10062         verify_task_queue): New functions.
10063         (gomp_task_run_pre): Call verify_*_queue functions.
10064         If an upcoming tied task is about to leave the sibling or
10065         taskgroup queues in an invalid state, adjust appropriately.
10066         Remove taskgroup argument.  Add comments.
10067         (gomp_task_run_post_handle_dependers): Add comments.
10068         (gomp_task_run_post_remove_parent): Likewise.
10069         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
10070         (GOMP_taskwait): Likewise.  Add comments.
10071         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
10072         problem such that the first non parent_depends_on task does not
10073         end up at the end of the children queue.
10074         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
10075         GOMP_TASK_UNDEFERRED.
10076         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
10077         * taskloop.c: New file.
10078         * testsuite/lib/libgomp.exp
10079         (check_effective_target_offload_device_nonshared_as): New proc.
10080         * testsuite/libgomp.c/affinity-2.c: New test.
10081         * testsuite/libgomp.c/doacross-1.c: New test.
10082         * testsuite/libgomp.c/doacross-2.c: New test.
10083         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
10084         Add map clause to target.
10085         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
10086         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
10087         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
10088         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
10089         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
10090         Likewise.
10091         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
10092         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
10093         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
10094         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
10095         not defined.  Use those where needed.
10096         * testsuite/libgomp.c/for-4.c: New test.
10097         * testsuite/libgomp.c/for-5.c: New test.
10098         * testsuite/libgomp.c/for-6.c: New test.
10099         * testsuite/libgomp.c/linear-1.c: New test.
10100         * testsuite/libgomp.c/ordered-4.c: New test.
10101         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
10102         only allowed on the loop iterator.
10103         * testsuite/libgomp.c/pr66199-3.c: New test.
10104         * testsuite/libgomp.c/pr66199-4.c: New test.
10105         * testsuite/libgomp.c/reduction-7.c: New test.
10106         * testsuite/libgomp.c/reduction-8.c: New test.
10107         * testsuite/libgomp.c/reduction-9.c: New test.
10108         * testsuite/libgomp.c/reduction-10.c: New test.
10109         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
10110         map(tofrom:s).
10111         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
10112         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
10113         * testsuite/libgomp.c/target-11.c: New test.
10114         * testsuite/libgomp.c/target-12.c: New test.
10115         * testsuite/libgomp.c/target-13.c: New test.
10116         * testsuite/libgomp.c/target-14.c: New test.
10117         * testsuite/libgomp.c/target-15.c: New test.
10118         * testsuite/libgomp.c/target-16.c: New test.
10119         * testsuite/libgomp.c/target-17.c: New test.
10120         * testsuite/libgomp.c/target-18.c: New test.
10121         * testsuite/libgomp.c/target-19.c: New test.
10122         * testsuite/libgomp.c/target-20.c: New test.
10123         * testsuite/libgomp.c/target-21.c: New test.
10124         * testsuite/libgomp.c/target-22.c: New test.
10125         * testsuite/libgomp.c/target-23.c: New test.
10126         * testsuite/libgomp.c/target-24.c: New test.
10127         * testsuite/libgomp.c/target-25.c: New test.
10128         * testsuite/libgomp.c/target-26.c: New test.
10129         * testsuite/libgomp.c/target-27.c: New test.
10130         * testsuite/libgomp.c/taskloop-1.c: New test.
10131         * testsuite/libgomp.c/taskloop-2.c: New test.
10132         * testsuite/libgomp.c/taskloop-3.c: New test.
10133         * testsuite/libgomp.c/taskloop-4.c: New test.
10134         * testsuite/libgomp.c++/ctor-13.C: New test.
10135         * testsuite/libgomp.c++/doacross-1.C: New test.
10136         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
10137         Replace offload_device with offload_device_nonshared_as.
10138         * testsuite/libgomp.c++/for-12.C: New test.
10139         * testsuite/libgomp.c++/for-13.C: New test.
10140         * testsuite/libgomp.c++/for-14.C: New test.
10141         * testsuite/libgomp.c++/linear-1.C: New test.
10142         * testsuite/libgomp.c++/member-1.C: New test.
10143         * testsuite/libgomp.c++/member-2.C: New test.
10144         * testsuite/libgomp.c++/member-3.C: New test.
10145         * testsuite/libgomp.c++/member-4.C: New test.
10146         * testsuite/libgomp.c++/member-5.C: New test.
10147         * testsuite/libgomp.c++/ordered-1.C: New test.
10148         * testsuite/libgomp.c++/reduction-5.C: New test.
10149         * testsuite/libgomp.c++/reduction-6.C: New test.
10150         * testsuite/libgomp.c++/reduction-7.C: New test.
10151         * testsuite/libgomp.c++/reduction-8.C: New test.
10152         * testsuite/libgomp.c++/reduction-9.C: New test.
10153         * testsuite/libgomp.c++/reduction-10.C: New test.
10154         * testsuite/libgomp.c++/reference-1.C: New test.
10155         * testsuite/libgomp.c++/simd14.C: New test.
10156         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
10157         * testsuite/libgomp.c++/target-5.C: New test.
10158         * testsuite/libgomp.c++/target-6.C: New test.
10159         * testsuite/libgomp.c++/target-7.C: New test.
10160         * testsuite/libgomp.c++/target-8.C: New test.
10161         * testsuite/libgomp.c++/target-9.C: New test.
10162         * testsuite/libgomp.c++/target-10.C: New test.
10163         * testsuite/libgomp.c++/target-11.C: New test.
10164         * testsuite/libgomp.c++/target-12.C: New test.
10165         * testsuite/libgomp.c++/taskloop-1.C: New test.
10166         * testsuite/libgomp.c++/taskloop-2.C: New test.
10167         * testsuite/libgomp.c++/taskloop-3.C: New test.
10168         * testsuite/libgomp.c++/taskloop-4.C: New test.
10169         * testsuite/libgomp.c++/taskloop-5.C: New test.
10170         * testsuite/libgomp.c++/taskloop-6.C: New test.
10171         * testsuite/libgomp.c++/taskloop-7.C: New test.
10172         * testsuite/libgomp.c++/taskloop-8.C: New test.
10173         * testsuite/libgomp.c++/taskloop-9.C: New test.
10174         * testsuite/libgomp.fortran/affinity1.f90: New test.
10175         * testsuite/libgomp.fortran/affinity2.f90: New test.
10177 2015-10-13  Tom de Vries  <tom@codesourcery.com>
10179         PR tree-optimization/67476
10180         * testsuite/libgomp.c/autopar-3.c: New test.
10181         * testsuite/libgomp.c/autopar-4.c: New test.
10182         * testsuite/libgomp.c/autopar-5.c: New test.
10183         * testsuite/libgomp.c/autopar-6.c: New test.
10184         * testsuite/libgomp.c/autopar-7.c: New test.
10185         * testsuite/libgomp.c/autopar-8.c: New test.
10187 2015-10-12  James Norris  <jnorris@codesourcery.com>
10189         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
10190         initializer.
10192 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
10194         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
10195         using load_gcc_lib.
10197 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
10199         * oacc-ptx.h: Remove file, moving its content into...
10200         * config/nvptx/fortran.c: ... here...
10201         * config/nvptx/oacc-init.c: ..., here...
10202         * config/nvptx/oacc-parallel.c: ..., and here.
10203         * config/nvptx/openacc.f90: New file.
10204         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
10205         (link_ptx): Don't link in predefined bits of PTX code.
10207 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
10208             Bernd Schmidt <bernds@codesourcery.com>
10210         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
10211         (struct targ_ptx_obj): New.
10212         (nvptx_tdata): Move earlier, change data format.
10213         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
10214         objects.
10215         (GOMP_OFFLOAD_load_image): Adjust.
10217 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
10219         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
10220         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
10221         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
10222         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
10223         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10224         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10225         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10226         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10227         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10228         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10229         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10230         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
10231         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
10232         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10233         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10234         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10235         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
10236         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10237         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10238         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10239         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10240         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10241         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
10242         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
10243         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10244         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10245         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
10246         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10247         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10248         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
10249         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
10250         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
10251         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
10252         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
10253         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10254         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10255         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10256         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10257         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10258         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10259         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10260         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10261         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
10262         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
10263         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
10264         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
10265         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
10266         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
10267         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
10268         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
10269         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
10270         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
10271         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
10272         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
10273         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
10274         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10275         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10276         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10277         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10278         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10279         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10280         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10281         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10283 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
10285         * oacc-init.c (acc_on_device): Force optimization level.
10287 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
10289         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
10290         (cuda_errlist): Delete.
10291         (cuda_error): Reimplement.
10293 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
10295         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
10296         array.
10297         * libgomp.map (GOACC_parallel_keyed): New.
10298         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
10299         all callers.
10300         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
10301         and take keyed varargs list.  Adjust call to exec_func.
10302         (GOACC_parallel): Force host fallback.
10303         * libgomp_g.h (GOACC_parallel): Remove.
10304         (GOACC_parallel_keyed): Declare.
10305         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
10306         (struct targ_gn_descriptor): Replace name field with launch field.
10307         (nvptx_exec): Lose separate geometry args, take array.  Process
10308         dynamic dimensions and adjust.
10309         (struct nvptx_tdata): Replace fn_names field with fn_descs.
10310         (GOMP_OFFLOAD_load_image): Adjust for change in function table
10311         data.
10312         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
10313         passing.
10314         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
10315         passing.
10317 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
10319         PR libgomp/67141
10320         * oacc-int.h (goacc_host_init): Add declaration.
10321         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
10322         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
10324 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
10325             Sebastian Pop  <s.pop@samsung.com>
10327         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
10328         match o/p.
10329         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
10330         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
10331         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
10332         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
10333         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
10335 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
10337         * configure.tgt: Add missing ;; in between nvptx and rtems
10338         snippets.
10340 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10342         * config/posix/pool.h (gomp_adjust_thread_attr): New.
10343         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
10344         (gomp_thread_pool_reservoir): Add priority member.
10345         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
10346         priority.
10347         (parse_thread_pools): Likewise.
10348         * team.c (gomp_team_start): Call configuration provided
10349         gomp_adjust_thread_attr(). Destroy thread attributes if
10350         necessary.
10351         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
10353 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10355         * config/posix/pool.h: New.
10356         * config/rtems/pool.h: Likewise.
10357         * config/rtems/proc.c: Likewise.
10358         * libgomp.h (gomp_thread_destructor): Declare.
10359         * team.c: Include configuration provided "pool.h".
10360         (gomp_get_thread_pool): Define in configuration.
10361         (gomp_team_end): Call configuration defined
10362         gomp_release_thread_pool().
10364 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10366         * config/rtems/bar.c: New.
10367         * config/rtems/bar.h: Likewise.
10368         * config/rtems/mutex.c: Likewise.
10369         * config/rtems/mutex.h: Likewise.
10370         * config/rtems/sem.c: Likewise.
10371         * config/rtems/sem.h: Likewise.
10372         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
10373         <sys/lock.h> header file.
10374         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
10375         supported by Newlib.
10376         * configure: Regenerate.
10378 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10380         * team.c (gomp_new_thread_pool): Delete and move content to ...
10381         (gomp_get_thread_pool): ... new function.  Allocate and
10382         initialize thread pool on demand.
10383         (get_last_team): Use gomp_get_thread_pool().
10384         (gomp_team_start): Delete thread pool initialization.
10386 2015-09-03  Tom de Vries  <tom@codesourcery.com>
10388         PR tree-optimization/65637
10389         * testsuite/libgomp.c/autopar-2.c: New test.
10391 2015-08-29  Tom de Vries  <tom@codesourcery.com>
10393         PR tree-optimization/46193
10394         * testsuite/libgomp.c/pr46193.c: New test.
10396 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
10398         libgomp/
10399         * libgomp.map: Add 4.0.2 version.
10400         * target.c (offload_image_descr): Add version field.
10401         (gomp_load_image_to_device): Add version argument.  Adjust plugin
10402         call.  Improve load mismatch diagnostic.
10403         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
10404         call.
10405         (GOMP_offload_regster): Make stub function, move bulk to ...
10406         (GOMP_offload_register_ver): ... here.  Process version argument.
10407         (GOMP_offload_unregister): Make stub function, move bulk to ...
10408         (GOMP_offload_unregister_ver): ... here.  Process version argument.
10409         (gomp_init_device): Process version field.
10410         (gomp_unload_device): Process version field.
10411         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
10412         macros.  Check plugin version.
10413         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
10414         loader and unloader types.
10415         * oacc-host.c: Include gomp-constants.h.
10416         (host_version): New.
10417         (host_load_image, host_unload_image): Adjust.
10418         (host_dispatch): Add host_version.
10419         * plugin/plugin-nvptx.c: Include gomp-constants.h.
10420         (GOMP_OFFLOAD_version): New.
10421         (GOMP_OFFLOAD_load_image): Add version arg and check it.
10422         (GOMP_OFFLOAD_unload_image): Likewise.
10423         * plugin/plugin-host.c: Include gomp-constants.h.
10424         (GOMP_OFFLOAD_version): New.
10425         (GOMP_OFFLOAD_load_image): Add version arg.
10426         (GOMP_OFFLOAD_unload_image): Likewise.
10428 2015-08-24  Tom de Vries  <tom@codesourcery.com>
10430         PR tree-optimization/65468
10431         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
10433 2015-08-24  Tom de Vries  <tom@codesourcery.com>
10435         PR tree-optimization/65468
10436         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
10438 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
10440         PR libgomp/66761
10441         PR libgomp/67303
10442         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
10443         (gomp_iter_guided_next): Idem.
10444         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
10445         (gomp_iter_ull_guided_next): Idem.
10446         * config/linux/wait.h (do_spin): Idem.
10448 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
10450         * libgomp-plugin.h (enum offload_target_type): Remove
10451         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
10452         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
10453         * openacc.h (enum acc_device_t): Likewise.
10454         * openacc_lib.h: Likewise.
10455         * oacc-init.c (name_of_acc_device_t): Don't handle it.
10456         (acc_on_device): Just use __builtin_acc_on_device.
10457         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
10458         of acc_on_device builtin.
10459         * plugin/plugin-host.h: Remove file.
10460         * plugin/plugin-host.c: Likewise, but salvage some content into...
10461         * oacc-host.c: ... this file.
10462         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
10463         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
10464         * Makefile.in: Regenerate.
10465         * configure: Likewise.
10466         * testsuite/lib/libgomp.exp
10467         (check_effective_target_openacc_host_nonshm_selected): Remove.
10468         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
10469         ACC_DEVICE_TYPE=host_nonshm.
10470         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10471         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10472         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
10473         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
10474         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
10475         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
10477 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
10478             Jakub Jelinek  <jakub@redhat.com>
10480         * config/nvptx/affinity.c: New file.
10481         * config/nvptx/alloc.c: Likewise.
10482         * config/nvptx/bar.c: Likewise.
10483         * config/nvptx/barrier.c: Likewise.
10484         * config/nvptx/critical.c: Likewise.
10485         * config/nvptx/env.c: Likewise.
10486         * config/nvptx/error.c: Likewise.
10487         * config/nvptx/fortran.c: Likewise.
10488         * config/nvptx/iter.c: Likewise.
10489         * config/nvptx/iter_ull.c: Likewise.
10490         * config/nvptx/libgomp-plugin.c: Likewise.
10491         * config/nvptx/lock.c: Likewise.
10492         * config/nvptx/loop.c: Likewise.
10493         * config/nvptx/loop_ull.c: Likewise.
10494         * config/nvptx/mutex.c: Likewise.
10495         * config/nvptx/oacc-async.c: Likewise.
10496         * config/nvptx/oacc-cuda.c: Likewise.
10497         * config/nvptx/oacc-host.c: Likewise.
10498         * config/nvptx/oacc-init.c: Likewise.
10499         * config/nvptx/oacc-mem.c: Likewise.
10500         * config/nvptx/oacc-parallel.c: Likewise.
10501         * config/nvptx/oacc-plugin.c: Likewise.
10502         * config/nvptx/omp-lock.h: Likewise.
10503         * config/nvptx/ordered.c: Likewise.
10504         * config/nvptx/parallel.c: Likewise.
10505         * config/nvptx/proc.c: Likewise.
10506         * config/nvptx/ptrlock.c: Likewise.
10507         * config/nvptx/sections.c: Likewise.
10508         * config/nvptx/sem.c: Likewise.
10509         * config/nvptx/single.c: Likewise.
10510         * config/nvptx/splay-tree.c: Likewise.
10511         * config/nvptx/target.c: Likewise.
10512         * config/nvptx/task.c: Likewise.
10513         * config/nvptx/team.c: Likewise.
10514         * config/nvptx/time.c: Likewise.
10515         * config/nvptx/work.c: Likewise.
10516         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
10517         * configure: Regenerate.
10518         * configure.tgt (config_path): Set to "nvptx" for target
10519         nvptx*-*-*.
10521 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
10523         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
10525 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
10527         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
10528         (cuda_errlist): Constify.
10529         (errmsg):  Move into ...
10530         (cuda_error): ... here.  Make smaller.
10531         (_XSTR, _STR): Delete.
10532         (cuda_synames): Delete.
10533         (verify_device_library): Delete.
10534         (nvptx_init): Don't call it.
10536 2015-07-28  Tom de Vries  <tom@codesourcery.com>
10538         * testsuite/libgomp.c/uns-outer-4.c: New test.
10540 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
10542         * testsuite/libgomp.c/pr66714.c: New test.
10544 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10546         PR libgomp/66950
10547         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
10548         (fib_ref): New function.
10549         (fib): Correct corner cases in the recursion.
10550         (main): Replace the non-simd loop with fib_ref call.
10551         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
10552         subroutine.
10553         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
10554         for the last array element value.  Replace the non-simd loop with
10555         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
10556         of the last array element with according Fibonacci sequence element.
10557         (fib): Correct corner cases in the recursion.
10559 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
10561         * target.c (gomp_offload_image_to_device): Rename to ...
10562         (gomp_load_image_to_device): ... here.
10563         (GOMP_offload_register): Adjust call.
10564         (gomp_init_device): Likewise.
10565         (gomp_unload_image_from_device): New.  Broken out of ...
10566         (GOMP_offload_unregister): ... here.  Call it.
10567         (gomp_unload_device): New.
10568         * libgomp.h (gomp_unload_device): Declare.
10569         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
10570         mem maps.
10572 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
10574         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
10575         wait=-specific if.
10576         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
10577         !=0 condition.
10578         (goacc_waits): Move !num_waits handling to ...
10579         (GOACC_wait): ... here, the only caller that might have zero waits.
10581         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
10582         (struct ptx_image_data): Move earlier, add fns field.
10583         (struct ptx_device): Add images and image_lock fields.
10584         (ptx_images, ptx_image_lock): Delete.
10585         (nvptx_open_device): Initialize images and image_lock fields.
10586         (nvptx_close_device): Destroy image_lock.
10587         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
10588         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
10589         fields.
10591 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
10593         * target.c (GOMP_offload_register): Use int for device type arg.
10594         (GOMP_offload_unregister): Likewise.
10596         * target.c (struct_offload_image_descr): Constify host_table.
10597         (gomp_offload_image_to_device): Likewise.
10598         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
10600         * libgomp.h (gomp_device_descr): Constify target data arguments.
10601         * target.c (struct offload_image_descr): Constify target_data.
10602         (gomp_offload_image_to_device): Likewise.
10603         (GOMP_offload_register): Likewise.
10604         (GOMP_offload_unregister): Likewise.
10605         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
10606         GOMP_OFFLOAD_unload_image): Constify target data.
10607         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
10608         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
10610 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
10612         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
10613         Workaround driver library const error.
10614         (struct nvptx_tdata, nvptx_tdata_t): New.
10615         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
10616         type.
10618 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10620         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
10621         of EPS parameter from integer to real.
10622         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
10623         type of EPS parameter from integer to real.
10625 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10627         * team.c (get_last_team): New.
10628         (gomp_new_team): Recycle last non-nested team if possible.
10629         (gomp_team_end): Move team work share list free lock destruction
10630         to ...
10631         (free_team): ... here.
10633 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10635         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
10636         and ref from int to double.  Replaced their comparison with
10637         an inequality of their difference and EPS.
10638         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
10639         comparison of pri and a reference number with an inequality of their
10640         difference and EPS.
10641         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
10642         the comparison of sum and sum_ref with an inequality of their
10643         difference and EPS.
10644         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
10645         the comparison of pri and a reference number with an inequality of
10646         their difference and EPS.
10648 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10650         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
10651         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
10652         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
10653         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
10654         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
10655         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
10656         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
10657         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
10658         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
10659         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
10660         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
10661         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
10662         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
10663         variables.
10664         (vec_mult): Likewise.  Add #pragma omp taskwait.
10665         (main): Adjust caller.
10666         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
10667         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
10668         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
10669         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
10670         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
10671         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
10672         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
10673         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
10674         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
10675         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
10676         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
10677         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
10678         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
10679         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
10680         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
10681         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
10682         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
10683         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
10684         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
10685         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
10686         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
10687         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
10688         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
10689         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
10690         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
10691         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
10692         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
10693         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
10694         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
10695         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
10696         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
10697         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
10698         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
10699         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
10700         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
10701         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
10702         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
10703         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
10704         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
10705         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
10706         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
10707         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
10708         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
10709         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
10710         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
10711         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
10712         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
10713         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
10714         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
10715         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
10716         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
10717         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
10718         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
10719         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
10720         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
10721         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
10722         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
10723         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
10724         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
10725         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
10726         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
10727         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
10728         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
10729         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
10730         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
10731         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
10732         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
10733         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
10734         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
10735         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
10736         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
10737         (vec_mult): Add !$omp taskwait.
10738         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
10739         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
10740         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
10741         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
10742         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
10743         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
10744         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
10745         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
10746         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
10747         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
10748         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
10749         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
10750         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
10751         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
10752         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
10753         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
10754         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
10755         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
10756         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
10757         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
10758         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
10759         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
10760         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
10761         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
10762         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
10763         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
10764         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
10765         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
10766         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
10767         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
10768         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
10769         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
10770         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
10771         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
10772         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
10773         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
10774         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
10775         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
10776         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
10777         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
10778         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
10779         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
10780         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
10781         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
10782         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
10783         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
10784         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
10785         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
10786         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
10787         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
10788         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
10789         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
10790         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
10791         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
10792         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
10793         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
10794         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
10795         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
10796         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
10797         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
10798         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
10799         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
10800         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
10801         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
10802         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
10803         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
10804         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
10806 2015-07-10  Tom de Vries  <tom@codesourcery.com>
10808         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
10809         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
10811 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
10813         PR libgomp/65099
10814         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
10815         in a 64-bit configuration.
10816         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
10817         offloading testing if no such device is available.
10818         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10819         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10821 2015-07-08  Tom de Vries  <tom@codesourcery.com>
10823         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
10824         second call to f.
10825         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10827 2015-07-07  Tom de Vries  <tom@codesourcery.com>
10829         PR tree-optimization/66642
10830         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
10831         iteration count case.
10832         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
10833         function, factor out of ...
10834         (main): ... here.  Test low iteration count case.
10836 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10838         * libgomp.h (gomp_thread_pool): Comment last_team field.
10840 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
10842         * testsuite/libgomp.c++/pr66702-1.C: Require
10843         vect_simd_clones effective target.
10844         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
10846 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10848         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
10849         already set.  Use DEFAULT_CFLAGS in dg-runtest.
10850         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
10851         "-O2".
10853 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10855         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
10856         already set.  Use DEFAULT_CFLAGS in dg-runtest.
10857         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
10858         * testsuite/libgomp.c++/pr64824.C: Same.
10859         * testsuite/libgomp.c++/pr64868.C: Same.
10860         * testsuite/libgomp.c++/pr66199-1.C: Same.
10861         * testsuite/libgomp.c++/pr66199-2.C: Same.
10862         * testsuite/libgomp.c++/target-2.C: Same.
10863         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
10864         -std=<standard> option.
10865         * testsuite/libgomp.c++/udr-11.C: Same.
10866         * testsuite/libgomp.c++/udr-12.C: Same.
10867         * testsuite/libgomp.c++/udr-13.C: Same.
10868         * testsuite/libgomp.c++/udr-14.C: Same.
10869         * testsuite/libgomp.c++/udr-15.C: Same.
10870         * testsuite/libgomp.c++/udr-16.C: Same.
10871         * testsuite/libgomp.c++/udr-17.C: Same.
10872         * testsuite/libgomp.c++/udr-18.C: Same.
10873         * testsuite/libgomp.c++/udr-19.C: Same.
10874         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
10875         * testsuite/libgomp.c++/simd-1.C: Same.
10876         * testsuite/libgomp.c++/simd-2.C: Same.
10877         * testsuite/libgomp.c++/simd-3.C: Same.
10878         * testsuite/libgomp.c++/simd-4.C: Same.
10879         * testsuite/libgomp.c++/simd-5.C: Same.
10880         * testsuite/libgomp.c++/simd-6.C: Same.
10881         * testsuite/libgomp.c++/simd-7.C: Same.
10882         * testsuite/libgomp.c++/simd-8.C: Same.
10883         * testsuite/libgomp.c++/simd-9.C: Same.
10884         * testsuite/libgomp.c++/simd10.C: Same.
10885         * testsuite/libgomp.c++/simd11.C: Same.
10886         * testsuite/libgomp.c++/simd12.C: Same.
10887         * testsuite/libgomp.c++/simd13.C: Same.
10889 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
10891         PR middle-end/66702
10892         * testsuite/libgomp.c++/pr66702-1.C: New test.
10893         * testsuite/libgomp.c++/pr66702-2.C: New test.
10895 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10897         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
10898         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
10899         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
10900         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
10902 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10904         PR tree-optimization/66652
10905         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
10906         using restrict pointers.
10907         (main): Add arguments to calls to f.
10908         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10910 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
10912         * configure.ac: Fix check for header <sys/sysctl.h>.
10913         * configure: Regenerate.
10914         * config.h.in: Likewise.
10916 2015-06-23  Tom de Vries  <tom@codesourcery.com>
10918         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
10919         abort.
10920         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
10922 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
10924         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
10925         acc_device_nvidia.
10927         PR libgomp/66518
10928         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
10929         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10931 2015-06-15  Tom de Vries  <tom@codesourcery.com>
10933         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
10934         dg-additional-options for any remaining options.
10935         * testsuite/libgomp.c/atomic-2.c: Same.
10936         * testsuite/libgomp.c/atomic-4.c: Same.
10937         * testsuite/libgomp.c/atomic-5.c: Same.
10938         * testsuite/libgomp.c/atomic-6.c: Same.
10939         * testsuite/libgomp.c/autopar-1.c: Same.
10940         * testsuite/libgomp.c/copyin-1.c: Same.
10941         * testsuite/libgomp.c/copyin-2.c: Same.
10942         * testsuite/libgomp.c/copyin-3.c: Same.
10943         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
10944         * testsuite/libgomp.c/nestedfn-5.c: Same.
10945         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
10946         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
10947         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
10948         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10949         * testsuite/libgomp.c/pr32362-1.c: Same.
10950         * testsuite/libgomp.c/pr32362-2.c: Same.
10951         * testsuite/libgomp.c/pr32362-3.c: Same.
10952         * testsuite/libgomp.c/pr39591-1.c: Same.
10953         * testsuite/libgomp.c/pr39591-2.c: Same.
10954         * testsuite/libgomp.c/pr39591-3.c: Same.
10955         * testsuite/libgomp.c/pr58392.c: Same.
10956         * testsuite/libgomp.c/pr58756.c: Same.
10957         * testsuite/libgomp.c/simd-1.c: Same.
10958         * testsuite/libgomp.c/simd-10.c: Same.
10959         * testsuite/libgomp.c/simd-11.c: Same.
10960         * testsuite/libgomp.c/simd-12.c: Same.
10961         * testsuite/libgomp.c/simd-13.c: Same.
10962         * testsuite/libgomp.c/simd-14.c: Same.
10963         * testsuite/libgomp.c/simd-15.c: Same.
10964         * testsuite/libgomp.c/simd-2.c: Same.
10965         * testsuite/libgomp.c/simd-3.c: Same.
10966         * testsuite/libgomp.c/simd-4.c: Same.
10967         * testsuite/libgomp.c/simd-5.c: Same.
10968         * testsuite/libgomp.c/simd-6.c: Same.
10969         * testsuite/libgomp.c/simd-7.c: Same.
10970         * testsuite/libgomp.c/simd-8.c: Same.
10971         * testsuite/libgomp.c/simd-9.c: Same.
10973 2015-06-15  Tom de Vries  <tom@codesourcery.com>
10975         * testsuite/libgomp.c/pr35625.c: Fix typo.
10977 2015-06-15  Tom de Vries  <tom@codesourcery.com>
10979         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
10980         in dg-options.
10981         * testsuite/libgomp.c/atomic-3.c: Same.
10982         * testsuite/libgomp.c/debug-1.c: Same.
10983         * testsuite/libgomp.c/nqueens-1.c: Same.
10984         * testsuite/libgomp.c/pr26171.c: Same.
10985         * testsuite/libgomp.c/pr48591.c: Same.
10986         * testsuite/libgomp.c/pr64824.c: Same.
10987         * testsuite/libgomp.c/pr64868.c: Same.
10988         * testsuite/libgomp.c/pr66133.c: Same.
10989         * testsuite/libgomp.c/pr66199-1.c: Same.
10990         * testsuite/libgomp.c/pr66199-2.c: Same.
10991         * testsuite/libgomp.c/target-8.c: Same.
10993 2015-06-15  Tom de Vries  <tom@codesourcery.com>
10995         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
10996         -std={gnu99,c99}.
10997         * testsuite/libgomp.c/for-1.c: Same.
10998         * testsuite/libgomp.c/for-2.c: Same.
10999         * testsuite/libgomp.c/for-3.c: Same.
11000         * testsuite/libgomp.c/pr35625.c: Same.
11001         * testsuite/libgomp.c/pr39154.c: Same.
11002         * testsuite/libgomp.c/simd-16.c: Same.
11003         * testsuite/libgomp.c/simd-17.c: Same.
11005 2015-06-13  Tom de Vries  <tom@codesourcery.com>
11007         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
11009 2015-06-13  Tom de Vries  <tom@codesourcery.com>
11011         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
11012         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
11013         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
11014         (N): Define.
11015         (main): Use N instead of hardcoded constants.
11017 2015-06-05  Tom de Vries  <tom@codesourcery.com>
11019         merge from gomp4 branch:
11020         2015-05-28  Tom de Vries  <tom@codesourcery.com>
11022         PR tree-optimization/65443
11023         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
11024         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
11025         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
11027 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11029         * testsuite/libgomp.graphite/bounds.c: Adjust for
11030         cleanup-tree-dump removal.
11031         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
11032         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
11033         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
11034         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
11035         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
11036         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
11037         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
11038         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
11039         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
11040         * testsuite/libgomp.graphite/pr41118.c: Likewise.
11042 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
11044         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
11045         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
11046         (futex_wake) [!__x86_64__]: Ditto.
11048 2015-05-28  Julian Brown  <julian@codesourcery.com>
11050         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
11051         function comment. Only call gomp_fatal if new argument is true.
11052         (acc_dev_num_out_of_range): New function.
11053         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
11054         acc_dev_num_out_of_range as appropriate.
11055         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
11056         (acc_get_device_num, acc_set_device_num): Update calls to
11057         resolve_device.
11058         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
11059         output.
11061 2015-05-28  Julian Brown  <julian@codesourcery.com>
11063         PR libgomp/65742
11064         * oacc-init.c (plugin/plugin-host.h): Include.
11065         (acc_on_device): Check whether we're in an offloaded region for
11066         host_nonshm
11067         plugin. Don't use __builtin_acc_on_device.
11068         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
11069         nonshm_exec flag in thread-local data.
11070         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
11071         data for host_nonshm plugin.
11072         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
11073         for host_nonshm plugin.
11074         * plugin/plugin-host.h: New.
11076 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
11078         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
11080 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
11082         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
11083         Declare as int.
11084         (FUTEX_PRIVATE_FLAG): Remove L suffix.
11085         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
11086         Declare as int.
11088 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
11090         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
11092 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
11094         * target.c (gomp_map_pointer): New function abstracting out
11095         GOMP_MAP_POINTER handling.
11096         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
11097         gomp_map_pointer().
11099 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
11101         PR middle-end/66199
11102         * testsuite/libgomp.c/pr66199-1.c: New test.
11103         * testsuite/libgomp.c/pr66199-2.c: New test.
11104         * testsuite/libgomp.c++/pr66199-1.C: New test.
11105         * testsuite/libgomp.c++/pr66199-2.C: New test.
11106         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
11107         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
11109 2015-05-19  Julian Brown  <julian@codesourcery.com>
11111         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
11112         on cuInit failure.
11114 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
11116         PR middle-end/66133
11117         * testsuite/libgomp.c/pr66133.c: New test.
11119 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
11121         * Makefile.in: Regenerated with automake-1.11.6.
11122         * aclocal.m4: Likewise.
11123         * config.h.in: Likewise.
11124         * configure: Likewise.
11125         * testsuite/Makefile.in: Likewise.
11127 2015-05-08  Jason Merrill  <jason@redhat.com>
11129         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
11130         _Complex.
11132         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
11134 2015-05-06  Julian Brown  <julian@codesourcery.com>
11136         * oacc-init.c (acc_device_lock): Add explanatory comment.
11137         (resolve_device): Add comment about locking requirement.
11138         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
11139         gomp_init_device and gomp_fini_device calls.
11140         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
11141         (acc_get_device_num, acc_set_device_num): Add locking around
11142         resolve_device and gomp_init_device calls.
11144 2015-05-06  Julian Brown  <julian@codesourcery.com>
11146         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
11147         goacc_thread_lock on error paths.
11148         * oacc-mem.c (lookup_host): Remove locking from function. Note
11149         locking requirement for caller in function comment.
11150         (lookup_dev): Likewise.
11151         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
11152         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
11153         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
11154         Add locking.
11156 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
11158         PR testsuite/65205
11159         PR libgomp/65993
11160         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
11161         don't expect "0x" prefix for "%p" format specifier, don't expect
11162         "(nil)" for NULL pointer.
11163         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11164         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11165         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11166         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11167         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11168         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11169         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11170         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11171         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11172         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11173         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11174         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11175         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11176         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11177         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11178         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11179         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11180         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11181         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11182         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11183         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11184         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11185         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11186         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11187         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11188         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11189         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11190         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11191         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
11192         accurately specify what we're looking for.
11193         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11194         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11195         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11196         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11197         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11199 2015-04-30  James Norris  <jnorris@codesourcery.com>
11201         PR testsuite/65205
11202         * testsuite/lib/libgomp.exp
11203         (check_effective_target_openacc_host_selected)
11204         (check_effective_target_openacc_host_nonshm_selected): New
11205         procedures.
11206         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
11207         dg-shouldfail.
11208         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11209         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11210         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11211         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11212         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11213         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11214         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11215         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11216         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11217         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11218         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11219         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11220         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11221         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11222         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11223         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11224         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11225         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11226         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11227         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11228         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11229         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11230         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11231         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11232         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11233         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11234         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11235         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11236         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11237         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11238         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11239         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11240         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11241         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11242         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11243         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11244         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11245         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11246         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11247         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11248         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11249         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11250         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11252 2015-04-08  Julian Brown  <julian@codesourcery.com>
11254         * libgomp.h (target_mem_desc: Remove mem_map field.
11255         (acc_dispatch_t): Remove open_device_func, close_device_func,
11256         get_device_num_func, set_device_num_func, target_data members.
11257         Change create_thread_data_func argument to device number instead of
11258         generic pointer.
11259         * oacc-async.c (assert.h): Include.
11260         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
11261         (acc_wait_all, acc_wait_all_async): Use current host thread's
11262         active device, not base_dev.
11263         * oacc-cuda.c (acc_get_current_cuda_device)
11264         (acc_get_current_cuda_context, acc_get_cuda_stream)
11265         (acc_set_cuda_stream): Likewise.
11266         * oacc-host.c (host_dispatch): Don't set open_device_func,
11267         close_device_func, get_device_num_func or set_device_num_func.
11268         * oacc-init.c (base_dev, init_key): Remove.
11269         (cached_base_dev): New.
11270         (name_of_acc_device_t): New.
11271         (acc_init_1): Initialise default-numbered device, not zeroth.
11272         (acc_shutdown_1): Close all devices of a given type.
11273         (goacc_destroy_thread): Don't use base_dev.
11274         (lazy_open, lazy_init, lazy_init_and_open): Remove.
11275         (goacc_attach_host_thread_to_device): New.
11276         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
11277         (acc_get_num_devices): Don't use base_dev.
11278         (acc_set_device_type): Reimplement.
11279         (acc_get_device_type): Don't use base_dev.
11280         (acc_get_device_num): Tweak logic.
11281         (acc_set_device_num): Likewise.
11282         (acc_on_device): Use acc_get_device_type.
11283         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
11284         (goacc_lazy_initialize): Reimplement with acc_init and
11285         goacc_attach_host_thread_to_device.
11286         * oacc-int.h (goacc_thread): Add base_dev field.
11287         (base_dev): Remove extern declaration.
11288         (goacc_attach_host_thread_to_device): Add prototype.
11289         * oacc-mem.c (acc_malloc): Use current thread's device instead of
11290         base_dev.
11291         (acc_free): Likewise.
11292         (acc_memcpy_to_device): Likewise.
11293         (acc_memcpy_from_device): Likewise.
11294         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
11295         goacc_lazy_initialize (throughout).
11296         (GOACC_parallel): Use tgt_offset to locate target functions.
11297         * target.c (gomp_map_vars): Don't set tgt->mem_map.
11298         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
11299         (gomp_load_plugin_for_device): Remove open_device, close_device,
11300         get_device_num, set_device_num openacc hook initialisation. Don't set
11301         openacc.target_data.
11302         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
11303         (GOMP_OFFLOAD_openacc_close_device)
11304         (GOMP_OFFLOAD_openacc_get_device_num)
11305         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
11306         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
11307         to int.
11308         * plugin/plugin-nvptx.c (ptx_inited): Remove.
11309         (instantiated_devices, ptx_dev_lock): New.
11310         (struct ptx_image_data): New.
11311         (ptx_devices, ptx_images, ptx_image_lock): New.
11312         (fini_streams_for_device): Reorder cuStreamDestroy call.
11313         (nvptx_get_num_devices): Remove forward declaration.
11314         (nvptx_init): Change return type to bool.
11315         (nvptx_fini): Remove.
11316         (nvptx_attach_host_thread_to_device): New.
11317         (nvptx_open_device): Return struct ptx_device* instead of void*.
11318         (nvptx_close_device): Change argument type to struct ptx_device*,
11319         return type to void.
11320         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
11321         (kernel_target_data, kernel_host_table): Remove static globals.
11322         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
11323         (GOMP_OFFLOAD_init_device): Reimplement.
11324         (GOMP_OFFLOAD_fini_device): Likewise.
11325         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
11326         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
11327         (GOMP_OFFLOAD_host2dev): Use ORD argument.
11328         (GOMP_OFFLOAD_openacc_open_device)
11329         (GOMP_OFFLOAD_openacc_close_device)
11330         (GOMP_OFFLOAD_openacc_set_device_num)
11331         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
11332         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
11333         (device number).
11335         testsuite/
11336         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
11338 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
11340         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
11341         * libgomp.h (struct gomp_memory_mapping): Remove.
11342         (struct target_mem_desc): Change type of mem_map from
11343         gomp_memory_mapping * to splay_tree_s *.
11344         (struct gomp_device_descr): Remove register_image_func, get_table_func.
11345         Add load_image_func, unload_image_func.
11346         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
11347         Remove offload_regions_registered.
11348         (gomp_init_tables): Remove.
11349         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
11350         to splay_tree_s *.
11351         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
11352         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
11353         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
11354         offload_regions_registered.
11355         Initialize load_image_func, unload_image_func, mem_map.root.
11356         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
11357         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
11358         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
11359         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
11360         gomp_memory_mapping *.  Use dev's lock and splay_tree.
11361         (lookup_dev): Use dev's lock.
11362         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
11363         (acc_is_present): Likewise.
11364         (acc_map_data): Likewise.
11365         (acc_unmap_data): Likewise.  Use dev's lock.
11366         (present_create_copy): Likewise.
11367         (delete_copyout): Pass dev to lookup_host instead of mem_map.
11368         (update_dev_host): Likewise.
11369         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
11370         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
11371         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
11372         (GOMP_OFFLOAD_get_table): Remove
11373         (GOMP_OFFLOAD_load_image): New function.
11374         (GOMP_OFFLOAD_unload_image): New function.
11375         * target.c (register_lock): New mutex for offload image registration.
11376         (num_devices): Do not guard with PLUGIN_SUPPORT.
11377         (gomp_realloc_unlock): New static function.
11378         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
11379         before gomp_fatal.
11380         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
11381         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
11382         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
11383         mem_map's.
11384         (gomp_unmap_vars): Likewise.
11385         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
11386         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
11387         (gomp_offload_image_to_device): New static function.
11388         (GOMP_offload_register): Add mutex lock.
11389         Call gomp_offload_image_to_device for all initialized devices.
11390         Replace gomp_realloc with gomp_realloc_unlock.
11391         (GOMP_offload_unregister): New function.
11392         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
11393         get_table_func from the plugin with calls to init_device_func and
11394         gomp_offload_image_to_device.
11395         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
11396         to splay_tree_s *.
11397         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
11398         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
11399         (GOMP_target_data): Do not call gomp_init_tables.
11400         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
11401         (gomp_load_plugin_for_device): Replace register_image and get_table
11402         with load_image and unload_image in DLSYM ().
11403         (gomp_register_images_for_device): Remove function.
11404         (gomp_target_init): Do not initialize current_device.mem_map.*,
11405         current_device.offload_regions_registered.
11406         Remove call to gomp_register_images_for_device.
11407         Do not free offload_images and num_offload_images.
11409 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
11411         PR fortran/65597
11412         * testsuite/libgomp.fortran/pr65597.f90: New test.
11414 2015-03-27  Tom de Vries  <tom@codesourcery.com>
11416         PR testsuite/65594
11417         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
11418         (init, check): New function.
11419         (foo): Change return type to void.
11420         (main): Call init and check.
11422 2015-03-27  Tom de Vries  <tom@codesourcery.com>
11424         PR testsuite/65594
11425         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
11426         (foo): Use M for non-inner loops to scale down test-case.
11428 2015-03-25  Kai Tietz  <ktietz@redhat.com>
11430         PR libgomp/64972
11431         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
11432         (GOACC_data_start): Likewise.
11433         * target.c (gomp_map_vars): Likewise.
11435 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
11437         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
11438         hppa*-*-hpux*.
11440 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
11442         * testsuite/libgomp.c/target-10.c: New test.
11443         * testsuite/libgomp.c++/target-4.C: New test.
11445 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
11447         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
11448         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
11450 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11452         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
11453         * configure.ac (*-*-rtems*): Assume Pthread is supported.
11454         (pthread.h): Check for this header file.
11455         * configure: Regenerate.
11457 2015-02-25  Tom de Vries  <tom@codesourcery.com>
11459         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
11460         (check_reduction_op, check_reduction_macro, max, min):
11461         Declare.
11462         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
11463         function.
11464         (main): Use new functions.
11466 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
11468         * target.c (gomp_load_plugin_for_device): Use const char * instead of
11469         char * for variables holding dlerror return values.
11470         (DLSYM_OPT): Ditto.
11472 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
11474         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
11476 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
11477             Cesar Philippidis  <cesar@codesourcery.com>
11479         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
11480         GOACC_ctaid, and GOACC_nctaid routines.
11482 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
11484         PR c/64824
11485         * testsuite/libgomp.c/atomic-18.c: New test.
11486         * testsuite/libgomp.c++/atomic-16.C: New test.
11488 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
11490         PR c/64824
11491         PR c/64868
11492         * testsuite/libgomp.c/pr64824.c: New test.
11493         * testsuite/libgomp.c/pr64868.c: New test.
11494         * testsuite/libgomp.c++/pr64824.C: New test.
11495         * testsuite/libgomp.c++/pr64868.C: New test.
11497 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
11499         PR libgomp/64635
11500         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
11501         Link with -lpthread.
11502         * config/aix/plugin-suffix.h: Delete.
11504 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
11506         PR libgomp/64635
11507         * configure.tgt (*-*-aix*): Use config_path "aix posix".
11508         (*-*-darwin*): Use config_path "bsd darwin posix".
11509         (*-*-hpux*): Use config_path "hpux posix".
11510         * target.c: Add include of plugin-suffix.h and use
11511         SONAME_SUFFIX macro.
11512         * config/aix/plugin-suffix.h: New file.
11513         * config/darwin/plugin-suffix.h: New file.
11514         * config/hpux/plugin-suffix.h: New file.
11515         * config/posix/plugin-suffix.h: New file.
11517 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
11519         PR middle-end/64734
11520         * libgomp.c/pr64734.c: New test.
11522 2015-01-23  Tom de Vries  <tom@codesourcery.com>
11524         PR libgomp/64672
11525         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
11527 2015-01-23  Tom de Vries  <tom@codesourcery.com>
11529         PR libgomp/64707
11530         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
11531         dg-options.
11533 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
11535         PR libgomp/64625
11536         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
11537         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
11538         formal parameter.  Update all users.
11539         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
11540         Document unused formal parameter.
11542 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
11544         * oacc-parallel.c: Don't include <alloca.h>.
11545         (GOACC_parallel): Use gomp_alloca instead of alloca.
11547 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
11549         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
11551 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
11552             James Norris  <jnorris@codesourcery.com>
11553             Tom de Vries  <tom@codesourcery.com>
11554             Julian Brown  <julian@codesourcery.com>
11555             Cesar Philippidis  <cesar@codesourcery.com>
11556             Nathan Sidwell  <nathan@codesourcery.com>
11557             Tobias Burnus  <burnus@net-b.de>
11559         * Makefile.am (search_path): Add $(top_srcdir)/../include.
11560         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
11561         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
11562         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
11563         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
11564         Include $(top_srcdir)/plugin/Makefrag.am.
11565         (nodist_libsubinclude_HEADERS): Add openacc.h.
11566         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
11567         openacc.f90, openacc.mod, openacc_kinds.mod.
11568         (omp_lib.mod): Generalize into...
11569         (%.mod): ... this new rule.
11570         (openacc_kinds.mod, openacc.mod): New rules.
11571         * plugin/configfrag.ac: New file.
11572         * configure.ac: Move plugin/offloading support into it.  Include
11573         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
11574         * plugin/Makefrag.am: New file.
11575         * testsuite/Makefile.am (OFFLOAD_TARGETS)
11576         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
11577         export.
11578         (libgomp-test-support.exp): New rule.
11579         (all-local): Depend on it.
11580         * Makefile.in: Regenerate.
11581         * testsuite/Makefile.in: Regenerate.
11582         * config.h.in: Likewise.
11583         * configure: Likewise.
11584         * configure.tgt: Harden shell syntax.
11585         * env.c: Include "oacc-int.h".
11586         (parse_acc_device_type): New function.
11587         (gomp_debug_var, goacc_device_type, goacc_device_num): New
11588         variables.
11589         (initialize_env): Initialize those.  Call
11590         goacc_runtime_initialize.
11591         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
11592         (gomp_fatal): Call gomp_vfatal.
11593         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
11594         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
11595         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
11596         (splay_tree_node, splay_tree, splay_tree_key)
11597         (struct target_mem_desc, struct splay_tree_key_s)
11598         (struct gomp_memory_mapping, struct acc_dispatch_t)
11599         (struct gomp_device_descr, gomp_acc_insert_pointer)
11600         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
11601         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
11602         (gomp_free_memmap, gomp_fini_device): New declarations.
11603         (gomp_vdebug, gomp_debug): New macros.
11604         Include "splay-tree.h".
11605         * libgomp.map (OACC_2.0): New symbol version.  Use for
11606         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
11607         acc_set_device_type_h_, acc_get_device_type,
11608         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
11609         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
11610         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
11611         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
11612         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
11613         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
11614         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
11615         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
11616         acc_copyin_array_h_, acc_present_or_copyin,
11617         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
11618         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
11619         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
11620         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
11621         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
11622         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
11623         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
11624         acc_update_device, acc_update_device_32_h_,
11625         acc_update_device_64_h_, acc_update_device_array_h_,
11626         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
11627         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
11628         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
11629         acc_is_present_64_h_, acc_is_present_array_h_,
11630         acc_memcpy_to_device, acc_memcpy_from_device,
11631         acc_get_current_cuda_device, acc_get_current_cuda_context,
11632         acc_get_cuda_stream, acc_set_cuda_stream.
11633         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
11634         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
11635         GOACC_update, GOACC_wait, GOACC_get_thread_num,
11636         GOACC_get_num_threads.
11637         (GOMP_PLUGIN_1.0): New symbol version.  Use for
11638         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
11639         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
11640         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
11641         GOMP_PLUGIN_acc_thread.
11642         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
11643         environment variable.
11644         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
11645         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
11646         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
11647         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
11648         (splay_tree_remove): New declarations.
11649         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
11650         (splay_tree_remove, splay_tree_lookup): Move into...
11651         * splay-tree.c: ... this new file.
11652         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
11653         (splay_tree_node, splay_tree, splay_tree_key)
11654         (struct target_mem_desc, struct splay_tree_key_s)
11655         (struct gomp_device_descr): Don't declare.
11656         (num_devices_openmp): New variable.
11657         (gomp_get_num_devices ): Use it.
11658         (gomp_init_targets_once): New function.
11659         (gomp_get_num_devices ): Use it.
11660         (get_kind, gomp_copy_from_async, gomp_free_memmap)
11661         (gomp_fini_device, gomp_register_image_for_device): New functions.
11662         (gomp_map_vars): Add devaddrs parameter.
11663         (gomp_update): Add mm parameter.
11664         (gomp_init_device): Move most of it into...
11665         (gomp_init_tables): ... this new function.
11666         (gomp_register_images_for_device): Remove function.
11667         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
11668         Make them hidden instead of static.
11669         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
11670         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
11671         (GOMP_target_end_data, GOMP_target_update)
11672         (gomp_load_plugin_for_device, gomp_target_init): Update for
11673         OpenACC changes.
11674         * oacc-async.c: New file.
11675         * oacc-cuda.c: Likewise.
11676         * oacc-host.c: Likewise.
11677         * oacc-init.c: Likewise.
11678         * oacc-int.h: Likewise.
11679         * oacc-mem.c: Likewise.
11680         * oacc-parallel.c: Likewise.
11681         * oacc-plugin.c: Likewise.
11682         * oacc-plugin.h: Likewise.
11683         * oacc-ptx.h: Likewise.
11684         * openacc.f90: Likewise.
11685         * openacc.h: Likewise.
11686         * openacc_lib.h: Likewise.
11687         * plugin/plugin-host.c: Likewise.
11688         * plugin/plugin-nvptx.c: Likewise.
11689         * libgomp-plugin.c: Likewise.
11690         * libgomp-plugin.h: Likewise.
11691         * libgomp_target.h: Remove file after merging content into the
11692         former file.  Update all users.
11693         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
11694         (offload_targets_s, offload_targets_s_openacc): New variables.
11695         (check_effective_target_openacc_nvidia_accel_present)
11696         (check_effective_target_openacc_nvidia_accel_selected): New
11697         procedures.
11698         (libgomp_init): Update for OpenACC changes.
11699         * testsuite/libgomp-test-support.exp.in: New file.
11700         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
11701         * testsuite/libgomp.oacc-c/c.exp: Likewise.
11702         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
11703         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
11704         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
11705         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
11706         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
11707         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
11708         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
11709         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
11710         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
11711         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
11712         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
11713         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11714         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
11715         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
11716         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
11717         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
11718         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
11719         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
11720         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
11721         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
11722         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
11723         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
11724         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11725         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11726         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11727         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11728         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11729         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11730         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11731         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
11732         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
11733         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
11734         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
11735         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11736         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
11737         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11738         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
11739         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
11740         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
11741         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
11742         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11743         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11744         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11745         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
11746         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11747         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11748         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11749         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11750         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11751         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
11752         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11753         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11754         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11755         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11756         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11757         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11758         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11759         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
11760         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11761         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
11762         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11763         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11764         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11765         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
11766         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
11767         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11768         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11769         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11770         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
11771         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11772         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11773         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11774         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
11775         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
11776         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11777         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11778         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
11779         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
11780         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
11781         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
11782         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11783         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11784         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11785         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
11786         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
11787         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11788         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11789         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
11790         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
11791         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
11792         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
11793         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11794         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11795         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11796         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11797         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
11798         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11799         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11800         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
11801         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
11802         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
11803         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11804         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
11805         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
11806         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
11807         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
11808         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
11809         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11810         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
11811         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
11812         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11813         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
11814         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
11815         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11816         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
11817         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
11818         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
11819         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
11820         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
11821         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
11822         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
11823         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
11824         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
11825         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
11826         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
11827         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
11828         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
11829         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
11830         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
11831         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
11832         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11833         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
11834         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
11835         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11836         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11837         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11838         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11839         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
11840         Likewise.
11841         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
11842         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
11843         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
11844         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
11845         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
11846         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11847         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11848         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11849         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11850         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11851         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11852         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11853         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11854         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11855         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11856         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11857         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11858         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11859         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11860         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11861         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11862         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11863         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11864         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11865         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11866         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11867         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11868         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11869         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11870         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11871         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11872         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11873         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11874         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11875         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11876         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11877         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11878         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11879         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11880         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11881         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11882         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11883         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11884         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11885         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11886         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11887         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11888         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11889         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11890         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11891         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11892         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11893         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11894         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11895         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11896         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11897         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11898         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11899         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11900         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11902 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
11903             Julian Brown  <julian@codesourcery.com>
11904             David Malcolm  <dmalcolm@redhat.com>
11906         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
11907         to "GNU Offloading and Multi Processing Runtime Library".  Change
11908         all users.
11909         * configure: Regenerate.
11910         * libgomp.texi: Update.
11912 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
11914         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
11915         "$tgt_dir/lib32".
11916         * configure: Regenerate.
11918         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
11919         "intelmic" in $offload_targets.
11921 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
11923         Update copyright years.
11925         * libgomp.texi: Bump @copying's copyright year.
11927 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11929         * testsuite/lib/libgomp.exp: Load target-utils.exp.
11930         Move load of target-supports.exp earlier.
11932 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
11934         * testsuite/libgomp.c/target-9.c: New test.
11936 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
11938         * config.h.in: Regenerate.
11939         * configure: Regenerate.
11940         * configure.ac: Add GCC_CHECK_EMUTLS.
11941         * libgomp.h: Add check for USE_EMUTLS: this case
11942         is equal to HAVE_TLS.
11943         * team.c: Likewise.
11945 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
11947         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
11949 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
11950             Ilya Verbin  <ilya.verbin@intel.com>
11952         * testsuite/libgomp.c/target-critical-1.c: New test.
11954 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
11956         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
11957         to dg-options unless expensive testing is on.
11958         (TESTITERS): Define to N if not defined.
11959         (main): Use TESTITERS instead of N.
11960         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
11961         dg-additional-options depending on whether expensive testing is on.
11962         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
11963         Decrease N to 100000 and CHUNKSZ to 10000.
11965 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
11967         PR fortran/63938
11968         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
11969         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
11971 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
11973         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
11975 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
11977         PR bootstrap/63784
11978         * configure: Regenerated.
11980 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
11982         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
11983         vect_simd_clones effective target.
11984         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
11986 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
11988         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
11989         of 32 as block_size.
11990         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
11991         instead of 32 as block_size.
11993 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
11994             Ilya Verbin  <ilya.verbin@intel.com>
11996         * Makefile.in: Regenerate.
11997         * configure: Regenerate.
11998         * configure.ac: Set up offload_additional_options,
11999         offload_additional_lib_paths and offload_targets.
12000         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
12001         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
12002         * testsuite/Makefile.in: Regenerate.
12003         * testsuite/lib/libgomp.exp (libgomp_init): Append
12004         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
12005         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
12006         build directory to LD_LIBRARY_PATH for intelmic offload targets.
12008 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
12009             Ilya Verbin  <ilya.verbin@intel.com>
12010             Kirill Yukhin  <kirill.yukhin@intel.com>
12011             Ilya Tocar  <ilya.tocar@intel.com>
12013         * testsuite/lib/libgomp.exp
12014         (check_effective_target_offload_device): New.
12015         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
12016         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
12017         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
12018         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
12019         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
12020         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
12021         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
12022         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
12023         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
12024         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
12025         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
12026         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
12027         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
12028         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
12029         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
12030         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
12031         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
12032         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
12033         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
12034         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
12035         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
12036         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
12037         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
12038         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
12039         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
12040         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
12041         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
12042         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
12043         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
12044         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
12045         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
12046         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
12047         * testsuite/libgomp.c/target-7.c: Fix test.
12048         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
12049         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
12050         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
12051         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
12052         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
12053         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
12054         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
12055         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
12056         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
12057         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
12058         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
12059         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
12060         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
12061         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
12062         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
12063         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
12064         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
12065         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
12066         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
12067         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
12068         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
12069         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
12070         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
12071         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
12072         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
12073         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
12074         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
12075         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
12076         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
12077         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
12078         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
12080 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
12081             Ilya Verbin  <ilya.verbin@intel.com>
12082             Thomas Schwinge  <thomas@codesourcery.com>
12083             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12085         * libgomp.map (GOMP_4.0.1): New symbol version.
12086         Add GOMP_offload_register.
12087         * libgomp_target.h: New file.
12088         * splay-tree.h: New file.
12089         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
12090         (gomp_target_init): New forward declaration.
12091         (gomp_is_initialized): New static variable.
12092         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
12093         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
12094         New structures.
12095         (offload_images, num_offload_images, devices, num_devices): New static
12096         variables.
12097         (splay_compare): New static function.
12098         (struct gomp_device_descr): New structure.
12099         (gomp_get_num_devices): Call gomp_target_init.
12100         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
12101         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
12102         (GOMP_offload_register): New function.
12103         (GOMP_target): Arrange for host callback to be performed in a separate
12104         initial thread and contention group, inheriting ICVs from
12105         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
12106         Add device initialization and lookup for target function in splay tree.
12107         (GOMP_target_data): Add device initialization and call gomp_map_vars.
12108         (GOMP_target_end_data): Call gomp_unmap_vars.
12109         (GOMP_target_update): Add device initialization and call gomp_update.
12110         (gomp_load_plugin_for_device, gomp_register_images_for_device)
12111         (gomp_target_init): New static functions.
12113 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
12114             Thomas Schwinge  <thomas@codesourcery.com>
12115             Ilya Verbin  <ilya.verbin@intel.com>
12116             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12118         * config.h.in: Regenerate.
12119         * configure: Regenerate.
12120         * configure.ac: Check for libdl, required for plugin support.
12121         (PLUGIN_SUPPORT): Define if plugins are supported.
12122         (enable_offload_targets): Support Intel MIC targets.
12123         (OFFLOAD_TARGETS): List of target names suitable for offloading.
12125 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12127         PR target/63610
12128         * configure: Regenerate.
12130 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12132         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
12134 2014-10-06  Marek Polacek  <polacek@redhat.com>
12136         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
12137         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
12138         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
12139         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
12141 2014-10-06  Marek Polacek  <polacek@redhat.com>
12143         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
12144         * testsuite/libgomp.c/nqueens-1.c: Likewise.
12145         * testsuite/libgomp.c/pr26943-3.c: Likewise.
12146         * testsuite/libgomp.c/pr26943-4.c: Likewise.
12147         * testsuite/libgomp.c/pr36802-2.c: Likewise.
12148         * testsuite/libgomp.c/pr36802-3.c: Likewise.
12149         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
12150         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
12151         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
12152         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
12153         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
12154         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
12155         * testsuite/libgomp.c/omp-single-1.c: Likewise.
12156         * testsuite/libgomp.c/omp-single-2.c: Likewise.
12157         * testsuite/libgomp.c/omp_matvec.c: Likewise.
12158         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
12159         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
12160         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
12161         declarations.
12163 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
12165         PR libgomp/61200
12166         * testsuite/libgomp.c/pr61200.c: New test.
12168 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
12170         PR c++/63248
12171         * testsuite/libgomp.c++/pr63248.C: New test.
12173 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
12175         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
12176         is not zero, but taskgroup->children is NULL and there are
12177         any task->children, schedule those instead of waiting.
12178         * testsuite/libgomp.c/depend-6.c: New test.
12179         * testsuite/libgomp.c/depend-7.c: New test.
12180         * testsuite/libgomp.c/depend-8.c: New test.
12181         * testsuite/libgomp.c/depend-9.c: New test.
12182         * testsuite/libgomp.c/depend-10.c: New test.
12184 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
12186         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
12187         (struct gomp_taskwait): New type.
12188         (struct gomp_task): Add taskwait and parent_depends_on, remove
12189         in_taskwait and taskwait_sem fields.
12190         (gomp_finish_task): Don't destroy taskwait_sem.
12191         * task.c (gomp_init_task): Don't init in_taskwait, instead init
12192         taskwait and parent_depends_on.
12193         (GOMP_task): For if (0) tasks with depend clause that depend on
12194         earlier tasks don't defer them, instead call
12195         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
12196         Initialize redundant_out field, for redundant out entries just
12197         move them at the end of linked list instead of removing them
12198         completely, and set redundant_out flag instead of redundant.
12199         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
12200         that task.
12201         (gomp_task_run_post_handle_dependers): If parent is in
12202         gomp_task_maybe_wait_for_dependencies and newly runnable task
12203         is not parent_depends_on, queue it in parent->children linked
12204         list after all runnable tasks with parent_depends_on set.
12205         Adjust for addition of taskwait indirection.
12206         (gomp_task_run_post_remove_parent): If parent is in
12207         gomp_task_maybe_wait_for_dependencies and task to be removed
12208         is parent_depends_on, decrement n_depend and if needed awake
12209         parent.  Adjust for addition of taskwait indirection.
12210         (GOMP_taskwait): Adjust for addition of taskwait indirection.
12211         (gomp_task_maybe_wait_for_dependencies): New function.
12212         * testsuite/libgomp.c/depend-5.c: New test.
12214 2014-07-13  Tobias Burnus  <burnus@net-b.de>
12216         * testsuite/libgomp.fortran/pr34020.f90: Make compile
12217         with TS 18508/Fortran 2015.
12219 2014-07-06  Marek Polacek  <polacek@redhat.com>
12221         PR c/6940
12222         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
12224 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
12226         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
12227         matches regex $lang_source_re, add $lang_include_flags to options.
12228         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
12229         * testsuite/libgomp.c++/c++.exp: Likewise.
12230         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
12231         and lang_include_flags instead of adding -fintrinsic-modules-path= to
12232         ALWAYS_CFLAGS.
12233         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
12235 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
12237         * testsuite/libgomp.fortran/fortran.exp: Explain
12238         gfortran-dg-runtest usage.
12240 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
12242         * testsuite/libgomp.fortran/simd5.f90: New test.
12243         * testsuite/libgomp.fortran/simd6.f90: New test.
12244         * testsuite/libgomp.fortran/simd7.f90: New test.
12246 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
12248         * testsuite/libgomp.c/for-2.c: Define SC to static for
12249         #pragma omp for simd testing.
12250         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
12251         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
12252         SC macro.
12253         * testsuite/libgomp.c/simd-14.c: New test.
12254         * testsuite/libgomp.c/simd-15.c: New test.
12255         * testsuite/libgomp.c/simd-16.c: New test.
12256         * testsuite/libgomp.c/simd-17.c: New test.
12257         * testsuite/libgomp.c++/for-10.C: Define SC to static for
12258         #pragma omp for simd testing.
12259         * testsuite/libgomp.c++/simd10.C: New test.
12260         * testsuite/libgomp.c++/simd11.C: New test.
12261         * testsuite/libgomp.c++/simd12.C: New test.
12262         * testsuite/libgomp.c++/simd13.C: New test.
12264         * testsuite/libgomp.fortran/aligned1.f03: New test.
12265         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
12266         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
12267         tasks with !$omp parallel !$omp single.
12268         * testsuite/libgomp.fortran/target8.f90: New test.
12269         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
12270         not to use trim in the combiner, instead call elemental function.
12271         (fn): New elemental function.
12272         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
12273         Make elemental.
12274         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
12275         omp_in): Likewise.
12276         * testsuite/libgomp.fortran/udr12.f90: New test.
12277         * testsuite/libgomp.fortran/udr13.f90: New test.
12278         * testsuite/libgomp.fortran/udr14.f90: New test.
12279         * testsuite/libgomp.fortran/udr15.f90: New test.
12281 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
12283         * omp_lib.f90.in (openmp_version): Set to 201307.
12284         * omp_lib.h.in (openmp_version): Likewise.
12285         * testsuite/libgomp.c/target-8.c: New test.
12286         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
12287         and inbranch clauses.
12288         * testsuite/libgomp.fortran/depend-3.f90: New test.
12289         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
12290         openmp_version.
12291         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12292         * testsuite/libgomp.fortran/target1.f90: New test.
12293         * testsuite/libgomp.fortran/target2.f90: New test.
12294         * testsuite/libgomp.fortran/target3.f90: New test.
12295         * testsuite/libgomp.fortran/target4.f90: New test.
12296         * testsuite/libgomp.fortran/target5.f90: New test.
12297         * testsuite/libgomp.fortran/target6.f90: New test.
12298         * testsuite/libgomp.fortran/target7.f90: New test.
12300 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
12302         PR fortran/60928
12303         * testsuite/libgomp.fortran/allocatable9.f90: New test.
12304         * testsuite/libgomp.fortran/allocatable10.f90: New test.
12305         * testsuite/libgomp.fortran/allocatable11.f90: New test.
12306         * testsuite/libgomp.fortran/allocatable12.f90: New test.
12307         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
12308         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
12309         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
12310         * testsuite/libgomp.fortran/associate1.f90: New test.
12311         * testsuite/libgomp.fortran/associate2.f90: New test.
12312         * testsuite/libgomp.fortran/procptr1.f90: New test.
12314 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
12316         * testsuite/libgomp.fortran/simd1.f90: New test.
12317         * testsuite/libgomp.fortran/udr1.f90: New test.
12318         * testsuite/libgomp.fortran/udr2.f90: New test.
12319         * testsuite/libgomp.fortran/udr3.f90: New test.
12320         * testsuite/libgomp.fortran/udr4.f90: New test.
12321         * testsuite/libgomp.fortran/udr5.f90: New test.
12322         * testsuite/libgomp.fortran/udr6.f90: New test.
12323         * testsuite/libgomp.fortran/udr7.f90: New test.
12324         * testsuite/libgomp.fortran/udr8.f90: New test.
12325         * testsuite/libgomp.fortran/udr9.f90: New test.
12326         * testsuite/libgomp.fortran/udr10.f90: New test.
12327         * testsuite/libgomp.fortran/udr11.f90: New test.
12329 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
12331         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
12332         vect_simd_clones effective target.
12333         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
12335 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
12337         PR middle-end/61252
12338         * testsuite/libgomp.c++/simd-9.C: New test.
12340 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
12342         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
12343         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
12344         texts according to their @menu entry positions.
12346 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
12348         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
12349         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
12350         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
12351         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
12352         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
12353         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
12354         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
12355         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
12356         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
12357         * testsuite/libgomp.fortran/depend-1.f90: New test.
12358         * testsuite/libgomp.fortran/depend-2.f90: New test.
12359         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
12360         * testsuite/libgomp.fortran/simd1.f90: New test.
12361         * testsuite/libgomp.fortran/simd2.f90: New test.
12362         * testsuite/libgomp.fortran/simd3.f90: New test.
12363         * testsuite/libgomp.fortran/simd4.f90: New test.
12364         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
12366 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
12368         * testsuite/libgomp.c/simd-10.c: New test.
12369         * testsuite/libgomp.c/simd-11.c: New test.
12370         * testsuite/libgomp.c/simd-12.c: New test.
12371         * testsuite/libgomp.c/simd-13.c: New test.
12373 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
12375         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
12376         atomic type clauses in any order and optional comma in between.
12377         * testsuite/libgomp.c++/atomic-15.C: Likewise.
12378         * testsuite/libgomp.c/atomic-17.c: Likewise.
12380         * testsuite/libgomp.c/simd-7.c: New test.
12381         * testsuite/libgomp.c/simd-8.c: New test.
12382         * testsuite/libgomp.c/simd-9.c: New test.
12383         * testsuite/libgomp.c/loop-16.c: New test.
12385 2014-04-02  Richard Henderson  <rth@redhat.com>
12387         * config/linux/futex.h (futex_wait): Get error value from errno.
12388         (futex_wake): Likewise.
12390 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
12392         PR c++/60331
12393         * testsuite/libgomp.c++/udr-11.C: New test.
12394         * testsuite/libgomp.c++/udr-12.C: New test.
12395         * testsuite/libgomp.c++/udr-13.C: New test.
12396         * testsuite/libgomp.c++/udr-14.C: New test.
12397         * testsuite/libgomp.c++/udr-15.C: New test.
12398         * testsuite/libgomp.c++/udr-16.C: New test.
12399         * testsuite/libgomp.c++/udr-17.C: New test.
12400         * testsuite/libgomp.c++/udr-18.C: New test.
12401         * testsuite/libgomp.c++/udr-19.C: New test.
12403 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
12405         Update copyright years
12407 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
12409         * hashtab.h: Use the standard form for the copyright notice.
12411 2014-01-02  Tobias Burnus  <burnus@net-b.de>
12413         * libgomp.texi: Bump @copying's copyright year.
12415 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
12417         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
12418         alloca () with __builtin_alloca ().
12419         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
12420         * testsuite/libgomp.c/lock-3.c: Likewise.
12421         * testsuite/libgomp.c/pr48591.c: Likewise.
12423 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
12425         PR testsuite/59534
12426         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
12427         comparisons.
12429 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
12431         PR libgomp/58756
12432         * testsuite/libgomp.c/pr58756.c: New test.
12434 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
12436         PR libgomp/59467
12437         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
12438         !$omp parallel.
12440 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
12442         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
12443         ALWAYS_CFLAGS.
12444         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
12445         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
12446         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
12447         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
12448         Likewise.
12450         * libgomp_g.h: Include <stddef.h> for size_t.
12452         * libgomp.spec.in: Update comment about libgomp's dependencies.
12453         * configure.ac: Likewise.
12454         * configure: Regenerate.
12456 2013-10-16  Tobias Burnus  <burnus@net-b.de>
12458         * libgomp.texi: (Runtime Library Routines): Update references for
12459         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
12460         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
12461         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
12462         (Environment Variables): Update references for OpenMP 4.0. Add
12463         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
12464         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
12465         order.
12467 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
12469         * env.c (parse_bind_var): Initialize value to avoid
12470         (false positive) warning.
12472 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
12474         PR libgomp/58691
12475         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
12476         to check variable.
12477         (gomp_init_num_threads): Move i variable declaration into
12478         #ifdef CPU_ALLOC_SIZE block.
12479         * config/linux/affinity.c (gomp_affinity_init_level): Test
12480         gomp_places_list_len == 0 rather than gomp_places_list == 0
12481         when checking for topology reading error.
12482         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
12483         * env.c (parse_affinity): Add ignore argument, if true, don't populate
12484         gomp_places_list, only parse env var and always return false.
12485         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
12486         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
12487         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
12488         and either of these variables were parsed correctly into a places
12489         list.
12491 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
12492             Jakub Jelinek  <jakub@redhat.com>
12494         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
12495         of 5 loopfn matches.
12496         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
12497         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
12498         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
12499         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
12500         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
12501         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12502         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12503         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
12505 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
12507         * Makefile.am (omp_lib.mod): Streamline rule.
12508         * Makefile.in: Regenerate.
12510         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
12511         exceptions.
12513         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
12514         * testsuite/libgomp.fortran/lib1.f90: Likewise.
12515         * testsuite/libgomp.fortran/lib2.f: Likewise.
12516         * testsuite/libgomp.fortran/lib3.f: Likewise.
12518         * configure.ac: Typo fix.
12519         * configure: Regenerate.
12521         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
12522         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12524         * omp.h.in: Don't touch the user's namespace.
12526 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
12527             Tobias Burnus  <burnus@net-b.de>
12528             Richard Henderson  <rth@redhat.com>
12530         * target.c: New file.
12531         * Makefile.am (libgomp_la_SOURCES): Add target.c.
12532         * Makefile.in: Regenerated.
12533         * libgomp_g.h (GOMP_task): Add depend argument.
12534         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12535         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12536         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
12537         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12538         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12539         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
12540         GOMP_taskgroup_start, GOMP_taskgroup_end,
12541         GOMP_parallel_sections): New prototypes.
12542         * fortran.c (omp_is_initial_device): Add ialias_redirect.
12543         (omp_is_initial_device_): New function.
12544         (ULP, STR1, STR2, ialias_redirect): Removed.
12545         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
12546         omp_set_default_device_8_, omp_get_default_device_,
12547         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
12548         functions.
12549         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12550         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12551         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
12552         @@GOMP_4.0.
12553         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
12554         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
12555         omp_set_default_device, omp_set_default_device_,
12556         omp_set_default_device_8_, omp_get_default_device,
12557         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
12558         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
12559         omp_get_team_num_): Export @@OMP_4.0.
12560         * team.c (struct gomp_thread_start_data): Add place field.
12561         (gomp_thread_start): Clear thr->thread_pool and
12562         thr->task before returning.  Use gomp_team_barrier_wait_final
12563         instead of gomp_team_barrier_wait.  Initialize thr->place.
12564         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
12565         team_cancelled and task_queued_count fields.
12566         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
12567         before calling pthread_exit.
12568         (gomp_free_thread): No longer static.  Use
12569         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
12570         (gomp_team_start): Add flags argument.  Set
12571         thr->thread_pool->threads_busy to nthreads immediately after creating
12572         new pool.  Use gomp_managed_threads_lock instead of
12573         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
12574         (gomp_team_end): Use gomp_managed_threads_lock instead of
12575         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
12576         of gomp_team_barrier_wait.  If team->team_cancelled, call
12577         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
12578         rather than thr->ts.work_share.
12579         (initialize_team): Don't call gomp_sem_init here.
12580         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
12581         caller.
12582         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
12583         * env.c (gomp_global_icv): Add default_device_var, target_data and
12584         bind_var initializers.
12585         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12586         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12587         gomp_places_list_len): New variables.
12588         (parse_bind_var, parse_one_place, parse_places_var): New functions.
12589         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
12590         sized places.
12591         (gomp_cancel_var): New global variable.
12592         (parse_int): New function.
12593         (handle_omp_display_env): New function.
12594         (initialize_env): Use it.  Initialize default_device_var.
12595         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
12596         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
12597         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
12598         been successfully parsed (and call gomp_init_affinity in that case).
12599         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12600         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12601         omp_get_team_num, omp_is_initial_device): New functions.
12602         * libgomp.h: Include stdlib.h.
12603         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
12604         Define.
12605         (struct target_mem_desc): Forward declare.
12606         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
12607         and thread_limit_var fields.
12608         (gomp_get_num_devices): New prototype.
12609         (gomp_cancel_var): New extern decl.
12610         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
12611         team_cancelled and task_queued_count fields.  Add comments about
12612         task_{,queued_,running_}count.
12613         (gomp_cancel_kind): New enum.
12614         (gomp_work_share_end_cancel): New prototype.
12615         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
12616         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
12617         and depend fields.
12618         (struct gomp_taskgroup): New type.
12619         (struct gomp_task_depend_entry,
12620         struct gomp_dependers_vec): New types.
12621         (gomp_finish_task): Free depend_hash if non-NULL.
12622         (struct gomp_team_state): Add place_partition_off
12623         and place_partition_len fields.
12624         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12625         gomp_places_list_len): New extern decls.
12626         (struct gomp_thread): Add place field.
12627         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12628         (gomp_init_thread_affinity): Add place argument.
12629         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12630         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12631         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12632         gomp_affinity_init_level, gomp_affinity_print_place): New
12633         prototypes.
12634         (gomp_team_start): Add flags argument.
12635         (gomp_thread_limit_var, gomp_remaining_threads_count,
12636         gomp_remaining_threads_lock): Remove.
12637         (gomp_managed_threads_lock): New variable.
12638         (struct gomp_thread_pool): Add threads_busy field.
12639         (gomp_free_thread): New prototype.
12640         * task.c: Include hashtab.h.
12641         (hash_entry_type): New typedef.
12642         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
12643         (gomp_init_task): Clear dependers, depend_hash, depend_count,
12644         copy_ctors_done and taskgroup fields.
12645         (GOMP_task): Add depend argument, handle depend clauses.  If
12646         gomp_team_barrier_cancelled or if it's taskgroup has been
12647         cancelled, don't queue or start new tasks.  Set copy_ctors_done
12648         field if needed.  Initialize taskgroup field.  If copy_ctors_done
12649         and already cancelled, don't discard the task.  If taskgroup is
12650         non-NULL, enqueue the task into taskgroup queue.  Increment
12651         num_children field in taskgroup.  Increment task_queued_count.
12652         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
12653         gomp_task_run_post_remove_taskgroup): New inline functions.
12654         (gomp_task_run_post_handle_depend_hash,
12655         gomp_task_run_post_handle_dependers,
12656         gomp_task_run_post_handle_depend): New functions.
12657         (GOMP_taskwait): Use them.  If more than one new tasks
12658         have been queued, wake other threads if needed.
12659         (gomp_barrier_handle_tasks): Likewise.  If
12660         gomp_team_barrier_cancelled, don't start any new tasks, just free
12661         all tasks.
12662         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
12663         * omp_lib.f90.in
12664         (omp_proc_bind_kind, omp_proc_bind_false,
12665         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
12666         omp_proc_bind_spread): New params.
12667         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12668         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12669         omp_get_team_num, omp_is_initial_device): New interfaces.
12670         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
12671         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
12672         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
12673         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
12674         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
12675         useless use omp_lib_kinds.
12676         * omp.h.in (omp_proc_bind_t): New typedef.
12677         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12678         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12679         omp_get_team_num, omp_is_initial_device): New prototypes.
12680         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
12681         through to gomp_team_start.
12682         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
12683         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
12684         Adjust gomp_parallel_loop_start callers.
12685         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12686         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12687         GOMP_loop_end_cancel): New functions.
12688         (GOMP_parallel_end): Add ialias_redirect.
12689         * hashtab.h: New file.
12690         * libgomp.texi (Environment Variables): Minor cleanup,
12691         update section refs to OpenMP 4.0rc2.
12692         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
12693         environment variables.
12694         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
12695         team->work_shares_to_free to thr->ts.work_share before calling
12696         free_work_share.
12697         (gomp_work_share_end_cancel): New function.
12698         * config/linux/proc.c: Include errno.h.
12699         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
12700         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
12701         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
12702         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
12703         gomp_cpuset_size is sizeof (cpu_set_t).
12704         (gomp_init_num_threads): Initialize gomp_cpuset_size,
12705         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
12706         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
12707         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
12708         contain any logical CPUs.
12709         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
12710         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
12711         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
12712         pthread_getaffinity_np.  Check gomp_places_list instead of
12713         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
12714         * config/linux/bar.c (gomp_barrier_wait_end,
12715         gomp_barrier_wait_last): Use BAR_* defines.
12716         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
12717         from state where needed.  Set work_share_cancelled to 0 on last
12718         thread.
12719         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
12720         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
12721         functions.
12722         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
12723         Add cpusetsize argument.
12724         (gomp_cpuset_size, gomp_cpusetp): Declare.
12725         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
12726         (affinity_counter): Remove.
12727         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
12728         if CPU_ALLOC_SIZE isn't defined.
12729         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
12730         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
12731         bind current thread to the first place.
12732         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
12733         pthread_setaffinity_np to gomp_places_list[place].
12734         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12735         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12736         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12737         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
12738         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
12739         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
12740         (gomp_barrier_t): Add awaited_final field.
12741         (gomp_barrier_init): Initialize awaited_final field.
12742         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
12743         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
12744         prototypes.
12745         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
12746         defines.
12747         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
12748         gomp_team_barrier_cancelled): New inline functions.
12749         (gomp_barrier_last_thread,
12750         gomp_team_barrier_set_task_pending,
12751         gomp_team_barrier_clear_task_pending,
12752         gomp_team_barrier_set_waiting_for_tasks,
12753         gomp_team_barrier_waiting_for_tasks,
12754         gomp_team_barrier_done): Use BAR_* defines.
12755         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
12756         (gomp_barrier_wait_end): Use BAR_* defines.
12757         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
12758         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
12759         Use BAR_* defines.
12760         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
12761         gomp_team_barrier_cancel): New functions.
12762         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
12763         argument.
12764         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12765         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12766         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12767         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
12768         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
12769         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
12770         (gomp_barrier_t): Add cancellable field.
12771         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
12772         gomp_team_barrier_cancel): New prototypes.
12773         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
12774         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
12775         gomp_team_barrier_cancelled): New inline functions.
12776         (gomp_barrier_wait_start, gomp_barrier_last_thread,
12777         gomp_team_barrier_set_task_pending,
12778         gomp_team_barrier_clear_task_pending,
12779         gomp_team_barrier_set_waiting_for_tasks,
12780         gomp_team_barrier_waiting_for_tasks,
12781         gomp_team_barrier_done): Use BAR_* defines.
12782         * barrier.c (GOMP_barrier_cancel): New function.
12783         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
12784         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
12785         omp_proc_bind_spread): New params.
12786         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12787         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12788         omp_get_team_num, omp_is_initial_device): New externals.
12789         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
12790         New functions.
12791         (gomp_resolve_num_threads): Adjust for thread_limit now being in
12792         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
12793         infinity.  If not nested, just return minimum of max_num_threads
12794         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
12795         to the returned value.  Otherwise, don't update atomically
12796         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
12797         (GOMP_parallel_end): Adjust for thread_limit now being in
12798         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
12799         infinity.  Adjust threads_busy in the pool rather than
12800         gomp_remaining_threads_count.  Remember team->nthreads and call
12801         gomp_team_end before adjusting threads_busy, if not nested
12802         afterwards, just set it to 1 non-atomically.  Add ialias.
12803         (GOMP_parallel_start): Adjust gomp_team_start caller.
12804         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
12805         * testsuite/libgomp.c/affinity-1.c: New test.
12806         * testsuite/libgomp.c/atomic-15.c: New test.
12807         * testsuite/libgomp.c/atomic-16.c: New test.
12808         * testsuite/libgomp.c/atomic-17.c: New test.
12809         * testsuite/libgomp.c/cancel-for-1.c: New test.
12810         * testsuite/libgomp.c/cancel-for-2.c: New test.
12811         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
12812         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
12813         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
12814         * testsuite/libgomp.c/cancel-sections-1.c: New test.
12815         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
12816         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
12817         * testsuite/libgomp.c/depend-1.c: New test.
12818         * testsuite/libgomp.c/depend-2.c: New test.
12819         * testsuite/libgomp.c/depend-3.c: New test.
12820         * testsuite/libgomp.c/depend-4.c: New test.
12821         * testsuite/libgomp.c/for-1.c: New test.
12822         * testsuite/libgomp.c/for-1.h: New file.
12823         * testsuite/libgomp.c/for-2.c: New test.
12824         * testsuite/libgomp.c/for-2.h: New file.
12825         * testsuite/libgomp.c/for-3.c: New test.
12826         * testsuite/libgomp.c/pr58392.c: New test.
12827         * testsuite/libgomp.c/simd-1.c: New test.
12828         * testsuite/libgomp.c/simd-2.c: New test.
12829         * testsuite/libgomp.c/simd-3.c: New test.
12830         * testsuite/libgomp.c/simd-4.c: New test.
12831         * testsuite/libgomp.c/simd-5.c: New test.
12832         * testsuite/libgomp.c/simd-6.c: New test.
12833         * testsuite/libgomp.c/target-1.c: New test.
12834         * testsuite/libgomp.c/target-2.c: New test.
12835         * testsuite/libgomp.c/target-3.c: New test.
12836         * testsuite/libgomp.c/target-4.c: New test.
12837         * testsuite/libgomp.c/target-5.c: New test.
12838         * testsuite/libgomp.c/target-6.c: New test.
12839         * testsuite/libgomp.c/target-7.c: New test.
12840         * testsuite/libgomp.c/taskgroup-1.c: New test.
12841         * testsuite/libgomp.c/thread-limit-1.c: New test.
12842         * testsuite/libgomp.c/thread-limit-2.c: New test.
12843         * testsuite/libgomp.c/thread-limit-3.c: New test.
12844         * testsuite/libgomp.c/udr-1.c: New test.
12845         * testsuite/libgomp.c/udr-2.c: New test.
12846         * testsuite/libgomp.c/udr-3.c: New test.
12847         * testsuite/libgomp.c++/affinity-1.C: New test.
12848         * testsuite/libgomp.c++/atomic-10.C: New test.
12849         * testsuite/libgomp.c++/atomic-11.C: New test.
12850         * testsuite/libgomp.c++/atomic-12.C: New test.
12851         * testsuite/libgomp.c++/atomic-13.C: New test.
12852         * testsuite/libgomp.c++/atomic-14.C: New test.
12853         * testsuite/libgomp.c++/atomic-15.C: New test.
12854         * testsuite/libgomp.c++/cancel-for-1.C: New test.
12855         * testsuite/libgomp.c++/cancel-for-2.C: New test.
12856         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
12857         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
12858         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
12859         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
12860         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
12861         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
12862         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
12863         * testsuite/libgomp.c++/cancel-test.h: New file.
12864         * testsuite/libgomp.c++/for-9.C: New test.
12865         * testsuite/libgomp.c++/for-10.C: New test.
12866         * testsuite/libgomp.c++/for-11.C: New test.
12867         * testsuite/libgomp.c++/simd-1.C: New test.
12868         * testsuite/libgomp.c++/simd-2.C: New test.
12869         * testsuite/libgomp.c++/simd-3.C: New test.
12870         * testsuite/libgomp.c++/simd-4.C: New test.
12871         * testsuite/libgomp.c++/simd-5.C: New test.
12872         * testsuite/libgomp.c++/simd-6.C: New test.
12873         * testsuite/libgomp.c++/simd-7.C: New test.
12874         * testsuite/libgomp.c++/simd-8.C: New test.
12875         * testsuite/libgomp.c++/target-1.C: New test.
12876         * testsuite/libgomp.c++/target-2.C: New test.
12877         * testsuite/libgomp.c++/target-2-aux.cc: New file.
12878         * testsuite/libgomp.c++/target-3.C: New test.
12879         * testsuite/libgomp.c++/taskgroup-1.C: New test.
12880         * testsuite/libgomp.c++/udr-1.C: New test.
12881         * testsuite/libgomp.c++/udr-2.C: New test.
12882         * testsuite/libgomp.c++/udr-3.C: New test.
12883         * testsuite/libgomp.c++/udr-4.C: New test.
12884         * testsuite/libgomp.c++/udr-5.C: New test.
12885         * testsuite/libgomp.c++/udr-6.C: New test.
12886         * testsuite/libgomp.c++/udr-7.C: New test.
12887         * testsuite/libgomp.c++/udr-8.C: New test.
12888         * testsuite/libgomp.c++/udr-9.C: New test.
12890 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
12892         PR testsuite/57605
12893         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
12894         ALWAYS_CFLAGS.
12896 2013-09-20  Alan Modra  <amodra@gmail.com>
12898         * configure: Regenerate.
12900 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
12902         * testsuite/libgomp.c/sections-2.c: New test.
12904 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12906         * testsuite/libgomp.fortran/strassen.f90:
12907         Add dg-skip-if aarch64_tiny.
12909 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
12910             Cesar Philippidis  <cesar@codesourcery.com>
12912         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
12913         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
12914         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
12915         * testsuite/libgomp.fortran/fortran.exp: Likewise.
12916         * testsuite/libgomp.graphite/graphite.exp: Likewise.
12917         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
12918         Use dg-runtest rather than gfortran-dg-runtest.
12920 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12922         * testsuite/libgomp.c/icv-2.c: Extend current handling of
12923         Linux-based x86 systems to cover all GNU systems.
12924         * testsuite/libgomp.c/lock-3.c: Likewise.
12925         * testsuite/libgomp.c/pr48591.c: Likewise.
12927 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
12929         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
12930         GNU/Hurd, as done for Linux-based systems.
12932         * config/posix/ptrlock.h: Fix comment.
12934 2013-05-27  Tobias Burnus  <burnus@net-b.de>
12936         PR fortran/57423
12937         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
12938         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
12939         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
12940         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
12941         omp_destroy_nest_lock): Correct arguments to match the one in
12942         the OpenMP spec.
12943         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
12944         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
12945         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
12946         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
12948 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
12950         * testsuite/libgomp.c/loop-13.c: New test.
12951         * testsuite/libgomp.c/loop-14.c: New test.
12952         * testsuite/libgomp.c/loop-15.c: New test.
12953         * testsuite/libgomp.c++/loop-13.C: New test.
12954         * testsuite/libgomp.c++/loop-14.C: New test.
12955         * testsuite/libgomp.c++/loop-15.C: New test.
12957 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
12959         PR middle-end/56217
12960         * testsuite/libgomp.c++/pr56217.C: New test.
12962 2013-02-01  Alan Modra  <amodra@gmail.com>
12964         * task.c (GOMP_task, GOMP_taskwait): Comment.
12966 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
12967             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
12969         PR libgomp/55561
12970         * config/linux/wait.h (do_spin): Use atomic load for addr.
12971         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
12972         for intptr and ptrlock.
12973         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
12974         for ptrlock.
12976 2013-01-22  Alan Modra  <amodra@gmail.com>
12978         PR libgomp/51376
12979         PR libgomp/56073
12980         * task.c (GOMP_task): Revert 2011-12-09 change.
12981         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
12982         barrier to read task->children..
12983         (gomp_barrier_handle_tasks): ..and matching atomic store with
12984         release barrier here when setting parent->children to NULL.
12986 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
12987             Tobias Burnus  <burnus@net-b.de>
12989         PR driver/55884
12990         * testsuite/libgomp.fortran/fortran.exp: Use
12991         -fintrinsic-modules-path= instead of
12992         -fintrinsic-modules-path.
12994 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
12996         Update copyright years.
12998 2012-12-19  Tobias Burnus  <burnus@net-b.de>
13000         * testsuite/libgomp.fortran/fortran.exp: Set
13001         -fintrinsic-modules-path.
13003 2012-12-19  Tobias Burnus  <burnus@net-b.de>
13005         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
13006         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
13008 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
13010         PR libgomp/55411
13011         * team.c (gomp_free_thread): Decrease gomp_managed_threads
13012         if pool had any threads_used.
13014 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
13016         * testsuite/libgomp.c++/pr24455.C: Use
13017         -Wl,-undefined,dynamic_lookup on darwin.
13019 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
13021         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
13023 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
13025         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
13027 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
13028             Jim MacArthur  <jim.macarthur@arm.com>
13029             Marcus Shawcroft  <marcus.shawcroft@arm.com>
13030             Nigel Stephens  <nigel.stephens@arm.com>
13031             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13032             Richard Earnshaw  <rearnsha@arm.com>
13033             Sofiane Naci  <sofiane.naci@arm.com>
13034             Stephen Thomas  <stephen.thomas@arm.com>
13035             Tejas Belagod  <tejas.belagod@arm.com>
13036             Yufeng Zhang  <yufeng.zhang@arm.com>
13038         * configure.tgt: Add AArch64.
13040 2012-10-04  Jason Merrill  <jason@redhat.com>
13042         * testsuite/libgomp.c++/tls-init1.C: New.
13044 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
13046         * configure: Regenerated.
13048 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
13050         * config/linux/mips/futex.h (sys_futex0): Change to static
13051         function with noinline, nomips16 attributes under MIPS16. Adjust
13052         asm statement to place 'li v0,SYS_futex' immediately before
13053         syscall insn.
13055 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
13057         * libgomp.texi (Library Index): Renamed from "Index" to prevent
13058         conflict with index.html on case-insensitive file systems.
13060 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
13062         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
13063         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
13065 2012-07-02  Richard Guenther  <rguenther@suse.de>
13066             Michael Matz  <matz@suse.de>
13067             Tobias Grosser <tobias@grosser.es>
13068             Sebastian Pop <sebpop@gmail.com>
13070         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
13071         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
13072         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
13073         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
13075 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
13077         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
13079 2012-06-22  Richard Guenther  <rguenther@suse.de>
13081         Merge from graphite branch
13082         2012-01-13  Tobias Grosser  <tobias@grosser.es>
13084         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13085         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
13087 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
13089         PR middle-end/53580
13090         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
13091         use GOMP_barrier () call instead.
13092         * testsuite/libgomp.c/pr26943-3.c: Likewise.
13093         * testsuite/libgomp.c/pr26943-4.c: Likewise.
13094         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
13095         call GOMP_barrier instead.
13096         * testsuite/libgomp.fortran/vla5.f90: Likewise.
13098 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
13100         PR libgomp/52993
13101         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
13102         argument to memset call.
13104 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13106         * configure: Regenerated.
13108 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13110         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
13112 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
13114         PR bootstrap/52812
13115         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
13117 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
13119         PR middle-end/52547
13120         * testsuite/libgomp.c/pr52547.c: New test.
13122 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13124         * testsuite/lib/libgomp.exp: load fortran-modules.exp
13126 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13128         * configure.tgt (mips-sgi-irix6*): Remove.
13130 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13132         * configure.tgt (alpha*-dec-osf*): Remove.
13134         * config/osf/sem.h: Remove.
13135         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
13137 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
13139         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
13141 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13143         PR libstdc++/52188
13144         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
13145         Remove ENABLE_SYMVERS_SOL2.
13146         * configure: Regenerate.
13147         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
13148         (PREPROCESS): New variable.
13149         (libgomp.ver): New target.
13150         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
13151         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
13152         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
13153         Use libgomp.ver.
13154         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
13155         * Makefile.in: Regenerate.
13157 2012-02-14  Walter Lee  <walt@tilera.com>
13159         * configure.tgt: Handle tilegx and tilepro.
13160         * config/linux/tile/futex.h: New file.
13162 2012-02-08  Richard Guenther  <rguenther@suse.de>
13164         PR tree-optimization/46886
13165         * testsuite/libgomp.c/pr46886.c: New testcase.
13167 2012-01-25  Matthias Klose  <doko@ubuntu.com>
13169         * config/linux/arm: Remove empty directory.
13170         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
13172 2011-12-09  Alan Modra  <amodra@gmail.com>
13174         PR libgomp/51376
13175         * task.c (GOMP_taskwait): Don't access task->children outside of
13176         task_lock mutex region.
13177         (GOMP_task): Likewise.
13179 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
13181         PR libgomp/51132
13182         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
13183         to file scope.
13184         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
13185         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
13186         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
13187         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
13188         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
13190 2011-12-02  Alan Modra  <amodra@gmail.com>
13192         * config/linux/affinity.c: Use atomic rather than sync builtin.
13193         * config/linux/lock.c: Likewise.
13194         * config/linux/ptrlock.h: Likewise.
13195         * config/linux/ptrlock.c: Likewise.
13196         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
13197         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
13198         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
13199         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
13200         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
13201         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
13202         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
13203         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
13204         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
13205         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
13207 2011-11-30  Alan Modra  <amodra@gmail.com>
13209         PR libgomp/51298
13210         * config/linux/bar.h: Use atomic rather than sync builtins.
13211         * config/linux/bar.c: Likewise.  Add missing acquire
13212         synchronisation on generation field.
13213         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
13214         double unlock.
13216 2011-11-30  Alan Modra  <amodra@gmail.com>
13218         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
13219         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
13220         * config/linux/mutex.h: Use atomic rather than sync builtins.
13221         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
13222         * config/linux/omp-lock.h: Comment fix.
13223         * config/linux/arm/mutex.h: Delete.
13224         * config/linux/powerpc/mutex.h: Delete.
13225         * config/linux/ia64/mutex.h: Delete.
13226         * config/linux/mips/mutex.h: Delete.
13228 2011-11-30  Alan Modra  <amodra@gmail.com>
13230         PR libgomp/51249
13231         * config/linux/sem.h: Rewrite.
13232         * config/linux/sem.c: Rewrite.
13234 2011-11-28  Richard Henderson  <rth@redhat.com>
13236         * libgomp.h (enum memmodel): New.
13238 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
13240         * configure: Regenerate.
13242 2011-10-10  Matthias Klose  <doko@ubuntu.com>
13244         * config/posix95: Remove empty directory.
13246 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
13248         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
13250 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
13252         PR fortran/49792
13253         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
13254         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
13256 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13258         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
13260 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13262         PR libgomp/49965
13263         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
13265 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
13267         * config/linux/proc.h: New.
13268         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
13269         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
13270         (gomp_init_num_threads): Update call to cpuset_popcount.
13271         (get_num_procs): Ditto.
13272         * config/linux/affinity.c (gomp_init_affinity): Call
13273         gomp_cpuset_popcount.
13275 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
13277         PR fortran/42041
13278         PR fortran/46752
13279         * omp.h.in (omp_in_final): New prototype.
13280         * omp_lib.f90.in (omp_in_final): New interface.
13281         (omp_integer_kind, omp_logical_kind): Remove
13282         and replace all its uses in the module with 4.
13283         (openmp_version): Change to 201107.
13284         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
13285         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
13286         kind for the parameters.
13287         (omp_in_final): New external.
13288         (openmp_version): Change to 201107.
13289         * task.c (omp_in_final): New function.
13290         (gomp_init_task): Initialize final_task.
13291         (GOMP_task): Remove unused attribute from flags.  Handle final
13292         tasks.
13293         (GOMP_taskyield): New function.
13294         (omp_in_final): Return true if if (false) or final (true) task
13295         or descendant of final (true).
13296         * fortran.c (omp_in_final_): New function.
13297         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
13298         (GOMP_3.0): Export GOMP_taskyield.
13299         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
13300         variables.
13301         (parse_unsigned_long_list): New function.
13302         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
13303         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
13304         even if parse_affinity returned false.
13305         * config/linux/affinity.c (gomp_init_affinity): Handle
13306         gomp_cpu_affinity_len == 0.
13307         * libgomp_g.h (GOMP_taskyield): New prototype.
13308         * libgomp.h (struct gomp_task): Add final_task field.
13309         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
13310         * team.c (gomp_team_start): Override new task's nthreads_var icv
13311         if list form OMP_NUM_THREADS has been used and it has value for
13312         the new nesting level.
13314         * testsuite/libgomp.c/atomic-11.c: New test.
13315         * testsuite/libgomp.c/atomic-12.c: New test.
13316         * testsuite/libgomp.c/atomic-13.c: New test.
13317         * testsuite/libgomp.c/atomic-14.c: New test.
13318         * testsuite/libgomp.c/reduction-6.c: New test.
13319         * testsuite/libgomp.c/task-5.c: New test.
13320         * testsuite/libgomp.c++/atomic-2.C: New test.
13321         * testsuite/libgomp.c++/atomic-3.C: New test.
13322         * testsuite/libgomp.c++/atomic-4.C: New test.
13323         * testsuite/libgomp.c++/atomic-5.C: New test.
13324         * testsuite/libgomp.c++/atomic-6.C: New test.
13325         * testsuite/libgomp.c++/atomic-7.C: New test.
13326         * testsuite/libgomp.c++/atomic-8.C: New test.
13327         * testsuite/libgomp.c++/atomic-9.C: New test.
13328         * testsuite/libgomp.c++/task-8.C: New test.
13329         * testsuite/libgomp.c++/reduction-4.C: New test.
13330         * testsuite/libgomp.fortran/allocatable7.f90: New test.
13331         * testsuite/libgomp.fortran/allocatable8.f90: New test.
13332         * testsuite/libgomp.fortran/crayptr3.f90: New test.
13333         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
13334         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
13335         * testsuite/libgomp.fortran/pointer1.f90: New test.
13336         * testsuite/libgomp.fortran/pointer2.f90: New test.
13337         * testsuite/libgomp.fortran/task4.f90: New test.
13339 2011-08-02  Tobias Burnus  <burnus@net-b.de>
13341         * libgomp.texi: Update OpenMP spec references to 3.1.
13342         (omp_in_final,OMP_PROC_BIND): New sections.
13343         (OMP_NUM_THREADS): Document that the value can be now a list.
13344         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
13346 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
13348         * config/linux/x86/futex.h: Check __x86_64__ instead of
13349         __LP64__.
13351 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
13353         PR middle-end/49897
13354         PR middle-end/49898
13355         * testsuite/libgomp.c/pr49897-1.c: New test.
13356         * testsuite/libgomp.c/pr49897-2.c: New test.
13357         * testsuite/libgomp.c/pr49898-1.c: New test.
13358         * testsuite/libgomp.c/pr49898-2.c: New test.
13360 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
13362         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
13363         for ia32 instead of ilp32.
13365         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
13366         * testsuite/libgomp.c/atomic-6.c: Likewise.
13368 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
13370         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
13371         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
13373 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13375         PR libgomp/45351
13376         * config/osf/sem.h: New file.
13377         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
13379 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13381         PR target/49541
13382         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
13383         ldflags.
13385 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
13387         * config/linux/wait.h (do_spin): New inline, largely copied
13388         from do_wait, just don't do futex_wait here, instead return true if
13389         it should be done.
13390         (do_wait): Implement using do_spin.
13391         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
13392         to prototype.
13393         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
13394         __sync_bool_compare_and_swap, pass the oldval to
13395         gomp_mutex_lock_slow.
13396         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
13397         If all mutex contenders are just spinning and not sleeping, don't
13398         change state to 2 unnecessarily.  Optimize the loop when state has
13399         already become 2 to use just one atomic operation per loop instead
13400         of two.
13401         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
13402         to prototype.
13403         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
13404         __sync_bool_compare_and_swap, pass the oldval to
13405         gomp_mutex_lock_slow.
13407 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
13409         PR libgomp/49490
13410         * iter.c (gomp_iter_static_next): For chunk size 0
13411         only use n ceil/ nthreads size for the first
13412         n % nthreads threads in the team instead of
13413         all threads except for the last few ones which
13414         get less work or none at all.
13415         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
13416         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
13417         chunk argument, set run_sched_modifier to 0 for static
13418         resp. 1 for other kinds.  If chunk argument is 0
13419         and not static, set value to 1.
13421 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
13423         PR c++/49043
13424         * testsuite/libgomp.c++/pr49043.C: New test.
13426         PR c++/48869
13427         * testsuite/libgomp.c++/pr48869.C: New test.
13429 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
13431         PR fortran/48894
13432         * fortran.c: Include limits.h.
13433         (TO_INT): Define.
13434         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
13435         *set.
13436         (omp_set_num_threads_8_, omp_set_schedule_8_,
13437         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
13438         omp_get_team_size_8_): Use TO_INT macro.
13439         * testsuite/libgomp.fortran/pr48894.f90: New test.
13441 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
13443         PR middle-end/48591
13444         * testsuite/libgomp.c/pr48591.c: New test.
13446 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13448         PR bootstrap/48135
13449         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
13450         * configure: Regenerate.
13452 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
13454         PR fortran/47886
13455         * testsuite/libgomp.fortran/task3.f90: New test.
13457 2011-02-24  Tobias Burnus  <burnus@net-b.de>
13459         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
13461 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
13463         PR libgomp/47854
13464         * libgomp.texi (omp_get_wtime): Don't say time in the past
13465         must be Unix Epoch.
13467 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
13469         PR libgomp/47804
13470         * testsuite/libgomp.fortran/fortran.exp: Check for both
13471         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
13472         but $blddir != "", still append ${blddir}/${lang_library_path}
13473         to ld_library_path.
13475 2011-02-16  Tobias Burnus  <burnus@net-b.de>
13477         PR libgomp/47758
13478         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
13479         of libquadmath.a before adding its libpath to ldflags.
13481 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
13483         PR libgomp/47731
13484         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
13485         to FUTEX_WAIT futex syscall.
13486         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
13488 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13490         * configure: Regenerate.
13492 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
13494         PR libstdc++/36104
13495         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
13497 2011-01-16  Gerald Pfeifer
13499         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
13501 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
13503         PR fortran/46874
13504         * libgomp.fortran/allocatable6.f90: New test.
13506 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13508         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
13509         * configure: Regenerate.
13511 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
13513         PR target/40125
13514         PR lto/46695
13515         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
13516         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
13517         * aclocal.m4: Regenerate.
13518         * configure: Regenerate.
13519         * Makefile.in: Regenerate.
13520         * testsuite/Makefile.in: Regenerate.
13522 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
13524         PR fortran/46753
13525         * libgomp.fortran/pr46753.f90: New test.
13527         PR libgomp/43706
13528         * env.c (initialize_env): Default to spin count 300000
13529         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
13530         is specified.
13532         PR libgomp/45240
13533         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
13534         at the end if sync builtins aren't supported.
13536 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13538         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
13540 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13542         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
13544 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
13546         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
13548 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13549             Tobias Burnus  <burnus@net-b.de>
13551         PR fortran/32049
13552         * configure.ac:
13553         * configure: Regenerate.
13555 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13557         * config/linux/futex.h: New.
13558         * config/linux/arm/mutex.h: New.
13559         * configure.tgt (arm*-*-linux*): Add config path.
13561 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
13563         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13565 2010-09-23  Tobias Burnus  <burnus@net-b.de>
13567         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
13568         Change Fortran datatype to LOGICAL.
13569         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
13570         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
13572 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13574         * configure: Regenerate.
13576 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
13578         * libgomp.texi: Add function keyword to a couple of Fortran
13579         interfaces, use integer instead of int for Fortran.
13581 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
13583         * libgomp.texi: Fix spelling and pasto problems throughout.
13584         Adjust prototypes to match code.
13586 2010-07-24  Tobias Burnus  <burnus@net-b.de>
13588         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
13589         silence -fwhole-file warning.
13591 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13593         * configure.tgt (*-*-solaris2.[56]*): Removed.
13595 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13597         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
13598         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
13599         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
13600         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
13601         targetting solaris2*.
13602         * configure: Regenerate.
13603         * config.h.in: Regenerate.
13605         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
13606         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
13607         Add libgomp_version_dep.
13608         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
13609         versioning.
13610         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
13611         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
13612         * Makefile.in: Regenerate.
13614         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
13615         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13616         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
13617         to common block, protected by
13618         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13620 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
13622         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
13624 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
13626         PR bootstrap/43170
13627         * configure: Regenerate.
13629 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13631         PR other/43620
13632         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
13633         * configure: Regenerate.
13634         * Makefile.in: Regenerate.
13635         * testsuite/Makefile.in: Regenerate.
13637 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
13639         PR c/43893
13640         * testsuite/libgomp.c/pr43893.c: New test.
13641         * testsuite/libgomp.c++/pr43893.C: New test.
13643 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
13645         PR middle-end/43570
13646         * testsuite/libgomp.fortran/vla8.f90: New test.
13648 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
13650         PR libgomp/43706
13651         * config/linux/affinity.c (gomp_init_affinity): Decrease
13652         gomp_available_cpus if affinity mask confines the process to fewer
13653         CPUs.
13654         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
13655         non-NULL, just return gomp_available_cpus.
13657         PR libgomp/43569
13658         * sections.c (gomp_sections_init): Initialize ws->mode.
13660 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13662         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
13663         not unused bar variable.
13664         * configure: Regenerate.
13666 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13668         * Makefile.in: Regenerate.
13669         * aclocal.m4: Regenerate.
13670         * testsuite/Makefile.in: Regenerate.
13672 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
13674         PR libgomp/42942
13675         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
13676         (initialize_env): Adjust callers.
13677         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
13678         when the argument is 0.
13680         * testsuite/libgomp.c/pr42942.c: New test.
13682 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
13684         PR middle-end/42644
13685         PR middle-end/42130
13686         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13687         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
13689 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13691         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
13692         * testsuite/libgomp.c++/task-6.C: Likewise.
13694 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
13696         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
13698 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
13700         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
13701         * configure: Regenerate.
13703 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
13705         PR fortran/42866
13706         * testsuite/libgomp.fortran/allocatable5.f90: New test.
13708 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
13710         * configure.ac: Test for executability of GFORTRAN.
13711         * configure: Regenerate.
13713 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13715         * configure: Regenerate.
13717 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
13719         PR libgomp/42602
13720         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
13722 2010-01-03  Richard Guenther  <rguenther@suse.de>
13724         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
13726 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
13728         * testsuite/libgomp.graphite/pr4118.c: New.
13730 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
13732         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
13733         for darwin, protect the test with require-effective-target tls_runtime.
13734         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
13736 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
13738         PR target/41605
13739         * testsuite/lib/libgomp.exp: Provide -B options to allow for
13740         link spec %s substitutions for static libraries.
13742 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
13744         PR testsuite/42135
13745         * libgomp.graphite/force-parallel-2.c: Reduce array size.
13747 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13749         * Makefile.in: Regenerate.
13750         * configure: Regenerate.
13751         * testsuite/Makefile.in: Regenerate.
13753 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
13755         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
13756         settings for LC_ALL and LANG.
13758 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
13760         PR fortran/42162
13761         * testsuite/libgomp.fortran/pr42162.f90: New test.
13763 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
13765         PR middle-end/42029
13766         * testsuite/libgomp.c/pr42029.c: New test.
13768 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
13770         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
13771         *s.  Accept ld version without text in ()s.
13772         * configure: Regenerated.
13774 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
13776         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
13778 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13780         PR libgomp/41418
13781         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
13782         or a hyphen (happens with fortran language disabled).
13783         * configure: Regenerate.
13785 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13787         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
13788         use sed script portable to Solaris /bin/sed for extracting ld
13789         version.
13790         * configure: Regenerate.
13792 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
13794         * testsuite/libgomp.graphite/bounds.c: New test.
13796 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13798         * Makefile.am (libgomp_la_LINK): New.
13799         * Makefile.in: Regenerate.
13801 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13803         * configure.ac (AC_PREREQ): Bump to 2.64.
13805 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13807         * Makefile.am (install-html, install-pdf): Remove.
13808         * Makefile.in: Regenerate.
13810         * Makefile.in: Regenerate.
13811         * aclocal.m4: Regenerate.
13812         * config.h.in: Regenerate.
13813         * configure: Regenerate.
13814         * testsuite/Makefile.in: Regenerate.
13816 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13818         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
13819         * Makefile.in: Regenerate.
13821 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
13823         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
13824         * Makefile.in: Regenerate.
13826 2009-08-19  Tobias Burnus  <burnus@net-b.de>
13828         PR fortran/41102
13829         omp_lib.h.in: Fix -std=f95 errors.
13831 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
13833         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
13834         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
13835         * testsuite/libgomp.graphite/graphite.exp: New.
13837 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
13839         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
13840         only build.
13842 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
13844         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
13845         needed memory barrier semantics.
13846         * config/linux/mips/mutex.h: New file.
13848 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13850         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
13852 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
13854         * configure: Regenerate.
13856 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
13858         PR testsuite/40699
13859         PR testsuite/40707
13860         PR testsuite/40709
13861         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
13862         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
13863         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
13865 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
13867         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
13868         options when choosing a multilib.
13870 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
13872         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
13873         ld_library_path.  Use add_path.  Add just find_libgcc_s to
13874         ld_library_path, not every libgcc multilib directory.
13875         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
13876         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
13877         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
13878         Use add_path.
13879         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
13881 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
13883         * Makefile.am (LTLDFLAGS): Define.
13884         (LINK): Define.
13885         * Makefile.in: Regenerate.
13887 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
13889         PR fortran/39718
13890         * testsuite/libgomp.fortran/fortran.exp: Don't link with
13891         libgfortranbegin, check existence of libgfortran.a instead of
13892         libgfortranbegin.a.
13894 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
13896         PR libgomp/40174
13897         * team.c (gomp_thread_start): Destroy thr->release semaphore.
13898         (gomp_free_pool_helper): Likewise.
13900 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
13901             Jakub Jelinek  <jakub@redhat.com>
13903         PR fortran/35423
13904         * testsuite/libgomp.fortran/workshare2.f90: New test.
13906 2009-04-09  Nick Clifton  <nickc@redhat.com>
13908         * iter.c: Change copyright header to refer to version 3 of the
13909         GNU General Public License with version 3.1 of the GCC Runtime
13910         Library Exception and to point readers at the COPYING3 and
13911         COPYING3.RUNTIME files and the FSF's license web page.
13912         * alloc.c: Likewise.
13913         * barrier.c: Likewise.
13914         * config/bsd/proc.c: Likewise.
13915         * config/linux/affinity.c: Likewise.
13916         * config/linux/alpha/futex.h: Likewise.
13917         * config/linux/bar.c: Likewise.
13918         * config/linux/bar.h: Likewise.
13919         * config/linux/ia64/futex.h: Likewise.
13920         * config/linux/ia64/mutex.h: Likewise.
13921         * config/linux/lock.c: Likewise.
13922         * config/linux/mips/futex.h: Likewise.
13923         * config/linux/mutex.c: Likewise.
13924         * config/linux/mutex.h: Likewise.
13925         * config/linux/powerpc/futex.h: Likewise.
13926         * config/linux/proc.c: Likewise.
13927         * config/linux/ptrlock.c: Likewise.
13928         * config/linux/ptrlock.h: Likewise.
13929         * config/linux/s390/futex.h: Likewise.
13930         * config/linux/sem.c: Likewise.
13931         * config/linux/sem.h: Likewise.
13932         * config/linux/sparc/futex.h: Likewise.
13933         * config/linux/wait.h: Likewise.
13934         * config/linux/x86/futex.h: Likewise.
13935         * config/mingw32/proc.c: Likewise.
13936         * config/mingw32/time.c: Likewise.
13937         * config/posix/affinity.c: Likewise.
13938         * config/posix/bar.c: Likewise.
13939         * config/posix/bar.h: Likewise.
13940         * config/posix/lock.c: Likewise.
13941         * config/posix/mutex.h: Likewise.
13942         * config/posix/proc.c: Likewise.
13943         * config/posix/ptrlock.h: Likewise.
13944         * config/posix/sem.c: Likewise.
13945         * config/posix/sem.h: Likewise.
13946         * config/posix/time.c: Likewise.
13947         * config/posix95/lock.c: Likewise.
13948         * critical.c: Likewise.
13949         * env.c: Likewise.
13950         * error.c: Likewise.
13951         * fortran.c: Likewise.
13952         * iter_ull.c: Likewise.
13953         * libgomp.h: Likewise.
13954         * libgomp_f.h.in: Likewise.
13955         * libgomp_g.h: Likewise.
13956         * loop.c: Likewise.
13957         * loop_ull.c: Likewise.
13958         * omp.h.in: Likewise.
13959         * omp_lib.f90.in: Likewise.
13960         * omp_lib.h.in: Likewise.
13961         * ordered.c: Likewise.
13962         * parallel.c: Likewise.
13963         * sections.c: Likewise.
13964         * single.c: Likewise.
13965         * task.c: Likewise.
13966         * team.c: Likewise.
13967         * work.c: Likewise.
13969 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
13971         * testsuite/config/default.exp: Change copyright header to refer to
13972         version 3 of the GNU General Public License and to point readers
13973         at the COPYING3 file and the FSF's license web page.
13975 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
13977         PR middle-end/39573
13978         * libgomp.c++/pr39573.C: New test.
13980 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
13982         PR other/39591
13983         * testsuite/libgomp.c/pr39591-1.c: New test.
13984         * testsuite/libgomp.c/pr39591-2.c: New test.
13985         * testsuite/libgomp.c/pr39591-3.c: New test.
13987 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
13989         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
13990         * testsuite/libgomp.c/atomic-6.c: Ditto.
13992 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
13994         PR c/39495
13995         * testsuite/libgomp.c/loop-12.c: New test.
13996         * testsuite/libgomp.c/loop-11.c: New test.
13997         * testsuite/libgomp.c++/loop-11.C: New test.
13998         * testsuite/libgomp.c++/loop-12.C: New test.
13999         * testsuite/libgomp.c++/for-8.C: New test.
14001 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14003         * configure: Regenerate.
14005 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
14007         PR middle-end/39154
14008         * testsuite/libgomp.c/pr39154.c: New test.
14010 2009-01-30  Ian Lance Taylor  <iant@google.com>
14012         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
14013         libgomp_ld_is_gold.  Get gold version number.
14014         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
14015         * configure: Rebuild.
14017 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
14019         * testsuite/lib/libgomp.exp: Add -B option for targets that
14020         use libgfortran.a%s in their specs.
14022 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
14024         PR libgomp/38086
14025         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
14026         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
14027         HAVE_AS_SYMVER_DIRECTIVE is not defined.
14028         * configure: Regenerated.
14029         * config.h.in: Likewise.
14031 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
14033         PR c++/38650
14034         * testsuite/libgomp.c/pr38650.c: New test.
14035         * testsuite/libgomp.c++/pr38650.C: New test.
14037 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
14039         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
14041 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
14043         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
14045 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14047         * configure: Regenerate.
14049 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
14051         PR middle-end/36802
14052         * testsuite/libgomp.c/pr36802-1.c: New test.
14053         * testsuite/libgomp.c/pr36802-2.c: New test.
14054         * testsuite/libgomp.c/pr36802-3.c: New test.
14056 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
14058         PR libgomp/38270
14059         * config/linux/powerpc/mutex.h: New.
14061 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
14063         PR c++/38257
14064         * testsuite/libgomp.c++/for-7.C: New test.
14066         PR c++/38348
14067         * testsuite/libgomp.c++/for-6.C: New test.
14069 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
14071         PR testsuite/28870
14072         * testsuite/lib/libgomp.exp: Include new timeout library files.
14073         (libgomp_target_compile): Set timeout value from new proc.
14075 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
14077         PR libgomp/37938
14078         * config/linux/ia64/mutex.h: New.
14080 2008-11-04  Tobias Burnus  <burnus@net-b.de>
14082         PR libgomp/37935
14083         * libgomp.texi (Runtime library routines, environment variables):
14084         Update for OpenMP version 3.0.
14086 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
14087             Steve Ellcey  <sje@cup.hp.com>
14089         * configure: Regenerate for new libtool.
14090         * Makefile.in: Ditto.
14091         * testsuite/Makefile.in: Ditto.
14093 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
14094             Andreas Tobler  <a.tobler@schweiz.org>
14096         * config/bsd/proc.c: New file.
14097         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
14098         * configure.ac: Check for header <sys/sysctl.h>
14099         * configure: Regenerate.
14100         * config.h.in: Likewise.
14102 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
14104         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
14106 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
14108         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
14109         * Makefile.in: Regenerated.
14110         * testsuite/Makefile.in: Regenerated.
14112 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
14114         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
14115         depend on blddir if blddir exists.
14116         (libgomp_target_compile): Likewise.
14117         * testsuite/libgomp.c++/c++.exp: Likewise.
14118         * testsuite/libgomp.fortran/fortran.exp: Likewise.
14120 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14122         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
14123         Do not list GPL as Invariant Section.
14125 2008-07-28  Ilie Garbacea  <ilie@mips.com>
14126             Chao-ying Fu  <fu@mips.com>
14128         * configure.tgt: Enable futex for MIPS.
14129         * config/linux/mips/futex.h: New file.
14131 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
14133         * team.c (gomp_team_end): Free team immediately if it has
14134         just one thread.
14136 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
14138         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
14139         * testsuite/libgomp.fortran/fortran.exp: Same.
14140         * testsuite/libgomp.c/c.exp: Same.
14141         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
14142         directory to library path first.
14144 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
14146         * env.c (parse_stacksize): Add cast to avoid warning.
14147         (parse_spincount): Likewise.
14149 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
14151         * testsuite/libgomp.c/loop-10.c: New test.
14152         * libgomp.c/loop-3.c (main): Add lastprivate clause.
14153         * libgomp.c++/loop-6.C (main): Likewise.
14155         PR debug/36617
14156         * testsuite/libgomp.c/debug-1.c: New test.
14158 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
14160         * testsuite/libgomp.c/nqueens-1.c: New test.
14162         PR c++/36523
14163         * testsuite/libgomp.c++/task-7.C: New function.
14165 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14167         * configure: Regenerate.
14169 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14171         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
14172         mutex when HAVE_SYNC_BUILTINS isn't defined.
14174 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14176         * libgomp.texi (omp_test_lock): Fix typo.
14178 2008-06-12  Tobias Burnus  <burnus@net-b.de>
14180         * omp_lib.f90.in: Add "implicit none".
14182 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
14184         PR middle-end/36506
14185         * testsuite/libgomp.c/reduction-5.c: New test.
14187 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
14189         * libgomp.h (struct gomp_task): Add in_tied_task field.
14190         * task.c (gomp_init_task): Initialize it.
14191         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
14192         unconditionally.  Don't call gomp_team_barrier_wake if
14193         current task is implicit or if(0) from implicit and number of
14194         running tasks is equal to nthreads - 1.
14196         PR libgomp/36471
14197         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
14198         omp_get_team_size_8): Fix pastos.
14200         PR libgomp/36469
14201         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
14202         * configure: Regenerated.
14203         * config.h.in: Regenerated.
14204         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
14205         defined.
14207 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
14209         PR bootstrap/36452
14210         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
14211         (GOMP_loop_ull_dynamic_start): Likewise.
14212         (GOMP_loop_ull_guided_start): Likewise.
14213         (GOMP_loop_ull_ordered_static_start): Likewise.
14214         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
14215         (GOMP_loop_ull_ordered_guided_start): Likewise.
14217 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
14218             Richard Henderson  <rth@redhat.com>
14219             Ulrich Drepper  <drepper@redhat.com>
14220             Jakob Blomer  <jakob.blomer@ira.uka.de>
14222         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
14223         Substitute also OMP_*LOCK_25*.
14224         * configure: Regenerated.
14225         * config.h.in: Regenerated.
14226         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
14227         ptrlock.c and task.c.
14228         * Makefile.in: Regenerated.
14229         * testsuite/Makefile.in: Regenerated.
14230         * task.c: New file.
14231         * loop_ull.c: New file.
14232         * iter_ull.c: New file.
14233         * libgomp.h: Include ptrlock.h.
14234         (enum gomp_task_kind): New type.
14235         (struct gomp_team): Add task_lock, task_queue, task_count,
14236         task_running_count, single_count fields.  Add
14237         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
14238         Remove work_share_lock, generation_mask,
14239         oldest_live_gen, num_live_gen and init_work_shares fields, add
14240         work work_share_list_alloc, work_share_list_free and work_share_chunk
14241         fields.  Change work_shares from pointer to pointers into an array.
14242         Change ordered_release field into gomp_sem_t ** from flexible array
14243         member.  Add implicit_task and initial_work_shares fields.
14244         Move close to the end of the struct.
14245         (struct gomp_team_state): Add single_count, last_work_share,
14246         active_level and level fields, remove work_share_generation.
14247         (gomp_barrier_handle_tasks): New prototype.
14248         (gomp_finish_task): New inline function.
14249         (struct gomp_work_share): Move chunk_size, end, incr into
14250         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
14251         next_ll fields.  Reshuffle fields.  Add next_alloc,
14252         next_ws, next_free and inline_ordered_team_ids fields, change
14253         ordered_team_ids into pointer from flexible array member.
14254         Add mode field.  Put lock and next into a different cache line
14255         from most of the write-once fields.
14256         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
14257         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
14258         gomp_iter_ull_guided_next): New prototypes.
14259         (gomp_new_icv): New prototype.
14260         (struct gomp_thread): Add thread_pool and task fields.
14261         (struct gomp_thread_pool): New type.
14262         (gomp_new_team): New prototype.
14263         (gomp_team_start): Change type of last argument.
14264         (gomp_new_work_share): Removed.
14265         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
14266         (gomp_work_share_init_done): New static inline.
14267         (gomp_throttled_spin_count_var, gomp_available_cpus,
14268         gomp_managed_threads): New extern decls.
14269         (gomp_init_task): New prototype.
14270         (gomp_spin_count_var): New extern var decl.
14271         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
14272         or no alias support, or if not PIC.
14273         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
14274         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
14275         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
14276         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
14277         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
14278         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
14279         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
14280         gomp_test_nest_lock_25): New prototypes.
14281         (omp_lock_symver, strong_alias): Define.
14282         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
14283         decls.
14284         (gomp_end_task): New.
14285         (struct gomp_task_icv, gomp_global_icv): New.
14286         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
14287         (struct gomp_task): New.
14288         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
14289         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
14290         (gomp_icv): New.
14291         (gomp_schedule_type): Reorder enum to match
14292         omp_sched_t.
14293         * team.c (struct gomp_thread_start_data): Add thread_pool and task
14294         fields.
14295         (gomp_thread_start): Add gomp_team_barrier_wait call.
14296         For non-nested case remove clearing of docked thread thr fields.
14297         Use pool fields instead of global gomp_* variables.  Use
14298         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
14299         Create tasks for each member thread.
14300         (free_team): Only destroy team barrier, task_lock here and free it.
14301         (gomp_free_thread): Free last_team if non-NULL.
14302         (gomp_team_end): Call gomp_team_barrier_wait instead of
14303         gomp_barrier_wait.  For nested case call one extra
14304         gomp_barrier_wait.  Move here some destruction from free_team.
14305         Call free_team on pool->last_team if any, rather than freeing
14306         current team.  Destroy work_share_list_free_lock ifndef
14307         HAVE_SYNC_BUILTINS.
14308         (gomp_new_icv): New function.
14309         (gomp_threads, gomp_threads_size, gomp_threads_used,
14310         gomp_threads_dock): Removed.
14311         (gomp_thread_destructor): New variable.
14312         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
14313         functions.
14314         (gomp_team_start): Create new pool if current thread doesn't have
14315         one.  Use pool fields instead of global gomp_* variables.
14316         Initialize thread_pool field for new threads.  Clear single_count.
14317         Change last argument from ws to team, don't create
14318         new team, set ts.work_share to &team->work_shares[0] and clear
14319         ts.last_work_share.  Don't clear ts.work_share_generation.
14320         If number of threads changed, adjust atomically gomp_managed_threads.
14321         Use gomp_init_task instead of gomp_new_task,
14322         set thr->task to the corresponding implicit_task array entry.
14323         Create tasks for each member thread.  Initialize ts.level.
14324         (initialize_team): Call pthread_key_create on
14325         gomp_thread_destructor.
14326         (team_destructor): New function.
14327         (new_team): Removed.
14328         (gomp_new_team): New function.
14329         (free_team): Free gomp_work_share blocks chained through next_alloc,
14330         instead of freeing work_shares and destroying work_share_lock.
14331         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
14332         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
14333         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
14334         of gomp_barrier_wait.
14335         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
14336         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
14337         if gomp_work_share_start returned true.  Don't unlock ws->lock.
14338         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
14339         of gomp_barrier_wait.
14340         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
14341         gomp_work_share_init_done if gomp_work_share_start returned true.
14342         Don't unlock ws->lock.
14343         * work.c: Include stddef.h.
14344         (free_work_share): Use work_share_list_free_lock instead
14345         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
14346         Call gomp_fini_work_share and then either free ws if orphaned, or
14347         put it into work_share_list_free list of the current team.
14348         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
14349         functions.
14350         (gomp_work_share_start, gomp_work_share_end,
14351         gomp_work_share_end_nowait): Rewritten.
14352         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
14353         (openmp_version): Set to 200805.
14354         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
14355         omp_sched_guided, omp_sched_auto): New parameters.
14356         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14357         omp_set_max_active_levels, omp_get_max_active_levels,
14358         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14359         omp_get_active_level): New interfaces.
14360         * omp_lib.h.in (openmp_version): Set to 200805.
14361         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
14362         omp_sched_guided, omp_sched_auto): New parameters.
14363         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14364         omp_set_max_active_levels, omp_get_max_active_levels,
14365         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14366         omp_get_active_level): New externals.
14367         * loop.c: Include limits.h.
14368         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
14369         GFS_AUTO.
14370         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
14371         Likewise.  Use gomp_icv.
14372         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
14373         ts.static_trip here.
14374         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
14375         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
14376         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
14377         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
14378         don't unlock ws->lock, otherwise lock it.
14379         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
14380         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
14381         (gomp_parallel_loop_start): Call gomp_new_team instead of
14382         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
14383         Adjust gomp_team_start caller.  Pass 0 as second argument to
14384         gomp_resolve_num_threads.
14385         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
14386         If adding ws->chunk_size nthreads + 1 times after end won't
14387         overflow, set ws->mode to 1.
14388         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
14389         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
14390         GOMP_loop_ull_ordered_static_start,
14391         GOMP_loop_ull_ordered_dynamic_start,
14392         GOMP_loop_ull_ordered_guided_start,
14393         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
14394         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
14395         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
14396         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
14397         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
14398         prototypes.
14399         * libgomp.map: Export lock routines also @@OMP_2.0.
14400         (GOMP_loop_ordered_dynamic_first,
14401         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
14402         GOMP_loop_ordered_static_first): Remove.
14403         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
14404         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
14405         GOMP_loop_ull_ordered_dynamic_next,
14406         GOMP_loop_ull_ordered_dynamic_start,
14407         GOMP_loop_ull_ordered_guided_next,
14408         GOMP_loop_ull_ordered_guided_start,
14409         GOMP_loop_ull_ordered_runtime_next,
14410         GOMP_loop_ull_ordered_runtime_start,
14411         GOMP_loop_ull_ordered_static_next,
14412         GOMP_loop_ull_ordered_static_start,
14413         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
14414         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
14415         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
14416         (omp_set_schedule, omp_get_schedule,
14417         omp_get_thread_limit, omp_set_max_active_levels,
14418         omp_get_max_active_levels, omp_get_level,
14419         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
14420         omp_set_schedule_, omp_set_schedule_8_,
14421         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
14422         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
14423         omp_get_max_active_levels_, omp_get_level_,
14424         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
14425         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
14426         New exports @@OMP_3.0.
14427         * omp.h.in (omp_sched_t): New type.
14428         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14429         omp_set_max_active_levels, omp_get_max_active_levels,
14430         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14431         omp_get_active_level): New prototypes.
14432         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
14433         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
14434         gomp_thread_limit_var, gomp_remaining_threads_count,
14435         gomp_remaining_threads_lock): New variables.
14436         (parse_spincount): New function.
14437         (initialize_env): Call gomp_init_num_threads unconditionally.
14438         Initialize gomp_available_cpus.  Call parse_spincount,
14439         initialize gomp_{,throttled_}spin_count_var
14440         depending on presence and value of OMP_WAIT_POLICY and
14441         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
14442         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
14443         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
14444         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
14445         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
14446         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
14447         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
14448         (gomp_global_icv): New.
14449         (parse_schedule): Use it.  Parse "auto".
14450         (omp_set_num_threads): Use gomp_icv.
14451         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
14452         Likewise.
14453         (omp_get_max_threads): Move from parallel.c.
14454         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14455         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
14456         add ialias.
14457         (parse_stacksize, parse_wait_policy): New functions.
14458         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
14459         both wrappers for compatibility and new locks.
14460         (omp_set_schedule, omp_get_schedule,
14461         omp_get_thread_limit, omp_set_max_active_levels,
14462         omp_get_max_active_levels, omp_get_level,
14463         omp_get_ancestor_thread_num, omp_get_team_size,
14464         omp_get_active_level): New ialias_redirect.
14465         (omp_set_schedule_, omp_set_schedule_8_,
14466         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
14467         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
14468         omp_get_max_active_levels_, omp_get_level_,
14469         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
14470         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
14471         New functions.
14472         * parallel.c: Include limits.h.
14473         (gomp_resolve_num_threads): Add count argument.  Rewritten.
14474         (GOMP_parallel_start): Call gomp_new_team and pass that as last
14475         argument to gomp_team_start.  Pass 0 as second argument to
14476         gomp_resolve_num_threads.
14477         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
14478         if gomp_thread_limit_var != ULONG_MAX.
14479         (omp_in_parallel): Implement using ts.active_level.
14480         (omp_get_max_threads): Move to env.c.
14481         (omp_get_level, omp_get_ancestor_thread_num,
14482         omp_get_team_size, omp_get_active_level): New functions,
14483         add ialias.
14484         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
14485         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
14486         gomp_iter_dynamic_next instead of the _locked variant and don't take
14487         lock around it, otherwise acquire it before calling
14488         gomp_iter_dynamic_next_locked.
14489         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
14490         gomp_iter_dynamic_next instead of the _locked variant and don't take
14491         lock around it.
14492         (GOMP_parallel_sections_start): Call gomp_new_team instead of
14493         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
14494         Adjust gomp_team_start caller.  Pass count as second argument to
14495         gomp_resolve_num_threads, don't adjust num_threads after the call.
14496         Use gomp_icv.
14497         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
14498         ws->chunk_size by incr.
14499         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
14500         code.
14501         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
14502         types.
14503         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
14504         (omp_check_defines): Check even the compat defines.
14505         * config/linux/ptrlock.c: New file.
14506         * config/linux/ptrlock.h: New file.
14507         * config/linux/wait.h: New file.
14508         * config/posix/ptrlock.c: New file.
14509         * config/posix/ptrlock.h: New file.
14510         * config/linux/bar.h (gomp_team_barrier_wait,
14511         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14512         (gomp_team_barrier_set_task_pending,
14513         gomp_team_barrier_clear_task_pending,
14514         gomp_team_barrier_set_waiting_for_tasks,
14515         gomp_team_barrier_waiting_for_tasks,
14516         gomp_team_barrier_done): New inlines.
14517         (gomp_barrier_t): Rewritten.
14518         (gomp_barrier_state_t): New typedef.
14519         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
14520         gomp_barrier_wait_start): Rewritten.
14521         (gomp_barrier_wait_end): Change second argument to
14522         gomp_barrier_state_t.
14523         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14524         inlines.
14525         * config/linux/bar.c: Include wait.h instead of libgomp.h and
14526         futex.h.
14527         (gomp_barrier_wait_end): Rewritten.
14528         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14529         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
14530         * config/posix/bar.h (gomp_barrier_t): Add generation field.
14531         (gomp_barrier_state_t): New typedef.
14532         (gomp_team_barrier_wait,
14533         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14534         (gomp_barrier_wait_start): Or all but low 2 bits from generation
14535         into the return value.  Return gomp_barrier_state_t.
14536         (gomp_team_barrier_set_task_pending,
14537         gomp_team_barrier_clear_task_pending,
14538         gomp_team_barrier_set_waiting_for_tasks,
14539         gomp_team_barrier_waiting_for_tasks,
14540         gomp_team_barrier_done): New inlines.
14541         (gomp_barrier_wait_end): Change second argument to
14542         gomp_barrier_state_t.
14543         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14544         inlines.
14545         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
14546         (gomp_barrier_wait_end): Change second argument to
14547         gomp_barrier_state_t.
14548         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14549         gomp_team_barrier_wake): New functions.
14550         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
14551         futex.h.
14552         (gomp_futex_wake, gomp_futex_wait): New variables.
14553         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
14554         * config/linux/lock.c: Rewrite to make locks task owned,
14555         for backwards compatibility provide the old entrypoints
14556         if symbol versioning.  Include wait.h instead of libgomp.h and
14557         futex.h.
14558         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
14559         * config/posix95/lock.c: Rewrite to make locks task owned,
14560         for backwards compatibility provide the old entrypoints
14561         if symbol versioning.
14562         * config/posix/lock.c: Rewrite to make locks task owned,
14563         for backwards compatibility provide the old entrypoints
14564         if symbol versioning.
14565         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
14566         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
14567         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
14568         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14569         (sys_futex0): Return error code.
14570         (futex_wake, futex_wait): If ENOSYS was returned, clear
14571         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14572         (cpu_relax, atomic_write_barrier): New static inlines.
14573         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14574         (futex_wake, futex_wait): If ENOSYS was returned, clear
14575         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14576         (cpu_relax, atomic_write_barrier): New static inlines.
14577         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14578         (sys_futex0): Return error code.
14579         (futex_wake, futex_wait): If ENOSYS was returned, clear
14580         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14581         (cpu_relax, atomic_write_barrier): New static inlines.
14582         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14583         (sys_futex0): Return error code.
14584         (futex_wake, futex_wait): If ENOSYS was returned, clear
14585         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14586         (cpu_relax, atomic_write_barrier): New static inlines.
14587         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14588         (sys_futex0): Return error code.
14589         (futex_wake, futex_wait): If ENOSYS was returned, clear
14590         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14591         (cpu_relax, atomic_write_barrier): New static inlines.
14592         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14593         (sys_futex0): Return error code.
14594         (futex_wake, futex_wait): If ENOSYS was returned, clear
14595         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14596         (cpu_relax, atomic_write_barrier): New static inlines.
14597         * config/linux/sem.c: Include wait.h instead of libgomp.h and
14598         futex.h.
14599         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
14600         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
14601         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
14602         types.
14603         (omp_nest_lock_t): Change owner into void *, add lock field.
14604         * config/posix95/omp-lock.h: Include semaphore.h.
14605         (omp_lock_25_t, omp_nest_lock_25_t): New types.
14606         (omp_lock_t): Use sem_t instead of mutex if semaphores
14607         aren't broken.
14608         (omp_nest_lock_t): Likewise.  Change owner to void *.
14609         * config/posix/omp-lock.h: Include semaphore.h.
14610         (omp_lock_25_t, omp_nest_lock_25_t): New types.
14611         (omp_lock_t): Use sem_t instead of mutex if semaphores
14612         aren't broken.
14613         (omp_nest_lock_t): Likewise.  Add owner field.
14615 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
14617         * testsuite/libgomp.c/collapse-1.c: New test.
14618         * testsuite/libgomp.c/collapse-2.c: New test.
14619         * testsuite/libgomp.c/collapse-3.c: New test.
14620         * testsuite/libgomp.c/icv-1.c: New test.
14621         * testsuite/libgomp.c/icv-2.c: New test.
14622         * testsuite/libgomp.c/lib-2.c: New test.
14623         * testsuite/libgomp.c/lock-1.c: New test.
14624         * testsuite/libgomp.c/lock-2.c: New test.
14625         * testsuite/libgomp.c/lock-3.c: New test.
14626         * testsuite/libgomp.c/loop-4.c: New test.
14627         * testsuite/libgomp.c/loop-5.c: New test.
14628         * testsuite/libgomp.c/loop-6.c: New test.
14629         * testsuite/libgomp.c/loop-7.c: New test.
14630         * testsuite/libgomp.c/loop-8.c: New test.
14631         * testsuite/libgomp.c/loop-9.c: New test.
14632         * testsuite/libgomp.c/nested-3.c: New test.
14633         * testsuite/libgomp.c/nestedfn-6.c: New test.
14634         * testsuite/libgomp.c/sort-1.c: New test.
14635         * testsuite/libgomp.c/task-1.c: New test.
14636         * testsuite/libgomp.c/task-2.c: New test.
14637         * testsuite/libgomp.c/task-3.c: New test.
14638         * testsuite/libgomp.c/task-4.c: New test.
14639         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
14640         to C++ testsuite default compiler options.
14641         * testsuite/libgomp.c++/collapse-1.C: New test.
14642         * testsuite/libgomp.c++/collapse-2.C: New test.
14643         * testsuite/libgomp.c++/ctor-10.C: New test.
14644         * testsuite/libgomp.c++/for-1.C: New test.
14645         * testsuite/libgomp.c++/for-2.C: New test.
14646         * testsuite/libgomp.c++/for-3.C: New test.
14647         * testsuite/libgomp.c++/for-4.C: New test.
14648         * testsuite/libgomp.c++/for-5.C: New test.
14649         * testsuite/libgomp.c++/loop-8.C: New test.
14650         * testsuite/libgomp.c++/loop-9.C: New test.
14651         * testsuite/libgomp.c++/loop-10.C: New test.
14652         * testsuite/libgomp.c++/task-1.C: New test.
14653         * testsuite/libgomp.c++/task-2.C: New test.
14654         * testsuite/libgomp.c++/task-3.C: New test.
14655         * testsuite/libgomp.c++/task-4.C: New test.
14656         * testsuite/libgomp.c++/task-5.C: New test.
14657         * testsuite/libgomp.c++/task-6.C: New test.
14658         * testsuite/libgomp.fortran/allocatable1.f90: New test.
14659         * testsuite/libgomp.fortran/allocatable2.f90: New test.
14660         * testsuite/libgomp.fortran/allocatable3.f90: New test.
14661         * testsuite/libgomp.fortran/allocatable4.f90: New test.
14662         * testsuite/libgomp.fortran/collapse1.f90: New test.
14663         * testsuite/libgomp.fortran/collapse2.f90: New test.
14664         * testsuite/libgomp.fortran/collapse3.f90: New test.
14665         * testsuite/libgomp.fortran/collapse4.f90: New test.
14666         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
14667         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
14668         * testsuite/libgomp.fortran/lib4.f90: New test.
14669         * testsuite/libgomp.fortran/lock-1.f90: New test.
14670         * testsuite/libgomp.fortran/lock-2.f90: New test.
14671         * testsuite/libgomp.fortran/nested1.f90: New test.
14672         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
14673         * testsuite/libgomp.fortran/strassen.f90: New test.
14674         * testsuite/libgomp.fortran/tabs1.f90: New test.
14675         * testsuite/libgomp.fortran/tabs2.f: New test.
14676         * testsuite/libgomp.fortran/task1.f90: New test.
14677         * testsuite/libgomp.fortran/task2.f90: New test.
14678         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
14679         * testsuite/libgomp.fortran/vla5.f90: Likewise.
14680         * testsuite/libgomp.c/pr26943-2.c: Likewise.
14681         * testsuite/libgomp.c/pr26943-3.c: Likewise.
14682         * testsuite/libgomp.c/pr26943-4.c: Likewise.
14684 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
14686         PR c++/36308
14687         * testsuite/libgomp.c++/ctor-11.C: New test.
14688         * testsuite/libgomp.c++/ctor-12.C: New test.
14690 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
14692         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
14694 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
14696         PR middle-end/36106
14697         * testsuite/libgomp.c/atomic-5.c: New test.
14698         * testsuite/libgomp.c/atomic-6.c: New test.
14699         * testsuite/libgomp.c/autopar-1.c: New test.
14701 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14703         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
14704         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
14705         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
14706         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
14707         * configure: Regenerate.
14708         * Makefile.in, testsuite/Makefile.in: Likewise.
14710 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
14712         PR bootstrap/35457
14713         * aclocal.m4: Regenerate.
14714         * configure: Regenerate.
14716 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
14718         PR middle-end/35611
14719         * testsuite/libgomp.c/atomic-4.c: New test.
14721         PR libgomp/35625
14722         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
14723         (gomp_iter_guided_next): Likewise.
14724         * testsuite/libgomp.c/pr35625.c: New test.
14726 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14728         * aclocal.m4: Regenerate.
14729         * configure: Likewise.
14730         * Makefile.in: Likewise.
14731         * testsuite/Makefile.in: Likewise.
14733 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
14735         PR middle-end/35185
14736         * testsuite/libgomp.c++/pr35185.C: New test.
14738 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
14740         PR middle-end/35549
14741         * testsuite/libgomp.c/pr35549.c: New test.
14743 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
14745         * testsuite/libgomp.c/atomic-3.c: New test.
14747 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14749         PR fortran/33197
14750         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
14751         .F08 file suffixes.
14753 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
14755         PR libgomp/33131
14756         * configure.ac: Add ACX_HEADER_STRING.
14757         * env.c: Include strings.h.
14758         * aclocal.m4: Regenerate.
14759         * config.h.in: Regenerate.
14760         * configure: Regenerate.
14761         * Makefile.in: Regenerate.
14762         * testsuite/Makefile.in: Regenerate.
14764 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
14766         PR middle-end/35196
14767         * testsuite/libgomp.c/pr35196.c: New test.
14769         PR middle-end/35130
14770         * testsuite/libgomp.fortran/pr35130.f90: New test.
14771         * testsuite/libgomp.c/pr35130.c: New test.
14773 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
14775         PR middle-end/33880
14776         * testsuite/libgomp.c/pr33880.c: New test.
14777         * testsuite/libgomp.fortran/pr33880.f90: New test.
14779 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
14781         * configure: Regenerate.
14783 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
14785         * configure.ac: Move futex checking into ../config/futex.m4.
14786         * configure: Rebuilt.
14787         * aclocal.m4: Rebuilt.
14788         * Makefile.in: Rebuilt.
14790         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
14791         2007-10-15 ../config/tls.m4 change.
14793 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
14795         PR c++/34513
14796         * testsuite/libgomp.c/pr34513.c: New test.
14797         * testsuite/libgomp.c++/pr34513.C: New test.
14799 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
14801         PR target/32765
14802         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
14804 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
14806         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
14808 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
14810         * testsuite/libgomp.c/private-1.c: New test.
14812 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
14813             Paolo Bonzini  <bonzini@gnu.org>
14815         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
14816         instead of 'VPATH ='.
14817         * Makefile.in: Regenerate.
14819 2007-11-23  Matthias Klose  <doko@ubuntu.com>
14821         * configure.ac: Adjust makeinfo version check.
14822         * configure: Regenerate.
14824 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
14826         PR fortran/34020
14827         * testsuite/libgomp.fortran/pr34020.f90: New test.
14829 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
14831         PR c++/33894
14832         * testsuite/libgomp.c++/atomic-1.C: New test.
14834 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
14836         PR libgomp/33275
14837         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
14838         Make x and y integers rather than (implicit) reals.  Add private (j)
14839         clause to the last omp parallel.
14841 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
14843         * configure: Regenerate following changes to ../config/tls.m4.
14845 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
14847         * testsuite/libgomp.fortran/stack.f90: New test.
14849 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
14851         * config/mingw32/proc.c: New file.
14853 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
14855         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
14856         (main): Use __get_cpuid to get i386 target fetaures.
14857         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
14858         (main): Use __get_cpuid to get x86_64 target fetaures.
14860 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
14862         PR target/32765
14863         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
14864         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
14866 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
14868         PR fortran/32550
14869         * testsuite/libgomp.fortran/pr32550.f90: New test.
14870         * testsuite/libgomp.fortran/crayptr2.f90: New test.
14872 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
14874         * aclocal.m4: Regenerated.
14876 2007-07-05  Tobias Burnus  <burnus@net-b.de>
14878         PR fortran/32359
14879         * testsuite/libgomp.fortran/pr32359.f90: New.
14881 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
14883         PR libgomp/32468
14884         * sections.c (GOMP_parallel_sections_start): Only decrease
14885         number of threads to COUNT if dyn_var is true.
14886         * testsuite/libgomp.c/pr32468.c: New test.
14888 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14890         PR libgomp/26308
14891         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
14893 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
14895         PR middle-end/32362
14896         * testsuite/libgomp.c/pr32362-1.c: New test.
14897         * testsuite/libgomp.c/pr32362-2.c: New test.
14898         * testsuite/libgomp.c/pr32362-3.c: New test.
14900 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
14902         * team.c (gomp_team_start): Fix setting up thread_attr
14903         stack size.
14905 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
14907         * configure: Regenerate.
14909 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
14911         * Makefile.in: Regenerate.
14912         * configure: Regenerate.
14913         * aclocal.m4: Regenerate.
14914         * testsuite/Makefile.in: Regenerate.
14916 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
14918         * config/linux/proc.c: New file.
14920         PR libgomp/28482
14921         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
14923 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
14925         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
14927 2007-04-16  Matthias Klose  <doko@debian.org>
14929         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
14930         flags if not building with -m64.
14931         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
14932         flag for i?86-*-* targets, if current target matches -m64.
14934 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
14936         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
14937         * Makefile.in: Regenerate.
14939 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14941         PR testsuite/31369
14942         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
14943         ld_library_path.
14944         * testsuite/libgomp.fortran/fortran.exp: Likewise.
14946 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
14948         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
14949         decls.
14950         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
14951         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
14952         (parse_affinity): New function.
14953         (initialize_env): Call it and gomp_init_affinity.
14954         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
14955         create new pthread_attr_t and call gomp_init_thread_affinity
14956         on it for each thread before passing the attribute to pthread_create.
14957         * config/linux/affinity.c: New file.
14958         * config/posix/affinity.c: New file.
14959         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
14960         * configure: Rebuilt.
14961         * config.h.in: Rebuilt.
14962         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
14963         * Makefile.in: Rebuilt.
14965 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
14967         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
14968         *-*-darwin*.
14969         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
14970         and use it if found.
14972 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
14974         * testsuite/config/default.exp: New file.
14975         * testsuite/lib/libgomp.exp: New file.
14976         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
14977         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
14978         load_lib *, load_gcc_lib *): Move to libgomp.exp.
14979         (libgomp_load): Remove.
14980         * testsuite/lib/libgomp.exp (libgomp_init): Compute
14981         always_ld_library_path, not ld_library_path.  Set additional_flags
14982         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
14983         (target_compile): Do not call libgomp_init.  Append lang_library_path
14984         and lang_link_flags to options.
14985         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
14986         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
14987         here.
14988         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
14989         always_ld_library_path.  Set LD_LIBRARY_PATH here.
14990         * testsuite/libgomp.fortran/fortran.exp: Ditto.
14991         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
14992         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
14993         CX8 flag.
14994         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
14995         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
14996         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
14997         * testsuite/libgomp.c/pr29947-1.c: Ditto.
14998         * testsuite/libgomp.c/atomic-10.c: Ditto.
15000 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
15002         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
15003         dg-final cleanup-modules line.
15004         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
15005         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
15006         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
15007         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
15008         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
15009         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
15010         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
15012 2007-03-18  Andreas Schwab  <schwab@suse.de>
15014         * acinclude.m4: Adjust regular expression for ld version
15015         extraction.
15016         * configure: Regenerate.
15018 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
15020         * Makefile.am: Add install-pdf target as copied from
15021         automake v1.10 rules.
15022         * Makefile.in: Regenerate
15024 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
15026         PR libgomp/28486
15027         * configure: Regenerate.
15029         PR c++/30703
15030         * testsuite/libgomp.c++/pr30703.C: New test.
15032 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
15034         Revert:
15035         2006-07-05  Eric Christopher  <echristo@apple.com>
15036         * configure.ac: Depend addition of -pthread on host OS.
15037         * configure: Regenerate.
15039 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15041         * libgomp.texi: Fix spacing after abbreviations.
15043 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
15045         PR libgomp/30546
15046         * configure.ac: Add check for makeinfo
15047         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
15048         if an appropriate version of makeinfo is found.
15049         * aclocal.m4: Regenerated.
15050         * configure: Regenerated.
15051         * Makefile.in: Regenerated.
15052         * testsuite/Makefile.in: Regenerated.
15054 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
15056         PR libgomp/30540
15057         * libgomp.texi: More about implementation-dependent settings.
15059 2007-01-26  Tobias Burnus  <burnus@net-b.de>
15061         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
15063 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
15065         PR middle-end/30494
15066         * testsuite/libgomp.c/pr30494.c: New test.
15068 2007-01-15  Tom Tromey  <tromey@redhat.com>
15070         * configure: Rebuilt.
15071         * configure.ac: Fixed comment.
15073 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
15075         * libgomp.texi: Document implementation specific default values of
15076         environment variables.
15078 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
15080         PR libgomp/28209
15081         * libgomp.texi: New file.
15082         * configure.ac: Add --enable-generated-files-in-srcdir option.
15083         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
15084         files to srcdir.
15085         * Makefile.in: Regenerated.
15086         * config.h.in: Regenerated.
15087         * testsuite/Makefile.in: Regenerated.
15088         * NOTES: Removed.
15090 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
15092         PR libgomp/29949
15093         * env.c (omp_set_num_threads): Set illegal thread count to 1.
15095 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
15097         * configure: Regenerate.
15099 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
15101         PR libgomp/29947
15102         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
15103         start if there shouldn't be any loop iterations.
15104         (gomp_loop_ordered_static_start): Remove start == end test.
15105         * testsuite/libgomp.c/pr29947-1.c: New test.
15106         * testsuite/libgomp.c/pr29947-2.c: New test.
15108 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
15110         * configure.tgt: Force initial-exec TLS model on Linux only.
15112 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
15114         * configure: Regenerated.
15116 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
15118         * env.c (parse_schedule): Reject out of range values.
15119         (parse_unsigned_long): Reject out of range, negative or zero values.
15121 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
15123         PR fortran/29629
15124         * testsuite/libgomp.fortran/pr29629.f90: New test.
15126 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
15128         PR libgomp/29494
15129         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
15130         * config/posix95: New directory.
15131         * config/posix95/omp-lock.h: New file.
15132         * config/posix95/lock.c: Likewise.
15134 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
15136         * aclocal.m4: Regenerate.
15137         * configure: Regenerate.
15139 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
15141         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
15142         '<' to '<='.
15144 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
15146         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
15147         test.
15148         * configure: Regenerate.
15149         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
15151 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
15153         PR middle-end/25261
15154         PR middle-end/28790
15155         * testsuite/libgomp.c/nestedfn-4.c: New test.
15156         * testsuite/libgomp.c/nestedfn-5.c: New test.
15157         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
15159         PR fortran/29097
15160         * testsuite/libgomp.fortran/condinc1.f: New test.
15161         * testsuite/libgomp.fortran/condinc2.f: New test.
15162         * testsuite/libgomp.fortran/condinc3.f90: New test.
15163         * testsuite/libgomp.fortran/condinc4.f90: New test.
15164         * testsuite/libgomp.fortran/condinc1.inc: New file.
15166 2006-09-18  Tom Tromey  <tromey@redhat.com>
15168         * configure: Rebuilt.
15170 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
15172         PR c/28768
15173         PR preprocessor/14634
15174         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
15175         to AC_DEFINE.
15176         * configure: Regenerate.
15178 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
15180         * testsuite/libgomp.fortran/reduction3.f90: Change
15181         -2147483648 to -huge(i)-1 to avoid overflow.
15182         * testsuite/libgomp.fortran/reduction4.f90: Change
15183         Z'ffffffff' to not(0) to avoid overflow.
15185 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
15187         PR libgomp/25938
15188         * Makefile.am (libsubincludedir): New.
15189         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
15190         * Makefile.in: Regenerate.
15192 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
15194         PR libgomp/28725
15195         * env.c: Include ctype.h.
15196         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
15197         leading and/or trailing whitespace and compare strings case
15198         insensitively.
15200 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
15202         PR fortran/28390
15203         * testsuite/libgomp.fortran/pr28390.f: New test.
15205 2006-07-05  Eric Christopher  <echristo@apple.com>
15207         * configure.ac: Depend addition of -pthread on host OS.
15208         * configure: Regenerate.
15210 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
15212         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
15213         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
15214         defined.
15216 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
15218         PR libgomp/26175
15219         PR libgomp/26477
15220         * configure.ac: If neither --enable-linux-futex nor
15221         --disable-linux-futex is passed, determine the default by checking
15222         for compiling and/or running against NPTL.  With --enable-linux-futex,
15223         check if SYS_gettid and SYS_futex are defined.
15224         * configure: Rebuilt.
15226 2006-06-14  Richard Henderson  <rth@redhat.com>
15228         PR libgomp/28008
15229         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
15230         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
15232 2006-06-09  Richard Henderson  <rth@redhat.com>
15234         * env.c (gomp_nthreads_var): Change to unsigned long.
15235         (gomp_run_sched_chunk): Likewise.
15236         (parse_unsigned_long): Rename from parse_num_threads and generalize.
15237         (initialize_env): Initialize gomp_thread_attr.
15238         * libgomp.h (gomp_nthreads_var): Update decl.
15239         (gomp_run_sched_chunk): Likewise.
15240         (gomp_thread_attr): Declare.
15241         * team.c (gomp_thread_attr): Export.
15242         (initialize_team): Don't initialize it.
15244 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
15246         PR fortran/27916
15247         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
15248         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
15250 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
15252         * config/mingw32/time.c: New file.
15253         * configure.tgt: Use it.
15255 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
15257         * Makefile.am: Add install-html target. Add install-html to .PHONY
15258         * Makefile.in: Regenerate.
15260 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15262         PR libgomp/27612
15263         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
15264         * testsuite/libgomp.c/critical-1.c: Likewise.
15265         * testsuite/libgomp.c/loop-1.c: Likewise.
15266         * testsuite/libgomp.c/loop-2.c: Likewise.
15267         * testsuite/libgomp.c/single-1.c: Likewise.
15268         * testsuite/libgomp.c/ordered-1.c: Likewise.
15269         * testsuite/libgomp.c/ordered-2.c: Likewise.
15271 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
15273         PR middle-end/27416
15274         * libgomp.fortran/pr27416-1.f90: New test.
15276 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
15278         PR fortran/27395
15279         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
15280         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
15282 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
15284         PR c++/26943
15285         * testsuite/libgomp.c/pr26943-1.c: New test.
15286         * testsuite/libgomp.c/pr26943-2.c: New test.
15287         * testsuite/libgomp.c/pr26943-3.c: New test.
15288         * testsuite/libgomp.c/pr26943-4.c: New test.
15289         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
15290         * testsuite/libgomp.c++/pr26943.C: New test.
15292 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
15294         PR middle-end/27337
15295         * testsuite/libgomp.c++/pr27337.C: New test.
15297 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
15299         PR c/26171
15300         * testsuite/libgomp.c/pr26171.c: New test.
15302 2006-04-25  Richard Henderson  <rth@redhat.com>
15304         PR libgomp/25865
15305         * configure.ac: Use GCC_CHECK_TLS.
15306         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
15307         * Makefile.in, aclocal.m4, configure: Regenerate.
15309 2006-04-10  Matthias Klose  <doko@debian.org>
15311         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
15312         directory names containing underscores.
15314 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
15316         PR c++/26691
15317         * testsuite/libgomp.c++/pr26691.C: New test.
15319 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
15321         * testsuite/libgomp.fortran/retval2.f90: New test.
15323 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
15325         * testsuite/libgomp.c++: New directory.
15327 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
15329         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
15330         * config/posix/sem.c: Implement the above.
15332 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
15334         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
15335         define HAVE_BROKEN_POSIX_SEMAPHORES.
15336         * configure: Rebuilt.
15337         * config.h.in: Rebuilt.
15339 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
15341         PR bootstrap/26161
15342         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
15343         for the other pthread check.
15344         * configure: Regenerate.
15345         * config.h.in: Regenerate.
15347 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
15349         PR libgomp/25938
15350         PR libgomp/25984
15351         * Makefile.am (fincludedir): New variable.
15352         (nodist_include_HEADERS): Remove Fortran files.
15353         (nodist_finclude_HEADERS): New variable.
15354         * Makefile.in: Regenerated.
15356 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
15358         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
15359         Remove tests for returning assumed character length arrays.
15361 2006-02-12  Roger Sayle  <roger@eyesopen.com>
15362             John David Anglin  <dave@hiauly1.hia.nrc.ca>
15364         PR libgomp/25936
15365         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
15367 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
15369         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
15371 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
15373         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
15374         part of LD_LIBRARY_PATH manually.
15376 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
15378         PR libgomp/25852
15379         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
15380         libgomp_init.
15382 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
15384         PR libgomp/25884
15385         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
15386         * configure.ac (PERL): Don't set.
15387         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
15388         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
15389         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
15390         * omp.h.in: Wrap the new configure substitutions with @ characters.
15391         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
15392         * aclocal.m4, configure, Makefile.in: Regenerate.
15393         * mkomp_h.pl: Delete.
15395 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
15397         PR libgomp/25259
15398         * configure.ac: Use GCC_HEADER_STDINT.
15399         * libgomp.h: Include gstdint.h.
15400         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
15401         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
15403 2006-01-24  Richard Henderson  <rth@redhat.com>
15405         PR libgomp/25942
15406         * configure.ac: Add AM_MAINTAINER_MODE.
15407         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
15409 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
15411         * Makefile.in: Regenerate.
15412         * testsuite/Makefile.in: Regenerate.
15413         * aclocal.m4: Regenerate.
15415 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
15417         * config/posix/proc.c: Conditional include of sys/loadavg.h for
15418         Solaris.
15419         * configure.ac: Add check for loadavg.h.
15420         (link_gomp): Adjust comment.
15421         * configure: Regenerate.
15422         * config.h.in: Regenerate.
15424 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
15426         PR libgomp/25877
15427         * configure.ac: Remove check for alloca.h.
15428         * configure: Regenerate.
15429         * config.h.in: Regenerate.
15430         * libgomp.h: define gomp_alloca to be __builtin_alloca.
15431         * team.c: Remove use of alloca.h.
15432         Call gomp_alloca instead of alloca.
15434 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
15436         PR libgomp/25877
15437         * team.c: Add include of alloca.h.
15438         * configure.ac: Add check for alloca.h.
15439         * configure: Regenerate.
15440         * config.h.in: Regenerate.
15442 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
15444         PR fortran/25219
15445         * testsuite/libgomp.fortran/pr25219.f90: New test.
15447 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
15449         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
15450         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
15451         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
15452         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
15453         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
15454         testsuite/libgomp.fortran/threadprivate1.f90,
15455         testsuite/libgomp.fortran/threadprivate2.f90,
15456         testsuite/libgomp.fortran/threadprivate3.f90,
15457         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
15458         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
15459         testsuite/libgomp.fortran/omp_parse3.f90: Change required
15460         effective-target to TLS runtime.
15462         * testsuite/libgomp.fortran/pr25162.f: Require
15463         effective-target TLS runtime.
15465 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
15467         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
15468         * testsuite/libgomp.c/nestedfn-3.c: New test.
15470 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
15472         PR fortran/25162
15473         * testsuite/libgomp.fortran/pr25162.f: New test.
15475 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
15477         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
15478         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
15480 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
15482         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
15483         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
15484         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
15485         single.c, team.c, work.c, config/linux/alpha/futex.h,
15486         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
15487         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
15488         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
15489         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
15490         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
15491         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
15492         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
15493         FSF address.
15495 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
15497         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
15498         to nodist_noinst_HEADERS.
15499         * Makefile.in: Rebuilt.
15501         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
15502         add integer count field.
15503         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
15504         omp_nest_lock_t type change.
15505         (omp_init_nest_lock): Likewise.  Initialize count to 0.
15506         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
15507         Increment count.
15508         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
15509         Decrement count.
15510         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
15511         Increment count if successful and return the new nesting level.
15512         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
15513         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
15514         * testsuite/libgomp.c/lib-1.c: New test.
15515         * testsuite/libgomp.fortran/lib1.f90: New test.
15516         * testsuite/libgomp.fortran/lib2.f: New test.
15517         * testsuite/libgomp.fortran/lib3.f: New test.
15519 2005-11-17  Richard Henderson  <rth@redhat.com>
15521         PR 24845
15522         * Makefile.am (nodist_toolexeclib_HEADERS): New.
15523         * configure.ac (link_gomp): New.  Substitute it.
15524         (AC_CONFIG_FILES): Add libgomp.spec.
15525         * libgomp.spec.in: New file.
15526         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
15527         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
15529 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
15531         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
15532         reduction(-:var) behaving the same as reduction(+:var).
15533         * testsuite/libgomp.c/reduction-4.c: New test.
15535 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
15537         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
15538         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
15539         testsuite/libgomp.c/copyin-3.c,
15540         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
15541         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
15542         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
15543         testsuite/libgomp.c++/pr24455.C,
15544         testsuite/libgomp.fortran/threadprivate1.f90,
15545         testsuite/libgomp.fortran/threadprivate2.f90,
15546         testsuite/libgomp.fortran/threadprivate3.f90,
15547         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
15548         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
15549         testsuite/libgomp.fortran/omp_parse3.f90: Require
15550         effective-target TLS.
15552 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
15554         * HEADER: Remove.
15556 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
15558         PR libgomp/24797
15559         * team.c (initialize_team): Pass NULL rather than free as
15560         pthread_key_create destructor.  Initialize thread specific data
15561         pointer in initial thread to a static local variable rather than
15562         malloced memory.
15564 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
15566         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
15567         its location to ld_library_path.
15569 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
15571         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
15573 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
15575         * testsuite/libgomp.c: Rename from libgomp.dg.
15577 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
15579         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
15580         threadprivate variable 'i'.
15582 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
15584         * config/linux/s390/futex.h: New file.
15585         * configure.tgt: Use it.
15587         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
15588         before the parallel.
15590 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
15592         PR c++/24734
15593         * testsuite/libgomp.c++/master-1.C: New test.
15595 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
15597         * testsuite/libgomp.dg/copyin-3.c: New test.
15599 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
15601         * testsuite/libgomp.fortran/retval1.f90: New test.
15602         * testsuite/libgomp.fortran/vla7.f90: New test.
15604 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
15606         * testsuite/libgomp.fortran/vla2.f90: New test.
15607         * testsuite/libgomp.fortran/vla3.f90: New test.
15608         * testsuite/libgomp.fortran/vla4.f90: New test.
15609         * testsuite/libgomp.fortran/vla5.f90: New test.
15610         * testsuite/libgomp.fortran/vla6.f90: New test.
15612 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
15614         * config/linux/sparc/futex.h: New file.
15615         * configure.tgt: Use it.
15616         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
15618         * critical.c: Include stdlib.h.
15619         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
15620         ignoring return value.
15621         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
15622         LIBGOMP_CHECK_SYNC_BUILTINS check.
15623         * configure: Rebuilt.
15625 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
15627         * testsuite/libgomp.fortran/vla1.f90: New test.
15629 2005-10-31  Richard Henderson  <rth@redhat.com>
15631         * testsuite/libgomp.fortran/character2.f90: Fix race condition
15632         setting 's' in different threads.
15634 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
15636         * libgomp.h (attribute_hidden, ialias): Define.
15637         * config/posix/proc.c (omp_get_num_procs): Add ialias.
15638         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
15639         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
15640         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15641         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15642         omp_test_lock, omp_test_nest_lock): Likewise.
15643         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
15644         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15645         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15646         omp_test_lock, omp_test_nest_lock): Likewise.
15647         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
15648         omp_get_dynamic, omp_get_nested): Likewise.
15649         * parallel.c (omp_get_num_threads, omp_get_max_threads,
15650         omp_get_thread_num, omp_in_parallel): Likewise.
15651         * fortran.c (ialias_redirect): Define.
15652         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
15653         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
15654         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
15655         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
15656         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
15657         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
15658         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
15659         omp_get_wtime): Add ialias_redirect.
15661 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
15663         * fortran.c: Include stdlib.h.
15665 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
15667         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
15668         * Makefile.in: Regenerated.
15670 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
15672         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
15673         * libgomp_f.h.in (omp_check_defines): New function.
15674         * env.c: Include libgomp_f.h.
15675         (initialize_env): Call omp_check_defines.
15677         * testsuite/libgomp.dg/copyin-2.c: New test.
15678         * testsuite/libgomp.c++/copyin-2.C: New test.
15679         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
15681         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
15682         * testsuite/libgomp.fortran/sharing2.f90: New test.
15684         * testsuite/libgomp.dg/copyin-1.c: New test.
15685         * testsuite/libgomp.c++/copyin-1.C: New test.
15687 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
15689         * testsuite/libgomp.fortran/crayptr1.f90: New test.
15691         * testsuite/libgomp.fortran/workshare1.f90: New test.
15693         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
15694         only test.
15695         * libgomp.fortran/sharing1.f90: New test.
15697 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
15699         PR c++/24502
15700         * testsuite/libgomp.c++/loop-7.C: New test.
15702         * testsuite/libgomp.dg/nestedfn-2.c: New test.
15704         * testsuite/libgomp.dg/nestedfn-1.c: New test.
15705         * testsuite/libgomp.fortran/reduction6.f90: New test.
15706         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
15708 2005-10-23  Richard Henderson  <rth@redhat.com>
15710         * testsuite/libgomp.c++/ctor-1.C: New.
15711         * testsuite/libgomp.c++/ctor-2.C: New.
15712         * testsuite/libgomp.c++/ctor-3.C: New.
15713         * testsuite/libgomp.c++/ctor-4.C: New.
15714         * testsuite/libgomp.c++/ctor-5.C: New.
15715         * testsuite/libgomp.c++/ctor-6.C: New.
15716         * testsuite/libgomp.c++/ctor-7.C: New.
15717         * testsuite/libgomp.c++/ctor-8.C: New.
15718         * testsuite/libgomp.c++/ctor-9.C: New.
15720 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
15722         PR 24455
15723         * testsuite/libgomp.c++/pr24455-1.C: New test.
15724         * testsuite/libgomp.c++/pr24455.C: New test.
15725         * testsuite/libgomp.dg/pr24455-1.c: New test.
15726         * testsuite/libgomp.dg/pr24455.c: New test.
15728 2005-10-20  Richard Henderson  <rth@redhat.com>
15730         * testsuite/libgomp.c++/loop-6.C: New.
15731         * testsuite/libgomp.dg/loop-3.c: New.
15733 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
15735         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
15736         explicitly private.
15737         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
15738         explicitly shared.
15740 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
15742         * testsuite/libgomp.fortran/jacobi.f: New test.
15744 2005-10-19  Richard Henderson  <rth@redhat.com>
15746         * configure.tgt (i?86-linux): Default to with_arch instead of
15747         CFLAGS.  Add -mtune to match target_cpu.
15748         (x86_64-linux): Tune to i686.
15750         * fortran.c (omp_test_nest_lock_): Fix typo.
15752 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
15754         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
15755         gomp_ordered_sync): Do nothing if team->nthreads == 1.
15756         * testsuite/libgomp.dg/ordered-3.c: New test.
15758         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
15759         Remove volatile keyword.
15761         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
15762         in COMMON block to avoid warnings on 64-bit targets.
15764 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
15766         * testsuite/libgomp.dg/shared-3.c: New test.
15768 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
15770         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
15771         * testsuite/libgomp.fortran/reduction5.f90: New test.
15773 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
15775         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
15776         dg-options.
15777         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
15778         flush loop now that __sync_synchronize has proper memory barrier.
15779         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
15780         Add -ffixed-form to dg-options.
15782 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
15784         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
15785         from subdirectories.
15786         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
15787         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
15788         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
15789         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
15790         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
15791         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
15792         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
15793         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
15794         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
15795         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
15796         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
15797         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
15798         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
15799         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
15800         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
15801         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
15802         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
15803         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
15804         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
15805         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
15806         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
15807         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
15808         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
15809         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
15810         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
15812 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
15814         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
15815         lang_library_path exists.  Use find instead of glob to gather tests.
15816         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
15818 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
15820         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
15821         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
15822         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
15823         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
15824         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
15825         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
15826         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
15827         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
15828         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
15829         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
15830         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
15831         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
15832         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
15834 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
15836         * testsuite/libgomp.dg/vla-1.c: New test.
15838         * testsuite/libgomp.fortran/reference2.f90: New test.
15840         * testsuite/libgomp.fortran/character2.f90: Remove explicit
15841         declaration of omp_get_thread_num.
15842         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
15843         use omp_lib.
15845         * testsuite/libgomp.fortran/reduction1.f90: New test.
15846         * testsuite/libgomp.fortran/reduction2.f90: New test.
15847         * testsuite/libgomp.fortran/reduction3.f90: New test.
15848         * testsuite/libgomp.fortran/reduction4.f90: New test.
15850 2005-10-13  Richard Henderson  <rth@redhat.com>
15852         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
15853         * Makefile.in: Regenerate.
15854         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
15855         * libgomp.h: Include bar.h.
15856         (struct gomp_barrier): Remove.
15857         (struct gomp_team): Add barrier.  Replace master_barrier with
15858         master_release.  Replace threads with ordered_release.
15859         (struct gomp_thread): Replace barrier with release.
15860         * ordered.c (gomp_ordered_first): Update for ordered_release change.
15861         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
15862         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
15863         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
15864         (GOMP_single_copy_end): Likewise.
15865         * team.c (gomp_threads_dock): New.
15866         (gomp_barrier_init, gomp_barrier_destroy): Remove.
15867         (gomp_thread_start): Use gomp_barrier_wait.
15868         (new_team, free_team): Update for gomp_team changes.
15869         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
15870         (gomp_team_end): Use gomp_barrier_wait.
15871         (initialize_team): Update for gomp_thread changes.
15872         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
15873         (gomp_work_share_end_nowait): Use atomic ops when available.
15874         * config/linux/bar.c, config/linux/bar.h: New files.
15875         * config/posix/bar.c, config/posix/bar.h: New files.
15877 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
15879         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
15880         * testsuite/libgomp.dg/single-2.c: New test.
15882         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
15883         lang_link_flags): Unset, so that they aren't inherited from previously
15884         sourced *.exp.
15886         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
15888 2005-10-12  Richard Henderson  <rth@redhat.com>
15890         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
15891         (libgomp_init): Use lang_test_file, lang_library_path, and
15892         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
15894         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
15895         (lang_test_file, lang_link_flags): New.
15896         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
15898         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
15899         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
15900         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
15901         testsuite/libgomp.c++/parallel-1.C,
15902         testsuite/libgomp.c++/reduction-1.C,
15903         testsuite/libgomp.c++/reduction-2.C,
15904         testsuite/libgomp.c++/reduction-3.C,
15905         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
15906         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
15907         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
15908         New files, largely cribbed from the C testsuite.
15910 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
15912         * testsuite/libgomp.fortran/character1.f90: New test.
15913         * testsuite/libgomp.fortran/character2.f90: New test.
15915         * testsuite/libgomp.dg/nested-1.c: New test.
15916         * testsuite/libgomp.dg/nested-2.c: New test.
15917         * testsuite/libgomp.fortran/do1.f90: New test.
15918         * testsuite/libgomp.fortran/do2.f90: New test.
15920         * testsuite/libgomp.fortran/reference1.f90: New test.
15922 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
15924         * testsuite/libgomp.dg/reduction-1.c: New test.
15925         * testsuite/libgomp.dg/reduction-2.c: New test.
15926         * testsuite/libgomp.dg/reduction-3.c: New test.
15928 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
15930         * testsuite/libgomp.dg/atomic-1.c: New test.
15931         * testsuite/libgomp.dg/atomic-2.c: New test.
15933 2005-10-09  Richard Henderson  <rth@redhat.com>
15935         * critical.c (atomic_lock): New.
15936         (initialize_critical): Initialize it.
15937         (GOMP_atomic_start, GOMP_atomic_end): New.
15938         * libgomp.map: Export them.
15939         * libgomp_g.h: Declare them.
15941         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
15943 2005-10-02  Richard Henderson  <rth@redhat.com>
15945         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
15946         to XCFLAGS instead of CFLAGS.
15948 2005-09-30  Richard Henderson  <rth@redhat.com>
15950         * configure.ac: Determine whether -pthread or -lpthread is needed.
15951         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
15952         * Makefile.in, configure: Rebuild.
15954 2005-09-28  Richard Henderson  <rth@redhat.com>
15956         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
15957         * testsuite/libgomp.dg/omp-single-3.c: New test.
15959 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
15961         * testsuite/libgomp.dg/omp-single-2.c: New test.
15962         * testsuite/libgomp.dg/shared-2.c: Fix return code.
15964 2005-09-27  Richard Henderson  <rth@redhat.com>
15966         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
15967         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
15969 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
15971         * testsuite/libgomp.dg/omp-loop03.c: New test.
15973 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
15975         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
15977 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
15979         * testsuite/libgomp.dg/omp-single-1.c: New test.
15980         * testsuite/libgomp.dg/shared-1.c: Return 0.
15981         Add prototype for abort.
15982         * testsuite/libgomp.dg/shared-2.c: Likewise.
15984 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
15986         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
15987         constructs.
15989 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
15991         * testsuite/libgomp.dg/shared-1.c: New test.
15992         * testsuite/libgomp.dg/shared-2.c: New test.
15994 2005-09-24  Richard Henderson  <rth@redhat.com>
15996         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
15998 2005-09-24  Richard Henderson  <rth@redhat.com>
16000         * iter.c (gomp_iter_static_next): Round up when computing number
16001         of iterations.  Don't bother distributing a remainder equally.
16003         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
16004         Don't call srand.  Zero b before testing.
16005         (main): New.
16007 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
16009         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
16010         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
16012 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
16014         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
16015         without !$omp end do, followed immediately by subroutine end.
16017 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
16019         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
16021 2005-09-22  Richard Henderson  <rth@redhat.com>
16023         * critical.c (GOMP_critical_name_start): Change argument to void**.
16024         Reuse the pointer space if the mutex fits.
16025         (GOMP_critical_name_end): Likewise.
16026         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
16027         * libgomp_g.h (GOMP_critical_name_start): Update decl.
16028         (GOMP_critical_name_end): Likewise.
16029         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
16030         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
16032 2005-09-20  Richard Henderson  <rth@redhat.com>
16034         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
16035         (create_lock_lock): New.
16036         (initialize_critical): Initialize it.
16037         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
16038         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
16040 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
16042         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
16044 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
16046         * testsuite/libgomp.dg/omp-loop01.c: New test.
16047         * testsuite/libgomp.dg/omp-loop02.c: New test.
16049 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
16051         * configure.ac (AC_PROG_FC): Add.
16052         (USE_FORTRAN): New automake conditional.
16053         * configure: Rebuilt.
16054         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
16055         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
16056         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
16057         Add rules to build them.
16058         * Makefile.in: Rebuilt.
16059         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
16060         OMP_NEST_LOCK_KIND.
16061         * libgomp.map: Add Fortran wrappers.
16062         * libgomp_f.h.in: New file.
16063         * omp_lib.h.in: New file.
16064         * omp_lib.f90.in: New file.
16065         * fortran.c: New file.
16066         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
16067         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
16068         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
16069         libgfortran has been built.
16070         * testsuite/libgomp.fortran/fortran.exp: New file.
16071         * testsuite/libgomp.fortran/omp_cond1.f: New test.
16072         * testsuite/libgomp.fortran/omp_cond2.f: New test.
16073         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
16074         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
16075         * testsuite/libgomp.fortran/omp_hello.f: New test.
16076         * testsuite/libgomp.fortran/omp_orphan.f: New test.
16077         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
16078         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
16079         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
16080         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
16081         * testsuite/libgomp.fortran/omp_reduction.f: New test.
16082         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
16083         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
16085 2005-08-30  Richard Henderson  <rth@redhat.com>
16087         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
16088         function for when aliases are not usable.
16089         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
16090         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
16091         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
16092         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
16093         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
16094         GOMP_loop_ordered_guided_next): Likewise.
16095         * ordered.c (GOMP_ordered_start): Likewise.
16097 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
16099         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
16100         * testsuite/libgomp.dg/omp_hello.c: Fix return code
16101         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
16102         * testsuite/libgomp.dg/omp_orphan.c: Likewise
16103         * testsuite/libgomp.dg/omp_reduction.c: Likewise
16104         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
16105         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
16106         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
16107         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
16109 2005-07-07  Eric Christopher  <echristo@redhat.com>
16110             Diego Novillo  <dnovillo@redhat.com>
16112         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
16113         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
16114         up code.
16115         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
16116         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
16117         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
16118         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
16119         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
16120         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
16121         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
16123 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
16125         * TOPLEVEL.patch: Remove.
16127 2005-05-16  Richard Henderson  <rth@redhat.com>
16129         * configure.ac: Test for clock_gettime.
16130         * config.h.in, configure: Rebuild.
16131         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
16132         (omp_get_wtime): Use clock_gettime if available.
16133         (omp_get_wtick): Use clock_getres if available.
16135 2005-05-11  Richard Henderson  <rth@redhat.com>
16137         * config/linux/ia64/futex.h: New file.
16138         * configure.tgt: Use it.
16140         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
16142 2005-05-07  Richard Henderson  <rth@redhat.com>
16144         * config/linux/powerpc/futex.h: New file.
16145         * configure.tgt: Use it.
16147         * config/linux/i486/futex.h: Merge ...
16148         * config/linux/x86_64/futex.h: ... into ...
16149         * config/linux/x86/futex.h: ... here.
16150         * configure.tgt: Update to match.
16152 2005-05-06  Richard Henderson  <rth@redhat.com>
16154         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
16155         * config/linux/i486/futex.h: Likewise.
16156         * config/linux/x86_64/futex.h: Likewise.
16158         * config/linux/lock.c: New file.
16159         * config/linux/omp-lock.h: New file.
16161         * critical.c, env.h: Don't include omp.h
16162         * config/posix/lock.c: Include libgomp.h instead of omp.h.
16163         * config/posix/time.c: Likewise.
16164         * config/posix/omp-lock.h: New file.
16165         * libgomp.h: Include omp-lock.h and omp.h.
16166         * Makefile.am (nodist_include_HEADERS): New.
16167         (omp.h): New rule.
16168         * configure.ac (PERL): New.
16169         * mkomp_h.pl: New file.
16170         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
16171         with templates.
16172         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
16174         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
16175         build directory.  Re-add -march=i486 hack.
16177         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
16178         (libgomp_link_flags): Remove.
16179         (libgomp_initialized): Remove.
16180         (libgomp_init): Don't protect from reinitialization.  Copy code
16181         from libstdc++ for getting the multilib set correctly.
16183 2005-05-05  Richard Henderson  <rth@redhat.com>
16185         * config/linux/alpha/futex.h: New file.
16186         * configure.tgt (alpha*-*-linux*): Use it.
16188         * config/posix/mutex.c: New file.
16189         * config/posix/sem.c: Use libgomp.h.
16191         * configure.tgt (x86_64-linux): Also test CC for -m32.
16192         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
16194         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
16195         after $gccpath.
16197         * Makefile.am (SUBDIRS): New.
16198         (libgomp_la_LDFLAGS): Add -lpthread.
16199         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
16200         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
16202         * libgomp_g.h: New file.
16203         * libgomp.h: Split out all public declarations to libgomp_g.h.
16204         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
16205         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
16206         * config/linux/sem.h: Likewise.
16207         * config/posix/sem.h: Likewise.
16209         * Makefile.am (AM_LDFLAGS): New.
16210         (libgomp_version_script): Split out from ...
16211         (libgomp_la_LDFLAGS): ... here.
16212         (libgomp_version_info): New.
16213         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
16214         (LIBGOMP_ENABLE): New.
16215         (LIBGOMP_CHECK_LINKER_FEATURES): New.
16216         (LIBGOMP_ENABLE_SYMVERS): New.
16217         * configure.ac (AC_INIT): Version 1.0.
16218         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
16219         (enable-linux-futex): Likewise.  Rename from enable-futex.
16220         (libtool_VERSION): New.
16221         (LIBGOMP_ENABLE_SYMVERS): Use it.
16222         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
16223         * Makefile.in, aclocal.m4, configure: Rebuild.
16225         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
16226         (gomp_mutex_unlock_slow): Fix typo.
16227         * config/linux/sem.c: Similarly.
16228         (gomp_sem_post_slow): Fix typo.
16229         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
16230         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
16231         [__PIC__] (sys_futex0): Don't use tmp output in asm.
16233         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
16234         (libgomp_la_LDFLAGS): Add top_srcdir to path.
16235         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
16236         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
16237         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
16238         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
16239         LDFLAGS.  Pull enable_futex check to top-level.
16240         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
16241         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
16243         First attempt at real configury.
16244         * Makefile, config.h: Remove file.
16245         * Makefile.am, Makefile.in: New file.
16246         * acinclude.m4 aclocal.m4: New file.
16247         * configure.ac, configure.tgt, configure: New file.
16249         * config/posix/lock.c: Rename from sys-lock.c.
16250         * config/posix/mutex.h: Rename from sys-mutex.h.
16251         * config/posix/sem.c: Rename from sys-sem.c.
16252         * config/posix/sem.h: Rename from sys-sem.h.
16253         * config/posix/proc.c: Rename from sys-proc.c.
16254         * config/posix/time.c: Rename from sys-proc.c.
16256         * config/linux/mutex.c: New file.
16257         * config/linux/mutex.h: New file.
16258         * config/linux/sem.c: New file.
16259         * config/linux/sem.h: New file.
16260         * config/linux/i486/futex.h: New file.
16261         * config/linux/x86_64/futex.h: New file.
16263 2005-05-04  Richard Henderson  <rth@redhat.com>
16265         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
16266         * libgomp.h: Declare them.
16267         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
16268         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
16270 2005-05-04  Richard Henderson  <rth@redhat.com>
16272         * libgomp-1 code drop
16274 2005-05-04  Richard Henderson  <rth@redhat.com>
16276         * iter.c (gomp_iter_static_next): Return tri-state on 0.
16277         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
16278         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
16279         (gomp_iter_static_next): Update.
16280         (gomp_ordered_static_next): Update.
16281         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
16282         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
16283         totally empty range.
16284         (gomp_loop_ordered_static_next): Refine test for calling
16285         gomp_ordered_static_next.
16286         * testsuite/ordered-1.c: Add case for more threads than iterations.
16288         * iter.c (gomp_iter_runtime_next_locked): Remove.
16289         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
16290         gomp_loop_guided_start, gomp_loop_ordered_static_start,
16291         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
16292         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
16293         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
16294         gomp_loop_ordered_guided_next): Downcase name, make static, add
16295         an external alias with the old name.
16296         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
16297         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
16298         switch and call one of the above static functions.
16299         * libgomp.h: Update.
16301         * work.c (gomp_work_share_start): Lock the mutex for !first too.
16302         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
16303         GOMP_loop_guided_start, GOMP_loop_runtime_start,
16304         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
16305         GOMP_loop_ordered_guided_start): Update to match.
16306         * sections.c (GOMP_sections_start): Likewise.
16307         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
16309         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
16310         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
16311         Use bounds check instead of modulus.
16312         (gomp_ordered_sync): Split out of GOMP_ordered_start.
16313         (gomp_ordered_last): Don't sync with ordered_owner here.
16314         (gomp_ordered_next): Likewise.
16315         (gomp_ordered_static_loop_next): Likewise.
16316         * loop.c, libgomp.h: Update to match.
16318         * libgomp.h (GOMP_barrier): Declare.
16320         * testsuite/barrier-1.c: New file.
16321         * testsuite/critical-1.c: New file.
16322         * testsuite/ordered-2.c: New file.
16323         * testsuite/ordered-1.c: New file.
16324         * testsuite/sections-1.c: New file.
16325         * testsuite/single-1.c: New file.
16326         * testsuite/Makefile (TESTS): Add them.
16328 2005-05-04  Richard Henderson  <rth@redhat.com>
16330         * libgomp.h (struct gomp_work_share): Add ordered_owner.
16331         * loop.c (GOMP_loop_static_start): If not the startup thread,
16332         acquire the mutex to wait for initialization complete.
16333         (GOMP_loop_ordered_static_start): Likewise.
16334         (GOMP_loop_ordered_runtime_start): Likewise.
16335         (GOMP_loop_ordered_static_first): Remove.
16336         (GOMP_loop_ordered_dynamic_first): Remove.
16337         (GOMP_loop_ordered_guided_first): Remove.
16338         (GOMP_loop_ordered_runtime_first): Remove.
16339         * ordered.c (gomp_ordered_loop_first): Post to own release when
16340         we're the first thread.
16341         (gomp_ordered_loop_last): Wait on release if not owner.
16342         (gomp_ordered_loop_next): Likewise.
16343         (gomp_ordered_static_loop_init): New.
16344         (gomp_ordered_static_loop_next): Use ordered_owner.
16345         (GOMP_ordered_start): Likewise.
16346         * work.c (gomp_new_work_share): Initialize ordered_owner.
16348 2005-05-03  Richard Henderson  <rth@redhat.com>
16350         * Makefile (OPT): New.
16351         (CFLAGS): Use it.
16353         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
16354         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
16355         * libgomp.h, libgomp.map, NOTES: Update to match.
16357         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
16358         Add initialized and thr members.
16359         (gomp_thread_start): Pause when initially spawned to wait for
16360         the whole team to be created.
16361         (gomp_team_start): Release team members at the end.
16363         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
16364         (f_foo_1): Use GOMP_loop_end.
16365         (f_foo_2): Use GOMP_loop_end_nowait.
16367         * testsuite/loop-2.c: New file.
16368         * testsuite/Makefile (TESTS): Add it.
16370 2005-05-03  Richard Henderson  <rth@redhat.com>
16372         * iter.c (gomp_iter_static_next): Fix overflow check typo.
16373         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
16374         * team.c (new_team): Initialize oldest_live_gen to 1 if no
16375         initial work_share.
16377         * testsuite/Makefile: New file.
16378         * testsuite/loop-1.c: New file.
16380 2005-05-03  Richard Henderson  <rth@redhat.com>
16382         Initial implementation and checkin.
16384 Copyright (C) 2005-2021 Free Software Foundation, Inc.
16386 Copying and distribution of this file, with or without modification,
16387 are permitted in any medium without royalty provided the copyright
16388 notice and this notice are preserved.