Daily bump.
[official-gcc.git] / libgomp / ChangeLog
blobed89f02e2906d156702412528b58b481c8b0e045
1 2021-11-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
2             Thomas Schwinge  <thomas@codesourcery.com>
4         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
5         temporary skip.
7 2021-11-30  Cesar Philippidis  <cesar@codesourcery.com>
8             Thomas Schwinge  <thomas@codesourcery.com>
10         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
11         skip.
13 2021-11-29  Richard Biener  <rguenther@suse.de>
15         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
16         return.
18 2021-11-24  Jakub Jelinek  <jakub@redhat.com>
20         PR middle-end/103384
21         * testsuite/libgomp.c/declare-variant-2.c: New test.
23 2021-11-18  David Edelsohn  <dje.gcc@gmail.com>
25         * alloc.c (gomp_aligned_alloc): Fix typo.
27 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
29         PR libgomp/102838
30         * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
31         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
32         (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
33         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
34         * work.c (alloc_work_share, gomp_work_share_start): Likewise.
35         * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
36         gomp_aligned_alloc instead of team_malloc.
38 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
40         PR libgomp/102838
41         * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
42         memalign over posix_memalign over aligned_alloc over fallback
43         with malloc instead of aligned_alloc over _aligned_alloc over
44         posix_memalign over memalign over fallback with malloc.  For
45         aligned_alloc, round up size up to multiple of al.
47 2021-11-16  Jakub Jelinek  <jakub@redhat.com>
49         * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
50         construct as implemented.
52 2021-11-15  Tobias Burnus  <tobias@codesourcery.com>
54         * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
56 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
58         * task.c (gomp_create_target_task): Copy args array as well.
59         * target.c (gomp_target_fallback): Add args argument.
60         Set gomp_icv (true)->thread_limit_var if thread_limit is present.
61         (GOMP_target): Adjust gomp_target_fallback caller.
62         (GOMP_target_ext): Likewise.
63         (gomp_target_task_fn): Likewise.
64         * config/nvptx/team.c (gomp_nvptx_main): Set
65         gomp_global_icv.thread_limit_var.
66         * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
68 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
70         * config/nvptx/team.c (__gomp_team_num): Define as
71         __attribute__((shared)) var.
72         (gomp_nvptx_main): Initialize __gomp_team_num to 0.
73         * config/nvptx/target.c (__gomp_team_num): Declare as
74         extern __attribute__((shared)) var.
75         (GOMP_teams4): Use __gomp_team_num as the team number instead of
76         %ctaid.x.  If first, initialize it to %ctaid.x.  If num_teams_lower
77         is bigger than num_blocks, use num_teams_lower teams and arrange for
78         bumping of __gomp_team_num if !first and returning false once we run
79         out of teams.
80         * config/nvptx/teams.c (__gomp_team_num): Declare as
81         extern __attribute__((shared)) var.
82         (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
84 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
86         * testsuite/libgomp.c/teams-5.c: New test.
88 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
90         PR target/103201
91         * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
92         to ...
93         * config/gcn/teams.c: ... here.  New file.
95 2021-11-12  Chung-Lin Tang  <cltang@codesourcery.com>
97         * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
98         implicit map handling to allow a "superset" existing map as valid case.
99         (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
100         (get_implicit): New function to extract implicit status.
101         (gomp_map_fields_existing): Adjust arguments in calls to
102         gomp_map_vars_existing, and add uses of get_implicit.
103         (gomp_map_vars_internal): Likewise.
104         * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
106 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
108         * libgomp_g.h (GOMP_teams4): Declare.
109         * libgomp.map (GOMP_5.1): Export GOMP_teams4.
110         * target.c (GOMP_teams4): New function.
111         * config/nvptx/target.c (GOMP_teams): Remove.
112         (GOMP_teams4): New function.
113         * config/gcn/target.c (GOMP_teams): Remove.
114         (GOMP_teams4): New function.
115         * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
116         teams instead of <= 2.
117         * testsuite/libgomp.c-c++-common/teams-2.c: New test.
119 2021-11-11  Tobias Burnus  <tobias@codesourcery.com>
121         * testsuite/libgomp.fortran/teams-1.f90: New test.
123 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
125         * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
126         * team.c (struct gomp_thread_start_data): Likewise.
127         (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
128         (gomp_team_start): Initialize start_data->num_teams and
129         start_data->team_num.  Update nthr->num_teams and nthr->team_num.
130         * teams.c (gomp_num_teams, gomp_team_num): Remove.
131         (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
132         instead of gomp_num_teams and gomp_team_num.
133         (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
134         (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
135         * testsuite/libgomp.c/teams-4.c: New test.
137 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
139         * testsuite/libgomp.c-c++-common/teams-1.c: New test.
141 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
143         * env.c (parse_gomp_openacc_dim): Restore parsing.
145 2021-10-30  Tobias Burnus  <tobias@codesourcery.com>
147         PR middle-end/102972
148         * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
149         parallel construct.
150         * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
151         * testsuite/libgomp.c/target-3.c: Likewise.
152         * testsuite/libgomp.c/target-5.c: Likewise.
153         * testsuite/libgomp.c/target-6.c: Likewise.
154         * testsuite/libgomp.c/target-teams-1.c: Likewise.
155         * testsuite/libgomp.c/teams-1.c: Likewise.
156         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
157         * testsuite/libgomp.c/thread-limit-3.c: Likewise.
158         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
159         * testsuite/libgomp.c/thread-limit-5.c: Likewise.
160         * testsuite/libgomp.fortran/icv-3.f90: Likewise.
161         * testsuite/libgomp.fortran/icv-4.f90: Likewise.
162         * testsuite/libgomp.fortran/teams1.f90: Likewise.
164 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
166         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
167         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
169 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
171         * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
172         aren't implemented for Fortran yet.
174 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
176         * testsuite/libgomp.c/loop-26.c: New test.
177         * testsuite/libgomp.c/loop-27.c: New test.
179 2021-10-25  Tobias Burnus  <tobias@codesourcery.com>
181         PR testsuite/102910
182         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
183         instead of #include <alloca.h> + alloca.
185 2021-10-21  Chung-Lin Tang  <cltang@codesourcery.com>
187         * libgomp.texi (Support of strictly structured blocks in Fortran):
188         Adjust to 'Y'.
189         * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
191 2021-10-20  Chung-Lin Tang  <cltang@codesourcery.com>
193         * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
194         * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
196 2021-10-20  Jakub Jelinek  <jakub@redhat.com>
198         PR libgomp/102838
199         * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
200         (struct gomp_work_share): Only use aligned(64) attribute if
201         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
202         add padding before lock to ensure lock is at offset 64 bytes
203         into the structure.
204         (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
205         New poor man's static assertions.
206         * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
207         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
209 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
210             Richard Biener  <rguenther@suse.de>
212         * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
214 2021-10-18  Jakub Jelinek  <jakub@redhat.com>
216         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
217         && gomp_places_list_len < count after nfirst <= nlast loop condition.
219 2021-10-18  Tobias Burnus  <tobias@codesourcery.com>
221         PR fortran/102086
222         PR fortran/92189
223         PR fortran/92621
224         PR fortran/101308
225         PR fortran/101309
226         PR fortran/101635
227         PR fortran/92482
228         * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
230 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
232         * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
233         type from char [50] to const char *.
234         (places_array): Add a testcase for simplified syntax place followed
235         by length or length and stride.
237 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
239         * env.c (parse_one_place): Handle non-negative-number the same
240         as { non-negative-number }.  Reject even !number:1 and
241         !number:1:stride or !place:1 or !place:1:stride instead of just
242         length other than 1.
243         * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
244         and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
245         omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
246         as implemented.
247         * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
248         simplified syntax.
250 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
252         * env.c (parse_schedule): For strtoul or strtoull calls which don't
253         clearly reject return value 0 as invalid handle the case where end
254         pointer is the same as first argument as invalid.
255         (parse_unsigned_long_1): Likewise.
256         (parse_one_place): Likewise.
257         (parse_places_var): Likewise.
258         (parse_stacksize): Likewise.
259         (parse_spincount): Likewise.
260         (parse_affinity): Likewise.
261         (parse_gomp_openacc_dim): Likewise.  Avoid strict aliasing violation.
262         Make code valid C89.
263         * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
264         For strtoul calls which don't clearly reject return value 0 as
265         invalid handle the case where end pointer is the same as first
266         argument as invalid.
267         (gomp_affinity_init_level_1): Likewise.
268         (gomp_affinity_init_numa_domains): Likewise.
269         * config/rtems/proc.c (parse_thread_pools): Likewise.
271 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
273         * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
274         after creating count places clean up and return immediately.
275         * testsuite/libgomp.c/places-6.c: New test.
276         * testsuite/libgomp.c/places-7.c: New test.
277         * testsuite/libgomp.c/places-8.c: New test.
278         * testsuite/libgomp.c/places-9.c: New test.
279         * testsuite/libgomp.c/places-10.c: New test.
281 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
283         * env.c (parse_places_var): Handle numa_domains as level 5.
284         * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
285         function.
286         (gomp_affinity_init_level): Use it instead of
287         gomp_affinity_init_level_1 for level == 5.
288         * testsuite/libgomp.c/places-5.c: New test.
290 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
292         * env.c (parse_places_var): Handle ll_caches as level 4.
293         * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
294         function.
295         (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
296         last level cache.
297         (gomp_affinity_init_level): Likewise.
298         * testsuite/libgomp.c/places-1.c: New test.
299         * testsuite/libgomp.c/places-2.c: New test.
300         * testsuite/libgomp.c/places-3.c: New test.
301         * testsuite/libgomp.c/places-4.c: New test.
303 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
305         * libgomp.texi (OpenMP 5.0): Update entry for declare variant
306         directive.
308 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
310         * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
312 2021-10-12  Julian Brown  <julian@codesourcery.com>
314         * target.c (gomp_copy_host2dev): Release device lock on cbuf
315         error path.
317 2021-10-12  Tobias Burnus  <tobias@codesourcery.com>
319         * testsuite/libgomp.fortran/icv-3.f90: New.
320         * testsuite/libgomp.fortran/icv-4.f90: New.
322 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
324         * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
325         omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
326         OMP_TEAMS_THREAD_LIMIT): Document.
328 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
330         * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
331         to avoid makeinfo warnings.
333 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
335         * testsuite/libgomp.c-c++-common/icv-3.c: New test.
336         * testsuite/libgomp.c-c++-common/icv-4.c: New test.
338 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
340         PR libgomp/102628
341         PR libgomp/102668
342         * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
343         allocation sizes from 420 to 320 and from 768 to 568.
344         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
345         * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
346         for cr from 16 to 4.
348 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
350         * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
351         * testsuite/libgomp.c/scan-12.c: Likewise.
352         * testsuite/libgomp.c/scan-13.c: Likewise.
353         * testsuite/libgomp.c/scan-14.c: Likewise.
354         * testsuite/libgomp.c/scan-15.c: Likewise.
355         * testsuite/libgomp.c/scan-16.c: Likewise.
356         * testsuite/libgomp.c/scan-17.c: Likewise.
357         * testsuite/libgomp.c/scan-18.c: Likewise.
358         * testsuite/libgomp.c/scan-19.c: Likewise.
359         * testsuite/libgomp.c/scan-20.c: Likewise.
360         * testsuite/libgomp.c/scan-21.c: Likewise.
361         * testsuite/libgomp.c/scan-22.c: Likewise.
362         * testsuite/libgomp.c++/scan-9.C: Likewise.
363         * testsuite/libgomp.c++/scan-10.C: Likewise.
364         * testsuite/libgomp.c++/scan-11.C: Likewise.
365         * testsuite/libgomp.c++/scan-12.C: Likewise.
366         * testsuite/libgomp.c++/scan-13.C: Likewise.
367         * testsuite/libgomp.c++/scan-14.C: Likewise.
368         * testsuite/libgomp.c++/scan-15.C: Likewise.
369         * testsuite/libgomp.c++/scan-16.C: Likewise.
371 2021-10-12  Kewen Lin  <linkw@linux.ibm.com>
373         * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
375 2021-10-11  Marcel Vollweiler  <marcel@codesourcery.com>
377         * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
378         omp_atv_serialized.
379         * omp.h.in: Add deprecated flag for omp_atv_sequential.
380         * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
381         * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
382         * testsuite/libgomp.fortran/alloc-12.f90: New test.
384 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
386         * omp.h.in (omp_set_num_teams, omp_get_max_teams,
387         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
388         * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
389         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
390         * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
391         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
392         * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
393         * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
394         omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
395         omp_set_teams_thread_limit{,_,_8_}.
396         * icv.c (omp_set_num_teams, omp_get_max_teams,
397         omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
398         functions.
399         * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
400         (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
401         (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
402         vars.
403         * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
404         gomp_teams_thread_limit_var as fallback if not zero.  If num_teams
405         is not specified, use gomp_nteams_var.
406         * fortran.c (omp_set_num_teams, omp_get_max_teams,
407         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
408         ialias_redirect.
409         (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
410         omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
411         omp_get_teams_thread_limit_): New functions.
413 2021-10-09  liuhongt  <hongtao.liu@intel.com>
415         * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
416         * testsuite/libgomp.c++/scan-11.C: Ditto.
417         * testsuite/libgomp.c++/scan-12.C: Ditto.
418         * testsuite/libgomp.c++/scan-13.C: Ditto.
419         * testsuite/libgomp.c++/scan-14.C: Ditto.
420         * testsuite/libgomp.c++/scan-15.C: Ditto.
421         * testsuite/libgomp.c++/scan-16.C: Ditto.
422         * testsuite/libgomp.c++/scan-9.C: Ditto.
423         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
424         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
425         * testsuite/libgomp.c/scan-11.c: Ditto.
426         * testsuite/libgomp.c/scan-12.c: Ditto.
427         * testsuite/libgomp.c/scan-13.c: Ditto.
428         * testsuite/libgomp.c/scan-14.c: Ditto.
429         * testsuite/libgomp.c/scan-15.c: Ditto.
430         * testsuite/libgomp.c/scan-16.c: Ditto.
431         * testsuite/libgomp.c/scan-17.c: Ditto.
432         * testsuite/libgomp.c/scan-18.c: Ditto.
433         * testsuite/libgomp.c/scan-19.c: Ditto.
434         * testsuite/libgomp.c/scan-20.c: Ditto.
435         * testsuite/libgomp.c/scan-21.c: Ditto.
436         * testsuite/libgomp.c/scan-22.c: Ditto.
438 2021-10-09  Jakub Jelinek  <jakub@redhat.com>
440         * libgomp.texi (OpenMP 5.1): Mention implemented support for
441         structured block sequences in C/C++.  Mention support for
442         unconstrained/reproducible modifiers on order clause.
443         Mention partial (C/C++ only) support of extentensions to atomics
444         construct.  Mention partial (C/C++ on clause only) support of
445         align/allocator modifiers on allocate clause.
447 2021-10-02  Tobias Burnus  <tobias@codesourcery.com>
449         * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
450         based on libgomp.c-c++-common/order-reproducible-1.c.
451         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
452         * testsuite/libgomp.fortran/my-usleep.c: New test.
454 2021-10-01  Tobias Burnus  <tobias@codesourcery.com>
456         * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
457         * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
458         * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
459         * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
460         based on libgomp.c-c++-common/alloc-9.c.
462 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
464         * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
465         * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
467 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
469         * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
470         ialias_redirect.
471         * env.c (handle_omp_display_env): Use ialias_call.
472         * icv-device.c: Move ialias right below each function.
473         (omp_get_device_num): Use ialias_call.
474         * fortran.c (omp_fulfill_event): Add ialias_redirect.
475         * icv.c (omp_get_active_level): Add ialias_redirect.
477 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
479         * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
480         __alloc_align__ (1) attribute.
481         * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
483 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
485         * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
486         for -fintrinsic-modules-path= warning of the C compiler.
487         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
488         * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
490 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
492         * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
493         omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
494         * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
495         omp_realloc): Add.
496         * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
497         omp_realloc): Add.
498         * testsuite/libgomp.fortran/alloc-10.f90: New test.
499         * testsuite/libgomp.fortran/alloc-6.f90: New test.
500         * testsuite/libgomp.fortran/alloc-7.c: New test.
501         * testsuite/libgomp.fortran/alloc-7.f90: New test.
502         * testsuite/libgomp.fortran/alloc-8.f90: New test.
503         * testsuite/libgomp.fortran/alloc-9.f90: New test.
505 2021-09-30  Jakub Jelinek  <jakub@redhat.com>
507         * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
508         omp_realloc): New prototypes.
509         (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
510         attribute.
511         * allocator.c: Include string.h.
512         (omp_aligned_alloc): No longer static, add ialias.  Add new_alignment
513         variable and use it instead of alignment so that when retrying the old
514         alignment is used again.  Don't retry if new alignment is the same
515         as old alignment, unless allocator had pool size.
516         (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
517         (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
518         * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
519         omp_aligned_calloc and omp_realloc.
520         * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
521         omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
522         * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
523         * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
524         * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
525         * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
527 2021-09-28  Tobias Burnus  <tobias@codesourcery.com>
529         PR libgomp/96661
530         * configure.ac: Only check for int-type = 2*size_t support when
531         building with Fortran support.
532         * configure: Regenerate.
534 2021-09-28  Thomas Schwinge  <thomas@codesourcery.com>
536         * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
537         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
539 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
541         * team.c: Initialize start_data.
542         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
543         * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
545 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
547         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
548         dg-message back to dg-note.
550 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
552         PR fortran/94070
553         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
554         expected dg-note output.
556 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
558         PR fortran/55534
559         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
560         r12-3722 by removing -Wno-missing-include-dirs.
561         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
563 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
565         * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
566         * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
568 2021-09-21  Tobias Burnus  <tobias@codesourcery.com>
570         PR fortran/55534
571         * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
572         to ALWAYS_CFLAGS.
573         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
575 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
577         * testsuite/libgomp.c++/default-1.C: New test.
578         * testsuite/libgomp.c-c++-common/default-1.c: New test.
579         * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
580         to default clause in C and C++" as implemented.
582 2021-09-17  Julian Brown  <julian@codesourcery.com>
584         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
586 2021-09-17  Julian Brown  <julian@codesourcery.com>
588         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
590 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
592         * libgomp.texi (OpenMP 5.1): Spelling fix,
593         declare variante -> declare variant.
595 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
597         * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
598         Use /* */ comments instead of //.
599         * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
600         * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
601         * testsuite/libgomp.c++/atomic-16.C: New test.
602         * testsuite/libgomp.c++/atomic-17.C: New test.
604 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
606         * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
607         * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
608         * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
610 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
612         * libgomp.texi (OpenMP Implementation Status): Extend
613         OpenMP 5.0 section.
614         (OpenACC Profiling Interface): Fix typo.
616 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
618         * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
619         not to 4.5; link to new section.
620         (OpenMP Implementation Status): New.
622 2021-09-06  Thomas Schwinge  <thomas@codesourcery.com>
624         * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
626 2021-09-03  Tobias Burnus  <tobias@codesourcery.com>
628         * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
629         dg-output.
630         * testsuite/libgomp.fortran/error-1.f90: Likewise.
632 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
633             Jakub Jelinek  <jakub@redhat.com>
635         * testsuite/libgomp.c/address-space-1.c: New file.
637 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
639         * testsuite/lib/libgomp.exp
640         (check_effective_target_offload_target_intelmic): Remove 'proc'.
641         (check_effective_target_offload_device_intel_mic): New 'proc'.
642         * testsuite/libgomp.c-c++-common/on_device_arch.h
643         (device_arch_intel_mic, on_device_arch_intel_mic): New.
644         * testsuite/libgomp.c-c++-common/target-45.c: Use that for
645         'dg-xfail-run-if'.
646         * testsuite/libgomp.fortran/target10.f90: Likewise.
648 2021-08-23  Tobias Burnus  <tobias@codesourcery.com>
650         * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
651         * testsuite/libgomp.fortran/taskloop-4.f90: New test.
652         * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
653         * testsuite/libgomp.fortran/taskloop-5.f90: New test.
655 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
657         * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
658         * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
659         * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
661 2021-08-22  Thomas Schwinge  <thomas@codesourcery.com>
663         * config/nvptx/error.c (fwrite, exit): Override, too.
664         * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
665         of offloading testing.
666         * testsuite/libgomp.fortran/error-1.f90: Likewise.
668 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
670         * testsuite/libgomp.fortran/error-1.f90: New test.
672 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
674         * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
675         * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
676         * error.c (GOMP_warning, GOMP_error): New functions.
677         * testsuite/libgomp.c-c++-common/error-1.c: New test.
679 2021-08-18  Tobias Burnus  <tobias@codesourcery.com>
681         * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
682         omp_target_free. omp_target_is_present, omp_target_memcpy,
683         omp_target_memcpy_rect, omp_target_associate_ptr,
684         omp_target_disassociate_ptr): Add interface.
685         * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
686         omp_target_free. omp_target_is_present, omp_target_memcpy,
687         omp_target_memcpy_rect, omp_target_associate_ptr,
688         omp_target_disassociate_ptr): Add interface.
689         * testsuite/libgomp.fortran/alloc-1.F90: Remove local
690         interface block for omp_alloc + omp_free.
691         * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
692         * testsuite/libgomp.fortran/refcount-1.f90: New test.
693         * testsuite/libgomp.fortran/target-12.f90: New test.
695 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
697         * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
699 2021-08-17  Tobias Burnus  <tobias@codesourcery.com>
701         * testsuite/libgomp.fortran/scope-1.f90: New test.
702         * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
704 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
706         * Makefile.am (libgomp_la_SOURCES): Add scope.c
707         * Makefile.in: Regenerated.
708         * libgomp_g.h (GOMP_scope_start): Declare.
709         * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
710         * scope.c: New file.
711         * testsuite/libgomp.c-c++-common/scope-1.c: New test.
712         * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
714 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
716         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
717         '?:' issues.
719 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
721         * testsuite/libgomp.fortran/masked-1.f90: New test.
723 2021-08-13  Thomas Schwinge  <thomas@codesourcery.com>
725         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
727 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
729         * testsuite/libgomp.c-c++-common/masked-1.c: New test.
731 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
733         * env.c (parse_bind_var): Accept 'primary' as alias for
734         'master'.
735         (omp_display_env): Add TODO comment to
736         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
737         * libgomp.texi: Change 'master thread' to 'primary thread'
738         in line with OpenMP 5.1.
739         (omp_get_proc_bind): Add omp_proc_bind_primary and note that
740         omp_proc_bind_master is an alias of it.
741         (OMP_PROC_BIND): Mention 'PRIMARY'.
742         * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
743         (omp_proc_bind_primary): Add.
744         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
745         * omp_lib.f90.in (omp_proc_bind_primary): Add.
746         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
747         * omp_lib.h.in (omp_proc_bind_primary): Add.
748         * testsuite/libgomp.c/affinity-1.c: Check that
749         'primary' works and is identical to 'master'.
751 2021-08-09  Julian Brown  <julian@codesourcery.com>
752             Kwok Cheung Yeung  <kcy@codesourcery.com>
753             Thomas Schwinge  <thomas@codesourcery.com>
755         * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
756         16.
757         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
758         [acc_device_radeon]: Update.
759         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
760         [ACC_DEVICE_TYPE_radeon]: Likewise.
761         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
762         [acc_device_radeon]: Likewise.
763         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
764         [ACC_DEVICE_TYPE_radeon]: Likewise.
765         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
766         'openacc_radeon_accel_selected' and '-O0'.
767         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
769 2021-08-05  Chung-Lin Tang  <cltang@codesourcery.com>
771         * icv-device.c (omp_get_device_num): New API function, host side.
772         * fortran.c (omp_get_device_num_): New interface function.
773         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
774         * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
775         omp_get_device_num_.
776         * libgomp.texi (omp_get_device_num): Add documentation for new API
777         function.
778         * omp.h.in (omp_get_device_num): Add declaration.
779         * omp_lib.f90.in (omp_get_device_num): Likewise.
780         * omp_lib.h.in (omp_get_device_num): Likewise.
781         * target.c (gomp_load_image_to_device): If additional entry for device
782         number exists at end of returned entries from 'load_image_func' hook,
783         copy the assigned device number over to the device variable.
784         * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
785         (omp_get_device_num): New API function, device side.
786         * plugin/plugin-gcn.c ("symcat.h"): Add include.
787         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
788         at end of returned 'target_table' entries.
789         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
790         (omp_get_device_num): New API function, device side.
791         * plugin/plugin-nvptx.c ("symcat.h"): Add include.
792         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
793         at end of returned 'target_table' entries.
794         * testsuite/lib/libgomp.exp
795         (check_effective_target_offload_target_intelmic): New function for
796         testing for intelmic offloading.
797         * testsuite/libgomp.c-c++-common/target-45.c: New test.
798         * testsuite/libgomp.fortran/target10.f90: New test.
800 2021-07-30  Thomas Schwinge  <thomas@codesourcery.com>
801             Ulrich Drepper  <drepper@redhat.com>
803         * fortran.c (omp_display_env_, omp_display_env_8_): Only
804         '#ifndef LIBGOMP_OFFLOADED_ONLY'.
806 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
807             Julian Brown  <julian@codesourcery.com>
808             Kwok Cheung Yeung  <kcy@codesourcery.com>
810         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
811         's%oaccdevlow%oaccloops%g'.
812         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
813         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
814         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
815         Likewise.
816         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
817         Likewise.
818         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
819         Likewise.
820         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
821         Likewise.
822         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
823         Likewise.
824         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
825         Likewise.
826         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
827         Likewise.
828         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
829         Likewise.
830         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
832 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
834         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
835         threader.
836         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
838 2021-07-27  Ulrich Drepper  <drepper@gmail.com>
840         * env.c (wait_policy, stacksize): New static variables,
841         move out of handle_omp_display_env.
842         (omp_display_env): New function.  The meat of the old
843         handle_omp_display_env function.
844         (handle_omp_display_env): Change to not take parameters
845         and instead use the global variables.  Only perform
846         parsing, defer to omp_display_env for the implementation.
847         (initialize_env): Remove local variables wait_policy and
848         stacksize.  Don't pass parameters to handle_omp_display_env.
849         * fortran.c: Add ialias_redirect for omp_display_env.
850         (omp_display_env_, omp_display_env_8_): New functions.
851         * libgomp.map (OMP_5.1): New version.  Add omp_display_env,
852         omp_display_env_, and omp_display_env_8_.
853         * omp.h.in: Declare omp_display_env.
854         * omp_lib.f90.in: Likewise.
855         * omp_lib.h.in: Likewise.
857 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
858             Julian Brown  <julian@codesourcery.com>
860         * target.c (gomp_coalesce_buf_add): Update comment.
861         (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
862         'aq && cbuf'.
863         (gomp_map_vars_internal): Only 'if (!aq)', do
864         'gomp_coalesce_buf_add'.
865         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
866         XFAIL.
868 2021-07-27  Julian Brown  <julian@codesourcery.com>
869             Thomas Schwinge  <thomas@codesourcery.com>
871         * libgomp.h (gomp_copy_host2dev): Update prototype.
872         * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
873         argument to gomp_copy_host2dev (false).
874         * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
875         (copy_data): Don't free src.
876         (queue_push_copy): Remove free_src handling.
877         (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
878         (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
879         snapshotting.
880         (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
881         queue_push_copy.
882         * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
883         (gomp_copy_host2dev): Add EPHEMERAL parameter.  Snapshot source
884         data when true, and set up deferred freeing of temporary buffer.
885         (gomp_copy_dev2host): Update call to goacc_device_copy_async.
886         (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
887         (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
888         calls to gomp_copy_host2dev with appropriate ephemeral argument.
889         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
890         XFAIL.
892 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
893             Tom de Vries  <tom@codesourcery.com>
895         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
896         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
898 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
900         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
901         sequencing of 'async' data copying vs. profiling events.
902         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
903         Likewise.
905 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
906             Julian Brown  <julian@codesourcery.com>
908         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
909         'async'/'wait' issue.
910         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
911         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
912         * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
914 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
915             Joseph Myers  <joseph@codesourcery.com>
916             Cesar Philippidis  <cesar@codesourcery.com>
918         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
919         file.
920         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
921         Likewise.
922         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
923         Likewise.
924         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
926 2021-07-20  Thomas Schwinge  <thomas@codesourcery.com>
928         PR target/101484
929         * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
930         '-Wno-error=array-bounds'.
931         * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
932         * libgomp.h [__AMDGCN__]: Likewise.
934 2021-07-19  Thomas Schwinge  <thomas@codesourcery.com>
936         PR target/101484
937         * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
938         * libgomp.h [__AMDGCN__]: Likewise.
940 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
941             Florian Weimer  <fweimer@redhat.com>
943         * config/linux/sem.h: Don't include limits.h.
944         (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
945         * config/linux/affinity.c: Include limits.h.
947 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
949         PR middle-end/94366
950         * testsuite/libgomp.c-c++-common/pr94366.c: New test.
952 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
954         PR other/67300
955         * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
956         -foffload=nvptx-none= by -foffload-options=nvptx-none= to
957         avoid disabling other offload targets.
958         * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
959         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
960         * testsuite/libgomp.c/target-44.c: Likewise.
962 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
964         * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
965         target has shared memory and disable some scalar pointer/allocatable
966         checks if not as firstprivate does not work.
968 2021-06-25  Chung-Lin Tang  <cltang@codesourcery.com>
970         PR testsuite/101114
971         * testsuite/libgomp.c-c++-common/struct-elem-5.c:
972         Add "target offload_device_nonshared_as" condition for enabling test.
974 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
976         * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
977         * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
978         * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
979         * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
981 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
983         PR middle-end/101167
984         * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
986 2021-06-17  Chung-Lin Tang  <cltang@codesourcery.com>
988         * hashtab.h (htab_clear): New function with initialization code
989         factored out from...
990         (htab_create): ...here, adjust to use htab_clear function.
991         * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
992         special refcount values, add comments.
993         (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
994         (REFCOUNT_LINK): Likewise.
995         (REFCOUNT_STRUCTELEM): New special refcount range for structure
996         element siblings.
997         (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
998         sibling maps.
999         (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
1000         (REFCOUNT_STRUCTELEM_FLAG_LAST):  Flag to indicate last sibling.
1001         (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
1002         (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
1003         (struct splay_tree_key_s): Add structelem_refcount and
1004         structelem_refcount_ptr fields into a union with dynamic_refcount.
1005         Add comments.
1006         (gomp_map_vars): Delete declaration.
1007         (gomp_map_vars_async): Likewise.
1008         (gomp_unmap_vars): Likewise.
1009         (gomp_unmap_vars_async): Likewise.
1010         (goacc_map_vars): New declaration.
1011         (goacc_unmap_vars): Likewise.
1012         * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
1013         (goacc_enter_datum): Likewise.
1014         (goacc_enter_data_internal): Likewise.
1015         * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
1016         and goacc_unmap_vars.
1017         (GOACC_data_start): Adjust to use goacc_map_vars.
1018         (GOACC_data_end): Adjust to use goacc_unmap_vars.
1019         * target.c (hash_entry_type): New typedef.
1020         (htab_alloc): New function hook for hashtab.h.
1021         (htab_free): Likewise.
1022         (htab_hash): Likewise.
1023         (htab_eq): Likewise.
1024         (hashtab.h): Add file include.
1025         (gomp_increment_refcount): New function.
1026         (gomp_decrement_refcount): Likewise.
1027         (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
1028         gomp_increment_refcount.
1029         (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
1030         to gomp_map_vars_existing.
1031         (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
1032         variable to guard OpenMP specific paths, adjust calls to
1033         gomp_map_vars_existing, add structure element sibling splay_tree_key
1034         sequence creation code, adjust Fortran map case to avoid increment
1035         under OpenMP.
1036         (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
1037         local refcount_set if caller passed in NULL, adjust call to
1038         gomp_map_vars_internal.
1039         (gomp_map_vars_async): Adjust and rename into...
1040         (goacc_map_vars): ...this new function, adjust call to
1041         gomp_map_vars_internal.
1042         (gomp_remove_splay_tree_key): New function with code factored out from
1043         gomp_remove_var_internal.
1044         (gomp_remove_var_internal): Add code to handle removing multiple
1045         splay_tree_key sequence for structure elements, adjust code to use
1046         gomp_remove_splay_tree_key for splay-tree key removal.
1047         (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
1048         gomp_decrement_refcount.
1049         (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
1050         local refcount_set if caller passed in NULL, adjust call to
1051         gomp_unmap_vars_internal.
1052         (gomp_unmap_vars_async): Adjust and rename into...
1053         (goacc_unmap_vars): ...this new function, adjust call to
1054         gomp_unmap_vars_internal.
1055         (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
1056         gomp_unmap_vars.
1057         (GOMP_target_ext): Likewise.
1058         (gomp_target_data_fallback): Adjust call to gomp_map_vars.
1059         (GOMP_target_data): Likewise.
1060         (GOMP_target_data_ext): Likewise.
1061         (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
1062         (gomp_exit_data): Add refcount_set parameter, adjust to use
1063         gomp_decrement_refcount, adjust to queue splay-tree keys for removal
1064         after main loop.
1065         (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
1066         gomp_map_vars and gomp_exit_data.
1067         (gomp_target_task_fn): Likewise.
1068         * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
1069         * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
1070         * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
1071         * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
1072         * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
1073         * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
1075 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
1077         PR fortran/92568
1078         * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
1080 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
1081             Thomas Schwinge  <thomas@codesourcery.com>
1083         * libgomp.map (GOACC_2.0.2): New symbol version.
1084         * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
1085         * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
1087 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
1088             Andrew Stubbs  <ams@codesourcery.com>
1090         * oacc-mem.c (goacc_enter_exit_data_internal): New function,
1091         extracted from...
1092         (GOACC_enter_exit_data): ... here.
1093         (GOACC_declare): Use it.
1095 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
1097         * oacc-parallel.c (GOACC_declare): Move...
1098         * oacc-mem.c: ... here.
1099         * libgomp_g.h: Adjust.
1101 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
1102             Thomas Schwinge  <thomas@codesourcery.com>
1104         * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
1105         handling.
1107 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
1109         PR tree-optimization/100981
1110         * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
1111         dsdotr and dsdoti to 0.
1113 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
1115         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
1116         if atomic compare-and-swap is supported on 'int'.
1118 2021-06-09  Richard Biener  <rguenther@suse.de>
1120         PR tree-optimization/100981
1121         * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
1123 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1125         * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
1126         unconditionally.
1127         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1128         Update.
1129         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1130         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
1132 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1134         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
1135         '-DACC_MEM_SHARED=0'.
1136         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
1137         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
1138         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
1139         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1140         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1141         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
1142         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1143         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1144         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1145         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1146         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
1147         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
1148         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
1149         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
1150         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
1151         'acc_device_radeon' testing.
1152         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
1153         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
1154         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
1155         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
1156         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1157         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1158         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
1159         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
1160         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
1161         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
1162         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
1163         for non-'openacc_nvidia_accel_selected'.
1164         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1165         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
1166         all implement this checking".
1167         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1168         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1169         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1170         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1171         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1173 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1175         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
1176         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
1178 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1180         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
1181         for 'acc_device_radeon'.
1183 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1185         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
1186         for non-'acc_device_nvidia'.
1188 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1190         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
1191         'acc_device_radeon' testing.
1192         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1193         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1194         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1196 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1198         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
1199         require 'openacc_nvidia_accel_selected'.  Fix up for
1200         'ACC_DEVICE_TYPE_radeon'.
1202 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1204         * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
1205         'openacc_nvidia_accel_selected'.
1206         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
1208 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1210         * testsuite/lib/libgomp.exp
1211         (check_effective_target_openacc_radeon_accel_selected):
1212         Streamline.
1214 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1216         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
1217         PR80547 workaround.
1219 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1221         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
1222         <acc_device_nvidia>: Update comment.
1224 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
1226         * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
1228 2021-05-27  Jakub Jelinek  <jakub@redhat.com>
1230         * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
1231         check_effective_target_openacc_cublas,
1232         check_effective_target_openacc_cudart): New.
1233         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
1234         target openacc_cublas.
1235         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
1236         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
1237         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
1238         target openacc_cuda.
1239         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
1240         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
1241         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
1242         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
1243         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
1244         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
1245         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
1246         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
1247         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
1248         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
1249         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
1250         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1251         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
1252         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
1253         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
1254         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
1255         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
1256         targets openacc_cublas and openacc_cudart.
1257         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
1258         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
1259         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
1260         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
1261         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
1262         Require effective target openacc_cudart.
1263         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
1264         for effective target openacc_cuda and add && defined USE_CUDA_H to
1265         preprocessor conditionals.  Guard -lcuda also on openacc_cuda
1266         effective target.
1268 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
1270         PR libgomp/100573
1271         * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
1272         GOMP_target_end_data, GOMP_target_update_ext,
1273         GOMP_target_enter_exit_data): New dummy entrypoints.
1274         * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
1275         GOMP_target_end_data, GOMP_target_update_ext,
1276         GOMP_target_enter_exit_data): Likewise.
1277         * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
1278         OMPFROM, OMPTO): Define.
1279         (main): Remove #pragma omp target teams around all the tests.
1280         * testsuite/libgomp.c-c++-common/target-41.c: New test.
1281         * testsuite/libgomp.c-c++-common/target-42.c: New test.
1283 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
1285         PR middle-end/99928
1286         * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
1288 2021-05-24  Tobias Burnus  <tobias@codesourcery.com>
1290         PR fortran/86470
1291         * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
1292         * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
1293         * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
1295 2021-05-22  Thomas Schwinge  <thomas@codesourcery.com>
1297         PR testsuite/90115
1298         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
1299         uninteresting/varying diagnostics.
1301 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
1303         PR middle-end/90115
1304         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
1305         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1307 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
1309         PR middle-end/90115
1310         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
1311         file.
1312         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
1313         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
1314         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1315         Likewise.
1316         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1317         Likewise.
1318         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1319         Likewise.
1320         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1321         Likewise.
1322         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1323         Likewise.
1324         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1325         Likewise.
1326         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1327         Likewise.
1328         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1329         Likewise.
1330         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1331         Likewise.
1332         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1333         Likewise.
1334         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1335         Likewise.
1336         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1337         Likewise.
1338         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1339         Likewise.
1340         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1341         Likewise.
1342         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1343         Likewise.
1344         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1345         Likewise.
1346         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1347         Likewise.
1348         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1349         Likewise.
1350         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1351         Likewise.
1352         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1353         Likewise.
1354         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1355         Likewise.
1356         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
1357         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
1358         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
1359         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
1360         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
1361         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
1362         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
1363         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
1364         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1365         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1366         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
1367         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
1368         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1369         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
1370         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1371         Likewise.
1372         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
1373         Likewise.
1374         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
1375         Likewise.
1376         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1377         Likewise.
1378         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
1379         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
1380         Likewise.
1381         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1382         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1383         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1384         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
1385         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
1386         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1387         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1388         Likewise.
1389         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1390         Likewise.
1391         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1392         Likewise.
1393         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1394         Likewise.
1395         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1396         Likewise.
1397         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1398         Likewise.
1399         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1400         Likewise.
1401         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1402         Likewise.
1403         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1404         Likewise.
1405         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1406         Likewise.
1407         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1408         Likewise.
1409         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1410         Likewise.
1411         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1412         Likewise.
1413         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1414         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1415         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
1416         Likewise.
1417         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
1418         Likewise.
1419         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1420         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1421         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1423 2021-05-21  Julian Brown  <julian@codesourcery.com>
1424             Chung-Lin Tang  <cltang@codesourcery.com>
1425             Thomas Schwinge  <thomas@codesourcery.com>
1427         PR middle-end/90115
1428         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
1429         test.
1430         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
1431         Likewise.
1432         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
1433         Likewise.
1435 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
1437         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
1438         for nvptx offloading.
1440 2021-05-21  Tobias Burnus  <tobias@codesourcery.com>
1442         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
1444 2021-05-19  Thomas Schwinge  <thomas@codesourcery.com>
1446         PR target/83812
1447         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
1449 2021-05-19  Julian Brown  <julian@codesourcery.com>
1451         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
1453 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
1455         * testsuite/lib/libgomp.exp
1456         (check_effective_target_offload_target_nvptx): Don't shadow global
1457         'offload_targets' variable.
1459 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
1461         * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
1462         '-latomic' to nvptx offloading compilation.
1463         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1465 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
1467         * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
1468         offloading compilation.
1470 2021-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
1472         * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
1473         if new tasks generated.
1474         * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
1476 2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
1478         * testsuite/libgomp.fortran/parallel-master.f90: New test.
1480 2021-05-13  Martin Liska  <mliska@suse.cz>
1482         PR testsuite/100569
1483         * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
1484         * testsuite/libgomp.c/pr46032-2.c: Likewise.
1485         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
1486         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
1488 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
1490         * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
1491         * testsuite/libgomp.fortran/task-detach-12.f90: New test.
1493 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
1495         PR middle-end/100471
1496         * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
1497         GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
1498         reduction pointer.
1499         * testsuite/libgomp.c/task-reduction-4.c: New test.
1501 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
1502             Tom de Vries  <tdevries@suse.de>
1504         * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
1505         complex/floating-point || + && reduction with 'omp target'.
1506         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1508 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
1510         * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
1511         * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
1512         * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
1513         * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
1515 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
1517         PR testsuite/100397
1518         * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
1519         declaration to scope of non-'depend'-guarded assignment to avoid races.
1521 2021-05-03  Tom de Vries  <tdevries@suse.de>
1523         PR target/100321
1524         * testsuite/libgomp.c/target-44.c: New test.
1526 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
1528         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
1530 2021-04-29  Tom de Vries  <tdevries@suse.de>
1532         * testsuite/libgomp.c/pr81778.c: New test.
1534 2021-04-29  Tom de Vries  <tdevries@suse.de>
1536         PR target/100232
1537         * testsuite/libgomp.c/target-43.c: New file.
1539 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
1540             Tobias Burnus  <tobias@codesourcery.com>
1542         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
1543         * target.c (gomp_load_plugin_for_device): If set and if a plugin
1544         can't be dlopened, silently assume it has no devices.
1545         * Makefile.in: Regenerate.
1546         * config.h.in: Regenerate.
1547         * configure: Regenerate.
1549 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
1551         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1552         Use [Ww]arning in dg-bogus as FE diagnostic and default
1553         diagnostic differ and the result depends on ENABLE_OFFLOAD.
1554         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1555         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1556         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1558 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
1560         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1561         Correct spelling in dg-bogus to match -Wopenacc-parallelism.
1562         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1563         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1564         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1566 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
1567             Nathan Sidwell  <nathan@codesourcery.com>
1568             Tom de Vries  <vries@codesourcery.com>
1569             Julian Brown  <julian@codesourcery.com>
1570             Kwok Cheung Yeung  <kcy@codesourcery.com>
1572         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
1573         '-Wopenacc-parallelism', and match diagnostics, as appropriate.
1574         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
1575         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1576         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1577         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1578         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
1579         Likewise.
1580         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
1581         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1582         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1583         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1584         Likewise.
1585         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
1586         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1587         Likewise.
1588         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1589         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
1590         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
1591         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
1592         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
1593         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
1594         Likewise.
1595         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1596         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
1597         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1598         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1599         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1600         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
1601         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1602         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1603         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1604         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1605         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1607 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
1609         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
1610         compile with '-w'.
1611         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1612         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1613         Likewise.
1614         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1615         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
1616         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1617         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1618         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1619         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1620         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
1622 2021-04-22  Richard Biener  <rguenther@suse.de>
1624         * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
1625         only on nvptx-none.
1627 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
1629         * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
1630         omp_depend_kind instead of defining it as 16.
1632 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
1634         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
1635         New, based on check_effective_target_offload_target_nvptx.
1636         (check_effective_target_offload_target_nvptx): Call it.
1637         (check_effective_target_offload_target_amdgcn): New.
1638         * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
1639         Require target offload_target_nvptx || offload_target_amdgcn.
1640         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
1641         * testsuite/libgomp.c/pr86416-1.c: Likewise.
1642         * testsuite/libgomp.c/pr86416-2.c: Likewise.
1644 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
1646         * testsuite/libgomp.fortran/depobj-1.f90: New test.
1648 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
1650         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1651         '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
1652         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1653         Likewise.
1654         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1655         Likewise.
1656         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1658 2021-04-15  Thomas Schwinge  <thomas@codesourcery.com>
1660         PR target/99555
1661         * testsuite/lib/libgomp.exp
1662         (check_effective_target_offload_device_nvptx): New.
1663         * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
1664         resolved, make sure that we exit quickly, with error status,
1665         XFAILed.
1666         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
1667         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1669 2021-04-14  Jakub Jelinek  <jakub@redhat.com>
1671         PR testsuite/100071
1672         * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
1673         cp = omp_alloc with cp, p arguments instead of cq, q and call
1674         c_f_pointer after last cq = omp_alloc with cq, q.
1676 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
1678         PR middle-end/98088
1679         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
1680         for loop with GT/GE condition.
1681         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
1683 2021-04-09  Thomas Schwinge  <thomas@codesourcery.com>
1685         PR middle-end/84991
1686         PR middle-end/84992
1687         PR middle-end/90779
1688         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
1690 2021-04-09  Jakub Jelinek  <jakub@redhat.com>
1692         PR libgomp/99984
1693         * team.c (gomp_thread_start): Call pthread_setspecific for
1694         !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
1695         has been initialized to avoid false positive warning.
1697 2021-03-29  Tobias Burnus  <tobias@codesourcery.com>
1699         PR target/99555
1700         * testsuite/lib/on_device_arch.c: Move to ...
1701         * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
1702         * testsuite/libgomp.fortran/on_device_arch.c: New file;
1703         #include on_device_arch.h.
1704         * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
1705         on_device_arch.h instead of using dg-additional-source.
1706         * testsuite/libgomp.c/pr99555-1.c: Likewise.
1707         * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
1708         on_device_arch.c without relative paths.
1710 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
1712         * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
1713         the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
1714         * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
1715         * config.h.in: Regenerate.
1716         * configure: Likewise.
1718 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
1720         PR target/99555
1721         * testsuite/lib/on_device_arch.c: New file.
1722         * testsuite/libgomp.c/pr99555-1.c: Likewise.
1723         * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
1724         skip for nvptx offloading, with error status.
1725         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1727 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
1729         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
1730         OpenACC 'serial' construct diagnostic for nvptx offloading.
1732 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
1734         PR c++/99509
1735         * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
1737 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
1739         PR fortran/98858
1740         * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
1742 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
1744         * configure.ac: Add AC_CHECK_SIZEOF([void *]).
1745         * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
1746         checking of -m32 or -mx32 options on the command line.
1747         * config.h.in: Regenerated.
1748         * configure: Regenerated.
1750 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
1752         * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
1753         support from the target.
1755 2021-02-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
1756             Jakub Jelinek  <jakub@redhat.com>
1758         PR libgomp/98738
1759         * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
1760         (struct gomp_task): Replace detach and completion_sem fields with
1761         union containing completion_sem and detach_team.  Add deferred_p
1762         field.
1763         (struct gomp_team): Remove task_detach_queue.
1764         * task.c: Include assert.h.
1765         (gomp_init_task): Initialize deferred_p and completion_sem fields.
1766         Rearrange initialization order of fields.
1767         (task_fulfilled_p): Delete.
1768         (GOMP_task): Use address of task as the event handle.  Remove
1769         initialization of detach field.  Initialize deferred_p field.
1770         Use automatic local for completion_sem.  Initialize detach_team field
1771         for deferred tasks.
1772         (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
1773         Set kind of suspended detach task to GOMP_TASK_DETACHED and
1774         decrement task_running_count.  Move finish_cancelled block out of
1775         else branch.  Relocate call to gomp_team_barrier_done.
1776         (GOMP_taskwait): Handle tasks with completion events that have not
1777         been fulfilled.
1778         (GOMP_taskgroup_end): Likewise.
1779         (omp_fulfill_event): Use address of task as event handle.  Post to
1780         completion_sem for undeferred tasks.  Clear detach_team if task
1781         has not finished.  For finished tasks, handle post-execution tasks,
1782         call gomp_team_barrier_wake if necessary, and free task.
1783         * team.c (gomp_new_team): Remove initialization of task_detach_queue.
1784         (free_team): Remove free of task_detach_queue.
1785         * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
1786         * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
1787         * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
1788         * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
1789         * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
1790         Change data-sharing of detach events on enclosing parallel to private.
1791         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.  Remove
1792         taskwait directive.
1793         * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
1794         * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
1795         * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
1796         * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
1797         * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
1798         * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
1799         * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
1800         * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
1801         * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
1802         * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
1803         Change data-sharing of detach events on enclosing parallel to private.
1804         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.  Remove
1805         taskwait directive.
1806         * testsuite/libgomp.fortran/task-detach-7.f90: New.
1807         * testsuite/libgomp.fortran/task-detach-8.f90: New.
1808         * testsuite/libgomp.fortran/task-detach-9.f90: New.
1809         * testsuite/libgomp.fortran/task-detach-10.f90: New.
1810         * testsuite/libgomp.fortran/task-detach-11.f90: New.
1812 2021-02-22  Tobias Burnus  <tobias@codesourcery.com>
1814         PR fortran/99171
1815         * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
1817 2021-02-17  Julian Brown  <julian@codesourcery.com>
1819         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
1820         expected errors.
1822 2021-02-17  Julian Brown  <julian@codesourcery.com>
1824         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
1825         * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
1827 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1829         * config/linux/x86/futex.h (__futex_wait):
1830         Revert output type back to long.
1831         (__futex_wake): Ditto.
1832         (futex_wait): Update for revert.
1833         (futex_wake): Ditto.
1835 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1837         * config/linux/x86/futex.h (__futex_wait): New static inline
1838         wrapper function.  Correct output type to int and
1839         timeout type to void *.
1840         (__futex_wake): New static inline wrapper function.
1841         Correct output type to int.
1842         (futex_wait): Use __futex_wait.
1843         (futex_wake): Use __futex_wake.
1845 2021-02-10  Julian Brown  <julian@codesourcery.com>
1847         PR fortran/98979
1848         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
1849         errors.
1851 2021-02-04  Julian Brown  <julian@codesourcery.com>
1853         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
1855 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
1857         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
1858         EF_AMDGPU_MACH_AMDGCN_GFX908.
1859         (gcn_gfx908_s): New constant string.
1860         (isa_hsa_name): Add gfx908.
1861         (isa_code): Add gfx908.
1863 2021-01-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
1865         * libgomp.texi (omp_fulfill_event): New entry.
1867 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
1869         * task.c (GOMP_task): Rename priority argument to priority_arg,
1870         add priority automatic variable and modify that variable.  Instead of
1871         clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
1872         check flags for that bit.
1874 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
1876         PR fortran/98476
1877         * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
1879 2021-01-18  Andreas Schwab  <schwab@suse.de>
1881         * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
1883 2021-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1885         * config/rtems/sem.h (gomp_sem_getcount): New function.
1887 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
1889         * config/linux/sem.h (gomp_sem_getcount): New function.
1890         * config/posix/sem.h (gomp_sem_getcount): New function.
1891         * config/posix/sem.c (gomp_sem_getcount): New function.
1892         * config/accel/sem.h (gomp_sem_getcount): New function.
1893         * task.c (task_fulfilled_p): Use gomp_sem_getcount.
1894         (omp_fulfill_event): Likewise.
1896 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
1898         * fortran.c (omp_fulfill_event_): New.
1899         * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
1900         (struct gomp_team): Add task_detach_queue and task_detach_count
1901         fields.
1902         * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
1903         * libgomp_g.h (GOMP_task): Add extra argument.
1904         * omp.h.in (enum omp_event_handle_t): New.
1905         (omp_fulfill_event): New.
1906         * omp_lib.f90.in (omp_event_handle_kind): New.
1907         (omp_fulfill_event): New.
1908         * omp_lib.h.in (omp_event_handle_kind): New.
1909         (omp_fulfill_event): Declare.
1910         * priority_queue.c (priority_tree_find): New.
1911         (priority_list_find): New.
1912         (priority_queue_find): New.
1913         * priority_queue.h (priority_queue_predicate): New.
1914         (priority_queue_find): New.
1915         * task.c (gomp_init_task): Initialize detach field.
1916         (task_fulfilled_p): New.
1917         (GOMP_task): Add detach argument.  Ignore detach argument if
1918         GOMP_TASK_FLAG_DETACH not set in flags.  Initialize completion_sem
1919         field.  Copy address of completion_sem into detach argument and
1920         into the start of the data record.  Wait for detach event if task
1921         not deferred.
1922         (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
1923         Remove completed tasks and requeue dependent tasks.
1924         (omp_fulfill_event): New.
1925         * team.c (gomp_new_team): Initialize task_detach_queue and
1926         task_detach_count fields.
1927         (free_team): Free task_detach_queue field.
1928         * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
1929         * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
1930         * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
1931         * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
1932         * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
1933         * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
1934         * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
1935         * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
1936         * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
1937         * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
1938         * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
1939         * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
1941 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
1943         PR target/70454
1944         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
1945         be added through preprocessor check on
1946         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
1948 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
1950         PR libgomp/65099
1951         * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
1952         configurations.
1953         * configure: Regenerate.
1954         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
1955         check.
1957 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1959         * configure: Re-generate.
1961 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1963         * configure: Re-generate.
1965 2021-01-05  Julian Brown  <julian@codesourcery.com>
1967         * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
1968         (struct ptx_device): Add omp_stacks struct.
1969         (nvptx_open_device): Initialise cached-stacks housekeeping info.
1970         (nvptx_close_device): Free cached stacks block and mutex.
1971         (nvptx_stacks_free): New function.
1972         (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
1973         (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
1974         (nvptx_stacks_alloc): Rename to...
1975         (nvptx_stacks_acquire): This.  Cache stacks block between runs if same
1976         size or smaller is required.
1977         (nvptx_stacks_free): Remove.
1978         (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
1979         during kernel execution.
1981 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
1983         * libgomp.texi: Bump @copying's copyright year.
1985 2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
1987         * libgomp.texi (Top): Avoid bad "up" link.
1989 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
1991         * testsuite/libgomp.c/task-6.c: New test.
1993 2020-12-09  Andrew Stubbs  <ams@codesourcery.com>
1995         * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
1996         (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
1998 2020-12-08  Tobias Burnus  <tobias@codesourcery.com>
2000         * testsuite/libgomp.fortran/scan-1.f90: New test.
2002 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
2004         PR target/97865
2005         * configure: Regenerate.
2007 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
2009         * configure: Regenerate.
2011 2020-11-25  Thomas Schwinge  <thomas@codesourcery.com>
2013         * testsuite/libgomp.oacc-c++/cache-1.C: New.
2014         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
2016 2020-11-25  Andrew Stubbs  <ams@codesourcery.com>
2018         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
2019         expected results.
2021 2020-11-24  Andrew Stubbs  <ams@codesourcery.com>
2023         * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
2024         (reserved): Delete unused define.
2026 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
2028         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
2029         Tcl 8.5-specific behavior.
2030         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
2032 2020-11-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
2034         * env.c (gomp_global_icv): Remove nest_var field.  Add
2035         max_active_levels_var field.
2036         (gomp_max_active_levels_var): Remove.
2037         (parse_boolean): Return true on success.
2038         (handle_omp_display_env): Express OMP_NESTED in terms of
2039         max_active_levels_var.  Change format specifier for
2040         max_active_levels_var.
2041         (initialize_env): Set max_active_levels_var from
2042         OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
2043         OMP_PROC_BIND.
2044         * icv.c (omp_set_nested): Express in terms of
2045         max_active_levels_var.
2046         (omp_get_nested): Likewise.
2047         (omp_set_max_active_levels): Use max_active_levels_var field instead
2048         of gomp_max_active_levels_var.
2049         (omp_get_max_active_levels): Likewise.
2050         * libgomp.h (struct gomp_task_icv): Remove nest_var field.  Add
2051         max_active_levels_var field.
2052         (gomp_supported_active_levels): Set to UCHAR_MAX.
2053         (gomp_max_active_levels_var): Delete.
2054         * libgomp.texi (omp_get_nested): Update documentation.
2055         (omp_set_nested): Likewise.
2056         (OMP_MAX_ACTIVE_LEVELS): Likewise.
2057         (OMP_NESTED): Likewise.
2058         (OMP_NUM_THREADS): Likewise.
2059         (OMP_PROC_BIND): Likewise.
2060         * parallel.c (gomp_resolve_num_threads): Replace reference
2061         to nest_var with max_active_levels_var.  Use max_active_levels_var
2062         field instead of gomp_max_active_levels_var.
2064 2020-11-18  Tobias Burnus  <tobias@codesourcery.com>
2066         * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
2067         nvptx_usleep; use also for device={arch(gcn)}.
2069 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
2071         * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
2072         (foo): Add tests for non-VLA private and firstprivate clauses on
2073         omp task.
2074         (bar): Likewise.  Remove taking of address from private/firstprivate
2075         variables.
2076         * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
2077         (foo): Add p, q, px and s arguments.  Add tests for array reductions
2078         and for non-VLA private and firstprivate clauses on omp task.
2079         (bar): Removed.
2080         (main): Adjust foo caller.  Don't call bar.
2082 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
2083             Thomas Schwinge  <thomas@codesourcery.com>
2085         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2086         New.
2087         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
2088         Likewise.
2089         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2090         Likewise.
2091         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
2092         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
2094 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
2095             Thomas Schwinge  <thomas@codesourcery.com>
2097         PR fortran/94358
2098         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
2100 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
2102         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
2103         for array reductions.
2104         (main): Adjust foo callers.
2106 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
2108         * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
2109         * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
2110         * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
2111         * allocator.c (omp_aligned_alloc): New for now static function,
2112         add alignment argument and handle it.
2113         (omp_alloc): Reimplement using omp_aligned_alloc.
2114         (GOMP_alloc, GOMP_free): New functions.
2115         (omp_free): Add ialias.
2116         * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
2117         * testsuite/libgomp.c++/allocate-1.C: New test.
2119 2020-11-12  Thomas Schwinge  <thomas@codesourcery.com>
2121         PR fortran/97782
2122         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
2124 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
2126         * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
2127         usable.
2128         * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
2129         'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
2130         (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
2131         (goacc_enter_data_internal): Likewise.
2132         * target.c (gomp_map_vars_internal):
2133         Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
2134         of gomp_attach_pointer for OpenMP cases.
2135         (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
2136         (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
2137         * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
2139 2020-11-05  Ulrich Drepper  <drepper@redhat.com>
2140             Kwok Cheung Yeung  <kcy@codesourcery.com>
2142         * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
2143         * Makefile.in: Regenerate.
2144         * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
2145         pragmas to ignore -Wdeprecated-declarations warnings.
2146         * icv.c: Likewise.
2147         * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
2148         Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
2149         and omp_get_nested with __GOMP_DEPRECATED_5_0.
2150         * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
2151         deprecated.
2152         * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
2153         to test options.
2154         * testsuite/libgomp.c/affinity-1.c: Likewise.
2155         * testsuite/libgomp.c/affinity-2.c: Likewise.
2156         * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
2157         * testsuite/libgomp.c/lib-1.c: Likewise.
2158         * testsuite/libgomp.c/nested-1.c: Likewise.
2159         * testsuite/libgomp.c/nested-2.c: Likewise.
2160         * testsuite/libgomp.c/nested-3.c: Likewise.
2161         * testsuite/libgomp.c/pr32362-1.c: Likewise.
2162         * testsuite/libgomp.c/pr32362-2.c: Likewise.
2163         * testsuite/libgomp.c/pr32362-3.c: Likewise.
2164         * testsuite/libgomp.c/pr35549.c: Likewise.
2165         * testsuite/libgomp.c/pr42942.c: Likewise.
2166         * testsuite/libgomp.c/pr61200.c: Likewise.
2167         * testsuite/libgomp.c/sort-1.c: Likewise.
2168         * testsuite/libgomp.c/target-5.c: Likewise.
2169         * testsuite/libgomp.c/target-6.c: Likewise.
2170         * testsuite/libgomp.c/teams-1.c: Likewise.
2171         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
2172         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
2173         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
2174         * testsuite/libgomp.fortran/affinity1.f90: Likewise.
2175         * testsuite/libgomp.fortran/lib1.f90: Likewise.
2176         * testsuite/libgomp.fortran/lib2.f: Likewise.
2177         * testsuite/libgomp.fortran/nested1.f90: Likewise.
2178         * testsuite/libgomp.fortran/teams1.f90: Likewise.
2180 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2182         PR target/85486
2183         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
2184         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
2185         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2187 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2189         PR testsuite/80219
2190         PR testsuite/85303
2191         * testsuite/lib/libgomp.exp (libgomp_init): Set
2192         'gcc_warning_prefix', 'gcc_error_prefix'.
2194 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
2196         * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
2197         even in field_tgt_clear initializer.
2199 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
2201         * testsuite/libgomp.c/target-42.c: New test.
2203 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
2204             Tom de Vries  <tdevries@suse.de>
2206         PR testsuite/81690
2207         * testsuite/libgomp.c/usleep.h: New file.
2208         * testsuite/libgomp.c/target-32.c: Include usleep.h.
2209         (main): Use tgt_usleep instead of usleep.
2210         * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
2211         (main): Use tgt_usleep instead of usleep.
2213 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
2215         PR lto/96680
2216         * testsuite/libgomp.c/declare-variant-1.c: New test.
2218 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
2220         * testsuite/libgomp.c/target-41.c: New test.
2222 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
2224         * icv.c (omp_get_initial_device): Remove including corresponding
2225         ialias.
2226         * icv-device.c (omp_get_initial_device): New function.  Return
2227         gomp_get_num_devices ().  Add ialias.
2228         * target.c (resolve_device): Don't fail with
2229         OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
2230         gomp_get_num_devices ().
2231         (omp_target_alloc, omp_target_free, omp_target_is_present,
2232         omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
2233         omp_target_disassociate_ptr, omp_pause_resource): Use
2234         gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
2235         first use in the functions, in uses dominated by the
2236         gomp_get_num_devices call use num_devices_openmp instead.
2237         * libgomp.texi (omp_get_initial_device): Document.
2238         * config/gcn/icv-device.c (omp_get_initial_device): New function.
2239         Add ialias.
2240         * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
2241         * testsuite/libgomp.c/target-40.c: New test.
2243 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
2245         * env.c (parse_target_offload): Change new_offload var type to int,
2246         preinitialize to -1, remove found var and test new_offload != -1
2247         instead of found.
2249 2020-10-20  Jakub Jelinek  <jakub@redhat.com>
2251         * target.c (gomp_target_init): Inside of the function, use automatic
2252         variables corresponding to num_devices, num_devices_openmp and devices
2253         global variables and update the globals only at the end of the
2254         function.
2256 2020-10-20  Kwok Cheung Yeung  <kcy@codesourcery.com>
2258         * env.c (gomp_target_offload_var): New.
2259         (parse_target_offload): New.
2260         (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
2261         (initialize_env): Parse OMP_TARGET_OFFLOAD.
2262         * libgomp.h (gomp_target_offload_t): New.
2263         (gomp_target_offload_var): New.
2264         * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
2265         * target.c (resolve_device): Generate error if device not found and
2266         offloading is mandatory.
2267         (gomp_target_fallback): Generate error if offloading is mandatory.
2268         (GOMP_target): Add argument in call to gomp_target_fallback.
2269         (GOMP_target_ext): Likewise.
2270         (gomp_target_data_fallback): Generate error if offloading is mandatory.
2271         (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
2272         (GOMP_target_data_ext): Likewise.
2273         (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
2274         (gomp_target_init): Return early if offloading is disabled.
2276 2020-10-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
2278         * libgomp.texi (omp_get_max_active_levels): Modify description.
2279         (omp_get_supported_active_levels): Make descriptions consistent.
2281 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
2283         * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
2285 2020-10-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
2287         * env.c (gomp_max_active_levels_var): Initialize to
2288         gomp_supported_active_levels.
2289         (initialize_env): Limit gomp_max_active_levels_var to be at most
2290         equal to gomp_supported_active_levels.
2291         * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
2292         (omp_get_supported_active_levels_): New.
2293         * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
2294         to at most equal to gomp_supported_active_levels.
2295         (omp_get_supported_active_levels): New.
2296         * libgomp.h (gomp_supported_active_levels): New.
2297         * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
2298         omp_get_supported_active_levels_.
2299         * libgomp.texi (omp_get_supported_active_levels): New.
2300         (omp_set_max_active_levels): Update.  Add reference to
2301         omp_get_supported_active_levels.
2302         * omp.h.in (omp_get_supported_active_levels): New.
2303         * omp_lib.f90.in (omp_get_supported_active_levels): New.
2304         * omp_lib.h.in (omp_get_supported_active_levels): New.
2305         * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
2306         against omp_get_supported_active_levels.
2307         * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
2309 2020-10-11  Clement Chigot  <clement.chigot@atos.net>
2311         * config/t-aix: Delete and recreate libgomp before creating
2312         FAT library.
2314 2020-10-08  Tom de Vries  <tdevries@suse.de>
2316         PR libgomp/81802
2317         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
2318         dimensions.
2320 2020-10-06  Tom de Vries  <tdevries@suse.de>
2322         * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
2324 2020-10-06  Tom de Vries  <tdevries@suse.de>
2326         PR middle-end/90861
2327         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
2329 2020-10-05  Tom de Vries  <tdevries@suse.de>
2331         PR fortran/95654
2332         * testsuite/libgomp.fortran/pr95654.f90: New test.
2334 2020-10-02  Tobias Burnus  <tobias@codesourcery.com>
2336         * Makefile.in: Regenerate with automake 1.15.1.
2337         * aclocal.m4: Likewise.
2338         * configure: Likewise.
2339         * testsuite/Makefile.in: Likewise.
2341 2020-09-30  Andrew Stubbs  <ams@codesourcery.com>
2343         * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
2344         and amdgcn targets.
2346 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
2348         * testsuite/libgomp.fortran/declare-target-3.f90: New test.
2350 2020-09-29  Andrew Stubbs  <ams@codesourcery.com>
2352         * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
2353         total number of threads is one.
2354         (gomp_team_barrier_wake): Likewise.
2355         (gomp_team_barrier_wait_end): Likewise.
2356         (gomp_team_barrier_wait_cancel_end): Likewise.
2357         * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
2358         (gomp_team_barrier_wake): Likewise.
2359         (gomp_team_barrier_wait_end): Likewise.
2360         (gomp_team_barrier_wait_cancel_end): Likewise.
2361         * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
2363 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
2365         PR middle-end/96390
2366         * testsuite/libgomp.c++/pr96390.C: New test.
2367         * testsuite/libgomp.c-c++-common/pr96390.c: New test.
2369 2020-09-27  Clement Chigot  <clement.chigot@atos.net>
2371         * config/t-aix: Use $(AR) without -X32_64.
2373 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
2375         * testsuite/libgomp.c/loop-25.c: New test.
2377 2020-09-22  Tobias Burnus  <tobias@codesourcery.com>
2379         PR fortran/95654
2380         * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
2382 2020-09-22  Tom de Vries  <tdevries@suse.de>
2384         * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
2385         fails.
2387 2020-09-16  Nathan Sidwell  <nathan@acm.org>
2389         * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
2391 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
2393         PR fortran/96668
2394         * target.c (gomp_map_vars_internal): Initialize has_nullptr.
2396 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
2398         PR fortran/96668
2399         * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
2400         * target.c (gomp_map_vars_existing): Add always_to_flag flag.
2401         (gomp_map_vars_existing): Update call to it.
2402         (gomp_map_fields_existing): Likewise
2403         (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
2404         now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
2405         remapped.
2406         (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
2407         GOMP_MAP_POINTER.
2408         * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
2409         * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
2411 2020-09-14  Tom de Vries  <tdevries@suse.de>
2413         * config/nvptx/atomic.c: New file.  Add
2414         __sync_val_compare_and_swap_16.
2415         * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
2416         target offload_target_nvptx.
2418 2020-09-08  Julian Brown  <julian@codesourcery.com>
2420         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
2421         iteration-ordering assumptions.
2423 2020-09-08  Julian Brown  <julian@codesourcery.com>
2425         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
2426         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2428 2020-08-20  Chung-Lin Tang  <cltang@codesourcery.com>
2430         * plugin/plugin-nvptx.c (nvptx_free):
2431         Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
2432         CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
2433         comments.
2435 2020-08-20  Tobias Burnus  <tobias@codesourcery.com>
2437         * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
2439 2020-08-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
2441         * testsuite/libgomp.c-c++-common/reduction-16.c: New.
2443 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
2445         * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
2446         * testsuite/libgomp.c/loop-23.c (main): Likewise.
2447         * testsuite/libgomp.c/loop-24.c: New test.
2449 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
2450             Tobias Burnus  <tobias@codesourcery.com>
2452         PR fortran/93553
2453         * testsuite/libgomp.fortran/pr93553.f90: New test.
2455 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
2457         * testsuite/libgomp.c/loop-22.c: New test.
2458         * testsuite/libgomp.c/loop-23.c: New test.
2460 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
2462         PR middle-end/96459
2463         * testsuite/libgomp.c/teams-3.c: New test.
2464         * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
2465         if not defined yet.
2466         (N(test)): Use it before all N(f*) calls.
2467         * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
2468         (main): Don't call all test_* functions from within
2469         #pragma omp teams reduction(|:err), call them directly.
2471 2020-08-04  Tom de Vries  <tdevries@suse.de>
2473         PR target/96428
2474         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
2475         * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
2477 2020-08-03  Julian Brown  <julian@codesourcery.com>
2478             Thomas Schwinge  <thomas@codesourcery.com>
2480         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
2481         shared-memory devices.  Extend with further checking.
2483 2020-08-03  Martin Jambor  <mjambor@suse.cz>
2485         * plugin/Makefrag.am: Remove configuration of HSA plugin.
2486         * aclocal.m4: Regenerated.
2487         * Makefile.in: Regenerated.
2488         * config.h.in: Regenerated.
2489         * configure: Regenerated.
2490         * plugin/configfrag.ac: Likewise.
2491         * plugin/hsa_ext_finalize.h: Removed.
2492         * plugin/plugin-hsa.c: Likewise.
2493         * testsuite/Makefile.in: Regenerated.
2494         * testsuite/lib/libgomp.exp
2495         (offload_target_to_openacc_device_type): Remove hsa case.
2496         (check_effective_target_hsa_offloading_selected_nocache): Removed
2497         (check_effective_target_hsa_offloading_selected): Likewise.
2498         (libgomp_init): Do not add -Wno-hsa to additional_flags.
2499         * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
2500         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
2501         * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
2502         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
2503         * testsuite/libgomp.hsa.c/c.exp: Likewise.
2504         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
2505         * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
2506         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
2507         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
2508         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
2509         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
2510         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
2511         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
2512         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
2513         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
2514         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
2515         * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
2516         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
2517         * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
2518         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
2519         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
2520         * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
2521         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
2522         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
2524 2020-07-27  Julian Brown  <julian@codesourcery.com>
2525             Thomas Schwinge  <thomas@codesourcery.com>
2527         * libgomp.h (struct target_var_desc): Rename do_detach field to
2528         is_attach.
2529         * oacc-mem.c (goacc_exit_datum_1): Add assert.  Don't set finalize for
2530         GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
2531         (goacc_enter_data_internal): Don't affect reference counts
2532         for attach mappings.
2533         (goacc_exit_data_internal): Don't affect reference counts for detach
2534         mappings.
2535         * target.c (gomp_map_vars_existing): Don't affect reference counts for
2536         attach mappings.
2537         (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
2538         mark attach mappings.
2539         (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
2540         reference count for attach mappings.
2541         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
2542         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2543         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2544         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
2545         test as shouldfail.
2546         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
2547         gracefully in no-finalize mode.
2548         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
2550 2020-07-24  Thomas Schwinge  <thomas@codesourcery.com>
2552         * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
2553         use.
2554         * testsuite/libgomp.oacc-c/c.exp: Likewise.
2555         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2557 2020-07-23  Julian Brown  <julian@codesourcery.com>
2558             Thomas Schwinge  <thomas@codesourcery.com>
2560         * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
2561         finalization for detach operation.
2562         * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
2563         New test.
2565 2020-07-23  Tobias Burnus  <tobias@codesourcery.com>
2567         * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
2568         * libgomp_f.h.in (omp_check_defines): Check whether
2569         sizeof of determined Fortran kind and C typedef match.
2570         * omp_lib.f90.in: Add omp_depened_kind.
2571         * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
2572         * configure: Regenerate.
2573         * Makefile.in: Regenerate.
2574         * testsuite/Makefile.in: Regenerate.
2576 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
2578         * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
2579         gcc/testsuite/c-c++-common/gomp/.
2580         * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
2581         * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
2582         from gcc/testsuite/gfortran.dg/gomp/.
2583         * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
2585 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
2587         * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
2588         * omp_lib.h.in: Likewise.
2590 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
2592         PR target/95620
2593         * testsuite/libgomp.c/pr95620.c: New test.
2595 2020-07-16  Julian Brown  <julian@codesourcery.com>
2596             Thomas Schwinge  <thomas@codesourcery.com>
2598         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
2599         * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
2601 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
2603         * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
2604         avoid conversion on 32bit systems from 32bit to 64bit due
2605         to -fdefault-integer-8.
2607 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
2609         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
2610         variables; add character(kind=4) tests; update TODO comment.
2612 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
2614         * allocator.c: Add ialias for omp_init_allocator and
2615         omp_destroy_allocator.
2616         * configure.ac: Set INTPTR_T_KIND.
2617         * configure: Regenerate.
2618         * Makefile.in: Regenerate.
2619         * testsuite/Makefile.in: Regenerate.
2620         * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
2621         omp_set_default_allocator_, omp_get_default_allocator_): New
2622         functions and ialias_redirect.
2623         * icv.c: Add ialias for omp_set_default_allocator and
2624         omp_get_default_allocator.
2625         * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
2626         omp_destroy_allocator_, omp_set_default_allocator_ and
2627         omp_get_default_allocator_.
2628         * omp_lib.f90.in: Add allocator traits parameters, declare
2629         allocator routines and add related kind parameters.
2630         * omp_lib.h.in: Likewise.
2631         * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
2632         * testsuite/libgomp.fortran/alloc-1.F90: New test.
2633         * testsuite/libgomp.fortran/alloc-2.F90: New test.
2634         * testsuite/libgomp.fortran/alloc-3.F: New test.
2635         * testsuite/libgomp.fortran/alloc-4.f90: New test.
2636         * testsuite/libgomp.fortran/alloc-5.f90: New test.
2638 2020-07-14  Tom de Vries  <tom@codesourcery.com>
2639             Cesar Philippidis  <cesar@codesourcery.com>
2640             Thomas Schwinge  <thomas@codesourcery.com>
2641             Kwok Cheung Yeung  <kcy@codesourcery.com>
2643         * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
2644         New variable.
2645         (acc_init_1): Set acc_init_thread to pthread_self ().  Set
2646         acc_init_state to initializing at the start, and to initialized at the
2647         end.
2648         (self_initializing_p): New function.
2649         (acc_get_device_type): Return acc_device_none if called by thread that
2650         is currently executing acc_init_1.
2651         * libgomp.texi (acc_get_device_type): Update documentation.
2652         (Implementation Status and Implementation-Defined Behavior): Likewise.
2653         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
2655 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
2657         * config/t-aix: Set BITS from compiler cpp macro.
2659 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
2661         * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
2663 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
2665         PR fortran/67311
2666         * testsuite/libgomp.fortran/target-map-1.f90: New test.
2668 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
2670         * testsuite/libgomp.c/loop-21.c: New test.
2672 2020-07-13  Julian Brown  <julian@codesourcery.com>
2673             Thomas Schwinge  <thomas@codesourcery.com>
2675         * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
2677 2020-07-10  Julian Brown  <julian@codesourcery.com>
2678             Thomas Schwinge  <thomas@codesourcery.com>
2680         * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
2681         dynamic_refcount.
2682         (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
2683         * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
2684         dynamic_refcount.
2685         (acc_unmap_data): Update comment.
2686         (goacc_map_var_existing, goacc_enter_datum): Adjust for
2687         dynamic_refcount semantics.
2688         (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
2689         Adjust for dynamic_refcount semantics.
2690         (goacc_enter_data_internal): Implement "present" case of dynamic
2691         memory-map handling here.  Update "non-present" case for
2692         dynamic_refcount semantics.
2693         (goacc_exit_data_internal): Use goacc_exit_datum_1.
2694         * target.c (gomp_map_vars_internal): Remove
2695         GOMP_MAP_VARS_OPENACC_ENTER_DATA handling.  Update for dynamic_refcount
2696         handling.
2697         (gomp_unmap_vars_internal): Remove virtual_refcount handling.
2698         (gomp_load_image_to_device): Substitute dynamic_refcount for
2699         virtual_refcount.
2700         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
2701         * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
2702         * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
2703         * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
2704         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
2705         trace output.
2706         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
2707         trace output.
2708         * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
2709         test.
2710         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
2711         Remove stale comment.
2712         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
2713         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
2714         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2715         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2716         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2717         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
2719 2020-07-10  Julian Brown  <julian@codesourcery.com>
2720             Thomas Schwinge  <thomas@codesourcery.com>
2722         * oacc-mem.c (goacc_map_var_existing): New function.
2723         (goacc_enter_datum): Use above function.
2724         (goacc_exit_datum_1): New function.
2725         (goacc_exit_datum): Use above function.
2727 2020-07-09  Julian Brown  <julian@codesourcery.com>
2728             Thomas Schwinge  <thomas@codesourcery.com>
2730         PR middle-end/95270
2731         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
2732         * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
2734 2020-07-09  Julian Brown  <julian@codesourcery.com>
2736         * oacc-mem.c (find_group_last): Group data-movement clauses
2737         (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
2738         GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
2740 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
2742         * testsuite/libgomp.c/loop-19.c: New test.
2743         * testsuite/libgomp.c/loop-20.c: New test.
2745 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
2747         * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
2748         2 to -1.  Add omp_atv_serialized and define omp_atv_sequential using
2749         it.  Remove __omp_alloctrait_value_max__.
2750         * allocator.c (omp_init_allocator): Handle omp_atv_default for
2751         omp_atk_alignment and omp_atk_pool_size.
2753 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
2755         * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
2756         behavior for 'GOMP_MAP_FORCE_FROM'.
2757         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
2759 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
2761         * oacc-mem.c (goacc_exit_data_internal): Remove
2762         'GOMP_MAP_ALWAYS_FROM' handling.
2764 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
2766         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
2767         'scan-assembler' with 'scan-offload-rtl'.
2768         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
2769         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
2770         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
2771         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
2773 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
2775         * target.c (gomp_map_vars_existing): Assert 'kind !=
2776         GOMP_MAP_ATTACH'.
2777         (gomp_map_vars_internal): Clean up.
2779 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
2781         * testsuite/libgomp.c/loop-17.c: New test.
2782         * testsuite/libgomp.c/loop-18.c: New test.
2784 2020-06-26  Marek Polacek  <polacek@redhat.com>
2786         * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
2788 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
2790         * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
2791         * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
2793 2020-06-22  David Edelsohn  <dje.gcc@gmail.com>
2795         * Makefile.am: Use -include.
2796         * Makefile.in: Regenerate.
2798 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
2800         * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
2801         * Makefile.in: Regenerate
2802         * configure.ac (tmake_file): Substitute.
2803         * configure: Regenerate.
2804         * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
2805         * config/t-aix: New file.
2807 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
2809         PR lto/94848
2810         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
2811         'dg-do run'.
2813 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
2815         * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
2816         variant for HSA_RUNTIME_LIB name.
2817         (find_executable_symbol_1): Delete.
2818         (find_executable_symbol): Delete.
2819         (init_kernel_properties): Add ".kd" suffix to symbol names.
2820         (find_load_offset): Delete.
2821         (create_and_finalize_hsa_program): Remove relocation handling.
2823 2020-06-16  Tobias Burnus  <tobias@codesourcery.com>
2825         * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
2827 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
2829         PR lto/94848
2830         PR middle-end/95551
2831         * testsuite/libgomp.fortran/target-var.f90: New test.
2833 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
2834             Julian Brown  <julian@codesourcery.com>
2836         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
2837         special handling.
2839 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
2840             Julian Brown  <julian@codesourcery.com>
2842         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2843         Simplify.
2845 2020-06-05  Julian Brown  <julian@codesourcery.com>
2847         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
2848         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
2850 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2852         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2853         Evaluate 'copyfrom' individually for each entry.
2854         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
2856 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2858         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2859         Evaluate 'finalize' individually for each entry.
2860         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
2861         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
2862         file.
2864 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2866         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
2867         usage.
2868         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
2870 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2871             Julian Brown  <julian@codesourcery.com>
2873         * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
2874         checking.
2875         (acc_unmap_data, goacc_exit_data_internal): Restore
2876         'is_tgt_unmapped' checking.
2877         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
2878         file.
2879         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
2880         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
2881         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2882         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2883         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2884         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
2886 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2887             Julian Brown  <julian@codesourcery.com>
2889         * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
2891 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2893         PR libgomp/92854
2894         * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
2896 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2898         PR libgomp/92854
2899         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
2900         more.
2902 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2903             Julian Brown  <julian@codesourcery.com>
2905         * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
2906         'gomp_map_vars'.
2907          (acc_map_data): Clean up accordingly.
2909 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2911         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
2912         of over-eager 'finalize' clause.
2913         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
2914         file.
2915         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
2916         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
2917         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2918         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2919         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2920         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
2921         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
2922         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
2924 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2926         * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
2928 2020-06-04  Julian Brown  <julian@codesourcery.com>
2930         * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
2931         error path.
2932         (goacc_detach_internal): Likewise.
2934 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2936         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
2937         the checkpoint.
2938         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
2939         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
2940         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
2941         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
2942         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
2944 2020-06-02  Jakub Jelinek  <jakub@redhat.com>
2946         * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
2947         defined.
2949 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
2951         * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
2953 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
2955         * allocator.c (omp_alloc): For size == 0, return NULL early.
2957 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
2959         PR bootstrap/95413
2960         * configure: Regenerated.
2962 2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
2964         PR libfortran/95191
2965         * testsuite/libgomp.fortran/async_io_9.f90: New test.
2967 2020-05-19  Jakub Jelinek  <jakub@redhat.com>
2969         * omp.h.in (omp_uintptr_t): New typedef.
2970         (__GOMP_UINTPTR_T_ENUM): Define.
2971         (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
2972         omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
2973         (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
2974         (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
2975         omp_get_default_allocator, omp_alloc, omp_free): Declare.
2976         * libgomp.h (struct gomp_team_state): Add def_allocator field.
2977         (gomp_def_allocator): Declare.
2978         * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
2979         omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
2980         omp_alloc and omp_free.
2981         * team.c (gomp_team_start): Copy over ts.def_allocator.
2982         * env.c (gomp_def_allocator): New variable.
2983         (parse_wait_policy): Adjust function comment.
2984         (parse_allocator): New function.
2985         (handle_omp_display_env): Print OMP_ALLOCATOR.
2986         (initialize_env): Call parse_allocator.
2987         * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
2988         * allocator.c: New file.
2989         * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
2990         functions.
2991         * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
2992         * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
2993         * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
2994         * Makefile.in: Regenerated.
2996 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2998         PR bootstrap/95147
2999         * configure: Regenerated.
3001 2020-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
3003         PR libfortran/95119
3004         * testsuite/libgomp.fortran/close_errors_1.f90: New test.
3006 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3008         * configure: Regenerated.
3010 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
3012         * testsuite/libgomp.c-c++-common/target-40.c: New test.
3014 2020-05-13  Tobias Burnus  <tobias@codesourcery.com>
3016         PR fortran/94690
3017         * testsuite/libgomp.fortran/pr66199-3.f90: New.
3018         * testsuite/libgomp.fortran/pr66199-4.f90: New.
3019         * testsuite/libgomp.fortran/pr66199-5.f90: New.
3020         * testsuite/libgomp.fortran/pr66199-6.f90: New.
3021         * testsuite/libgomp.fortran/pr66199-7.f90: New.
3022         * testsuite/libgomp.fortran/pr66199-8.f90: New.
3023         * testsuite/libgomp.fortran/pr66199-9.f90: New.
3025 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
3027         * testsuite/libgomp.c/target-39.c: New test.
3029 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
3031         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
3032         * openacc.f90 (acc_device_current): Likewise.
3033         * openacc.h (acc_device_current): Likewise.
3034         * openacc_lib.h (acc_device_current): Likewise.
3036         PR target/94282
3037         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
3038         'dg-allow-blank-lines-in-output'.
3040         * oacc-init.c (get_openacc_name): Handle 'gcn'.
3041         * testsuite/lib/libgomp.exp
3042         (offload_target_to_openacc_device_type) [amdgcn*]: Return
3043         'radeon'.  Adjust all users.
3044         (check_effective_target_openacc_amdgcn_accel_present): Rename
3045         to...
3046         (check_effective_target_openacc_radeon_accel_present): ... this.
3047         Adjust all users.
3048         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
3049         (check_effective_target_openacc_radeon_accel_selected): ... this.
3050         Adjust all users.
3052         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
3053         'dg-do run'.
3055 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
3057         PR other/94629
3059         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
3060         hsa_iterate_agents.
3061         (GOMP_OFFLOAD_init_device): Check return values from both calls to
3062         hsa_agent_iterate_regions.
3064 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
3066         PR middle-end/94635
3067         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
3068         run'.
3070 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
3072         PR middle-end/94120
3073         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
3074         test case.
3076 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
3078         PR middle-end/94635
3079         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
3081 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
3083         PR libgomp/92843
3084         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
3085         Rename to...
3086         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
3087         ... this.
3088         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
3089         Rename to...
3090         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
3091         ... this.
3092         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
3093         Rename to...
3094         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
3095         ... this.
3096         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
3097         Rename to...
3098         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
3099         ... this.
3100         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
3101         Rename to...
3102         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
3103         ... this.
3104         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
3105         Rename to...
3106         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
3107         ... this.
3108         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
3109         Rename to...
3110         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
3111         ... this.
3112         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
3113         Rename to...
3114         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
3115         ... this.
3116         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
3117         Rename to...
3118         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
3119         ... this.
3120         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
3121         Rename to...
3122         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
3123         ... this.
3124         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
3125         Rename to...
3126         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
3127         ... this.
3128         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
3129         Rename to...
3130         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
3131         ... this.
3132         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
3133         Rename to...
3134         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
3135         ... this.
3136         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
3137         Rename to...
3138         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
3139         ... this.
3140         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
3141         Rename to...
3142         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
3143         ... this.
3144         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
3145         Rename to...
3146         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
3147         ... this.
3149 2020-04-10  Julian Brown  <julian@codesourcery.com>
3150             Thomas Schwinge  <thomas@codesourcery.com>
3152         PR libgomp/92843
3153         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
3154         New file.
3155         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
3156         Likewise.
3157         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
3158         Likewise.
3159         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
3160         Likewise.
3161         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
3162         Likewise.
3163         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
3164         Likewise.
3165         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
3166         Likewise.
3167         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
3168         Likewise.
3169         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
3170         Likewise.
3171         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
3172         Likewise.
3173         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
3174         Likewise.
3175         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
3176         Likewise.
3177         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
3178         Likewise.
3179         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
3180         Likewise.
3181         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
3182         Likewise.
3183         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
3184         Likewise.
3186 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
3188         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
3189         run'.
3191 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
3193         PR middle-end/94120
3194         * libgomp.oacc-c++/declare-pr94120.C: New.
3196 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
3198         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
3199         files.
3200         * configure: Regenerate.
3201         * testsuite/libgomp-site-extra.exp.in: New file.
3202         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
3203         variable.
3204         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
3205         variable.
3206         * testsuite/Makefile.in: Regenerate.
3208 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
3210         PR tree-optimization/89713
3211         PR c/94392
3212         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
3213         'bar.sync'.
3214         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
3216 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
3218         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
3219         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
3221 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
3223         PR libgomp/81689
3224         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
3226 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
3228         PR libgomp/94251
3229         * target.c (gomp_load_image_to_device): Fix link
3230         variable handling.
3232 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
3234         PR c++/93931
3235         * testsuite/libgomp.c++/pr93931.C: New test.
3237 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
3239         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
3240         dg-allow-blank-lines-in-output.
3242 2020-03-18  Julian Brown <julian@codesourcery.com>
3243             Tobias Burnus  <tobias@codesourcery.com>
3245         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
3246         it work concurrently.
3248 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
3250         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
3251         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
3252         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
3254 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
3256         PR middle-end/93566
3257         * testsuite/libgomp.c/pr93566.c: New test.
3259 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
3261         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
3262         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
3263         integer(acc_device_property) for the type of the return value of
3264         acc_get_property.
3266 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
3268         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
3269         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
3270         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
3271         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
3272         (acc_set_device_num): Fix Fortran argument name, use same name for C.
3273         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
3274         corrections; add note about the previous interface and named constant.
3275         (OpenACC library and environment variables): Fix two typos.
3276         * openacc.f90: Use for all procedures the argument names from the spec
3277         as for â€¦_h they are user visible.
3278         (openacc_kinds): Rename acc_device_property to
3279         acc_device_property_kinds and change value to int32 ; and update users.
3280         Re-add acc_device_property for for backward compatibility.
3281         (acc_get_property_string_h): Clean up as acc_device_property_kind
3282         changed.
3283         (acc_get_property_h): Likewise and return c_size_t instead of
3284         acc_device_property.
3285         (openacc): Also export acc_device_property_kinds.
3286         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
3287         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
3288         handling; check against /= 0 instead of == 1 to match C.
3289         * openacc_lib.h: Use for all procedures the argument names from the spec
3290         as for â€¦_h they are user visible. Place !GCC$ into the first column to
3291         be active also for fixed-form souce form.
3292         (acc_device_current, acc_device_property_kind, acc_device_property,
3293         acc_property_memory, acc_property_free_memory, acc_property_name,
3294         acc_property_vendor, acc_property_driver): New named constants.
3295         (acc_get_property, acc_get_property_string): New generic interface.
3297 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
3299         PR libgomp/93481
3300         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
3301         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
3302         optional.
3303         (gomp_target_task_fn): Assert "devicep->async_run_func".
3304         (clear_unsupported_flags): New function to remove unsupported flags
3305         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
3306         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
3307         * testsuite/libgomp.c/target-33.c:
3308         Remove xfail for offload_target_nvptx.
3309         * testsuite/libgomp.c/target-34.c: Likewise.
3311 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
3313         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
3314         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
3315         * testsuite/libgomp.c/target-34.c: Likewise.
3316         * testsuite/libgomp.c/target-link-1.c: Add xfail for
3317         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
3319 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
3321         * testsuite/libgomp.c/target-38.c: New test.
3323 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
3325         PR libgomp/93515
3326         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
3328 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
3330         * testsuite/lib/libgomp.exp
3331         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
3332         and not as 'source' argument to libgomp_target_compile.
3334 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
3336         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
3337         (gcn_gfx801_s): Remove.
3338         (isa_hsa_name): Remove gfx801.
3339         (isa_gcc_name): Remove gfx801/carizzo.
3340         (isa_code): Remove gfx801.
3342 2020-02-03  Julian Brown  <julian@codesourcery.com>
3343             Tobias Burnus  <tobias@codesourcery.com>
3345         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
3346         and *_finalize variants; document acc_attach and acc_detach; update
3347         references from OpenACC 2.0 to 2.6.
3348         * openacc.f90 (openacc_version): Update to 201711.
3349         * openacc_lib.h (openacc_version): Update to 201711.
3350         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
3351         openacc_version to 201711.
3352         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3354 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
3356         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
3357         and vgpr_count fields.
3358         (struct kernel_info): Add a field for a hsa_kernel_description.
3359         (run_kernel): Reduce the number of threads/workers if the requested
3360         number would require too many VGPRs.
3361         (init_basic_kernel_info): Initialize description field with
3362         the hsa_kernel_description entry for the kernel.
3364 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
3366         PR bootstrap/93409
3367         * plugin/configfrag.ac (enable_offload_targets): Skip
3368         HSA and GCN plugin besides -m32 also for -mx32.
3369         * configure: Regenerate.
3371 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
3373         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
3375 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
3377         * plugin-gcn.c (struct agent_info): Add fields "name" and
3378         "vendor_name" ...
3379         (GOMP_OFFLOAD_init_device): ... and init from here.
3380         (struct hsa_context_info): Add field "driver_version_s" ...
3381         (init_hsa_contest): ... and init from here.
3382         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
3383         implementation.
3384         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
3385         Enable test execution for amdgcn and host offloading targets.
3386         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
3387         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
3388         (expect_device_properties): Split function into ...
3389         (expect_device_string_properties): ... this new function ...
3390         (expect_device_memory): ... and this new function.
3391         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
3392         Add test.
3394 2020-01-28  Julian Brown  <julian@codesourcery.com>
3396         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
3397         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
3398         component/non-component variable refs in a single directive.
3399         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
3401 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
3403         * configure.ac: Handle `--with-toolexeclibdir='.
3404         * Makefile.in: Regenerate.
3405         * aclocal.m4: Regenerate.
3406         * configure: Regenerate.
3407         * testsuite/Makefile.in: Regenerate.
3409 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
3411         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
3412         (expect_device_properties): Remove "expected_free_mem" argument,
3413         change "expected_total_mem" argument type to size_t;
3414         change types of acc_get_property results to size_t,
3415         adapt format strings.
3416         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
3417         Use %zu instead of %zd to print size_t values.
3418         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
3419         rename to ...
3420         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
3421         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
3422         rename to ...
3423         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
3425 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
3427         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
3428         the device id.
3430 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
3432         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
3433         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
3434         Adjust test dimensions for amdgcn.
3435         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
3436         gang/worker/vector expectations dynamically.
3437         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
3438         (main): Likewise.
3439         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
3440         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
3441         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
3442         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
3443         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
3444         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
3445         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
3446         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
3447         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
3448         (acc_gang): Recognise acc_device_radeon.
3449         (acc_worker): Likewise.
3450         (acc_vector): Likewise.
3451         (main): Set expectations for amdgcn.
3452         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
3453         (main): Adjust gang/worker/vector expectations dynamically.
3454         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
3455         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
3456         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
3457         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
3458         for amdgcn.
3460 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
3462         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
3463         acc_device_radeon.
3464         (openacc): Likewise.
3465         * openacc.f90 (openacc_kinds): Likewise.
3466         (openacc): Likewise.
3467         * openacc.h (acc_device_t): Likewise.
3468         * openacc_lib.h: Likewise.
3469         * testsuite/lib/libgomp.exp
3470         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
3471         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
3472         (cb_compute_construct_end): Likewise.
3473         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
3474         (cb_enqueue_launch_start): Likewise.
3475         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
3476         (cb_enter_data_end): Likewise.
3477         (cb_exit_data_start): Likewise.
3478         (cb_exit_data_end): Likewise.
3479         (cb_compute_construct_end): Likewise.
3480         (cb_enqueue_launch_start): Likewise.
3481         (cb_enqueue_launch_end): Likewise.
3482         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
3483         (main): Likewise.
3485 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
3487         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
3488         to use this instead of 'enum gomp_device_property'.
3489         (GOMP_OFFLOAD_get_property): Rename to...
3490         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
3491         * libgomp.h (struct gomp_device_descr): Move
3492         'GOMP_OFFLOAD_openacc_get_property'...
3493         (struct acc_dispatch_t): ... here.  Adjust all users.
3494         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
3496         * target.c (gomp_map_vars_internal)
3497         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
3498         paths.
3500 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
3502         PR libgomp/93219
3503         * libgomp.h (gomp_print_string): Change return type from void to int.
3504         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
3505         not all characters have been written.
3507 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
3509         * libgomp.texi: Fix typos, use https.
3511 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
3513         * testsuite/libgomp.fortran/optional-map.f90: Add test for
3514         unallocated/disassociated actual arguments to nonallocatable/nonpointer
3515         dummy arguments; those are/shall be regarded as absent arguments.
3516         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
3517         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
3519 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
3521         Update copyright years.
3523         * libgomp.texi: Bump @copying's copyright year.
3525 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
3527         PR libgomp/93065
3528         * oacc-init.c (goacc_runtime_deinitialize): New function.
3530 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
3532         PR bootstrap/93074
3533         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
3534         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
3536 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
3537             Frederik Harwath  <frederik@codesourcery.com>
3538             Thomas Schwinge  <tschwinge@codesourcery.com>
3540         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
3541         * libgomp-plugin.h (gomp_device_property_value): New union.
3542         (gomp_device_property_value): New prototype.
3543         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
3544         constant.
3545         (acc_device_property_t): New enum.
3546         (acc_get_property, acc_get_property_string): New prototypes.
3547         * oacc-init.c (acc_get_device_type): Also assert that result
3548         is not `acc_device_current'.
3549         (get_property_any, acc_get_property, acc_get_property_string):
3550         New functions.
3551         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
3552         `acc_property_memory', `acc_property_free_memory',
3553         `acc_property_name', `acc_property_vendor' and
3554         `acc_property_driver' constants.  Add `acc_device_property' data
3555         type.
3556         (openacc_internal): Add `acc_get_property' and
3557         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
3558         `acc_get_property_string_h', `acc_get_property_l' and
3559         `acc_get_property_string_l'.
3560         * oacc-host.c (host_get_property): New function.
3561         (host_dispatch): Wire it.
3562         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
3563         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
3564         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
3565         * libgomp.texi (OpenACC Runtime Library Routines): Add
3566         `acc_get_property'.
3567         (acc_get_property): New node.
3568         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
3569         function (stub).
3570         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
3571         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
3572         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
3573         calls.
3574         (GOMP_OFFLOAD_get_property): New function.
3575         (struct ptx_device): Add new field "name".
3576         (cuda_driver_version_s): Add new static variable ...
3577         (nvptx_init): ... and init from here.
3579         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
3580         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
3581         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
3582         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
3583         with test helper functions.
3585         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
3587 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
3589         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
3590         variable.
3592 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
3594         * target.c (gomp_map_vars_internal): Restore 'omp declare target
3595         link' handling.
3597 2019-12-19  Julian Brown  <julian@codesourcery.com>
3599         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
3600         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
3601         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
3603 2019-12-19  Julian Brown  <julian@codesourcery.com>
3604             Cesar Philippidis  <cesar@codesourcery.com>
3606         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
3607         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
3608         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
3609         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
3610         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
3611         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
3612         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
3613         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
3614         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
3615         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
3616         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
3617         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
3618         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
3620 2019-12-19  Julian Brown  <julian@codesourcery.com>
3622         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
3623         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
3624         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
3625         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
3626         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
3627         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
3628         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
3629         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
3630         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
3631         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
3632         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
3633         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
3635 2019-12-19  Julian Brown  <julian@codesourcery.com>
3637         * libgomp.h (struct target_var_desc): Add do_detach flag.
3638         * oacc-init.c (acc_shutdown_1): Free aux block if present.
3639         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
3640         struct components.  Tidy up and add some new checks.
3641         (goacc_enter_data_internal): Update call to find_group_last.
3642         (goacc_exit_data_internal): Support detach operations and
3643         GOMP_MAP_STRUCT.
3644         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
3645         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
3646         attach/detach in enter/exit data detection code.
3647         * target.c (gomp_map_vars_existing): Initialise do_detach field of
3648         tgt_var_desc.
3649         (gomp_map_vars_internal): Support attach.
3650         (gomp_unmap_vars_internal): Support detach.
3652 2019-12-19  Julian Brown  <julian@codesourcery.com>
3653             Thomas Schwinge  <thomas@codesourcery.com>
3655         * libgomp.h (struct splay_tree_aux): Add attach_count field.
3656         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
3657         * libgomp.map (OACC_2.6): New section. Add acc_attach,
3658         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
3659         acc_detach_finalize_async.
3660         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
3661         acc_detach, acc_detach_async, acc_detach_finalize,
3662         acc_detach_finalize_async): New functions.
3663         * openacc.h (acc_attach, acc_attach_async, acc_detach,
3664         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
3665         prototypes.
3666         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
3667         (gomp_remove_var_internal): Free attachment counts if present.
3668         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
3669         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
3671 2019-12-19  Julian Brown  <julian@codesourcery.com>
3672             Cesar Philippidis  <cesar@codesourcery.com>
3674         * libgomp.h (gomp_map_val): Add prototype.
3675         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
3676         open-coding device-address calculation.
3677         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
3678         non-present case.
3680 2019-12-19  Julian Brown  <julian@codesourcery.com>
3682         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
3683         field for virtual_refcount.
3684         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
3685         (gomp_free_memmap): Remove prototype.
3686         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
3687         instead of calling gomp_free_memmap.
3688         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
3689         dynamic_refcount.
3690         (acc_unmap_data): Open code instead of forcing target_mem_desc's
3691         to_free field to NULL then calling gomp_unmap_vars.  Handle
3692         REFCOUNT_INFINITY on target blocks.
3693         (goacc_enter_data): Rename to...
3694         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
3695         handling for mapping groups.  Use virtual_refcount instead of
3696         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
3697         map_map_vars_async call.  Re-do lookup for target pointer return value.
3698         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
3699         renamed goacc_enter_datum function.
3700         (goacc_exit_data): Rename to...
3701         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
3702         (acc_delete, acc_delete_async, acc_delete_finalize,
3703         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
3704         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
3705         goacc_exit_datum function.
3706         (gomp_acc_remove_pointer, find_pointer): Remove functions.
3707         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
3708         New functions.
3709         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
3710         goacc_exit_data_internal helper functions.
3711         * target.c (gomp_map_vars_internal): Handle
3712         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
3713         semantics.
3714         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
3715         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
3716         virtual_refcount field instead of dynamic_refcount.
3717         (gomp_free_memmap): Remove function.
3718         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
3719         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
3720         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
3722 2019-12-19  Julian Brown  <julian@codesourcery.com>
3723             Thomas Schwinge  <thomas@codesourcery.com>
3725         * libgomp.h (struct splay_tree_aux): New.
3726         (struct splay_tree_key_s): Replace link_key field with aux pointer.
3727         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
3728         to aux struct.
3729         (gomp_remove_var_internal): Free aux block if present.
3730         (gomp_load_image_to_device): Zero-initialise aux field instead of
3731         link_key field.
3732         (omp_target_associate_pointer): Zero-initialise aux field.
3734 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
3736         PR middle-end/86416
3737         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
3738         q or none.
3739         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
3740         L or none.
3742 2019-12-19  Julian Brown  <julian@codesourcery.com>
3743             Maciej W. Rozycki  <macro@codesourcery.com>
3744             Tobias Burnus  <tobias@codesourcery.com>
3745             Thomas Schwinge  <thomas@codesourcery.com>
3747         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
3748         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
3749         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
3750         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
3751         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
3752         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
3753         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
3754         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
3755         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
3757 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
3759         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
3760         called...
3761         (goacc_insert_pointer): ... from here, "present" case.
3762         (goacc_insert_pointer): Inline function into...
3763         (GOACC_enter_exit_data): ... here, and simplify.
3765         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
3766         called...
3767         (goacc_insert_pointer): ... from here, "not present" case.
3769         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
3770         all users.
3772         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
3773         'goacc_enter_data', 'goacc_exit_data'.
3775         * oacc-mem.c (delete_copyout): Refactor into...
3776         (goacc_exit_data): ... this.  Adjust all users.
3778         * oacc-mem.c (present_create_copy): Refactor into...
3779         (goacc_enter_data): ... this.  Adjust all users.
3781         * target.c (gomp_unmap_vars_internal): Add a safeguard to
3782         'gomp_remove_var'.
3784         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
3785         like 'GOMP_MAP_FROM'.
3787         PR libgomp/92726
3788         PR libgomp/92970
3789         PR libgomp/92984
3790         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
3791         fails.
3792         (GOACC_enter_exit_data): Simplify accordingly.
3793         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
3794         subsuming...
3795         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
3796         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
3797         file.
3798         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
3799         subsuming...
3800         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
3801         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
3802         file.
3803         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
3804         subsuming...
3805         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
3807         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
3808         'finalize' handling.
3810         PR libgomp/92848
3811         * oacc-mem.c (acc_map_data, present_create_copy)
3812         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
3813         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
3814         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
3815         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
3816         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
3817         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
3818         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
3819         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
3820         Remove "XFAIL"s.
3822         * target.c (gomp_unmap_tgt): Make it 'static'.
3823         * libgomp.h (gomp_unmap_tgt): Remove.
3825 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
3827         PR middle-end/86416
3828         * testsuite/libgomp.c/pr86416-1.c: New.
3829         * testsuite/libgomp.c/pr86416-2.c: New.
3831 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
3833         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
3834         all symbols as public except for the 'use â€¦, only' imported symbol,
3835         which is private.
3836         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
3837         all symbols from module openacc_kinds as PUBLIC
3838         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
3839         fix comment typo.
3840         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
3842 2019-12-13  Julian Brown  <julian@codesourcery.com>
3844         PR libgomp/92881
3846         * libgomp.h (gomp_remove_var_async): Add prototype.
3847         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
3848         gomp_remove_var.
3849         * target.c (gomp_unref_tgt): Change return type to bool, indicating
3850         whether target_mem_desc was unmapped.
3851         (gomp_unref_tgt_void): New.
3852         (gomp_remove_var): Reimplement in terms of...
3853         (gomp_remove_var_internal): ...this new helper function.
3854         (gomp_remove_var_async): New, implemented using above helper function.
3855         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
3856         gomp_unref_tgt.
3858 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
3860         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
3861         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3862         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
3863         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
3864         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
3865         Likewise.
3866         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
3867         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
3869 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
3871         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
3872         as public except for the 'use â€¦, only' imported symbol, which is
3873         private.
3874         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
3875         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
3876         attributes for acc_copyout_finalize and acc_delete_finalize.
3878 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
3880         PR fortran/92899
3881         * testsuite/libgomp.fortran/atomic1.f90: New test.
3883 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
3885         PR libgomp/92843
3886         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
3887         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
3888         assertions.
3889         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
3890         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
3891         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
3892         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
3893         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3895         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
3896         * oacc-mem.c: ... here.
3897         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
3898         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
3899         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
3900         Remove.
3901         * libgomp_g.h: Update.
3903         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
3904         * oacc-async.c: ... here.
3905         * oacc-int.h (goacc_wait): Declare.
3906         * libgomp_g.h: Update
3908         PR libgomp/92854
3909         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
3910         New file.
3911         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
3912         Likewise.
3913         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
3914         Likewise.
3915         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
3916         Likewise.
3917         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
3918         Likewise.
3919         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
3920         Likewise.
3922 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
3923             Julian Brown  <julian@codesourcery.com>
3925         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
3926         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
3928 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
3930         * omp_lib.h.in: Fix spelling of function declaration
3931         omp_get_cancell(l)ation.
3932         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
3933         Fix typos.
3934         * env.c: Fix comment typos.
3935         * oacc-host.c: Likewise.
3936         * ordered.c: Likewise.
3937         * task.c: Likewise.
3938         * team.c: Likewise.
3939         * config/gcn/task.c: Likewise.
3940         * config/gcn/team.c: Likewise.
3941         * config/nvptx/task.c: Likewise.
3942         * config/nvptx/team.c: Likewise.
3943         * plugin/plugin-gcn.c: Likewise.
3944         * testsuite/libgomp.fortran/jacobi.f: Likewise.
3945         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
3946         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
3948 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
3950         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
3951         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
3952         unnecessary 'dg-additional-options "-w"'.
3954 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
3955             Julian Brown  <julian@codesourcery.com>
3957         PR libgomp/92116
3958         PR libgomp/92877
3960         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
3961         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
3962         Adjust all users.
3963         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
3964         Remove XFAIL.
3965         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
3966         Likewise.
3967         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
3969 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
3971         PR libgomp/92503
3972         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
3973         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
3974         file.
3975         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
3976         Likewise.
3977         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
3978         Likewise.
3979         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
3980         Likewise.
3981         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
3982         Likewise.
3983         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
3984         Likewise.
3985         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
3986         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
3987         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
3988         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
3989         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
3990         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
3991         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3992         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3993         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
3994         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3996         PR libgomp/92840
3997         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
3998         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
3999         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
4000         New file.
4001         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
4002         Likewise.
4003         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
4004         Likewise.
4005         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
4006         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
4008         PR libgomp/92511
4009         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
4010         this file...
4011         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
4012         this file...
4013         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
4014         file...
4015         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
4016         file...
4017         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
4018         ... with their content moved into, and extended in this new file.
4019         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
4020         New file.
4021         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
4022         Likewise.
4023         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
4024         Likewise.
4025         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
4026         Likewise.
4028         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
4030         PR libgomp/92854
4031         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
4033         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
4035         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
4037 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
4039         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
4040         unique.
4041         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
4042         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
4043         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
4044         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
4045         Ditto.
4046         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
4047         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
4049 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
4051         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
4053 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
4054             Kwok Cheung Yeung <kcy@codesourcery.com>
4056         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
4057         if input it a NULL pointer.
4058         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
4059         diagnostic of NULL pointer.
4060         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
4061         * testsuite/libgomp.fortran/optional-map.f90: New.
4062         * testsuite/libgomp.fortran/use_device_addr-1.f90
4063         (test_dummy_opt_callee_1_absent): New.
4064         (test_dummy_opt_call_1): Call it.
4065         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
4066         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
4067         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
4068         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
4069         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
4070         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
4071         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
4072         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
4073         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
4074         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
4075         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
4076         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
4077         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
4078         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
4079         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
4080         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
4082 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
4084         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
4085         expect dg-output of 'Error termination.' for GCN.
4086         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
4087         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
4089 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
4091         PR fortran/92756
4092         * testsuite/libgomp.fortran/teams1.f90: New test.
4093         * testsuite/libgomp.fortran/teams2.f90: New test.
4095 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
4097         * oacc-init.c (acc_known_device_type): Add function.
4098         (unknown_device_type_error): Add function.
4099         (name_of_acc_device_t): Change to call unknown_device_type_error
4100         on unknown type.
4101         (resolve_device): Use acc_known_device_type.
4102         (acc_init): Fail if acc_device_t argument is not valid.
4103         (acc_shutdown): Likewise.
4104         (acc_get_num_devices): Likewise.
4105         (acc_set_device_type): Likewise.
4106         (acc_get_device_num): Likewise.
4107         (acc_set_device_num): Likewise.
4108         (acc_on_device): Add comment that argument validity is not checked.
4110 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
4112         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
4113         Recognize amdgcn.
4114         (check_effective_target_openacc_amdgcn_accel_present): New proc.
4115         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
4116         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
4117         * testsuite/libgomp.oacc-c/c.exp: Likewise.
4118         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4120 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4122         PR libgomp/91938
4123         * configure.tgt: Avoid IE tls on *-*-musl*.
4125 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
4127         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
4128         adding a common-block test case.
4130 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
4132         PR c++/60228
4133         * testsuite/libgomp.c++/udr-20.C: New test.
4134         * testsuite/libgomp.c++/udr-21.C: New test.
4136 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
4138         * testsuite/lib/libgomp.exp
4139         (check_effective_target_offload_target_nvptx): New proc.
4140         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
4141         'dg-skip-if'.
4142         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
4143         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
4144         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
4146 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4148         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
4149         * testsuite/libgomp.c/pr39591-2.c: Likewise.
4150         * testsuite/libgomp.c/pr39591-3.c: Likewise.
4151         * testsuite/libgomp.c/private-1.c: Likewise.
4152         * testsuite/libgomp.c/task-1.c: Likewise.
4153         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
4155 2019-11-20  Julian Brown  <julian@codesourcery.com>
4157         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
4158         aq->mutex here.
4159         (queue_push_launch): Lock aq->mutex before calling
4160         wait_for_queue_nonfull.
4161         (queue_push_callback): Likewise.
4162         (queue_push_asyncwait): Likewise.
4163         (queue_push_placeholder): Likewise.
4165 2019-11-20  Julian Brown  <julian@codesourcery.com>
4167         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
4168         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
4169         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
4170         return code.
4172 2019-11-20  Julian Brown  <julian@codesourcery.com>
4174         PR libgomp/92511
4176         * oacc-mem.c (present_create_copy): Fix device pointer return value in
4177         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
4178         in non-present/create case.
4179         (delete_copyout): Change error condition to fail only on copies outside
4180         of mapped block.  Adjust error message accordingly.
4181         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
4182         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
4183         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
4184         message.
4185         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4186         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
4187         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
4189 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
4191         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
4192         libatomic in build-tree testing.
4194 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
4196         * testsuite/Makefile.in: Regenerate.
4198 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
4200         * testsuite/libgomp.c/target-print-1.c: New file.
4201         * testsuite/libgomp.fortran/target-print-1.f90: New file.
4202         * testsuite/libgomp.oacc-c/print-1.c: New file.
4203         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
4205 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4206             Kwok Cheung Yeung  <kcy@codesourcery.com>
4207             Julian Brown  <julian@codesourcery.com>
4208             Tom de Vries  <tom@codesourcery.com>
4210         * plugin/Makefrag.am: Add amdgcn plugin support.
4211         * plugin/configfrag.ac: Likewise.
4212         * plugin/plugin-gcn.c: New file.
4213         * configure: Regenerate.
4214         * Makefile.in: Regenerate.
4215         * testsuite/Makefile.in: Regenerate.
4217 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4219         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
4220         and use team_malloc variants.
4221         (gomp_gcn_exit_kernel): Use team_free.
4222         * libgomp.h (TEAM_ARENA_SIZE): Define.
4223         (TEAM_ARENA_START): Define.
4224         (TEAM_ARENA_FREE): Define.
4225         (TEAM_ARENA_END): Define.
4226         (team_malloc): New function.
4227         (team_malloc_cleared): New function.
4228         (team_free): New function.
4229         * team.c (gomp_new_team): Initialize and use team_malloc.
4230         (free_team): Use team_free.
4231         (gomp_free_thread): Use team_free.
4232         (gomp_pause_host): Use team_free.
4233         * work.c (gomp_init_work_share): Use team_malloc.
4234         (gomp_fini_work_share): Use team_free.
4236 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4237             Kwok Cheung Yeung  <kcy@codesourcery.com>
4238             Julian Brown  <julian@codesourcery.com>
4239             Tom de Vries  <tom@codesourcery.com>
4241         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
4242         * Makefile.in: Regenerate.
4243         * config.h.in (PLUGIN_GCN): Add new undef.
4244         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
4245         * config/gcn/affinity-fmt.c: New file.
4246         * config/gcn/bar.c: New file.
4247         * config/gcn/bar.h: New file.
4248         * config/gcn/doacross.h: New file.
4249         * config/gcn/icv-device.c: New file.
4250         * config/gcn/oacc-target.c: New file.
4251         * config/gcn/simple-bar.h: New file.
4252         * config/gcn/target.c: New file.
4253         * config/gcn/task.c: New file.
4254         * config/gcn/team.c: New file.
4255         * config/gcn/time.c: New file.
4256         * configure.ac: Add amdgcn*-*-*.
4257         * configure: Regenerate.
4258         * configure.tgt: Add amdgcn*-*-*.
4259         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
4260         * libgomp.h (gcn_thrs): Add amdgcn variant.
4261         (set_gcn_thrs): Likewise.
4262         (gomp_thread): Likewise.
4263         * oacc-int.h (goacc_thread): Likewise.
4264         * oacc-target.c: New file.
4265         * openacc.f90 (acc_device_gcn): New parameter.
4266         * openacc.h (acc_device_t): Add acc_device_gcn.
4267         * team.c (gomp_free_pool_helper): Add amdgcn support.
4269 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4270             Julian Brown  <julian@codesourcery.com>
4272         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
4273         parameter.
4274         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
4275         queue constructor.
4276         * oacc-host.c (host_openacc_async_construct): Add device parameter.
4277         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
4278         device parameter.
4280 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4282         * configure.tgt (nvptx*-*-*): Add "accel" directory.
4283         * config/nvptx/libgomp-plugin.c: Move ...
4284         * config/accel/libgomp-plugin.c: ... to here.
4285         * config/nvptx/lock.c: Move ...
4286         * config/accel/lock.c: ... to here.
4287         * config/nvptx/mutex.c: Move ...
4288         * config/accel/mutex.c: ... to here.
4289         * config/nvptx/mutex.h: Move ...
4290         * config/accel/mutex.h: ... to here.
4291         * config/nvptx/oacc-async.c: Move ...
4292         * config/accel/oacc-async.c: ... to here.
4293         * config/nvptx/oacc-cuda.c: Move ...
4294         * config/accel/oacc-cuda.c: ... to here.
4295         * config/nvptx/oacc-host.c: Move ...
4296         * config/accel/oacc-host.c: ... to here.
4297         * config/nvptx/oacc-init.c: Move ...
4298         * config/accel/oacc-init.c: ... to here.
4299         * config/nvptx/oacc-mem.c: Move ...
4300         * config/accel/oacc-mem.c: ... to here.
4301         * config/nvptx/oacc-plugin.c: Move ...
4302         * config/accel/oacc-plugin.c: ... to here.
4303         * config/nvptx/omp-lock.h: Move ...
4304         * config/accel/omp-lock.h: ... to here.
4305         * config/nvptx/openacc.f90: Move ...
4306         * config/accel/openacc.f90: ... to here.
4307         * config/nvptx/pool.h: Move ...
4308         * config/accel/pool.h: ... to here.
4309         * config/nvptx/proc.c: Move ...
4310         * config/accel/proc.c: ... to here.
4311         * config/nvptx/ptrlock.c: Move ...
4312         * config/accel/ptrlock.c: ... to here.
4313         * config/nvptx/ptrlock.h: Move ...
4314         * config/accel/ptrlock.h: ... to here.
4315         * config/nvptx/sem.c: Move ...
4316         * config/accel/sem.c: ... to here.
4317         * config/nvptx/sem.h: Move ...
4318         * config/accel/sem.h: ... to here.
4319         * config/nvptx/thread-stacksize.h: Move ...
4320         * config/accel/thread-stacksize.h: ... to here.
4322 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
4323             Tobias Burnus  <tobias@codesourcery.com>
4324             Frederik Harwath  <frederik@codesourcery.com>
4325             Thomas Schwinge  <thomas@codesourcery.com>
4327         libgomp/
4328         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
4329         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
4330         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
4332 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
4333             Kwok Cheung Yeung  <kcy@codesourcery.com>
4335         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
4336         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
4338 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
4340         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
4342         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
4343         run'.
4344         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
4345         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
4347 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
4349         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
4350         Add expected warnings about missing reduction clauses.
4351         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
4352         Likewise.
4353         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
4354         Likewise.
4355         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4356         Likewise.
4358 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
4360         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
4361         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
4362         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
4363         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
4364         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
4365         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
4367 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
4369         PR fortran/92305
4370         * testsuite/libgomp.fortran/allocatable2.f90: Use
4371         unique numbers with 'stop'.
4372         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
4373         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
4374         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
4375         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
4376         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
4378 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
4380         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
4381         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
4382         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
4383         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
4384         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
4385         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
4387 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
4389         * testsuite/libgomp.fortran/target9.f90: New.
4391 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
4393         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
4394         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
4395         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
4396         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
4397         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
4398         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
4399         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
4400         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
4401         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
4402         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
4403         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
4404         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
4405         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
4406         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
4407         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
4408         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
4409         * testsuite/libgomp.fortran/associate1.f90: Ditto.
4410         * testsuite/libgomp.fortran/associate2.f90: Ditto.
4411         * testsuite/libgomp.fortran/associate3.f90: Ditto.
4412         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
4413         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
4414         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
4415         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
4416         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
4417         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
4418         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
4419         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
4420         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
4421         * testsuite/libgomp.fortran/character1.f90: Ditto.
4422         * testsuite/libgomp.fortran/character2.f90: Ditto.
4423         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
4424         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
4425         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
4426         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
4427         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
4428         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
4429         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
4430         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
4431         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
4432         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
4433         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
4434         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
4435         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
4436         * testsuite/libgomp.fortran/do1.f90: Ditto.
4437         * testsuite/libgomp.fortran/do2.f90: Ditto.
4438         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
4439         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
4440         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
4441         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
4442         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
4443         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
4444         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
4445         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
4446         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
4447         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
4448         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
4449         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
4450         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
4451         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
4452         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
4453         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
4454         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
4455         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
4456         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
4457         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
4458         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
4459         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
4460         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
4461         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
4462         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
4463         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
4464         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
4465         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
4466         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
4467         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
4468         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
4469         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
4470         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
4471         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
4472         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
4473         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
4474         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
4475         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
4476         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
4477         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
4478         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
4479         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
4480         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
4481         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
4482         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
4483         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
4484         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
4485         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
4486         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
4487         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
4488         * testsuite/libgomp.fortran/lib1.f90: Ditto.
4489         * testsuite/libgomp.fortran/lib4.f90: Ditto.
4490         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
4491         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
4492         * testsuite/libgomp.fortran/nested1.f90: Ditto.
4493         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
4494         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
4495         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
4496         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
4497         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
4498         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
4499         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
4500         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
4501         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
4502         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
4503         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
4504         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
4505         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
4506         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
4507         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
4508         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
4509         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
4510         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
4511         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
4512         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
4513         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
4514         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
4515         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
4516         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
4517         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
4518         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
4519         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
4520         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
4521         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
4522         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
4523         * testsuite/libgomp.fortran/pr28390.f: Ditto.
4524         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
4525         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
4526         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
4527         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
4528         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4529         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
4530         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
4531         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
4532         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
4533         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
4534         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
4535         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
4536         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
4537         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
4538         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
4539         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
4540         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
4541         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
4542         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
4543         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
4544         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
4545         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
4546         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
4547         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
4548         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
4549         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
4550         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
4551         * testsuite/libgomp.fortran/reference1.f90: Ditto.
4552         * testsuite/libgomp.fortran/reference2.f90: Ditto.
4553         * testsuite/libgomp.fortran/retval1.f90: Ditto.
4554         * testsuite/libgomp.fortran/retval2.f90: Ditto.
4555         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
4556         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
4557         * testsuite/libgomp.fortran/simd1.f90: Ditto.
4558         * testsuite/libgomp.fortran/simd2.f90: Ditto.
4559         * testsuite/libgomp.fortran/simd3.f90: Ditto.
4560         * testsuite/libgomp.fortran/simd4.f90: Ditto.
4561         * testsuite/libgomp.fortran/simd5.f90: Ditto.
4562         * testsuite/libgomp.fortran/simd6.f90: Ditto.
4563         * testsuite/libgomp.fortran/simd7.f90: Ditto.
4564         * testsuite/libgomp.fortran/stack.f90: Ditto.
4565         * testsuite/libgomp.fortran/strassen.f90: Ditto.
4566         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
4567         * testsuite/libgomp.fortran/tabs2.f: Ditto.
4568         * testsuite/libgomp.fortran/target1.f90: Ditto.
4569         * testsuite/libgomp.fortran/target2.f90: Ditto.
4570         * testsuite/libgomp.fortran/target3.f90: Ditto.
4571         * testsuite/libgomp.fortran/target4.f90: Ditto.
4572         * testsuite/libgomp.fortran/target5.f90: Ditto.
4573         * testsuite/libgomp.fortran/target6.f90: Ditto.
4574         * testsuite/libgomp.fortran/target7.f90: Ditto.
4575         * testsuite/libgomp.fortran/target8.f90: Ditto.
4576         * testsuite/libgomp.fortran/task1.f90: Ditto.
4577         * testsuite/libgomp.fortran/task2.f90: Ditto.
4578         * testsuite/libgomp.fortran/task3.f90: Ditto.
4579         * testsuite/libgomp.fortran/task4.f90: Ditto.
4580         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4581         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4582         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
4583         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
4584         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
4585         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
4586         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
4587         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
4588         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
4589         * testsuite/libgomp.fortran/udr1.f90: Ditto.
4590         * testsuite/libgomp.fortran/udr10.f90: Ditto.
4591         * testsuite/libgomp.fortran/udr11.f90: Ditto.
4592         * testsuite/libgomp.fortran/udr12.f90: Ditto.
4593         * testsuite/libgomp.fortran/udr13.f90: Ditto.
4594         * testsuite/libgomp.fortran/udr14.f90: Ditto.
4595         * testsuite/libgomp.fortran/udr15.f90: Ditto.
4596         * testsuite/libgomp.fortran/udr2.f90: Ditto.
4597         * testsuite/libgomp.fortran/udr3.f90: Ditto.
4598         * testsuite/libgomp.fortran/udr4.f90: Ditto.
4599         * testsuite/libgomp.fortran/udr5.f90: Ditto.
4600         * testsuite/libgomp.fortran/udr6.f90: Ditto.
4601         * testsuite/libgomp.fortran/udr7.f90: Ditto.
4602         * testsuite/libgomp.fortran/udr8.f90: Ditto.
4603         * testsuite/libgomp.fortran/udr9.f90: Ditto.
4604         * testsuite/libgomp.fortran/vla1.f90: Ditto.
4605         * testsuite/libgomp.fortran/vla2.f90: Ditto.
4606         * testsuite/libgomp.fortran/vla3.f90: Ditto.
4607         * testsuite/libgomp.fortran/vla4.f90: Ditto.
4608         * testsuite/libgomp.fortran/vla5.f90: Ditto.
4609         * testsuite/libgomp.fortran/vla6.f90: Ditto.
4610         * testsuite/libgomp.fortran/vla7.f90: Ditto.
4611         * testsuite/libgomp.fortran/vla8.f90: Ditto.
4612         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4613         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4615 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
4617         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
4618         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
4619         Ditto; add 'dg-do run' for torture testing.
4620         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
4621         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
4622         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
4623         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
4624         * testsuite/libgomp.fortran/pr28390.f: Ditto.
4625         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4626         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
4627         * testsuite/libgomp.fortran/task2.f90: Ditto.
4628         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4629         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4630         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
4631         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
4632         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4633         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4635 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
4637         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
4638         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
4639         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
4640         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
4641         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
4642         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
4643         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
4644         Use 'stop' not abort().
4645         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
4646         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
4647         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
4648         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
4649         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
4650         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
4651         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
4652         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
4653         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
4654         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
4655         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
4656         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
4657         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
4658         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
4659         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
4660         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
4661         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
4662         Ditto.
4663         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4664         Ditto.
4665         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4666         Ditto.
4667         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4668         Ditto.
4669         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4670         Ditto.
4671         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
4672         Ditto.
4673         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
4674         Ditto.
4675         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
4676         Ditto.
4677         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
4678         Ditto.
4679         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
4680         Ditto.
4681         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
4682         Ditto.
4683         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
4684         Ditto.
4685         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
4686         Ditto.
4687         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
4688         Ditto.
4689         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
4690         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
4691         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
4692         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
4693         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
4694         Likewise and also add 'dg-do run'.
4695         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
4696         Ditto.
4698 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
4699             Tobias Burnus  <tobias@codesourcery.com>
4701         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
4702         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
4703         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
4705 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
4707         PR libgomp/92081
4708         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
4709         than 0.
4711 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
4713         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
4714         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
4716 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
4718         PR middle-end/92036
4719         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
4720         file.
4722 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
4724         PR testsuite/91884
4725         * testsuite/libgomp.fortran/fortran.exp: Conditionally
4726         add -lquadmath.
4727         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
4729 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
4731         PR libgomp/92028
4732         * target.c (gomp_map_vars_internal): Readd the previous
4733         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
4734         though do that just in the !not_found_cnt case.
4736 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
4738         * gfortran.dg/gomp/target-simd.f90: New.
4740 2019-10-02  Julian Brown  <julian@codesourcery.com>
4741             Cesar Philippidis  <cesar@codesourcery.com>
4743         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
4744         * target.c (FIELD_TGT_EMPTY): Define.
4745         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
4746         as switch instead of list of ifs.
4747         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
4749 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
4751         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
4752         include. Replace alloca () with __builtin_alloca ().
4753         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
4755 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
4757         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
4758         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
4759         * oacc-parallel.c: Don't include "libgomp_g.h".
4760         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
4761         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
4762         * aclocal.m4: Regenerated.
4763         * config.h.in: Regenerated.
4764         * configure: Regenerated.
4765         * Makefile.in: Regenerated.
4767 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
4769         * libgomp_g.h: Include stdint.h instead of gstdint.h.
4771 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
4773         * configure: Regenerate.
4775 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
4777         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
4778         string is initialized.
4780 2019-09-06  Florian Weimer  <fweimer@redhat.com>
4782         * configure: Regenerate.
4784 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
4786         PR other/79543
4787         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
4788         scanning to conform to the GNU Coding Standards.
4789         * configure: Regenerate.
4791 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
4793         PR libgomp/91530
4794         * testsuite/libgomp.c/scan-21.c: New test.
4795         * testsuite/libgomp.c/scan-22.c: New test.
4797 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
4799         PR libgomp/91530
4800         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
4801         targets.
4802         * testsuite/libgomp.c/scan-12.c: Likewise.
4803         * testsuite/libgomp.c/scan-13.c: Likewise.
4804         * testsuite/libgomp.c/scan-14.c: Likewise.
4805         * testsuite/libgomp.c/scan-15.c: Likewise.
4806         * testsuite/libgomp.c/scan-16.c: Likewise.
4807         * testsuite/libgomp.c/scan-17.c: Likewise.
4808         * testsuite/libgomp.c/scan-18.c: Likewise.
4809         * testsuite/libgomp.c/scan-19.c: Likewise.
4810         * testsuite/libgomp.c/scan-20.c: Likewise.
4811         * testsuite/libgomp.c++/scan-9.C: Likewise.
4812         * testsuite/libgomp.c++/scan-10.C: Likewise.
4813         * testsuite/libgomp.c++/scan-11.C: Likewise.
4814         * testsuite/libgomp.c++/scan-12.C: Likewise.
4815         * testsuite/libgomp.c++/scan-14.C: Likewise.
4816         * testsuite/libgomp.c++/scan-15.C: Likewise.
4817         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
4818         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
4819         * testsuite/libgomp.c++/scan-16.C: Likewise.
4821 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
4823         PR fortran/91473
4824         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
4825         -std=legacy so invalid code in the test case is accepted.
4827 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
4829         PR fortran/91422
4830         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
4831         dimension.
4833 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
4835         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
4836         perform the lookup in the first loop only if !not_found_cnt, otherwise
4837         perform lookups for it in the second loop guarded with
4838         if (not_found_cnt || has_firstprivate).
4839         * testsuite/libgomp.c/target-37.c: New test.
4840         * testsuite/libgomp.c++/target-22.C: New test.
4842 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
4844         * testsuite/libgomp.c/target-18.c (struct S): New type.
4845         (foo): Use use_device_addr clause instead of use_device_ptr clause
4846         where required by OpenMP 5.0, add further tests for both use_device_ptr
4847         and use_device_addr clauses.
4848         * testsuite/libgomp.c++/target-9.C (struct S): New type.
4849         (foo): Use use_device_addr clause instead of use_device_ptr clause
4850         where required by OpenMP 5.0, add further tests for both use_device_ptr
4851         and use_device_addr clauses.  Add t and u arguments.
4852         (main): Adjust caller.
4854 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
4856         * testsuite/libgomp.c++/loop-13.C: New test.
4857         * testsuite/libgomp.c++/loop-14.C: New test.
4858         * testsuite/libgomp.c++/loop-15.C: New test.
4860 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
4862         PR middle-end/91301
4863         * testsuite/libgomp.c++/for-27.C: New test.
4865 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
4867         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
4868         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
4870 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
4872         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
4874 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
4876         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
4877         * testsuite/libgomp.c++/scan-16.C: Likewise.
4879 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
4881         * testsuite/libgomp.c/scan-19.c: New test.
4882         * testsuite/libgomp.c/scan-20.c: New test.
4884         * testsuite/libgomp.c/scan-11.c: New test.
4885         * testsuite/libgomp.c/scan-12.c: New test.
4886         * testsuite/libgomp.c/scan-13.c: New test.
4887         * testsuite/libgomp.c/scan-14.c: New test.
4888         * testsuite/libgomp.c/scan-15.c: New test.
4889         * testsuite/libgomp.c/scan-16.c: New test.
4890         * testsuite/libgomp.c/scan-17.c: New test.
4891         * testsuite/libgomp.c/scan-18.c: New test.
4892         * testsuite/libgomp.c++/scan-9.C: New test.
4893         * testsuite/libgomp.c++/scan-10.C: New test.
4894         * testsuite/libgomp.c++/scan-11.C: New test.
4895         * testsuite/libgomp.c++/scan-12.C: New test.
4896         * testsuite/libgomp.c++/scan-13.C: New test.
4897         * testsuite/libgomp.c++/scan-14.C: New test.
4898         * testsuite/libgomp.c++/scan-15.C: New test.
4899         * testsuite/libgomp.c++/scan-16.C: New test.
4901 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
4903         * testsuite/libgomp.c/scan-9.c: New test.
4904         * testsuite/libgomp.c/scan-10.c: New test.
4906 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
4908         * testsuite/libgomp.c++/scan-1.C: New test.
4909         * testsuite/libgomp.c++/scan-2.C: New test.
4910         * testsuite/libgomp.c++/scan-3.C: New test.
4911         * testsuite/libgomp.c++/scan-4.C: New test.
4912         * testsuite/libgomp.c++/scan-5.C: New test.
4913         * testsuite/libgomp.c++/scan-6.C: New test.
4914         * testsuite/libgomp.c++/scan-7.C: New test.
4915         * testsuite/libgomp.c++/scan-8.C: New test.
4916         * testsuite/libgomp.c/scan-1.c: New test.
4917         * testsuite/libgomp.c/scan-2.c: New test.
4918         * testsuite/libgomp.c/scan-3.c: New test.
4919         * testsuite/libgomp.c/scan-4.c: New test.
4920         * testsuite/libgomp.c/scan-5.c: New test.
4921         * testsuite/libgomp.c/scan-6.c: New test.
4922         * testsuite/libgomp.c/scan-7.c: New test.
4923         * testsuite/libgomp.c/scan-8.c: New test.
4925 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
4927         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
4928         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
4929         Likewise.
4931         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
4932         check.
4934 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
4936         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
4937         file.
4939 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
4941         PR fortran/90743
4942         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
4943         case.
4944         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
4945         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
4946         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
4947         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
4949         PR testsuite/90861
4950         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
4952         PR middle-end/90862
4953         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
4955 2019-06-16  Tom de Vries  <tdevries@suse.de>
4957         PR tree-optimization/89376
4958         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
4960 2019-06-15  Tom de Vries  <tdevries@suse.de>
4962         PR tree-optimization/89713
4963         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
4964         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
4966 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
4968         PR middle-end/90779
4969         * testsuite/libgomp.c/pr90779.c: New test.
4970         * testsuite/libgomp.fortran/pr90779.f90: New test.
4972 2019-06-15  Tom de Vries  <tdevries@suse.de>
4974         PR tree-optimization/90009
4975         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
4977 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
4979         PR tree-optimization/89713
4980         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
4982 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
4984         PR target/90811
4985         * testsuite/libgomp.c/pr90811.c: New test.
4987 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
4989         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
4990         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
4992 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
4994         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
4995         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
4996         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
4997         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
4999 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5001         * configure.ac: Call AX_COUNT_CPUS.
5002         Substitute CPU_COUNT.
5003         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
5004         count fallback.
5005         * aclocal.m4: Regenerate.
5006         * configure: Regenerate.
5007         * Makefile.in, testsuite/Makefile.in: Regenerate.
5009 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
5011         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
5012         to ...
5013         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
5014         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
5015         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
5017 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
5019         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
5021         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
5023         PR libgomp/90641
5024         * work.c (gomp_init_work_share): Instead of aligning final ordered
5025         value to multiples of long long alignment, align to that the
5026         first part (ordered team ids) and if inline_ordered_team_ids
5027         is not on a long long alignment boundary within the structure,
5028         use __alignof__ (long long) - 1 pad size always.
5029         * loop.c (GOMP_loop_start): Fix *mem computation if
5030         inline_ordered_team_ids is not aligned on long long alignment boundary
5031         within the structure.
5032         * loop-ull.c (GOMP_loop_ull_start): Likewise.
5033         * sections.c (GOMP_sections2_start): Likewise.
5035 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
5037         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
5038         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
5040         PR libgomp/90585
5041         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
5042         HAVE_INTTYPES_H is defined.
5043         (print_uint64_t): New typedef.
5044         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
5045         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
5046         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
5047         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
5048         before casting to void *.
5049         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
5050         * oacc-mem.c: Don't include config.h nor stdint.h.
5051         * target.c: Don't include config.h.
5052         * oacc-cuda.c: Likewise.
5053         * oacc-host.c: Don't include stdint.h.
5055 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
5057         PR libgomp/90527
5058         * alloc.c (_GNU_SOURCE): Define.
5060 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
5062         * acc_prof.h: New file.
5063         * oacc-profiling.c: Likewise.
5064         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
5065         Add these, respectively.
5066         * Makefile.in: Regenerate.
5067         * env.c (initialize_env): Call goacc_profiling_initialize.
5068         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
5069         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
5070         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
5071         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
5072         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
5073         acc_prof_register, acc_prof_unregister, and acc_register_library.
5074         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
5075         GOMP_PLUGIN_goacc_thread.
5076         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
5077         prof_callbacks_enabled members.
5078         (goacc_prof_enabled, goacc_profiling_initialize)
5079         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
5080         (goacc_profiling_dispatch): Declare.
5081         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
5082         (GOACC_PROFILING_SETUP_P): Define.
5083         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
5084         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
5085         OpenACC Profiling Interface.
5086         * oacc-cuda.c (acc_get_current_cuda_device)
5087         (acc_get_current_cuda_context, acc_get_cuda_stream)
5088         (acc_set_cuda_stream): Likewise.
5089         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
5090         (acc_init, acc_set_device_type, acc_get_device_type)
5091         (acc_get_device_num, goacc_lazy_initialize): Likewise.
5092         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
5093         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
5094         (acc_unmap_data, present_create_copy, delete_copyout)
5095         (update_dev_host): Likewise.
5096         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
5097         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
5098         Likewise.
5099         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
5100         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
5101         Likewise.
5102         * libgomp.texi: Update.
5103         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
5104         file.
5105         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
5106         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5107         Likewise.
5108         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5109         Likewise.
5110         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
5111         Likewise.
5112         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
5113         Likewise.
5115 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
5117         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
5118         (struct goacc_asyncqueue_list): Likewise.
5119         (goacc_aq): Likewise.
5120         (goacc_aq_list): Likewise.
5121         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
5122         (GOMP_OFFLOAD_openacc_async_test): Remove.
5123         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
5124         (GOMP_OFFLOAD_openacc_async_wait): Remove.
5125         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
5126         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
5127         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
5128         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
5129         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
5130         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
5131         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
5132         (GOMP_OFFLOAD_openacc_async_exec): Declare.
5133         (GOMP_OFFLOAD_openacc_async_construct): Declare.
5134         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
5135         (GOMP_OFFLOAD_openacc_async_test): Declare.
5136         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
5137         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
5138         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
5139         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
5140         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
5142         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
5143         (gomp_acc_insert_pointer): Adjust declaration.
5144         (gomp_copy_host2dev): New declaration.
5145         (gomp_copy_dev2host): Likewise.
5146         (gomp_map_vars_async): Likewise.
5147         (gomp_unmap_tgt): Likewise.
5148         (gomp_unmap_vars_async): Likewise.
5149         (gomp_fini_device): Likewise.
5151         * oacc-async.c (get_goacc_thread): New function.
5152         (get_goacc_thread_device): New function.
5153         (lookup_goacc_asyncqueue): New function.
5154         (get_goacc_asyncqueue): New function.
5155         (acc_async_test): Adjust code to use new async design.
5156         (acc_async_test_all): Likewise.
5157         (acc_wait): Likewise.
5158         (acc_wait_async): Likewise.
5159         (acc_wait_all): Likewise.
5160         (acc_wait_all_async): Likewise.
5161         (goacc_async_free): New function.
5162         (goacc_init_asyncqueues): Likewise.
5163         (goacc_fini_asyncqueues): Likewise.
5164         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
5165         design.
5166         (acc_set_cuda_stream): Likewise.
5167         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
5168         (host_openacc_register_async_cleanup): Remove.
5169         (host_openacc_async_exec): New function.
5170         (host_openacc_async_test): Adjust parameters.
5171         (host_openacc_async_test_all): Remove.
5172         (host_openacc_async_wait): Remove.
5173         (host_openacc_async_wait_async): Remove.
5174         (host_openacc_async_wait_all): Remove.
5175         (host_openacc_async_wait_all_async): Remove.
5176         (host_openacc_async_set_async): Remove.
5177         (host_openacc_async_synchronize): New function.
5178         (host_openacc_async_serialize): New function.
5179         (host_openacc_async_host2dev): New function.
5180         (host_openacc_async_dev2host): New function.
5181         (host_openacc_async_queue_callback): New function.
5182         (host_openacc_async_construct): New function.
5183         (host_openacc_async_destruct): New function.
5184         (struct gomp_device_descr host_dispatch): Remove initialization of old
5185         interface, add initialization of new async sub-struct.
5186         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
5187         (goacc_attach_host_thread_to_device): Remove old async code usage.
5188         * oacc-int.h (goacc_init_asyncqueues): New declaration.
5189         (goacc_fini_asyncqueues): Likewise.
5190         (goacc_async_copyout_unmap_vars): Likewise.
5191         (goacc_async_free): Likewise.
5192         (get_goacc_asyncqueue): Likewise.
5193         (lookup_goacc_asyncqueue): Likewise.
5194         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
5195         design.
5196         (present_create_copy): Adjust code to use new async design.
5197         (delete_copyout): Likewise.
5198         (update_dev_host): Likewise.
5199         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
5200         async design.
5201         (gomp_acc_remove_pointer): Adjust code to use new async design.
5202         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
5203         design.
5204         (GOACC_enter_exit_data): Likewise.
5205         (goacc_wait): Likewise.
5206         (GOACC_update): Likewise.
5207         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
5208         when called, warn as obsolete in comment.
5209         * target.c (goacc_device_copy_async): New function.
5210         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
5211         add goacc_device_copy_async case.
5212         (gomp_copy_dev2host): Likewise.
5213         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
5214         (gomp_map_pointer): Likewise.
5215         (gomp_map_fields_existing): Likewise.
5216         (gomp_map_vars_internal): New always_inline function, renamed from
5217         gomp_map_vars.
5218         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
5219         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
5220         passing goacc_asyncqueue argument.
5221         (gomp_unmap_tgt): Remove static, add attribute_hidden.
5222         (gomp_unref_tgt): New function.
5223         (gomp_unmap_vars_internal): New always_inline function, renamed from
5224         gomp_unmap_vars.
5225         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
5226         (gomp_unmap_vars_async): Implement by calling
5227         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
5228         (gomp_fini_device): New function.
5229         (gomp_exit_data): Adjust gomp_copy_dev2host call.
5230         (gomp_load_plugin_for_device): Remove old interface, adjust to load
5231         new async interface.
5232         (gomp_target_fini): Adjust code to call gomp_fini_device.
5234         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
5235         (struct ptx_stream): Remove.
5236         (struct nvptx_thread): Remove current_stream field.
5237         (cuda_map_create): Remove.
5238         (cuda_map_destroy): Remove.
5239         (map_init): Remove.
5240         (map_fini): Remove.
5241         (map_pop): Remove.
5242         (map_push): Remove.
5243         (struct goacc_asyncqueue): Define.
5244         (struct nvptx_callback): Define.
5245         (struct ptx_free_block): Define.
5246         (struct ptx_device): Remove null_stream, active_streams, async_streams,
5247         stream_lock, and next fields.
5248         (enum ptx_event_type): Remove.
5249         (struct ptx_event): Remove.
5250         (ptx_event_lock): Remove.
5251         (ptx_events): Remove.
5252         (init_streams_for_device): Remove.
5253         (fini_streams_for_device): Remove.
5254         (select_stream_for_async): Remove.
5255         (nvptx_init): Remove ptx_events and ptx_event_lock references.
5256         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
5257         case.
5258         (nvptx_open_device): Add free_blocks initialization, remove
5259         init_streams_for_device call.
5260         (nvptx_close_device): Remove fini_streams_for_device call, add
5261         free_blocks destruct code.
5262         (event_gc): Remove.
5263         (event_add): Remove.
5264         (nvptx_exec): Adjust parameters and code.
5265         (nvptx_free): Likewise.
5266         (nvptx_host2dev): Remove.
5267         (nvptx_dev2host): Remove.
5268         (nvptx_set_async): Remove.
5269         (nvptx_async_test): Remove.
5270         (nvptx_async_test_all): Remove.
5271         (nvptx_wait): Remove.
5272         (nvptx_wait_async): Remove.
5273         (nvptx_wait_all): Remove.
5274         (nvptx_wait_all_async): Remove.
5275         (nvptx_get_cuda_stream): Remove.
5276         (nvptx_set_cuda_stream): Remove.
5277         (GOMP_OFFLOAD_alloc): Adjust code.
5278         (GOMP_OFFLOAD_free): Likewise.
5279         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
5280         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
5281         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
5282         (GOMP_OFFLOAD_openacc_async_wait): Remove.
5283         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
5284         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
5285         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
5286         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
5287         (cuda_free_argmem): New function.
5288         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
5289         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
5290         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
5291         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
5292         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
5293         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
5294         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
5295         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
5296         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
5297         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
5298         (cuda_callback_wrapper): New function.
5299         (cuda_memcpy_sanity_check): New function.
5300         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
5301         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
5302         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
5303         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
5305 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
5307         PR target/87835
5308         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
5310 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
5312         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
5314 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
5316         * team.c (gomp_team_start): Initialize pool->threads[0].
5318 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
5320         * testsuite/libgomp.oacc-c++/c++.exp: Specify
5321         "-foffload=$offload_target".
5322         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5323         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5324         * testsuite/lib/libgomp.exp
5325         (check_effective_target_openacc_nvidia_accel_configured): Remove,
5326         as (conceptually) merged into
5327         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
5328         users.
5330         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
5331         * testsuite/libgomp-test-support.exp.in: Adjust.
5332         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
5333         openacc_device_types_s.
5334         (offload_target_to_openacc_device_type): New proc.
5335         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
5336         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5337         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5338         * Makefile.in: Regenerate.
5339         * configure: Likewise.
5340         * testsuite/Makefile.in: Likewise.
5342         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
5343         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
5344         instead of OFFLOAD_TARGETS.
5345         * target.c (gomp_target_init): Adjust.
5346         * testsuite/libgomp-test-support.exp.in: Likewise.
5347         * testsuite/lib/libgomp.exp: Likewise.  Populate
5348         openacc_device_types_s instead of offload_targets_s_openacc.
5349         (check_effective_target_openacc_nvidia_accel_selected)
5350         (check_effective_target_openacc_host_selected): Adjust.
5351         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
5352         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5353         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5354         * Makefile.in: Regenerate.
5355         * config.h.in: Likewise.
5356         * configure: Likewise.
5357         * testsuite/Makefile.in: Likewise.
5359         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
5360         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
5361         "offloading: supported, but hardware not accessible".
5362         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5363         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5365 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
5367         PR c/87924
5368         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
5369         goacc_wait().
5370         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
5371         and related adjustment.
5373 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
5375         PR c++/88988
5376         * testsuite/libgomp.c++/pr88988.C: New test.
5378 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
5380         PR middle-end/89002
5381         * testsuite/libgomp.c/pr89002.c: New test.
5383 2019-01-28  Richard Biener  <rguenther@suse.de>
5385         PR testsuite/89064
5386         PR tree-optimization/86865
5387         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
5389 2019-01-24  Tom de Vries  <tdevries@suse.de>
5391         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
5392         once instantiated_devices drops to 0.
5394 2019-01-23  Tom de Vries  <tdevries@suse.de>
5396         PR target/PR88946
5397         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
5398         cuMemFree.
5399         (nvptx_exec): Don't call map_push if mapnum == 0.
5400         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
5402 2019-01-23  Tom de Vries  <tdevries@suse.de>
5404         PR target/88941
5405         PR target/88939
5406         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
5407         (map_fini): Remove "assert (!s->map->active)".
5408         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
5410 2019-01-23  Tom de Vries  <tdevries@suse.de>
5412         PR target/87835
5413         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
5414         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
5416 2019-01-15  Tom de Vries  <tdevries@suse.de>
5418         PR target/80547
5419         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
5420         New test.
5422 2019-01-12  Tom de Vries  <tdevries@suse.de>
5424         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
5425         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
5426         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
5427         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
5429 2019-01-12  Tom de Vries  <tdevries@suse.de>
5431         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
5433 2019-01-12  Tom de Vries  <tdevries@suse.de>
5435         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
5436         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
5437         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
5439 2019-01-12  Tom de Vries  <tdevries@suse.de>
5441         PR target/85486
5442         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
5443         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
5445 2019-01-12  Tom de Vries  <tdevries@suse.de>
5447         PR target/85381
5448         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
5449         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
5451 2019-01-12  Tom de Vries  <tdevries@suse.de>
5453         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
5454         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
5455         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
5457 2019-01-12  Tom de Vries  <tdevries@suse.de>
5459         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
5460         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
5461         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
5463 2019-01-12  Tom de Vries  <tdevries@suse.de>
5465         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
5466         resources diagnostic.
5468 2019-01-12  Tom de Vries  <tdevries@suse.de>
5470         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
5471         vector length to be 128.
5472         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
5473         length 2097152 to be reduced to 1024 instead of 32.
5475 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
5476             James Norris  <jnorris@codesourcery.com>
5478         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
5479         Library Routines", and "Environment Variables".
5481 2019-01-11  Tom de Vries  <tdevries@suse.de>
5483         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
5484         num_workers 16.
5486 2019-01-11  Tom de Vries  <tdevries@suse.de>
5488         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
5489         -foffload=-w.
5490         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
5491         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
5492         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
5493         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
5495 2019-01-11  Tom de Vries  <tdevries@suse.de>
5497         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
5498         test.
5500 2019-01-10  Nathan Sidwell  <nathan@acm.org>
5501             Julian Brown  <julian@codesourcery.com>
5503         PR lto/71959
5504         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
5505         * testsuite/libgomp.oacc-c++/pr71959.C: New.
5507 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5509         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
5510         and paste code.
5512 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5514         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
5515         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
5516         write.
5518 2019-01-09  Tom de Vries  <tdevries@suse.de>
5520         PR target/88756
5521         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
5522         #define instead of "const int".
5523         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
5524         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
5525         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
5526         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
5528 2019-01-09  Tom de Vries  <tdevries@suse.de>
5530         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
5531         one worker.
5533 2019-01-07  Tom de Vries  <tdevries@suse.de>
5535         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
5536         GOMP_OPENACC_DIM argument.
5538 2019-01-03  Tom de Vries  <tdevries@suse.de>
5540         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
5541         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
5543 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
5545         Update copyright years.
5547 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
5549         * libgomp.texi: Bump @copying's copyright year.
5551 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
5553         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
5554         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
5555         (GOACC_declare): Redefine the "device" argument to "flags".
5557 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
5558             Cesar Philippidis  <cesar@codesourcery.com>
5560         * target.c (struct gomp_coalesce_chunk): New structure.
5561         (struct gomp_coalesce_buf): Update the chunks member to use that
5562         type.  Adjust all users.
5564 2018-12-19  Tom de Vries  <tdevries@suse.de>
5566         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
5567         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
5568         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
5570 2018-12-19  Tom de Vries  <tdevries@suse.de>
5572         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
5573         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
5574         gcc/testsuite/gcc.dg/goacc.
5575         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
5577 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
5578             Chung-Lin Tang  <cltang@codesourcery.com>
5580         * oacc-mem.c (acc_present_or_create): Remove definition and change
5581         to alias of acc_create.
5582         (acc_present_or_copyin): Remove definition and change to alias of
5583         acc_copyin.
5584         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
5585         of acc_present_or_create.
5586         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
5587         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5588         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5589         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5590         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5591         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5592         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5593         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5594         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5595         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5596         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5597         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5598         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5599         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5600         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5601         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5603 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
5605         PR libgomp/88495
5606         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
5607         "identical parameters".
5608         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
5609         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
5611         PR libgomp/88484
5612         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
5613         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
5615         PR libgomp/88407
5616         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
5617         (nvptx_wait_async): Unseen async-argument is a no-op.
5618         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
5619         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
5620         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5621         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5622         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
5623         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
5624         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
5625         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
5626         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
5628         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
5629         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5631 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
5633         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
5634         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5635         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5637 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
5639         PR libgomp/88370
5640         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
5641         (acc_set_cuda_stream): Clarify.
5642         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
5643         "async_valid_p".
5644         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
5645         acc_async_sync".
5646         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
5647         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
5648         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
5649         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5651 2018-12-14  Tom de Vries  <tdevries@suse.de>
5653         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
5654         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
5655         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
5656         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
5657         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
5659 2018-12-13  Tom de Vries  <tdevries@suse.de>
5661         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
5662         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
5663         * fortran.c (omp_display_affinity_): ... here.
5664         * libgomp.h (gomp_print_string): Declare.
5665         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
5666         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
5667         write.
5669 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
5671         PR libgomp/88460
5672         * testsuite/libgomp.c++/for-24.C (results): Include it in
5673         omp declare target region.
5674         (main): Use map (always, tofrom: results) instead of
5675         map (tofrom: results).
5677 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
5679         PR fortran/88463
5680         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
5681         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
5683         * testsuite/libgomp.c-c++-common/for-16.c: New test.
5685 2018-12-12  Andreas Schwab  <schwab@suse.de>
5687         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
5688         clobbered.
5690 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
5692         PR fortran/88411
5693         * testsuite/libgomp.fortran/async_io_8.f90: New test.
5695 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
5696             Jakub Jelinek  <jakub@redhat.com>
5698         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
5699         devicep->host2dev_func.
5701 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
5703         PR libgomp/87995
5704         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
5705         tls_runtime effective target.
5706         (t): New threadprivate variable.
5707         (main): Set t in threads which execute iterations of the worksharing
5708         loop.  Propagate that to the task after the loop and don't abort
5709         if the current taskgroup hasn't been cancelled.
5711 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
5713         * testsuite/libgomp.c/task-reduction-3.c: New test.
5715         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
5717 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
5719         PR libgomp/88288
5720         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
5721         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
5723 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
5725         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
5727 2018-10-19  Richard Biener  <rguenther@suse.de>
5729         PR tree-optimization/88182
5730         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
5732 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
5734         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
5735         (RUNTEST): Don't define.
5736         (RUNTESTDEFAULTFLAGS): Add.
5737         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
5738         (distclean-am): Depend on distclean-DEJAGNU.
5739         (check-am): If -j% option is present in MFLAGS and if
5740         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
5741         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
5742         * testsuite/Makefile.in: Regenerated.
5744 2018-11-26  Richard Biener  <rguenther@suse.de>
5746         PR tree-optimization/88182
5747         * testsuite/libgomp.c++/pr88182.C: New testcase.
5749 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
5751         PR bootstrap/88106
5752         * config/mingw32/affinity-fmt.c: New file.
5754 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
5756         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
5757         (gomp_display_affinity): Use __builtin_choose_expr to handle
5758         properly handle argument having integral, or pointer or some other
5759         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
5760         with uint64_t type instead of %llx and unsigned long long.
5762         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
5763         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
5765 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5767         * affinity.c: Include <string.h>, <stdio.h>.
5768         (gomp_display_affinity_place): Remove cpusetp.
5769         * teams.c: Include <limits.h>.
5771 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
5773         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
5774         in_reduction clause for s[0].
5776         * affinity.c (gomp_display_affinity_place): New function.
5777         * affinity-fmt.c: New file.
5778         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
5779         * config/linux/affinity.c (gomp_display_affinity_place): New function.
5780         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
5781         Move these functions to ...
5782         * config/nvptx/teams.c: ... here.  New file.
5783         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
5784         New functions.
5785         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
5786         functions.
5787         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
5788         and _aligned_malloc.
5789         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
5790         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
5791         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
5792         gomp_affinity_format_len): New variables.
5793         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
5794         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
5795         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
5796         modifiers.  Display (non-default) chunk sizes.  Print
5797         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
5798         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
5799         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
5800         * fortran.c: Include stdio.h and string.h.
5801         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
5802         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
5803         (omp_set_affinity_format_, omp_get_affinity_format_,
5804         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
5805         omp_pause_resource_all_): New functions.
5806         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
5807         switch.
5808         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
5809         functions to ...
5810         * teams.c: ... here.  New file.
5811         * libgomp_g.h: Include gstdint.h.
5812         (GOMP_loop_nonmonotonic_runtime_start,
5813         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
5814         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
5815         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
5816         GOMP_parallel_loop_nonmonotonic_runtime,
5817         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5818         GOMP_loop_ull_nonmonotonic_runtime_start,
5819         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
5820         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
5821         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5822         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
5823         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
5824         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5825         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
5826         GOMP_teams_reg): Declare.
5827         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
5828         gomp_aligned_alloc uses fallback implementation.
5829         (gomp_aligned_alloc, gomp_aligned_free): Declare.
5830         (enum gomp_schedule_type): Add GFS_MONOTONIC.
5831         (struct gomp_doacross_work_share): Add extra field.
5832         (struct gomp_work_share): Add task_reductions field.
5833         (struct gomp_taskgroup): Add workshare and reductions fields.
5834         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
5835         (gomp_thread_handle): New typedef.
5836         (gomp_display_affinity_place, gomp_set_affinity_format,
5837         gomp_display_string, gomp_display_affinity,
5838         gomp_display_affinity_thread): Declare.
5839         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
5840         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
5841         gomp_workshare_task_reduction_register): Declare.
5842         (gomp_team_start): Add taskgroup argument.
5843         (gomp_pause_host): Declare.
5844         (gomp_init_work_share, gomp_work_share_start): Change bool argument
5845         to size_t.
5846         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
5847         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
5848         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
5849         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
5850         GOMP_loop_ull_doacross_start,
5851         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
5852         GOMP_loop_maybe_nonmonotonic_runtime_next,
5853         GOMP_loop_maybe_nonmonotonic_runtime_start,
5854         GOMP_loop_nonmonotonic_runtime_next,
5855         GOMP_loop_nonmonotonic_runtime_start,
5856         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5857         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
5858         GOMP_loop_ull_nonmonotonic_runtime_next,
5859         GOMP_loop_ull_nonmonotonic_runtime_start,
5860         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5861         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
5862         GOMP_taskgroup_reduction_register,
5863         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5864         GOMP_teams_reg and GOMP_taskwait_depend.
5865         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
5866         omp_{capture,display}_affinity{,_}, and
5867         omp_[gs]et_affinity_format{,_}.
5868         * loop.c: Include string.h.
5869         (GOMP_loop_runtime_next): Add ialias.
5870         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5871         (gomp_loop_static_start, gomp_loop_dynamic_start,
5872         gomp_loop_guided_start, gomp_loop_ordered_static_start,
5873         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
5874         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
5875         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
5876         or gomp_doacross_init callers.
5877         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
5878         GOMP_loop_doacross_start): New functions.
5879         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
5880         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
5881         Mask off GFS_MONOTONIC bit.
5882         (GOMP_loop_maybe_nonmonotonic_runtime_next,
5883         GOMP_loop_maybe_nonmonotonic_runtime_start,
5884         GOMP_loop_nonmonotonic_runtime_next,
5885         GOMP_loop_nonmonotonic_runtime_start,
5886         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5887         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
5888         functions.
5889         (gomp_parallel_loop_start): Pass NULL as taskgroup to
5890         gomp_team_start.
5891         * loop_ull.c: Include string.h.
5892         (GOMP_loop_ull_runtime_next): Add ialias.
5893         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5894         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
5895         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
5896         gomp_loop_ull_ordered_dynamic_start,
5897         gomp_loop_ull_ordered_guided_start,
5898         gomp_loop_ull_doacross_static_start,
5899         gomp_loop_ull_doacross_dynamic_start,
5900         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
5901         and gomp_doacross_ull_init callers.
5902         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
5903         GOMP_loop_ull_doacross_start): New functions.
5904         (GOMP_loop_ull_runtime_start,
5905         GOMP_loop_ull_ordered_runtime_start,
5906         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
5907         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5908         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
5909         GOMP_loop_ull_nonmonotonic_runtime_next,
5910         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
5911         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
5912         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
5913         (omp_pause_resource_t, omp_depend_t): New typedefs.
5914         (enum omp_lock_hint_t): Renamed to ...
5915         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
5916         enumerators using numbers and omp_lock_hint_* as their aliases.
5917         (omp_lock_hint_t): New typedef.  Rename to ...
5918         (omp_sync_hint_t): ... this.
5919         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
5920         omp_sync_hint_t instead of omp_lock_hint_t.
5921         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5922         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5923         Declare.
5924         (omp_target_is_present, omp_target_disassociate_ptr):
5925         Change first argument from void * to const void *.
5926         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
5927         from void * to const void *.
5928         (omp_target_associate_ptr): Change first and second arguments from
5929         void * to const void *.
5930         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
5931         omp_pause_hard): New parameters.
5932         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5933         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5934         New interfaces.
5935         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
5936         omp_pause_hard): New parameters.
5937         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5938         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5939         New externals.
5940         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
5941         EXTRA argument.  If not needed to prepare array, if extra is 0,
5942         clear ws->doacross, otherwise allocate just doacross structure and
5943         extra payload.  If array is needed, allocate also extra payload.
5944         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
5945         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
5946         doacross == NULL.
5947         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
5948         gomp_team_start.
5949         (GOMP_parallel): Likewise.  Formatting fix.
5950         (GOMP_parallel_reductions): New function.
5951         (GOMP_cancellation_point): If taskgroup has workshare
5952         flag set, check cancelled of prev taskgroup if any.
5953         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
5954         on prev taskgroup if any.
5955         * sections.c: Include string.h.
5956         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5957         (GOMP_sections_start): Adjust gomp_work_share_start caller.
5958         (GOMP_sections2_start): New function.
5959         (GOMP_parallel_sections_start, GOMP_parallel_sections):
5960         Pass NULL as taskgroup to gomp_team_start.
5961         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
5962         gomp_work_share_start callers.
5963         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
5964         If taskgroup has workshare flag set, check cancelled on prev
5965         taskgroup if any.  Guard all cancellation tests with
5966         gomp_cancel_var test.
5967         (omp_target_is_present, omp_target_disassociate_ptr):
5968         Change ptr argument from void * to const void *.
5969         (omp_target_memcpy): Change src argument from void * to const void *.
5970         (omp_target_memcpy_rect): Likewise.
5971         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
5972         instead of char * where needed.
5973         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
5974         from void * to const void *.
5975         (omp_pause_resource, omp_pause_resource_all): New functions.
5976         * task.c (gomp_task_handle_depend): Handle new depend array format
5977         in addition to the old.  Handle mutexinoutset kinds the same as
5978         inout for now, handle unspecified kinds.
5979         (gomp_create_target_task): If taskgroup has workshare flag set, check
5980         cancelled on prev taskgroup if any.  Guard all cancellation tests with
5981         gomp_cancel_var test.  Handle new depend array format count in
5982         addition to the old.
5983         (GOMP_task): Likewise.  Adjust function comment.
5984         (gomp_task_run_pre): If taskgroup has workshare flag set, check
5985         cancelled on prev taskgroup if any.  Guard all cancellation tests with
5986         gomp_cancel_var test.
5987         (GOMP_taskwait_depend): New function.
5988         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
5989         format in addition to the old.  Handle mutexinoutset kinds the same as
5990         inout for now, handle unspecified kinds.  Fix a function comment typo.
5991         (gomp_taskgroup_init): New function.
5992         (GOMP_taskgroup_start): Use it.
5993         (gomp_reduction_register, gomp_create_artificial_team,
5994         GOMP_taskgroup_reduction_register,
5995         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5996         gomp_parallel_reduction_register,
5997         gomp_workshare_task_reduction_register,
5998         gomp_workshare_taskgroup_start,
5999         GOMP_workshare_task_reduction_unregister): New functions.
6000         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
6001         check cancelled on prev taskgroup if any.  Guard all cancellation
6002         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
6003         by calling GOMP_taskgroup_reduction_register.
6004         * team.c (gomp_thread_attr): Remove comment.
6005         (struct gomp_thread_start_data): Add handle field.
6006         (gomp_thread_start): Call pthread_detach.
6007         (gomp_new_team): Adjust gomp_init_work_share caller.
6008         (gomp_free_pool_helper): Call pthread_detach.
6009         (gomp_team_start): Add taskgroup argument, initialize implicit
6010         tasks' taskgroup field to that.  Don't call
6011         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
6012         (gomp_team_end): Determine nesting by thr->ts.level != 0
6013         rather than thr->ts.team != NULL.
6014         (gomp_pause_pool_helper, gomp_pause_host): New functions.
6015         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
6016         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
6017         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
6018         if more than 1 allocate also extra payload at the end of array.  Never
6019         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
6020         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
6021         return true instead of ws.
6022         * Makefile.in: Regenerated.
6023         * configure: Regenerated.
6024         * config.h.in: Regenerated.
6025         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
6026         in some cases.
6027         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
6028         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
6029         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
6030         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
6031         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
6032         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
6033         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
6034         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
6035         * testsuite/libgomp.c-c++-common/for-10.c: New test.
6036         * testsuite/libgomp.c-c++-common/for-11.c: New test.
6037         * testsuite/libgomp.c-c++-common/for-12.c: New test.
6038         * testsuite/libgomp.c-c++-common/for-13.c: New test.
6039         * testsuite/libgomp.c-c++-common/for-14.c: New test.
6040         * testsuite/libgomp.c-c++-common/for-15.c: New test.
6041         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
6042         define a different N(test), don't define N(f0) to N(f14), but instead
6043         define N(f20) to N(f34) using != comparisons.
6044         * testsuite/libgomp.c-c++-common/for-7.c: New test.
6045         * testsuite/libgomp.c-c++-common/for-8.c: New test.
6046         * testsuite/libgomp.c-c++-common/for-9.c: New test.
6047         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
6048         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
6049         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
6050         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
6051         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
6052         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
6053         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
6054         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
6055         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
6056         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
6057         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
6058         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
6059         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
6060         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
6061         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
6062         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
6063         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
6064         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
6065         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
6066         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
6067         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
6068         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
6069         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
6070         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
6071         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
6072         * testsuite/libgomp.c++/depend-1.C: New test.
6073         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
6074         * testsuite/libgomp.c++/depobj-1.C: New test.
6075         * testsuite/libgomp.c++/for-16.C: New test.
6076         * testsuite/libgomp.c++/for-21.C: New test.
6077         * testsuite/libgomp.c++/for-22.C: New test.
6078         * testsuite/libgomp.c++/for-23.C: New test.
6079         * testsuite/libgomp.c++/for-24.C: New test.
6080         * testsuite/libgomp.c++/for-25.C: New test.
6081         * testsuite/libgomp.c++/for-26.C: New test.
6082         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
6083         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
6084         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
6085         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
6086         * testsuite/libgomp.c++/task-reduction-10.C: New test.
6087         * testsuite/libgomp.c++/task-reduction-11.C: New test.
6088         * testsuite/libgomp.c++/task-reduction-12.C: New test.
6089         * testsuite/libgomp.c++/task-reduction-13.C: New test.
6090         * testsuite/libgomp.c++/task-reduction-14.C: New test.
6091         * testsuite/libgomp.c++/task-reduction-15.C: New test.
6092         * testsuite/libgomp.c++/task-reduction-16.C: New test.
6093         * testsuite/libgomp.c++/task-reduction-17.C: New test.
6094         * testsuite/libgomp.c++/task-reduction-18.C: New test.
6095         * testsuite/libgomp.c++/task-reduction-19.C: New test.
6096         * testsuite/libgomp.c/task-reduction-1.c: New test.
6097         * testsuite/libgomp.c++/task-reduction-1.C: New test.
6098         * testsuite/libgomp.c/task-reduction-2.c: New test.
6099         * testsuite/libgomp.c++/task-reduction-2.C: New test.
6100         * testsuite/libgomp.c++/task-reduction-3.C: New test.
6101         * testsuite/libgomp.c++/task-reduction-4.C: New test.
6102         * testsuite/libgomp.c++/task-reduction-5.C: New test.
6103         * testsuite/libgomp.c++/task-reduction-6.C: New test.
6104         * testsuite/libgomp.c++/task-reduction-7.C: New test.
6105         * testsuite/libgomp.c++/task-reduction-8.C: New test.
6106         * testsuite/libgomp.c++/task-reduction-9.C: New test.
6107         * testsuite/libgomp.c/teams-1.c: New test.
6108         * testsuite/libgomp.c/teams-2.c: New test.
6109         * testsuite/libgomp.c/thread-limit-4.c: New test.
6110         * testsuite/libgomp.c/thread-limit-5.c: New test.
6111         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
6113 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
6115         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
6116         acc_memcpy_to/from_device functions, now with async parameter.
6117         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
6118         (acc_memcpy_from_device): Likewise.
6119         (acc_memcpy_to_device_async): New API function.
6120         (acc_memcpy_from_device_async): Likewise.
6121         (present_create_copy): Add async parameter and async setting/unsetting.
6122         (acc_create): Adjust present_create_copy call.
6123         (acc_copyin): Likewise.
6124         (acc_present_or_create): Likewise.
6125         (acc_present_or_copyin): Likewise.
6126         (acc_create_async): New API function.
6127         (acc_copyin_async): New API function.
6128         (delete_copyout): Add async parameter and async setting/unsetting.
6129         (acc_delete): Adjust delete_copyout call.
6130         (acc_copyout): Likewise.
6131         (acc_delete_async): New API function.
6132         (acc_copyout_async): Likewise.
6133         (update_dev_host): Add async parameter and async setting/unsetting.
6134         (acc_update_device): Adjust update_dev_host call.
6135         (acc_update_self): Likewise.
6136         (acc_update_device_async): New API function.
6137         (acc_update_self_async): Likewise.
6138         * openacc.h (acc_copyin_async): Declare new API function.
6139         (acc_create_async): Likewise.
6140         (acc_copyout_async): Likewise.
6141         (acc_delete_async): Likewise.
6142         (acc_update_device_async): Likewise.
6143         (acc_update_self_async): Likewise.
6144         (acc_memcpy_to_device_async): Likewise.
6145         (acc_memcpy_from_device_async): Likewise.
6146         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
6147         (acc_copyin_async_64_h): New subroutine.
6148         (acc_copyin_async_array_h): New subroutine.
6149         (acc_create_async_32_h): New subroutine.
6150         (acc_create_async_64_h): New subroutine.
6151         (acc_create_async_array_h): New subroutine.
6152         (acc_copyout_async_32_h): New subroutine.
6153         (acc_copyout_async_64_h): New subroutine.
6154         (acc_copyout_async_array_h): New subroutine.
6155         (acc_delete_async_32_h): New subroutine.
6156         (acc_delete_async_64_h): New subroutine.
6157         (acc_delete_async_array_h): New subroutine.
6158         (acc_update_device_async_32_h): New subroutine.
6159         (acc_update_device_async_64_h): New subroutine.
6160         (acc_update_device_async_array_h): New subroutine.
6161         (acc_update_self_async_32_h): New subroutine.
6162         (acc_update_self_async_64_h): New subroutine.
6163         (acc_update_self_async_array_h): New subroutine.
6164         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
6165         (acc_copyin_async_64_h): New subroutine.
6166         (acc_copyin_async_array_h): New subroutine.
6167         (acc_create_async_32_h): New subroutine.
6168         (acc_create_async_64_h): New subroutine.
6169         (acc_create_async_array_h): New subroutine.
6170         (acc_copyout_async_32_h): New subroutine.
6171         (acc_copyout_async_64_h): New subroutine.
6172         (acc_copyout_async_array_h): New subroutine.
6173         (acc_delete_async_32_h): New subroutine.
6174         (acc_delete_async_64_h): New subroutine.
6175         (acc_delete_async_array_h): New subroutine.
6176         (acc_update_device_async_32_h): New subroutine.
6177         (acc_update_device_async_64_h): New subroutine.
6178         (acc_update_device_async_array_h): New subroutine.
6179         (acc_update_self_async_32_h): New subroutine.
6180         (acc_update_self_async_64_h): New subroutine.
6181         (acc_update_self_async_array_h): New subroutine.
6182         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
6183         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
6184         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
6185         acc_memcpy_to_device_async*, acc_update_device_async*, and
6186         acc_update_self_async* entries.
6187         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
6188         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
6189         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
6191 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
6193         PR bootstrap/82856
6194         * Makefile.am: Include multilib.am
6195         (AUTOMAKE_OPTIONS): Add info-in-builddir.
6196         (CLEANFILES): Remove libgomp.info.
6197         * configure.ac: Remove AC_PREREQ.
6198         * testsuite/Makefile.am (RUNTEST): Remove quotes.
6199         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
6200         Regenerate.
6202 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
6203             Julian Brown  <julian@codesourcery.com>
6205         * testsuite/libgomp.oacc-c++/this.C: New.
6207 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
6209         * plugin/plugin-nvptx.c (struct cuda_map): New.
6210         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
6211         h_tail with (cuda_map *) map.
6212         (cuda_map_create): New function.
6213         (cuda_map_destroy): New function.
6214         (map_init): Update to use a linked list of cuda_map objects.
6215         (map_fini): Likewise.
6216         (map_pop): Likewise.
6217         (map_push): Likewise.  Return CUdeviceptr instead of void.
6218         (init_streams_for_device): Remove stales references to ptx_stream
6219         members.
6220         (select_stream_for_async): Likewise.
6221         (nvptx_exec): Update call to map_init.
6223 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
6224             Julian Brown  <julian@codesourcery.com>
6226         PR middle-end/86336
6227         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
6229 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
6230         Thomas Koenig <tkoenig@gcc.gnu.org>
6232         PR fortran/25829
6233         * testsuite/libgomp.fortran/async_io_1.f90: New test.
6234         * testsuite/libgomp.fortran/async_io_2.f90: New test.
6235         * testsuite/libgomp.fortran/async_io_3.f90: New test.
6236         * testsuite/libgomp.fortran/async_io_4.f90: New test.
6237         * testsuite/libgomp.fortran/async_io_5.f90: New test.
6238         * testsuite/libgomp.fortran/async_io_6.f90: New test.
6239         * testsuite/libgomp.fortran/async_io_7.f90: New test.
6241 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
6242             Tom de Vries  <tdevries@suse.de>
6244         PR target/85590
6245         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
6246         (cuOccupancyMaxPotentialBlockSize): Declare.
6247         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
6248         CUDA_ONE_CALL_MAYBE_NULL.
6249         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
6250         CUoccupancyB2DSize and declare
6251         cuOccupancyMaxPotentialBlockSize.
6252         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
6253         default num_gangs and num_workers when the driver supports it.
6255 2018-08-08  Tom de Vries  <tdevries@suse.de>
6257         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
6258         CUDA_ONE_CALL_MAYBE_NULL.
6259         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
6260         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
6261         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
6262         are not found.
6264 2018-08-08  Tom de Vries  <tdevries@suse.de>
6266         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
6267         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
6268         present.
6270 2018-08-08  Tom de Vries  <tdevries@suse.de>
6272         * plugin/plugin-nvptx.c
6273         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
6274         (nvptx_open_device): Use
6275         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
6277 2018-08-08  Tom de Vries  <tdevries@suse.de>
6279         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
6280         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
6282 2018-08-07  Tom de Vries  <tdevries@suse.de>
6284         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
6285         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
6286         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
6287         corresponding call in CUDA_ONE_CALL.  Add def/undef of
6288         CUDA_ONE_CALL_MAYBE_NULL.
6289         (CUDA_CALL_EXISTS): Define.
6291 2018-08-07  Tom de Vries  <tdevries@suse.de>
6293         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
6294         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
6295         corresponding undefs right after.
6297 2018-08-04  Tom de Vries  <tdevries@suse.de>
6299         * plugin/configfrag.ac: For --without-cuda-driver, set
6300         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
6301         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
6302         * configure: Regenerate.
6304 2018-08-02  Tom de Vries  <tdevries@suse.de>
6306         PR target/86660
6307         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
6308         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
6309         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
6310         Same.
6311         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
6312         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
6313         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
6315 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
6316             Thomas Schwinge <thomas@codesourcery.com>
6318         * config/nvptx/oacc-parallel.c: Truncate.
6320 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
6321             James Norris <jnorris@codesourcery.com>
6323         * plugin/plugin-nvptx.c (struct map): Removed.
6324         (map_init, map_pop): Remove use of struct map.
6325         (map_push): Likewise and change argument list.
6326         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
6328 2018-08-01  Tom de Vries  <tdevries@suse.de>
6330         * plugin/cuda-lib.def: New file.  Factor out of ...
6331         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
6332         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
6333         using CUDA_CALLS.
6335 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6337         Revert 'AsyncI/O patch committed'.
6338         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
6339                 Thomas Koenig <tkoenig@gcc.gnu.org>
6341         PR fortran/25829
6342         * testsuite/libgomp.fortran/async_io_1.f90: New test.
6343         * testsuite/libgomp.fortran/async_io_2.f90: New test.
6344         * testsuite/libgomp.fortran/async_io_3.f90: New test.
6345         * testsuite/libgomp.fortran/async_io_4.f90: New test.
6346         * testsuite/libgomp.fortran/async_io_5.f90: New test.
6347         * testsuite/libgomp.fortran/async_io_6.f90: New test.
6348         * testsuite/libgomp.fortran/async_io_7.f90: New test.
6350 2018-07-30  Tom de Vries  <tdevries@suse.de>
6352         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
6353         (nvptx_exec): Ensure worker and vector default dims don't exceed
6354         targ_fn->max_threads_per_block.
6356 2018-07-30  Tom de Vries  <tdevries@suse.de>
6358         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
6359         (nvptx_open_device): Init default_dims for device.
6360         (nvptx_exec): Use default_dims from device.
6362 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
6364         PR testsuite/86660
6365         * testsuite/libgomp.c++/for-15.C (results): Include it in
6366         omp declare target region.
6367         (main): Use map (always, tofrom: results) instead of
6368         map (tofrom: results).
6370         PR middle-end/86660
6371         * testsuite/libgomp.c/pr86660.c: New test.
6373 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
6374             Tom de Vries  <tdevries@suse.de>
6376         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
6377         sufficient resources to launch a kernel, and give a hint on how to fix
6378         it.
6380 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
6381             Tom de Vries  <tdevries@suse.de>
6383         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
6384         max_threads_per_block and max_threads_per_multiprocessor fields.
6385         (nvptx_open_device): Initialize new fields.
6386         (nvptx_exec): Use num_sms, and new fields.
6388 2018-07-26  Tom de Vries  <tdevries@suse.de>
6390         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
6391         to correct locations.  Remove xfail.
6393 2018-07-26  Tom de Vries  <tdevries@suse.de>
6395         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
6396         acc_wait.  Move acc_async_test calls to correct locations.  Remove
6397         xfail.
6399 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
6400         Thomas Koenig <tkoenig@gcc.gnu.org>
6402         PR fortran/25829
6403         * testsuite/libgomp.fortran/async_io_1.f90: New test.
6404         * testsuite/libgomp.fortran/async_io_2.f90: New test.
6405         * testsuite/libgomp.fortran/async_io_3.f90: New test.
6406         * testsuite/libgomp.fortran/async_io_4.f90: New test.
6407         * testsuite/libgomp.fortran/async_io_5.f90: New test.
6408         * testsuite/libgomp.fortran/async_io_6.f90: New test.
6409         * testsuite/libgomp.fortran/async_io_7.f90: New test.
6411 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
6413         PR middle-end/86542
6414         * testsuite/libgomp.c++/pr86542.C: New test.
6416         PR middle-end/86539
6417         * testsuite/libgomp.c++/pr86539.C: New test.
6419 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
6421         PR c++/86443
6422         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
6423         (results): Make sure the variable is not inside declare target region.
6424         (qux): Remove unused function.
6426 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
6428         PR c++/86443
6429         * testsuite/libgomp.c++/for-15.C: New test.
6431 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
6433         PR c++/86291
6434         * testsuite/libgomp.c++/pr86291.C: New test.
6436 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
6438         * libgomp.texi (Top): Move www.openmp.org to https.
6439         (Enabling OpenMP): Ditto.
6440         (omp_get_active_level): Ditto.
6441         (omp_get_ancestor_thread_num): Ditto.
6442         (omp_get_cancellation): Ditto.
6443         (omp_get_default_device): Ditto.
6444         (omp_get_dynamic): Ditto.
6445         (omp_get_level): Ditto.
6446         (omp_get_max_active_levels): Ditto.
6447         (omp_get_max_task_priority): Ditto.
6448         (omp_get_max_threads): Ditto.
6449         (omp_get_nested): Ditto.
6450         (omp_get_num_devices): Ditto.
6451         (omp_get_num_procs): Ditto.
6452         (omp_get_num_teams): Ditto.
6453         (omp_get_num_threads): Ditto.
6454         (omp_get_proc_bind): Ditto.
6455         (omp_get_schedule): Ditto.
6456         (omp_get_team_num): Ditto.
6457         (omp_get_team_size): Ditto.
6458         (omp_get_thread_limit): Ditto.
6459         (omp_get_thread_num): Ditto.
6460         (omp_in_parallel): Ditto.
6461         (omp_in_final): Ditto.
6462         (omp_is_initial_device): Ditto.
6463         (omp_set_default_device): Ditto.
6464         (omp_set_dynamic): Ditto.
6465         (omp_set_max_active_levels): Ditto.
6466         (omp_set_nested): Ditto.
6467         (omp_set_num_threads): Ditto.
6468         (omp_set_schedule): Ditto.
6469         (omp_init_lock): Ditto.
6470         (omp_set_lock): Ditto.
6471         (omp_test_lock): Ditto.
6472         (omp_unset_lock): Ditto.
6473         (omp_destroy_lock): Ditto.
6474         (omp_init_nest_lock): Ditto.
6475         (omp_set_nest_lock): Ditto.
6476         (omp_test_nest_lock): Ditto.
6477         (omp_unset_nest_lock): Ditto.
6478         (omp_destroy_nest_lock): Ditto.
6479         (omp_get_wtick): Ditto.
6480         (omp_get_wtime): Ditto.
6481         (OMP_CANCELLATION): Ditto.
6482         (OMP_DISPLAY_ENV): Ditto.
6483         (OMP_DEFAULT_DEVICE): Ditto.
6484         (OMP_DYNAMIC): Ditto.
6485         (OMP_MAX_ACTIVE_LEVELS): Ditto.
6486         (OMP_MAX_TASK_PRIORITY): Ditto.
6487         (OMP_NESTED): Ditto.
6488         (OMP_NUM_THREADS): Ditto.
6489         (OMP_PROC_BIND): Ditto.
6490         (OMP_PLACES): Ditto.
6491         (OMP_STACKSIZE): Ditto.
6492         (OMP_SCHEDULE): Ditto.
6493         (OMP_THREAD_LIMIT): Ditto.
6494         (OMP_WAIT_POLICY): Ditto.
6496 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
6497             James Norris  <jnorris@codesourcery.com>
6498             Julian Brown  <julian@codesourcery.com>
6499             Thomas Schwinge  <thomas@codesourcery.com>
6500             Tom de Vries  <tom@codesourcery.com>
6502         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
6503         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
6504         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
6505         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
6506         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
6507         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
6508         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
6509         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
6510         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
6511         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
6512         Likewise.
6513         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6514         Likewise.
6515         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6516         Likewise.
6517         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
6518         Likewise.
6519         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
6520         Likewise.
6521         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6522         Likewise.
6523         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
6524         Likewise.
6525         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
6526         Likewise.
6527         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
6528         Likewise.
6529         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
6530         Likewise.
6531         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
6532         Likewise.
6533         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
6534         Likewise.
6535         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
6536         Likewise.
6537         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
6538         Likewise.
6539         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
6540         Likewise.
6541         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
6542         Likewise.
6543         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
6544         Likewise.
6545         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
6546         Likewise.
6547         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
6548         Likewise.
6549         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
6550         Likewise.
6551         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
6552         Likewise.
6553         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
6554         Likewise.
6555         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
6556         Likewise.
6557         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
6558         Likewise.
6559         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
6560         Likewise.
6561         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
6562         Likewise.
6563         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
6564         Likewise.
6565         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
6566         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
6567         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
6568         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
6569         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
6570         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
6571         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
6572         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
6573         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
6574         Likewise.
6575         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
6576         Likewise.
6577         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
6578         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
6579         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
6580         Likewise.
6581         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
6582         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
6583         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
6584         Likewise.
6585         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6586         Likewise.
6587         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6588         Likewise.
6589         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6590         Likewise.
6591         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6592         Likewise.
6593         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
6594         Likewise.
6595         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
6596         Likewise.
6597         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
6598         Likewise.
6599         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
6600         Likewise.
6601         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
6602         Likewise.
6603         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
6604         Likewise.
6605         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
6606         Likewise.
6607         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
6608         Likewise.
6609         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
6610         Likewise.
6611         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
6612         Likewise.
6613         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
6614         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
6615         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
6616         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
6617         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
6618         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
6619         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
6621 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
6622             Thomas Schwinge <thomas@codesourcery.com>
6623             Cesar Philippidis  <cesar@codesourcery.com>
6625         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
6626         (gomp_acc_remove_pointer): Update declaration.
6627         (gomp_acc_declare_allocate): Declare.
6628         (gomp_remove_var): Declare.
6629         * libgomp.map (OACC_2.5): Define.
6630         * oacc-mem.c (acc_map_data): Update refcount.
6631         (acc_unmap_data): Likewise.
6632         (present_create_copy): Likewise.
6633         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
6634         (acc_copyin): Likewise.
6635         (FLAG_FINALIZE): Define.
6636         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
6637         (acc_delete_finalize): New function.
6638         (acc_delete_finalize_async): New function.
6639         (acc_copyout_finalize): New function.
6640         (acc_copyout_finalize_async): New function.
6641         (gomp_acc_insert_pointer): Update refcounts.
6642         (gomp_acc_remove_pointer): Return if data is not present on the
6643         accelerator.
6644         * oacc-parallel.c (find_pset): Rename to find_pointer.
6645         (find_pointer): Add support for GOMP_MAP_POINTER.
6646         (handle_ftn_pointers): New function.
6647         (GOACC_parallel_keyed): Update refcounts of variables.
6648         (GOACC_enter_exit_data): Add support for finalized data mappings.
6649         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
6650         of fortran arrays.
6651         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
6652         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
6653         for GOMP_MAP_FORCE_FROM.
6654         * openacc.f90 (module openacc_internal): Add
6655         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
6656         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
6657         acc_copyout_finalize and acc_delete_finalize.
6658         (acc_copyout_finalize_32_h): New subroutine.
6659         (acc_copyout_finalize_64_h): New subroutine.
6660         (acc_copyout_finalize_array_h): New subroutine.
6661         (acc_delete_finalize_32_h): New subroutine.
6662         (acc_delete_finalize_64_h): New subroutine.
6663         (acc_delete_finalize_array_h): New subroutine.
6664         * openacc.h (acc_copyout_finalize): Declare.
6665         (acc_copyout_finalize_async): Declare.
6666         (acc_delete_finalize): Declare.
6667         (acc_delete_finalize_async): Declare.
6668         * openacc_lib.h (acc_copyout_finalize): New interface.
6669         (acc_delete_finalize): New interface.
6670         * target.c (gomp_map_vars): Update dynamic_refcount.
6671         (gomp_remove_var): New function.
6672         (gomp_unmap_vars): Use it.
6673         (gomp_unload_image_from_device): Likewise.
6674         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
6675         case to utilize OpenACC 2.5 data clause semantics.
6676         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6677         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6678         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6679         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6680         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6681         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6682         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6683         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6684         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6685         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
6686         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6687         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
6688         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
6689         utilize OpenACC 2.5 data clause semantics.
6690         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6691         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6692         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6693         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6694         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6695         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6696         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6697         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
6698         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
6700 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
6702         PR fortran/85841
6703         PR testsuite/85865
6704         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
6705         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
6706         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
6707         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
6708         * testsuite/libgomp.fortran/task2.f90: Ditto.
6709         * testsuite/libgomp.fortran/vla1.f90: Ditto.
6710         * testsuite/libgomp.fortran/vla2.f90: Ditto.
6711         * testsuite/libgomp.fortran/vla3.f90: Ditto.
6712         * testsuite/libgomp.fortran/vla4.f90: Ditto.
6713         * testsuite/libgomp.fortran/vla5.f90: Ditto.
6714         * testsuite/libgomp.fortran/vla6.f90: Ditto.
6715         * testsuite/libgomp.fortran/vla8.f90: Ditto.
6716         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
6717         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
6719 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
6721         PR c++/85782
6722         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
6724 2018-05-09  Tom de Vries  <tom@codesourcery.com>
6726         PR libgomp/82901
6727         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
6728         to GOACC_enter_exit_data.
6730 2018-05-09  Tom de Vries  <tom@codesourcery.com>
6732         PR libgomp/83792
6733         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
6734         (async_synchronous_p): New function.
6735         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
6736         async_valid_p.
6737         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
6738         async_valid_stream_id_p.
6739         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
6740         * oacc-parallel.c (GOACC_parallel_keyed): Same.
6742 2018-05-07  Tom de Vries  <tom@codesourcery.com>
6744         PR testsuite/85677
6745         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
6746         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
6748 2018-05-03  Tom de Vries  <tom@codesourcery.com>
6750         PR testsuite/85106
6751         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
6752         extra_tool_flags if it contains an -foffload=-fdump-* flag.
6753         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
6754         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
6756 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6758         PR libgomp/85411
6759         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
6760         GOMP_OPENACC_DIM ...
6761         * env.c (parse_gomp_openacc_dim): ... here.  New function.
6762         (initialize_env): Call parse_gomp_openacc_dim.
6763         (goacc_default_dims): Define.
6764         * libgomp.h (goacc_default_dims): Declare.
6765         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
6766         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
6767         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
6768         GOMP_PLUGIN_acc_default_dim.
6769         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
6770         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
6772 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6774         PR testsuite/83791
6775         * testsuite/libgomp.c++/udr-9.C: Update.
6776         * testsuite/libgomp.c++/atomic-16.C: Remove.
6777         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
6778         * testsuite/libgomp.c++/loop-13.C: Remove.
6779         * testsuite/libgomp.c++/loop-14.C: Remove.
6780         * testsuite/libgomp.c++/loop-15.C: Remove.
6781         * testsuite/libgomp.c++/monotonic-1.C: Remove.
6782         * testsuite/libgomp.c++/monotonic-2.C: Remove.
6783         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
6784         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
6785         * testsuite/libgomp.c++/ordered-1.C: Remove.
6786         * testsuite/libgomp.c++/pr45784.C: Remove.
6787         * testsuite/libgomp.c++/pr64824.C: Remove.
6788         * testsuite/libgomp.c++/pr64868.C: Remove.
6789         * testsuite/libgomp.c++/pr66199-1.C: Remove.
6790         * testsuite/libgomp.c++/pr66199-2.C: Remove.
6791         * testsuite/libgomp.c++/pr66199-3.C: Remove.
6792         * testsuite/libgomp.c++/pr66199-4.C: Remove.
6793         * testsuite/libgomp.c++/pr66199-5.C: Remove.
6794         * testsuite/libgomp.c++/pr66199-6.C: Remove.
6795         * testsuite/libgomp.c++/pr66199-7.C: Remove.
6796         * testsuite/libgomp.c++/pr66199-8.C: Remove.
6797         * testsuite/libgomp.c++/pr66199-9.C: Remove.
6798         * testsuite/libgomp.c++/pr69389.C: Remove.
6799         * testsuite/libgomp.c++/simd10.C: Remove.
6800         * testsuite/libgomp.c++/simd11.C: Remove.
6801         * testsuite/libgomp.c++/simd12.C: Remove.
6802         * testsuite/libgomp.c++/simd13.C: Remove.
6803         * testsuite/libgomp.c++/target-1.C: Remove.
6804         * testsuite/libgomp.c++/target-3.C: Remove.
6805         * testsuite/libgomp.c++/target-4.C: Remove.
6806         * testsuite/libgomp.c++/target-5.C: Remove.
6807         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
6808         * testsuite/libgomp.c++/taskloop-1.C: Remove.
6809         * testsuite/libgomp.c++/taskloop-2.C: Remove.
6810         * testsuite/libgomp.c++/taskloop-3.C: Remove.
6811         * testsuite/libgomp.c++/taskloop-4.C: Remove.
6812         * testsuite/libgomp.c++/udr-9.C: Remove.
6813         * testsuite/libgomp.c++/for-10.C: Remove.
6814         * testsuite/libgomp.c++/for-11.C: Remove.
6815         * testsuite/libgomp.c++/for-12.C: Remove.
6816         * testsuite/libgomp.c++/for-13.C: Remove.
6817         * testsuite/libgomp.c++/for-14.C: Remove.
6818         * testsuite/libgomp.c++/for-9.C: Remove.
6819         * testsuite/libgomp.c/atomic-18.c: Move ...
6820         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
6821         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
6822         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
6823         * testsuite/libgomp.c/loop-13.c: Move ...
6824         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
6825         * testsuite/libgomp.c/loop-14.c: Move ...
6826         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
6827         * testsuite/libgomp.c/loop-15.c: Remove.
6828         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
6829         * testsuite/libgomp.c/monotonic-1.c: Move ...
6830         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
6831         * testsuite/libgomp.c/monotonic-2.c: Move ...
6832         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
6833         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
6834         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
6835         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
6836         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
6837         * testsuite/libgomp.c/ordered-4.c: Move ...
6838         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
6839         * testsuite/libgomp.c/pr45784.c: Move ...
6840         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
6841         * testsuite/libgomp.c/pr64824.c: Move ...
6842         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
6843         * testsuite/libgomp.c/pr64868.c: Move ...
6844         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
6845         * testsuite/libgomp.c/pr66199-1.c: Move ...
6846         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
6847         * testsuite/libgomp.c/pr66199-2.c: Move ...
6848         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
6849         * testsuite/libgomp.c/pr66199-3.c: Move ...
6850         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
6851         * testsuite/libgomp.c/pr66199-4.c: Move ...
6852         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
6853         * testsuite/libgomp.c/pr66199-5.c: Move ...
6854         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
6855         * testsuite/libgomp.c/pr66199-6.c: Move ...
6856         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
6857         * testsuite/libgomp.c/pr66199-7.c: Move ...
6858         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
6859         * testsuite/libgomp.c/pr66199-8.c: Move ...
6860         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
6861         * testsuite/libgomp.c/pr66199-9.c: Move ...
6862         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
6863         * testsuite/libgomp.c/pr69389.c: Move ...
6864         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
6865         * testsuite/libgomp.c/simd-14.c: Move ...
6866         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
6867         * testsuite/libgomp.c/simd-15.c: Move ...
6868         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
6869         * testsuite/libgomp.c/simd-16.c: Move ...
6870         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
6871         * testsuite/libgomp.c/simd-17.c: Move ...
6872         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
6873         * testsuite/libgomp.c/target-1.c: Move ...
6874         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
6875         * testsuite/libgomp.c/target-10.c: Move ...
6876         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
6877         * testsuite/libgomp.c/target-13.c: Move ...
6878         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
6879         * testsuite/libgomp.c/target-2.c: Move ...
6880         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
6881         * testsuite/libgomp.c/taskgroup-1.c: Move ...
6882         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
6883         * testsuite/libgomp.c/taskloop-1.c: Move ...
6884         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
6885         * testsuite/libgomp.c/taskloop-2.c: Move ...
6886         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
6887         * testsuite/libgomp.c/taskloop-3.c: Move ...
6888         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
6889         * testsuite/libgomp.c/taskloop-4.c: Move ...
6890         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
6891         * testsuite/libgomp.c/udr-1.c: Move ...
6892         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
6893         * testsuite/libgomp.c/for-1.c: Move ...
6894         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
6895         * testsuite/libgomp.c/for-1.h: Move ...
6896         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
6897         * testsuite/libgomp.c/for-2.c: Move ...
6898         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
6899         * testsuite/libgomp.c/for-2.h: Move ...
6900         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
6901         * testsuite/libgomp.c/for-3.c: Move ...
6902         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
6903         * testsuite/libgomp.c/for-4.c: Move ...
6904         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
6905         * testsuite/libgomp.c/for-5.c: Move ...
6906         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
6907         * testsuite/libgomp.c/for-6.c: Move ...
6908         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
6910 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6912         PR libgomp/82428
6913         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
6914         __builtin_goacc_parlevel_{id,size}.
6915         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
6916         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
6917         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
6918         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
6919         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
6920         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
6921         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
6922         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
6923         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
6924         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
6925         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
6926         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
6927         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
6928         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
6929         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
6930         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
6931         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
6932         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
6933         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
6934         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
6935         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
6936         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
6937         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
6939 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6941         PR testsuite/85106
6942         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
6944 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6946         PR testsuite/85106
6947         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
6949 2018-04-29  Julian Brown  <julian@codesourcery.com>
6950             Tom de Vries  <tom@codesourcery.com>
6952         PR testsuite/85527
6953         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
6954         arbitrary order for iterations of atomic subtract check.
6956 2018-04-28  Tom de Vries  <tom@codesourcery.com>
6958         PR testsuite/85527
6959         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
6960         atomic capture results obtained in parallel loop to an array, instead of
6961         to a scalar.
6963 2018-04-26  Tom de Vries  <tom@codesourcery.com>
6965         PR libgomp/84020
6966         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
6967         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
6968         (process_GOMP_NVPTX_JIT): New function.
6969         (link_ptx): Use process_GOMP_NVPTX_JIT.
6971 2018-04-26  Richard Biener <rguenther@suse.de>
6972             Tom de Vries  <tom@codesourcery.com>
6974         PR lto/85422
6975         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
6977 2018-04-26  Tom de Vries  <tom@codesourcery.com>
6979         PR target/85519
6980         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
6981         recursion depth from 25 to 23.
6982         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
6984 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
6986         * configure: Regenerated.
6988 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
6989             Tom de Vries  <tom@codesourcery.com>
6991         PR target/85445
6992         * testsuite/libgomp.oacc-c++/ref-1.C: New.
6994 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
6996         PR libgomp/85463
6997         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
6998         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6999         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7000         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
7001         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
7002         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
7004         PR libfortran/85166
7005         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
7006         abort".
7007         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
7009 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
7011         * configure: Regenerated.
7013 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
7015         PR jit/85384
7016         * configure: Regenerate.
7018 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
7019             Tom de Vries  <tom@codesourcery.com>
7021         PR middle-end/84955
7022         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
7023         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
7025 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
7027         PR fortran/83064
7028         PR testsuite/85346
7029         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
7030         test from gfortran.dg to here.
7032 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
7034         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
7035         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
7037 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
7039         PR middle-end/84955
7040         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
7041         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
7043 2018-04-05  Tom de Vries  <tom@codesourcery.com>
7045         PR target/85204
7046         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
7048 2018-03-26  Tom de Vries  <tom@codesourcery.com>
7050         PR tree-optimization/85063
7051         * testsuite/libgomp.c/switch-conversion-2.c: New test.
7052         * testsuite/libgomp.c/switch-conversion.c: New test.
7053         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
7054         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
7056 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
7058         PR fortran/84381
7059         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
7060         call abort by STOP n.
7061         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
7062         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
7063         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
7064         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
7065         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
7066         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
7067         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
7068         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
7069         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
7070         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
7071         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
7072         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
7073         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
7074         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
7075         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
7076         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
7077         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
7078         * testsuite/libgomp.fortran/associate1.f90: Likewise.
7079         * testsuite/libgomp.fortran/associate2.f90: Likewise.
7080         * testsuite/libgomp.fortran/associate3.f90: Likewise.
7081         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
7082         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
7083         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
7084         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
7085         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
7086         * testsuite/libgomp.fortran/character1.f90: Likewise.
7087         * testsuite/libgomp.fortran/character2.f90: Likewise.
7088         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
7089         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
7090         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
7091         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
7092         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
7093         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
7094         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
7095         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
7096         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
7097         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
7098         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
7099         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
7100         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
7101         * testsuite/libgomp.fortran/do1.f90: Likewise.
7102         * testsuite/libgomp.fortran/do2.f90: Likewise.
7103         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
7104         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
7105         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
7106         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
7107         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
7108         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
7109         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
7110         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
7111         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
7112         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
7113         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
7114         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
7115         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
7116         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
7117         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
7118         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
7119         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
7120         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
7121         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
7122         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
7123         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
7124         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
7125         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
7126         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
7127         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
7128         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
7129         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
7130         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
7131         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
7132         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
7133         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
7134         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
7135         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
7136         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
7137         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
7138         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
7139         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
7140         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
7141         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
7142         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
7143         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
7144         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
7145         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
7146         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
7147         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
7148         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
7149         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
7150         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
7151         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
7152         * testsuite/libgomp.fortran/lib1.f90: Likewise.
7153         * testsuite/libgomp.fortran/lib2.f: Likewise.
7154         * testsuite/libgomp.fortran/lib3.f: Likewise.
7155         * testsuite/libgomp.fortran/lib4.f90: Likewise.
7156         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
7157         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
7158         * testsuite/libgomp.fortran/nested1.f90: Likewise.
7159         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
7160         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
7161         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
7162         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
7163         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
7164         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
7165         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
7166         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
7167         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
7168         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
7169         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
7170         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
7171         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
7172         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
7173         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
7174         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
7175         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
7176         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
7177         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
7178         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7179         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
7180         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
7181         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
7182         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
7183         * testsuite/libgomp.fortran/pr25162.f: Likewise.
7184         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
7185         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
7186         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
7187         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
7188         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
7189         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
7190         * testsuite/libgomp.fortran/pr28390.f: Likewise.
7191         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
7192         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
7193         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
7194         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
7195         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
7196         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
7197         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
7198         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
7199         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
7200         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
7201         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
7202         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
7203         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
7204         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
7205         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
7206         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
7207         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
7208         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
7209         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
7210         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
7211         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
7212         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
7213         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
7214         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
7215         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
7216         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
7217         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
7218         * testsuite/libgomp.fortran/reference1.f90: Likewise.
7219         * testsuite/libgomp.fortran/reference2.f90: Likewise.
7220         * testsuite/libgomp.fortran/retval1.f90: Likewise.
7221         * testsuite/libgomp.fortran/retval2.f90: Likewise.
7222         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
7223         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
7224         * testsuite/libgomp.fortran/simd1.f90: Likewise.
7225         * testsuite/libgomp.fortran/simd2.f90: Likewise.
7226         * testsuite/libgomp.fortran/simd3.f90: Likewise.
7227         * testsuite/libgomp.fortran/simd4.f90: Likewise.
7228         * testsuite/libgomp.fortran/simd5.f90: Likewise.
7229         * testsuite/libgomp.fortran/simd6.f90: Likewise.
7230         * testsuite/libgomp.fortran/simd7.f90: Likewise.
7231         * testsuite/libgomp.fortran/stack.f90: Likewise.
7232         * testsuite/libgomp.fortran/strassen.f90: Likewise.
7233         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
7234         * testsuite/libgomp.fortran/tabs2.f: Likewise.
7235         * testsuite/libgomp.fortran/target1.f90: Likewise.
7236         * testsuite/libgomp.fortran/target2.f90: Likewise.
7237         * testsuite/libgomp.fortran/target3.f90: Likewise.
7238         * testsuite/libgomp.fortran/target4.f90: Likewise.
7239         * testsuite/libgomp.fortran/target5.f90: Likewise.
7240         * testsuite/libgomp.fortran/target6.f90: Likewise.
7241         * testsuite/libgomp.fortran/target7.f90: Likewise.
7242         * testsuite/libgomp.fortran/target8.f90: Likewise.
7243         * testsuite/libgomp.fortran/task1.f90: Likewise.
7244         * testsuite/libgomp.fortran/task2.f90: Likewise.
7245         * testsuite/libgomp.fortran/task3.f90: Likewise.
7246         * testsuite/libgomp.fortran/task4.f90: Likewise.
7247         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
7248         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
7249         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
7250         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
7251         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
7252         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
7253         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
7254         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
7255         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
7256         * testsuite/libgomp.fortran/udr1.f90: Likewise.
7257         * testsuite/libgomp.fortran/udr10.f90: Likewise.
7258         * testsuite/libgomp.fortran/udr11.f90: Likewise.
7259         * testsuite/libgomp.fortran/udr12.f90: Likewise.
7260         * testsuite/libgomp.fortran/udr13.f90: Likewise.
7261         * testsuite/libgomp.fortran/udr14.f90: Likewise.
7262         * testsuite/libgomp.fortran/udr15.f90: Likewise.
7263         * testsuite/libgomp.fortran/udr2.f90: Likewise.
7264         * testsuite/libgomp.fortran/udr3.f90: Likewise.
7265         * testsuite/libgomp.fortran/udr4.f90: Likewise.
7266         * testsuite/libgomp.fortran/udr5.f90: Likewise.
7267         * testsuite/libgomp.fortran/udr6.f90: Likewise.
7268         * testsuite/libgomp.fortran/udr7.f90: Likewise.
7269         * testsuite/libgomp.fortran/udr8.f90: Likewise.
7270         * testsuite/libgomp.fortran/udr9.f90: Likewise.
7271         * testsuite/libgomp.fortran/vla1.f90: Likewise.
7272         * testsuite/libgomp.fortran/vla2.f90: Likewise.
7273         * testsuite/libgomp.fortran/vla3.f90: Likewise.
7274         * testsuite/libgomp.fortran/vla4.f90: Likewise.
7275         * testsuite/libgomp.fortran/vla5.f90: Likewise.
7276         * testsuite/libgomp.fortran/vla6.f90: Likewise.
7277         * testsuite/libgomp.fortran/vla7.f90: Likewise.
7278         * testsuite/libgomp.fortran/vla8.f90: Likewise.
7279         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
7280         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
7281         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7282         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
7283         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7284         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7285         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7286         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
7287         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
7288         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
7289         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
7290         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
7291         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
7292         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
7293         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
7294         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
7295         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7296         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
7297         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
7298         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
7299         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
7300         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
7301         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
7302         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
7303         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
7304         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
7305         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
7306         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
7307         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7308         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
7309         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
7310         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7311         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7312         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7313         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7314         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7315         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
7316         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
7317         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
7318         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
7319         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
7320         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
7321         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
7322         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
7323         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
7324         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
7325         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
7326         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
7327         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
7328         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
7329         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
7330         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
7331         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
7332         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7333         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
7334         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
7335         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
7336         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
7337         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
7338         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
7339         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
7340         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
7341         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
7342         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
7343         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
7344         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7345         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
7346         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7347         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
7348         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
7349         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
7350         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
7351         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
7352         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
7353         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
7354         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
7355         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
7356         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7357         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7358         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7359         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
7360         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7361         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
7362         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
7363         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
7364         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
7365         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
7366         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
7367         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
7368         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
7369         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
7370         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
7371         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
7372         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
7374 2018-03-20  Richard Biener  <rguenther@suse.de>
7376         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
7377         parallelizable loop.
7379 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
7381         PR target/84148
7382         * configure: Regenerate.
7384 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
7386         PR fortran/84418
7387         * libgomp.fortran/pr84418-1.f90: New test.
7388         * libgomp.fortran/pr84418-2.f90: New test.
7390 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
7392         PR fortran/84313
7393         * testsuite/libgomp.fortran/threadprivate4.f90: Add
7394         -std=f2003 -fall-intrinsics into dg-additional-options.
7396 2018-02-08  Martin Jambor  <mjambor@suse.cz>
7398         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
7399         clonable.
7401 2018-02-08  Martin Jambor  <mjambor@suse.cz>
7403         * testsuite/libgomp.hsa.c/staticvar.c: New test.
7405 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7407         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
7408         [__cplusplus]: Declare extern "C".
7410 2018-02-07  Tom de Vries  <tom@codesourcery.com>
7412         PR libgomp/84217
7413         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
7415 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
7416             Jakub Jelinek  <jakub@redhat.com>
7418         PR libgomp/84096
7419         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
7420         instead of omp_lock_t.
7422 2018-01-25  Tom de Vries  <tom@codesourcery.com>
7424         PR target/84028
7425         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
7427 2018-01-24  Tom de Vries  <tom@codesourcery.com>
7429         PR target/83589
7430         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
7432 2018-01-24  Tom de Vries  <tom@codesourcery.com>
7434         PR target/81352
7435         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
7437 2018-01-19  Tom de Vries  <tom@codesourcery.com>
7438             Cesar Philippidis  <cesar@codesourcery.com>
7440         PR target/83920
7441         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
7442         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
7444 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
7446         Update copyright years.
7448         * libgomp.texi: Bump @copying's copyright year.
7450 2017-12-30  Tom de Vries  <tom@codesourcery.com>
7452         PR libgomp/83046
7453         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
7454         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
7456 2017-12-27  Tom de Vries  <tom@codesourcery.com>
7458         PR c++/83046
7459         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
7460         (test_nonstatic): Fix return type to workaround PR83046.
7462 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
7464         PR testsuite/83281
7465         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
7466         j suffix instead of i.
7467         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
7468         Likewise.
7470 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
7472         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
7473         call to acc_wait (1).
7475 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
7477         PR fortran/81304
7478         * testsuite/libgomp.fortran/pr81304.f90: New test.
7480 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
7482         PR fortran/81841
7483         * libgomp.fortran/pr81841.f90: New test.
7485 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
7487         PR libgomp/83106
7488         * target.c (gomp_target_init): Compute lengths just once and
7489         use them in both malloc size and subsequent copying.
7491 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
7493         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
7494         * acinclude.m4: Add cet.m4.
7495         * configure: Regenerate.
7496         * Makefile.in: Likewise.
7497         * testsuite/Makefile.in: Likewise.
7499 2017-11-15  Tom de Vries  <tom@codesourcery.com>
7501         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
7502         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
7503         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
7504         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
7505         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
7506         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
7508 2017-11-14  Tom de Vries  <tom@codesourcery.com>
7510         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
7511         non-nvidia devices.
7513 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
7515         PR c++/82835
7516         * testsuite/libgomp.c++/pr82835.C: New test.
7518 2017-11-06  Martin Liska  <mliska@suse.cz>
7520         * testsuite/libgomp.c++/loop-2.C: Return a value
7521         for functions with non-void return type, or change type to void,
7522         or add -Wno-return-type for test.
7523         * testsuite/libgomp.c++/loop-4.C: Likewise.
7524         * testsuite/libgomp.c++/parallel-1.C: Likewise.
7525         * testsuite/libgomp.c++/shared-1.C: Likewise.
7526         * testsuite/libgomp.c++/single-1.C: Likewise.
7527         * testsuite/libgomp.c++/single-2.C: Likewise.
7529 2017-10-31  Tom de Vries  <tom@codesourcery.com>
7531         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
7532         "do {} while (false)".
7533         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
7534         after HSA_DEBUG call.
7536 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
7538         * target.c (struct gomp_coalesce_buf): New type.
7539         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
7540         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
7541         (gomp_copy_host2dev): Add CBUF argument, if copying into
7542         the cached ranges, memcpy into buffer instead of copying
7543         into device.
7544         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
7545         Add CBUF argument, pass it through to other calls.
7546         (gomp_map_vars): Aggregate copies from host to device if small enough
7547         and with small enough gaps in between into memcpy into a buffer and
7548         fewer host to device copies from the buffer.
7549         (gomp_update): Adjust gomp_copy_host2dev caller.
7551 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
7553         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
7554         run" directive.
7555         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7556         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7557         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7558         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7560 2017-10-16  Tom de Vries  <tom@codesourcery.com>
7562         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
7563         openacc_nvidia_accel_selected.
7564         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
7565         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
7566         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
7567         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
7568         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
7569         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
7570         openacc_nvidia_accel_selected. Skip for shared memory device.
7571         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
7572         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
7574 2017-10-09  Martin Jambor  <mjambor@suse.cz>
7576         PR hsa/82416
7577         * testsuite/libgomp.hsa.c/pr82416.c: New test.
7579 2017-10-07  Tom de Vries  <tom@codesourcery.com>
7581         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
7582         Remove acc_device_nvidia references.
7583         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
7584         Same.
7586 2017-10-05  Tom de Vries  <tom@codesourcery.com>
7588         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
7589         vector_length(32) clause from acc parallel directive.
7590         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
7592 2017-10-04  Tom de Vries  <tom@codesourcery.com>
7594         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
7595         (main): Reduce sum of arr elements.  Assert that hres is exactly
7596         representable in 32-bit floating point.
7597         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
7598         (main): Reduce sum of arr elements.  Assert that hres and hmres are
7599         exactly representable in 32-bit floating point.
7600         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
7602 2017-09-28  Tom de Vries  <tom@codesourcery.com>
7604         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
7605         setting.
7606         * testsuite/libgomp.c++/pr69393.C: Same.
7607         * testsuite/libgomp.c++/taskloop-1.C: Same.
7608         * testsuite/libgomp.c++/taskloop-3.C: Same.
7609         * testsuite/libgomp.c++/taskloop-4.C: Same.
7610         * testsuite/libgomp.c/for-4.c: Same.
7611         * testsuite/libgomp.c/pr66199-3.c: Same.
7612         * testsuite/libgomp.c/pr66199-4.c: Same.
7613         * testsuite/libgomp.c/pr66199-6.c: Same.
7614         * testsuite/libgomp.c/taskloop-1.c: Same.
7615         * testsuite/libgomp.c/taskloop-3.c: Same.
7616         * testsuite/libgomp.c/taskloop-4.c: Same.
7617         * testsuite/libgomp.fortran/aligned1.f03: Same.
7618         * testsuite/libgomp.fortran/condinc1.f: Same.
7619         * testsuite/libgomp.fortran/condinc3.f90: Same.
7620         * testsuite/libgomp.fortran/crayptr1.f90: Same.
7621         * testsuite/libgomp.fortran/crayptr2.f90: Same.
7622         * testsuite/libgomp.fortran/crayptr3.f90: Same.
7623         * testsuite/libgomp.fortran/omp_cond1.f: Same.
7624         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
7625         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
7626         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
7627         * testsuite/libgomp.fortran/recursion1.f90: Same.
7628         * testsuite/libgomp.fortran/target2.f90: Same.
7629         * testsuite/libgomp.fortran/target5.f90: Same.
7630         * testsuite/libgomp.fortran/task3.f90: Same.
7632 2017-09-28  Tom de Vries  <tom@codesourcery.com>
7634         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
7635         vector_length(32) clause from acc parallel directive.
7636         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
7638 2017-09-27  Tom de Vries  <tom@codesourcery.com>
7640         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
7641         Remove acc_device_nvidia references.
7643 2017-09-16  Tom de Vries  <tom@codesourcery.com>
7645         PR c/81875
7646         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
7648 2017-09-14  Tom de Vries  <tom@codesourcery.com>
7650         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
7651         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
7652         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
7653         * testsuite/libgomp.c/c.exp: Include test-cases from
7654         libgomp.c-c++-common.
7655         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
7656         files.
7658 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
7660         PR c++/81314
7661         * testsuite/libgomp.c++/pr81314.C: New test.
7663 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
7665         * libgomp.texi (Top): www.openacc.org now uses https.
7666         (Enabling OpenACC): Ditto.
7667         (acc_get_num_devices): Ditto.
7668         (acc_set_device_type): Ditto.
7669         (acc_get_device_type): Ditto.
7670         (acc_set_device_num): Ditto.
7671         (acc_get_device_num): Ditto.
7672         (acc_async_test): Ditto.
7673         (acc_async_test_all): Ditto.
7674         (acc_wait): Ditto.
7675         (acc_wait_all): Ditto.
7676         (acc_wait_all_async): Ditto.
7677         (acc_wait_async): Ditto.
7678         (acc_init): Ditto.
7679         (acc_shutdown): Ditto.
7680         (acc_on_device): Ditto.
7681         (acc_malloc): Ditto.
7682         (acc_free): Ditto.
7683         (acc_copyin): Ditto.
7684         (acc_present_or_copyin): Ditto.
7685         (acc_create): Ditto.
7686         (acc_present_or_create): Ditto.
7687         (acc_copyout): Ditto.
7688         (acc_delete): Ditto.
7689         (acc_update_device): Ditto.
7690         (acc_update_self): Ditto.
7691         (acc_map_data): Ditto.
7692         (acc_unmap_data): Ditto.
7693         (acc_deviceptr): Ditto.
7694         (acc_hostptr): Ditto.
7695         (acc_is_present): Ditto.
7696         (acc_memcpy_to_device): Ditto.
7697         (acc_memcpy_from_device): Ditto.
7698         (acc_get_current_cuda_device): Ditto.
7699         (acc_get_current_cuda_context): Ditto.
7700         (acc_get_cuda_stream): Ditto.
7701         (acc_set_cuda_stream): Ditto.
7702         (ACC_DEVICE_TYPE): Ditto.
7703         (ACC_DEVICE_NUM): Ditto.
7704         (OpenACC Library Interoperability): Ditto.
7706 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
7708         PR c/81687
7709         * testsuite/libgomp.c/pr81687-1.c: New test.
7710         * testsuite/libgomp.c/pr81687-2.c: New test.
7712 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
7714         PR c/69389
7715         * testsuite/libgomp.c/pr69389.c: New test.
7716         * testsuite/libgomp.c++/pr69389.C: New test.
7718 2017-08-07  Tom de Vries  <tom@codesourcery.com>
7720         PR middle-end/78266
7721         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
7722         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
7724 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
7726         PR c/45784
7727         * testsuite/libgomp.c/pr45784.c: New test.
7728         * testsuite/libgomp.c++/pr45784.C: New test.
7730 2017-07-19  Tom de Vries  <tom@codesourcery.com>
7732         * testsuite/libgomp.oacc-c/vec.c: New test.
7734 2017-07-03  Tom de Vries  <tom@codesourcery.com>
7736         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
7738 2017-06-27  Tom de Vries  <tom@codesourcery.com>
7740         * plugin/plugin-nvptx.c (notify_var): New function.
7741         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
7743 2017-06-27  Tom de Vries  <tom@codesourcery.com>
7745         * env.c (parse_unsigned_long_1): Factor out of ...
7746         (parse_unsigned_long): ... here.
7747         (parse_int_1): Factor out of ...
7748         (parse_int): ... here.
7749         (parse_int_secure): New function.
7750         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
7751         * secure_getenv.h: Factor out of ...
7752         * plugin/plugin-hsa.c: ... here.
7753         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
7755 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
7757         PR c++/81130
7758         * testsuite/libgomp.c++/pr81130.C: New test.
7760 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7762         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
7763         default args.
7764         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
7765         dg-xfail-run-if default args.
7767 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7769         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
7770         * testsuite/libgomp.c/pr39591-3.c: Likewise.
7772 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
7774         PR libgomp/80822
7775         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
7776         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
7777         sibling lists, depending on level just pick up what CPUs to put
7778         together into a place vs. whether add multiple ordered places.
7780 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
7782         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
7783         * libgomp.map (OACC_2.0.1): Add these.
7784         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
7785         for "acc_wait", and "acc_wait_all", respectively.
7786         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
7787         for "acc_wait", and "acc_wait_all", respectively.
7788         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
7789         * libgomp.texi (acc_wait, acc_wait_all): Update.
7790         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
7791         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
7792         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7794         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
7795         acc_present_or_copyin and acc_present_or_create procedures,
7796         respectively.
7797         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
7798         generally different variants of OpenACC Runtime Library functions.
7799         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7801         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
7802         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7804         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
7805         of preprocessor definitions.
7806         * libgomp.h (strong_alias): Guard by "#ifdef
7807         HAVE_ATTRIBUTE_ALIAS".
7808         * oacc-mem.c: Provide "acc_pcreate" as alias for
7809         "acc_present_or_create", and "acc_pcopyin" as alias for
7810         "acc_present_or_copyin".
7811         * libgomp.map: New version "OACC_2.0.1".
7812         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
7813         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
7814         its content into...
7815         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
7816         Extend testing.
7818         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
7819         when disabling nvptx offloading.
7821 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
7823         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
7824         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
7825         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
7827         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
7828         * testsuite/lib/libgomp.exp
7829         (check_effective_target_openacc_nvidia_accel_configured): New
7830         proc.
7831         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
7832         (check_effective_target_c++): New procs.
7833         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
7834         (check_effective_target_c++): Likewise.
7836 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
7838         PR middle-end/80809
7839         * testsuite/libgomp.c/pr80809-2.c: New test.
7840         * testsuite/libgomp.c/pr80809-3.c: New test.
7842         PR middle-end/80809
7843         * testsuite/libgomp.c/pr80809-1.c: New test.
7845         PR middle-end/80853
7846         * testsuite/libgomp.c/pr80853.c: New test.
7848 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
7850         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
7851         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
7852         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7853         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7854         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
7856         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
7857         Debug output for failure.
7859 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7861         * testsuite/lib/libgomp.exp: Load scanlang.exp.
7863 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
7865         PR bootstrap/80531
7866         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
7867         bootstrap compare failures.
7869 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
7871         * testsuite/libgomp.c/target-36.c: New testcase.
7873 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
7875         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
7876         instead of char.
7878 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
7880         PR libgomp/80394
7881         * testsuite/libgomp.c/pr80394.c: New test.
7883 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
7885         PR libgomp/79876
7886         * config/posix/thread-stacksize.h: New file.
7887         * config/darwin/thread-stacksize.h: New file.
7888         * config/nvptx/thread-stacksize.h: New file.
7889         * env.c: Include thread-stacksize.h.
7890         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
7891         instead of 0.  Call pthread_attr_setstacksize even if
7892         GOMP_DEFAULT_STACKSIZE is non-zero.
7894 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
7896         * env.c (initialize_env): Initialize stacksize to 0.
7898 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
7900         PR c++/80029
7901         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
7903 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
7905         PR c/79940
7906         * testsuite/libgomp.c/pr79940.c: New test.
7908 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7910         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
7911         targets.
7912         Add __float128 options.
7914 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
7916         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
7917         hppa*-*-* dg-skip-if directive.
7919 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
7921         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
7922         dg-skip-if directive into a comment.
7924 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
7925             Chung-Lin Tang  <cltang@codesourcery.com>
7927         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
7928         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
7929         add additional case.
7930         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
7931         "openacc_nvidia_accel_selected".
7932         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
7933         Add num_workers(8) clause.
7935 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
7937         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
7938         hppa*-*-*.
7939         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
7940         include complex.h on hppa*-*-hpux*.
7941         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
7943 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
7945         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
7947         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
7948         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
7949         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
7950         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
7951         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
7952         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
7953         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
7954         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
7955         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
7956         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
7958 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
7960         * libgomp-plugin.h: #include <stdbool.h>.
7961         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
7962         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
7963         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
7964         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
7965         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
7966         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
7967         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
7968         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
7969         (GOMP_OFFLOAD_openacc_register_async_cleanup)
7970         (GOMP_OFFLOAD_openacc_async_test)
7971         (GOMP_OFFLOAD_openacc_async_test_all)
7972         (GOMP_OFFLOAD_openacc_async_wait)
7973         (GOMP_OFFLOAD_openacc_async_wait_async)
7974         (GOMP_OFFLOAD_openacc_async_wait_all)
7975         (GOMP_OFFLOAD_openacc_async_wait_all_async)
7976         (GOMP_OFFLOAD_openacc_async_set_async)
7977         (GOMP_OFFLOAD_openacc_create_thread_data)
7978         (GOMP_OFFLOAD_openacc_destroy_thread_data)
7979         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
7980         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
7981         (GOMP_OFFLOAD_openacc_get_cuda_stream)
7982         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
7983         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
7984         these.
7985         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
7986         (GOMP_OFFLOAD_unload_image): Fix argument types.
7988 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
7990         * testsuite/lib/libgomp.exp
7991         (check_effective_target_hsa_offloading_selected_nocache): Fix up
7992         check_compile invocation.  Fix up removal of executable.  Drop
7993         bogus "2>&1" argument.
7995         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
7996         directive.
7998 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
7999             Martin Jambor  <mjambor@suse.cz>
8001         * plugin/hsa.h: Moved to top level include.
8002         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
8004 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
8006         PR other/79046
8007         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
8008         of cat to get version from BASE-VER file.
8009         * testsuite/Makefile.in: Regenerated.
8011 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
8013         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
8014         for _WIN64.
8016 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
8018         * plugin/hsa.h: Add GCC runtime library exception.
8019         * plugin/hsa_ext_finalize.h: Likewise.
8021         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
8022         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
8023         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
8024         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
8025         plugin/include/cuda as include dir and -ldl instead of -lcuda as
8026         library to link ptx plugin against.
8027         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
8028         (CUDA_CALLS): Define.
8029         (cuda_lib, cuda_lib_inited): New variables.
8030         (init_cuda_lib): New function.
8031         (CUDA_CALL_PREFIX): Define.
8032         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
8033         (CUDA_CALL): Use FN instead of (FN).
8034         (CUDA_CALL_NOCHECK): Define.
8035         (cuda_error, fini_streams_for_device, select_stream_for_async,
8036         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
8037         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
8038         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
8039         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
8040         CUDA_CALL_NOCHECK.
8041         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
8042         CUDA_CALL_NOCHECK.
8043         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
8044         Use CUDA_CALL_NOCHECK.
8045         * plugin/cuda/cuda.h: New file.
8046         * config.h.in: Regenerated.
8047         * configure: Regenerated.
8049         PR other/79046
8050         * configure.ac: Add GCC_BASE_VER.
8051         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
8052         get version from BASE-VER file.
8053         * testsuite/Makefile.in: Regenerated.
8054         * configure: Regenerated.
8055         * Makefile.in: Regenerated.
8057 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8059         PR libgomp/60670
8060         * Makefile.am: Make fincludedir multilib-aware.
8061         * Makefile.in: Regenerate.
8063 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
8065         Update copyright years.
8067         * libgomp.texi: Bump @copying's copyright year.
8069 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8071         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
8072         pthread_spinlock_t instead of gomp_mutex_t lock.
8073         (gomp_get_thread_pool): Likewise.
8074         (gomp_release_thread_pool): Likewise.
8075         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
8076         Likewise.
8078 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8080         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
8081         thread pool in case nthreads == 1.
8083 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
8085         * config/nvptx/env.c: Delete.
8086         * icv.c: Move definitions of ICV variables back ...
8087         * env.c: ...here.  Do not compile environment-related functionality if
8088         LIBGOMP_OFFLOADED_ONLY is set.
8090 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
8092         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
8093         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
8094         * configure: Regenerate.
8095         * config.h.in: Likewise.
8097 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
8099         * Makefile.in: Regenerate with automake-1.11.6.
8100         * aclocal.m4: Likewise.
8101         * configure: Likewise.
8102         * testsuite/Makefile.in: Likewise.
8104 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
8106         * config/nvptx/critical.c: Delete to use generic implementation.
8108 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
8110         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
8111         ../../affinity.c as fallback.
8112         * config/nvptx/affinity.c: Delete to use fallback implementation.
8114 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
8115             Jakub Jelinek  <jakub@redhat.com>
8116             Dmitry Melnik  <dm@ispras.ru>
8118         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
8119         * Makefile.in. Regenerate.
8120         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
8121         (LIBGOMP_USE_PTHREADS): ...here; new define.
8122         * configure: Regenerate.
8123         * config.h.in: Likewise.
8124         * config/posix/affinity.c: Move to...
8125         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
8126         interface by LIBGOMP_USE_PTHREADS. 
8127         * critical.c: Split out GOMP_atomic_{start,end} into...
8128         * atomic.c: ...here (new file).
8129         * env.c: Split out ICV definitions into...
8130         * icv.c: ...here (new file) and...
8131         * icv-device.c: ...here. New file.
8132         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
8133         (gomp_destroy_lock_30): Ditto.
8134         (gomp_set_lock_30): Ditto.
8135         (gomp_unset_lock_30): Ditto.
8136         (gomp_test_lock_30): Ditto.
8137         (gomp_init_nest_lock_30): Ditto.
8138         (gomp_destroy_nest_lock_30): Ditto.
8139         (gomp_set_nest_lock_30): Ditto.
8140         (gomp_unset_nest_lock_30): Ditto.
8141         (gomp_test_nest_lock_30): Ditto.
8142         * lock.c: New.
8143         * config/nvptx/lock.c: New.
8144         * config/nvptx/bar.c: New.
8145         * config/nvptx/bar.h: New.
8146         * config/nvptx/doacross.h: New.
8147         * config/nvptx/error.c: New.
8148         * config/nvptx/icv-device.c: New.
8149         * config/nvptx/mutex.h: New.
8150         * config/nvptx/pool.h: New.
8151         * config/nvptx/proc.c: New.
8152         * config/nvptx/ptrlock.h: New.
8153         * config/nvptx/sem.h: New.
8154         * config/nvptx/simple-bar.h: New.
8155         * config/nvptx/target.c: New.
8156         * config/nvptx/task.c: New.
8157         * config/nvptx/team.c: New.
8158         * config/nvptx/time.c: New.
8159         * config/posix/simple-bar.h: New.
8160         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
8161         (gomp_num_teams_var): Declare.
8162         (struct gomp_thread_pool): Change threads_dock member to
8163         gomp_simple_barrier_t.
8164         [__nvptx__] (gomp_thread): New implementation.
8165         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
8166         (gomp_thread_destructor): Ditto.
8167         (gomp_init_thread_affinity): Ditto.
8168         * team.c: Guard uses of Pthreads-specific interfaces by
8169         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
8170         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
8171         * config/nvptx/alloc.c: Delete.
8172         * config/nvptx/barrier.c: Ditto.
8173         * config/nvptx/fortran.c: Ditto.
8174         * config/nvptx/iter.c: Ditto.
8175         * config/nvptx/iter_ull.c: Ditto.
8176         * config/nvptx/loop.c: Ditto.
8177         * config/nvptx/loop_ull.c: Ditto.
8178         * config/nvptx/ordered.c: Ditto.
8179         * config/nvptx/parallel.c: Ditto.
8180         * config/nvptx/priority_queue.c: Ditto.
8181         * config/nvptx/sections.c: Ditto.
8182         * config/nvptx/single.c: Ditto.
8183         * config/nvptx/splay-tree.c: Ditto.
8184         * config/nvptx/work.c: Ditto.
8185         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
8186         -foffload=-lgfortran in addition to -lgfortran.
8187         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
8188         * plugin/plugin-nvptx.c: Include <limits.h>.
8189         (struct targ_fn_descriptor): Add new fields.
8190         (struct ptx_device): Ditto.  Set them...
8191         (nvptx_open_device): ...here.
8192         (nvptx_adjust_launch_bounds): New.
8193         (nvptx_host2dev): Allow NULL 'nvthd'.
8194         (nvptx_dev2host): Ditto.
8195         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
8196         (link_ptx): Adjust log sizes.
8197         (nvptx_host2dev): Allow NULL 'nvthd'.
8198         (nvptx_dev2host): Ditto.
8199         (nvptx_set_clocktick): New.  Use it...
8200         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
8201         fields.
8202         (GOMP_OFFLOAD_dev2dev): New.
8203         (nvptx_adjust_launch_bounds): New.
8204         (nvptx_stacks_size): New.
8205         (nvptx_stacks_alloc): New.
8206         (nvptx_stacks_free): New.
8207         (GOMP_OFFLOAD_run): New.
8208         (GOMP_OFFLOAD_async_run): New (stub).
8210 2016-11-23  Martin Jambor  <mjambor@suse.cz>
8212         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
8213         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
8214         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8216 2016-11-23  Martin Liska  <mliska@suse.cz>
8217             Martin Jambor  <mjambor@suse.cz>
8219         * plugin/hsa.h: New file.
8220         * plugin/hsa_ext_finalize.h: New file.
8221         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
8222         header file unistd.h, and functions secure_getenv, __secure_getenv,
8223         getuid, geteuid, getgid and getegid.
8224         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
8225         -D_GNU_SOURCE.
8226         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
8227         Handle various cases of secure_getenv presence, add an implementation
8228         when we can test effective UID and GID.
8229         (struct hsa_runtime_fn_info): New structure.
8230         (hsa_runtime_fn_info hsa_fns): New variable.
8231         (hsa_runtime_lib): Likewise.
8232         (support_cpu_devices): Likewise.
8233         (init_enviroment_variables): Load newly introduced ENV
8234         variables.
8235         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
8236         (hsa_fatal): Likewise.
8237         (DLSYM_FN): New macro.
8238         (init_hsa_runtime_functions): New function.
8239         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
8240         structure.  Depending on environment, also allow CPU devices.
8241         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
8242         (get_kernarg_memory_region): Likewise.
8243         (GOMP_OFFLOAD_init_device): Likewise.
8244         (destroy_hsa_program): Likewise.
8245         (init_basic_kernel_info): New function.
8246         (GOMP_OFFLOAD_load_image): Use it.
8247         (create_and_finalize_hsa_program): Call hsa run-time functions via
8248         hsa_fns structure.
8249         (create_single_kernel_dispatch): Likewise.
8250         (release_kernel_dispatch): Likewise.
8251         (init_single_kernel): Likewise.
8252         (parse_target_attributes): Allow up multiple HSA grid dimensions.
8253         (get_group_size): New function.
8254         (run_kernel): Likewise.
8255         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
8256         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
8257         structure.
8258         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
8259         * testsuite/libgomp-test-support.exp.in: Likewise.
8260         * Makefile.in: Regenerated.
8261         * aclocal.m4: Likewise.
8262         * config.h.in: Likewise.
8263         * configure: Likewise.
8264         * testsuite/Makefile.in: Likewise.
8266 2016-11-15  Martin Jambor  <mjambor@suse.cz>
8267             Alexander Monakov  <amonakov@ispras.ru>
8269         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
8270         mapping clauses to target constructs.
8271         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
8273 2016-11-15  Matthias Klose  <doko@ubuntu.com>
8275         * configure: Regenerate.
8277 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
8279         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
8280         * omp_lib.h.in (openmp_version): Likewise.
8281         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
8282         of 201307.
8283         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8285         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
8286         (fib_wrapper): Add map(from: x) clause.
8287         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
8288         (e_53_2): Likewise.
8289         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
8290         (accum): Add map(tmp) clause.
8291         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
8292         (accum): Add map(tofrom: tmp) clause.
8293         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
8294         (gramSchmidt): Likewise.
8295         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
8296         map(tofrom: sum) clause.
8297         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
8298         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
8299         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
8300         only allowed on the loop iterator.
8301         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
8302         * testsuite/libgomp.fortran/taskloop2.f90: New test.
8303         * testsuite/libgomp.fortran/taskloop4.f90: New test.
8304         * testsuite/libgomp.fortran/doacross1.f90: New test.
8305         * testsuite/libgomp.fortran/doacross3.f90: New test.
8306         * testsuite/libgomp.fortran/taskloop1.f90: New test.
8307         * testsuite/libgomp.fortran/taskloop3.f90: New test.
8308         * testsuite/libgomp.fortran/doacross2.f90: New test.
8309         * testsuite/libgomp.c/doacross-1.c (main): Add missing
8310         #pragma omp atomic read.
8311         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
8312         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
8314 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
8315             Nathan Sidwell  <nathan@acm.org>
8317         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
8318         to determine default geometry.
8319         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
8320         dimension.
8322 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
8324         * hashtab.h: Use standard GPLv3 with runtime exception
8325         boilerplate.
8327 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
8329         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
8330         size when allocating new thread.
8332 2016-09-14  Marek Polacek  <polacek@redhat.com>
8334         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
8336 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
8338         PR fortran/71014
8339         * testsuite/libgomp.fortran/pr71014.f90: New test.
8341 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
8343         PR middle-end/70895
8344         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
8345         firstprivate clauses.
8346         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
8347         copy clauses.
8348         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
8349         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
8350         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
8351         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8352         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
8353         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8354         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
8355         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
8356         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
8357         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
8358         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
8359         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
8361 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
8363         PR fortran/70598
8364         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
8366 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
8368         PR c++/58706
8369         * testsuite/libgomp.c++/pr58706.C: New test.
8371 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
8373         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
8374         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
8375         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
8376         Likewise.
8377         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
8378         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
8379         Likewise.
8380         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
8382         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
8383         test, and don't hardcode -O0.
8385 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
8387         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
8389 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
8391         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
8392         test.
8394 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
8396         PR middle-end/71734
8397         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
8398         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
8400 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
8402         PR fortran/71717
8403         * testsuite/libgomp.fortran/associate3.f90: New test.
8405 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
8407         * testsuite/libgomp.c++/target-21.C: New test.
8409 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
8411         * testsuite/libgomp.c++/target-20.C: New test.
8413 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
8414             Cesar Philippidis  <cesar@codesourcery.com>
8416         PR middle-end/71373
8417         * libgomp.oacc-c/nested-function-1.c: New file.
8418         * libgomp.oacc-c/nested-function-2.c: Likewise.
8419         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
8420         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
8421         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
8423 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
8425         PR c/71381
8426         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
8427         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
8428         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
8430 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
8432         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
8433         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
8435 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
8437         PR c/70688
8438         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
8440 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
8442         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
8443         instead of invalid schedule(static, 0).
8444         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
8446 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
8448         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
8449         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
8450         parameter, use to set async stream around call to gomp_unmap_vars,
8451         call gomp_unmap_vars() with 'do_copyfrom' set to true.
8452         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
8453         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
8454         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
8455         (event_add): Add int parameter, initialize 'val' field when
8456         adding new ptx_event struct.
8457         (nvptx_evec): Adjust event_add() call arguments.
8458         (nvptx_host2dev): Likewise.
8459         (nvptx_dev2host): Likewise.
8460         (nvptx_wait_async): Likewise.
8461         (nvptx_wait_all_async): Likewise.
8462         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
8463         pass to event_add() call.
8464         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
8465         parameter.
8466         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
8467         call openacc.register_async_cleanup_func() hook.
8468         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
8469         * target.c (gomp_copy_from_async): Delete function.
8470         (gomp_map_vars): Remove async_refcount.
8471         (gomp_unmap_vars): Likewise.
8472         (gomp_load_image_to_device): Likewise.
8473         (omp_target_associate_ptr): Likewise.
8474         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
8475         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
8476         (gomp_copy_from_async): Remove.
8478 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
8480         * target.c (gomp_device_copy): New function.
8481         (gomp_copy_host2dev): Likewise.
8482         (gomp_copy_dev2host): Likewise.
8483         (gomp_free_device_memory): Likewise.
8484         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
8485         (gomp_map_pointer): Likewise.
8486         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
8487         NULL value from alloc_func plugin hook.
8488         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
8489         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
8490         (gomp_unmap_vars): Likewise.
8491         (gomp_update): Adjust to call gomp_copy_dev2host and
8492         gomp_copy_host2dev functions.
8493         (gomp_unload_image_from_device): Handle false value from
8494         unload_image_func plugin hook.
8495         (gomp_init_device): Handle false value from init_device_func
8496         plugin hook.
8497         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
8498         (omp_target_free): Adjust to call gomp_free_device_memory.
8499         (omp_target_memcpy): Handle return values from host2dev_func,
8500         dev2host_func, and dev2dev_func plugin hooks.
8501         (omp_target_memcpy_rect_worker): Likewise.
8502         (gomp_target_fini): Handle false value from fini_device_func
8503         plugin hook.
8504         * libgomp.h (struct gomp_device_descr): Adjust return type of
8505         init_device_func, fini_device_func, unload_image_func, free_func,
8506         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
8507         * oacc-init.c (acc_shutdown_1): Handle false value from
8508         fini_device_func plugin hook.
8509         * oacc-host.c (host_init_device): Change return type to bool.
8510         (host_fini_device): Likewise.
8511         (host_unload_image): Likewise.
8512         (host_free): Likewise.
8513         (host_dev2host): Likewise.
8514         (host_host2dev): Likewise.
8515         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
8516         (acc_memcpy_to_device): Likewise.
8517         (acc_memcpy_from_device): Likewise.
8518         (delete_copyout): Add libfnname parameter, handle free_func
8519         hook fatal error case.
8520         (acc_delete): Adjust delete_copyout call.
8521         (acc_copyout): Likewise.
8522         (update_dev_host): Move gomp_mutex_unlock to after
8523         host2dev/dev2host hook calls.
8525         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
8526         to 'hsa_error_msg', for clarity.
8527         (hsa_fatal): Likewise.
8528         (hsa_error): New function.
8529         (init_hsa_context): Change return type to bool, adjust to return
8530         false on error.
8531         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
8532         return value.
8533         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
8534         return false on error.
8535         (get_agent_info): Adjust to return NULL on error.
8536         (destroy_hsa_program): Change return type to bool, adjust to
8537         return false on error.
8538         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
8539         (destroy_module): Change return type to bool, adjust to
8540         return false on error.
8541         (GOMP_OFFLOAD_unload_image): Likewise.
8542         (GOMP_OFFLOAD_fini_device): Likewise.
8543         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
8544         (GOMP_OFFLOAD_free): Change to return false when called.
8545         (GOMP_OFFLOAD_dev2host): Likewise.
8546         (GOMP_OFFLOAD_host2dev): Likewise.
8547         (GOMP_OFFLOAD_dev2dev): Likewise.
8549         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
8550         (CUDA_CALL): Likewise.
8551         (CUDA_CALL_ASSERT): Likewise.
8552         (map_init): Change return type to bool, use CUDA_CALL* macros.
8553         (map_fini): Likewise.
8554         (init_streams_for_device): Change return type to bool, adjust
8555         call to map_init.
8556         (fini_streams_for_device): Change return type to bool, adjust
8557         call to map_fini.
8558         (select_stream_for_async): Release stream_lock before calls to
8559         GOMP_PLUGIN_fatal, adjust call to map_init.
8560         (nvptx_init): Use CUDA_CALL* macros.
8561         (nvptx_attach_host_thread_to_device): Change return type to bool,
8562         use CUDA_CALL* macros.
8563         (nvptx_open_device): Use CUDA_CALL* macros.
8564         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
8565         macros.
8566         (nvptx_get_num_devices): Use CUDA_CALL* macros.
8567         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
8568         (nvptx_exec): Use CUDA_CALL* macros.
8569         (nvptx_alloc): Use CUDA_CALL* macros.
8570         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
8571         (nvptx_host2dev): Likewise.
8572         (nvptx_dev2host): Likewise.
8573         (nvptx_wait): Use CUDA_CALL* macros.
8574         (nvptx_wait_async): Likewise.
8575         (nvptx_wait_all): Likewise.
8576         (nvptx_wait_all_async): Likewise.
8577         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
8578         use CUDA_CALL* macros, adjust call to map_fini.
8579         (GOMP_OFFLOAD_init_device): Change return type to bool,
8580         adjust code accordingly.
8581         (GOMP_OFFLOAD_fini_device): Likewise.
8582         (GOMP_OFFLOAD_load_image): Adjust calls to
8583         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
8584         use CUDA_CALL* macros.
8585         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
8586         return code.
8587         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
8588         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
8589         handle error return.
8590         (GOMP_OFFLOAD_dev2host): Likewise.
8591         (GOMP_OFFLOAD_host2dev): Likewise.
8592         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
8593         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
8595 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
8597         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
8598         (acc_free): Likewise.
8599         (acc_memcpy_to_device): Likewise.
8600         (acc_memcpy_from_device): Likewise.
8601         (acc_deviceptr): Likewise.
8602         (acc_hostptr): Likewise.
8603         (acc_is_present): Likewise.
8604         (acc_map_data): Likewise.
8605         (acc_unmap_data): Likewise.
8606         (present_create_copy): Likewise.
8607         (delete_copyout): Likewise.
8608         (update_dev_host): Likewise.
8609         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
8610         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
8611         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
8612         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8613         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
8614         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
8615         it only runs on nvptx targets.
8616         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8617         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8618         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8619         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8620         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8621         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8622         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8623         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8624         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8625         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8626         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8627         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8628         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8629         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8630         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8631         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8632         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8633         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8634         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8635         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8636         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8637         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8638         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8640 2016-05-23  Martin Jambor  <mjambor@suse.cz>
8642         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
8644 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
8646         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
8647         to gomp_init_targets_once.
8648         (acc_set_device_type): Remove !cached_base_dev condition on call to
8649         gomp_init_targets_once, move call to before acc_device_lock acquire,
8650         to avoid deadlock.
8651         (acc_get_device_num): Remove !cached_base_dev condition on call to
8652         gomp_init_targets_once.
8653         (acc_set_device_num): Likewise.
8655 2016-05-16  Martin Jambor  <mjambor@suse.cz>
8657         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
8659 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
8661         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
8662         expected partitioning.
8664 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
8666         PR middle-end/70626
8667         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
8668         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
8669         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
8671 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
8673         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
8674         non-fatal.
8676 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
8678         PR middle-end/70680
8679         * testsuite/libgomp.c/pr70680-1.c: New test.
8680         * testsuite/libgomp.c/pr70680-2.c: New test.
8682 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
8684         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
8685         pass parameter variables to subroutines.
8687 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
8689         PR middle-end/70643
8690         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
8692 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
8694         PR testsuite/68242
8695         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
8696         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8698 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
8700         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
8701         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
8702         GOACC_declare prototype.
8704         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
8705         Merge this file, and...
8706         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
8707         ... this file, and...
8708         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
8709         ... this file, and...
8710         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
8711         ... this file, and...
8712         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
8713         ... this file, and...
8714         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
8715         ... this file, and...
8716         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
8717         ... this file, and...
8718         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
8719         ... this file, and...
8720         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
8721         ... this file, and...
8722         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
8723         ... this file, and...
8724         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
8725         ... this file, and...
8726         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
8727         ... this file, and...
8728         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
8729         ... this file into...
8730         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
8731         file.
8733         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8734         Make failure observable.
8736 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
8738         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
8739         field.
8740         * target.c (gomp_target_fallback_firstprivate,
8741         gomp_target_unshare_firstprivate): Removed.
8742         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
8743         before waiting for dependencies.
8744         (gomp_target_task_fn): Don't copy firstprivate vars here.
8745         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
8746         firstprivate_copies here.
8747         (gomp_create_target_task): Don't initialize firstprivate_copies field.
8748         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
8749         explicit/implicit firstprivate.
8751 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
8753         PR lto/70289
8754         PR ipa/70348
8755         PR tree-optimization/70373
8756         PR middle-end/70533
8757         PR middle-end/70534
8758         PR middle-end/70535
8759         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
8760         test.
8761         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
8762         test.
8763         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
8764         test.
8765         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
8766         test.
8767         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
8768         test.
8769         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
8770         test.
8771         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
8772         test.
8773         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
8774         test.
8775         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
8776         test.
8777         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
8778         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
8779         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
8780         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
8781         test.
8782         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
8783         test.
8784         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
8785         test.
8786         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
8787         test.
8788         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
8789         coverage.
8790         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
8791         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
8792         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
8793         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
8794         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
8795         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
8796         coverage.
8797         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8798         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8799         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8800         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8801         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
8802         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
8803         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
8804         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
8805         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
8806         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8807         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8808         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8809         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8810         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8811         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
8813 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
8814             James Norris  <jnorris@codesourcery.com>
8815             Nathan Sidwell  <nathan@codesourcery.com>
8816             Julian Brown  <julian@codesourcery.com>
8817             Cesar Philippidis  <cesar@codesourcery.com>
8818             Chung-Lin Tang  <cltang@codesourcery.com>
8819             Tom de Vries  <tom@codesourcery.com>
8821         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
8822         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8823         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8824         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
8825         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8826         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8827         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8828         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
8829         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8830         XFAIL.
8831         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
8832         Incorporate...
8833         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
8834         file.
8835         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
8836         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
8837         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
8838         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
8839         Likewise.
8840         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
8841         Likewise.
8842         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
8843         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
8844         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
8845         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
8846         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
8847         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
8848         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
8849         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
8850         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
8851         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
8852         Likewise.
8853         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
8854         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
8855         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
8856         file...
8857         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
8858         file into...
8859         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
8860         file.  Update.
8861         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
8862         file.
8863         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
8864         Likewise.
8865         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
8866         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
8867         ... this new file.  Update.
8868         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
8869         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
8870         ... this new file.  Update.
8871         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
8872         file.  Incorporate...
8873         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
8874         file, and...
8875         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
8876         file, and...
8877         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
8878         file.
8879         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
8881 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
8883         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
8884         set-torture-options.
8886 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
8888         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
8889         gcc-dg-runtest.
8890         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8891         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
8892         -fno-builtin-acc_on_device instead of -O0.
8893         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
8894         -O0.
8895         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
8896         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
8897         Likewise.
8898         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
8899         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
8900         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
8901         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
8902         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
8903         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
8904         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
8905         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
8906         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
8907         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
8908         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
8909         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
8910         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
8911         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
8912         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
8913         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
8914         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
8915         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
8916         Don't specify -O2.
8917         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
8918         Likewise.
8919         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
8920         Likewise.
8922 2016-03-24  Martin Liska  <mliska@suse.cz>
8924         * plugin/plugin-hsa.c (packet_store_release): New function
8925         that is taken from the HSA runtime manual.
8926         (GOMP_OFFLOAD_run): Use the function.
8928 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
8930         PR c++/70376
8931         * testsuite/libgomp.c++/pr70376.C: New test.
8933 2016-03-23  Tom de Vries  <tom@codesourcery.com>
8935         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
8936         initialization of lresult and lvresult.
8937         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
8939 2016-03-23  James Norris  <jnorris@codesourcery.com>
8940             Daichi Fukuoka <dc-fukuoka@sgi.com>
8942         PR libgomp/69414
8943         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
8944         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
8945         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8946         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
8948 2016-03-23  Martin Liska  <mliska@suse.cz>
8950         PR hsa/70337
8951         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
8952         argument just in case a dispatched kernel uses that argument.
8954 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
8956         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
8957         -ftree-parallelize-loops/-fopenacc changes.
8958         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
8959         Likewise.
8960         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
8961         Likewise.
8962         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
8963         Likewise.
8964         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
8965         Likewise.
8966         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
8967         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
8969 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
8971         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
8972         always_ld_library_path the path to libgcc_s.
8974 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
8976         PR testsuite/70009
8977         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
8979 2016-03-09  Tom de Vries  <tom@codesourcery.com>
8981         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
8982         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
8983         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
8984         Same.
8985         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
8986         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
8987         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
8988         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
8990 2016-03-07  Martin Jambor  <mjambor@suse.cz>
8992         * testsuite/lib/libgomp.exp
8993         (check_effective_target_hsa_offloading_selected_nocache): New.
8994         (check_effective_target_hsa_offloading_selected): Likewise.
8995         * testsuite/libgomp.hsa.c/c.exp: Likewise.
8996         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
8997         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
8998         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
8999         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
9000         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
9001         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
9002         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
9003         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
9004         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
9005         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
9006         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
9007         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
9008         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
9009         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
9010         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
9011         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
9013 2016-03-07  Martin Jambor  <mjambor@suse.cz>
9015         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
9016         non-shared memory accelerators.
9017         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
9018         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
9019         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
9020         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
9021         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
9022         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
9023         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
9024         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
9025         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
9027 2016-03-07  Martin Jambor  <mjambor@suse.cz>
9029         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
9030         ALWAYS_CFLAGS.
9032 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
9034         PR libgomp/69555
9035         * testsuite/libgomp.c++/pr69555-1.C: New test.
9036         * testsuite/libgomp.c++/pr69555-2.C: New test.
9038 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
9039             Martin Jambor  <mjambor@suse.cz>
9041         * testsuite/lib/libgomp.exp
9042         (check_effective_target_offload_device_shared_as): New proc.
9043         * testsuite/libgomp.c++/declare_target-1.C: New test.
9045 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
9047         PR driver/68463
9048         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
9050 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
9052         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
9053         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
9054         dims.
9055         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
9056         -ftree-parallelize-loops/-fopenacc changes.
9057         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
9058         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
9059         Likewise.
9060         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
9061         Likewise.
9062         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
9063         Likewise.
9064         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
9065         Likewise.
9066         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
9067         Likewise.
9068         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
9069         Likewise.
9070         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
9071         Likewise.
9072         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
9073         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
9074         Likewise.
9075         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
9076         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
9077         Likewise.
9078         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
9079         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
9080         Likewise.
9082 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
9084         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
9086 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
9088         PR driver/69805
9089         * testsuite/libgomp.c/pr69805.c: New test.
9091 2016-02-16  Tom de Vries  <tom@codesourcery.com>
9093         PR lto/67709
9094         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
9096 2016-02-09  Tom de Vries  <tom@codesourcery.com>
9098         PR tree-optimization/69599
9099         * testsuite/libgomp.c/omp-nested-3.c: New test.
9100         * testsuite/libgomp.c/pr46032-2.c: New test.
9101         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
9102         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
9104 2016-02-09  Tom de Vries  <tom@codesourcery.com>
9106         PR lto/69707
9107         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
9109 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
9111         * testsuite/libgomp.c/target-31.c: Fix testcase.
9113 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
9115         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
9116         clause.
9117         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
9118         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
9119         reduction and map clauses.
9120         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
9122 2016-02-02  James Norris  <jnorris@codesourcery.com>
9124         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
9126 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
9128         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
9129         * oacc-parallel.c (GOACC_host_data): Remove function definition.
9131         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
9132         cases.
9134         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
9135         variables.
9136         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
9137         (hsa_kmt_lib): Set variables.
9138         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
9139         always_ld_library_path.
9140         * Makefile.in: Regenerate.
9141         * configure: Likewise.
9142         * testsuite/Makefile.in: Likewise.
9144         * plugin/configfrag.ac (offload_additional_options)
9145         (offload_additional_lib_paths): Don't amend for hsa offloading.
9146         * configure: Regenerate.
9148         * plugin/configfrag.ac: Don't configure for offloading target if
9149         we don't build the corresponding plugin.
9150         * configure: Regenerate.
9152 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
9154         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
9155         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
9157 2016-01-26  Tom de Vries  <tom@codesourcery.com>
9159         PR tree-optimization/69110
9160         * testsuite/libgomp.c/pr69110.c: New test.
9162 2016-01-25  Richard Biener  <rguenther@suse.de>
9164         PR lto/69393
9165         * testsuite/libgomp.c++/pr69393.C: New testcase.
9167 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
9169         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
9170         function wasn't mapped to the device with non-shared memory.
9172 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
9174         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
9176 2016-01-19  Martin Jambor  <mjambor@suse.cz>
9177             Martin Liska  <mliska@suse.cz>
9179         * plugin/Makefrag.am: Add HSA plugin requirements.
9180         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
9181         (HSA_RUNTIME_LIB): Likewise.
9182         (HSA_RUNTIME_CPPFLAGS): Likewise.
9183         (HSA_RUNTIME_INCLUDE): New substitution.
9184         (HSA_RUNTIME_LIB): Likewise.
9185         (HSA_RUNTIME_LDFLAGS): Likewise.
9186         (hsa-runtime): New configure option.
9187         (hsa-runtime-include): Likewise.
9188         (hsa-runtime-lib): Likewise.
9189         (PLUGIN_HSA): New substitution variable.
9190         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
9191         configure options.
9192         (PLUGIN_HSA_CPPFLAGS): Likewise.
9193         (PLUGIN_HSA_LDFLAGS): Likewise.
9194         (PLUGIN_HSA_LIBS): Likewise.
9195         Check that we have access to HSA run-time.
9196         * libgomp-plugin.h (offload_target_type): New element
9197         OFFLOAD_TARGET_TYPE_HSA.
9198         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
9199         args.
9200         (bool gomp_create_target_task): Updated.
9201         (gomp_device_descr): Extra parameter of run_func and async_run_func,
9202         new field can_run_func.
9203         * libgomp_g.h (GOMP_target_ext): Update prototype.
9204         * oacc-host.c (host_run): Added a new parameter args.
9205         * target.c (calculate_firstprivate_requirements): New function.
9206         (copy_firstprivate_data): Likewise.
9207         (gomp_target_fallback_firstprivate): Use them.
9208         (gomp_target_unshare_firstprivate): New function.
9209         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
9210         devices.
9211         (GOMP_target): Do host fallback for all shared memory devices.  Do not
9212         pass any args to plugins.
9213         (GOMP_target_ext): Introduce device-specific argument parameter args.
9214         Allow host fallback if device shares memory.  Do not remap data if
9215         device has shared memory.
9216         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
9217         like host fallback for mappings.
9218         (GOMP_target_data): Treat shared memory devices like host fallback.
9219         (GOMP_target_data_ext): Likewise.
9220         (GOMP_target_update): Likewise.
9221         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
9222         gomp_create_target_task.
9223         (GOMP_target_enter_exit_data): Likewise.
9224         (omp_target_alloc): Treat shared memory devices like host fallback.
9225         (omp_target_free): Likewise.
9226         (omp_target_is_present): Likewise.
9227         (omp_target_memcpy): Likewise.
9228         (omp_target_memcpy_rect): Likewise.
9229         (omp_target_associate_ptr): Likewise.
9230         (gomp_load_plugin_for_device): Also load can_run.
9231         * task.c (GOMP_PLUGIN_target_task_completion): Free
9232         firstprivate_copies.
9233         (gomp_create_target_task): Accept new argument args and store it to
9234         ttask.
9235         * plugin/plugin-hsa.c: New file.
9237 2016-01-18  Tom de Vries  <tom@codesourcery.com>
9239         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
9240         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
9241         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
9242         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
9243         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
9244         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
9245         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
9246         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
9247         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
9248         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
9249         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
9250         Same.
9251         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
9252         Same.
9253         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
9254         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
9255         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
9256         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
9257         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
9258         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
9259         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
9260         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
9261         Same.
9262         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
9264 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
9266         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
9268 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
9270         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
9272 2016-01-12  James Norris  <jnorris@codesourcery.com>
9274         * libgomp.texi: Updates for OpenACC.
9276 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
9278         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
9280 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
9282         PR fortran/66680
9283         * testsuite/libgomp.fortran/pr66680.f90: New test.
9285 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
9287         PR middle-end/68960
9288         * testsuite/libgomp.c/pr68960.c: New test.
9290 2016-01-06  Nathan Sidwell  <nathan@acm.org>
9292         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
9293         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
9295 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
9297         Update copyright years.
9299         * libgomp.texi: Bump @copying's copyright year.
9301 2015-12-31  Nathan Sidwell  <nathan@acm.org>
9303         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
9304         dg-additional-options syntax.
9305         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
9306         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
9307         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
9308         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
9309         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
9310         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
9311         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
9312         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
9313         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
9314         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
9315         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
9316         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
9317         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
9318         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
9319         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
9320         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
9321         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
9322         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
9324 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
9326         * libgomp.h (REFCOUNT_LINK): Define.
9327         (struct splay_tree_key_s): Add link_key.
9328         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
9329         Replace target address of the pointer with target address of newly
9330         mapped object in the splay tree.  Set link pointer on target to the
9331         device address of the mapped object.
9332         (gomp_unmap_vars): Restore target address of the pointer in the splay
9333         tree for REFCOUNT_LINK objects after unmapping.
9334         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
9335         declare target link" objects.
9336         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
9337         "omp declare target link" objects, which were mapped for the image.
9338         (gomp_exit_data): Restore target address of the pointer in the splay
9339         tree for REFCOUNT_LINK objects after unmapping.
9340         * testsuite/libgomp.c/target-link-1.c: New file.
9342 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
9344         * libgomp.h (gomp_device_state): New enum.
9345         (struct gomp_device_descr): Replace is_initialized with state.
9346         (gomp_fini_device): Remove declaration.
9347         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
9348         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
9349         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
9350         (acc_set_device_type): Use state instead of is_initialized.
9351         (acc_set_device_num): Likewise.
9352         * target.c (resolve_device): Use state instead of is_initialized.
9353         Do not initialize finalized device.
9354         (gomp_map_vars): Do nothing if device is finalized.
9355         (gomp_unmap_vars): Likewise.
9356         (gomp_update): Likewise.
9357         (GOMP_offload_register_ver): Use state instead of is_initialized.
9358         (GOMP_offload_unregister_ver): Likewise.
9359         (gomp_init_device): Likewise.
9360         (gomp_unload_device): Likewise.
9361         (gomp_fini_device): Remove.
9362         (gomp_get_target_fn_addr): Do nothing if device is finalized.
9363         (GOMP_target): Go to host fallback if device is finalized.
9364         (GOMP_target_ext): Likewise.
9365         (gomp_exit_data): Do nothing if device is finalized.
9366         (gomp_target_task_fn): Go to host fallback if device is finalized.
9367         (gomp_target_fini): New static function.
9368         (gomp_target_init): Use state instead of is_initialized.
9369         Call gomp_target_fini at exit.
9371 2015-12-09  Tom de Vries  <tom@codesourcery.com>
9373         PR tree-optimization/68716
9374         * testsuite/libgomp.c/omp-nested-2.c: New test.
9376 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
9378         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
9379         target openacc_nvidia_accel_selected.
9380         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
9381         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
9382         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
9383         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
9385 2015-12-01  Julian Brown  <julian@codesourcery.com>
9386             James Norris  <James_Norris@mentor.com>
9388         * oacc-parallel.c (GOACC_host_data): New function.
9389         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
9390         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
9391         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
9392         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
9393         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
9394         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
9395         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
9397 2015-11-30  James Norris  <jnorris@codesourcery.com>
9398             Cesar Philippidis  <cesar@codesourcery.com>
9400         libgomp/
9401         * libgomp.oacc-fortran/routine-5.f90: New test.
9402         * libgomp.oacc-fortran/routine-7.f90: New test.
9403         * libgomp.oacc-fortran/routine-9.f90: New test.
9405 2015-11-30  Tom de Vries  <tom@codesourcery.com>
9407         PR tree-optimization/46032
9408         * testsuite/libgomp.c/pr46032.c: New test.
9410 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
9412         PR libgomp/68579
9413         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
9414         (gomp_create_target_task): Call it before freeing
9415         GOMP_TARGET_TASK_DATA tasks.
9417         PR c/63326
9418         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
9419         in between case label and OpenMP standalone directives.
9420         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
9422 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
9424         * configure: Regenerate.
9426 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
9428         * testsuite/libgomp.c/target-35.c: New test.
9430 2015-11-22  James Norris  <jnorris@codesourcery.com>
9431             Cesar Philippidis  <cesar@codesourcery.com>
9433         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
9434         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
9435         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
9436         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
9437         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
9439 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
9441         PR middle-end/68221
9442         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
9443         * testsuite/libgomp.c/reduction-12.c: Likewise.
9444         * testsuite/libgomp.c++/reduction-11.C: Likewise.
9445         * testsuite/libgomp.c++/reduction-12.C: Likewise.
9447 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
9449         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
9450         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
9451         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
9452         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
9453         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
9454         and fix.
9455         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9456         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9458 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
9460         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
9461         worker & gang cases.
9462         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
9464 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
9466         * config/nvptx/priority_queue.c: New file.
9468 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
9470         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
9471         sections.
9473 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
9474             Aldy Hernandez  <aldyh@redhat.com>
9475             Ilya Verbin  <ilya.verbin@intel.com>
9477         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
9478         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
9479         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
9480         iterators or IV by chunk size.
9481         * parallel.c (gomp_resolve_num_threads): Don't assume that
9482         if thr->ts.team is non-NULL, then pool must be non-NULL.
9483         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
9484         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
9485         GOMP_PLUGIN_target_task_completion.
9486         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
9487         * Makefile.in: Regenerate.
9488         * libgomp.h: Shuffle prototypes and forward definitions around so
9489         priority queues can be defined.
9490         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
9491         (enum gomp_target_task_state): New enum.
9492         (struct gomp_target_task): Add state, tgt, task and team fields.
9493         (gomp_create_target_task): Change return type to bool, add
9494         state argument.
9495         (gomp_target_task_fn): Change return type to bool.
9496         (struct gomp_device_descr): Add async_run_func.
9497         (struct gomp_task): Remove children, next_child, prev_child,
9498         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
9499         Add pnode field.
9500         (struct gomp_taskgroup): Remove children.
9501         Add taskgroup_queue.
9502         (struct gomp_team): Change task_queue type to a priority queue.
9503         (splay_compare): Define inline.
9504         (priority_queue_offset): New.
9505         (priority_node_to_task): New.
9506         (task_to_priority_node): New.
9507         * oacc-mem.c: Do not include splay-tree.h.
9508         * priority_queue.c: New file.
9509         * priority_queue.h: New file.
9510         * splay-tree.c: Do not include splay-tree.h.
9511         (splay_tree_foreach_internal): New.
9512         (splay_tree_foreach): New.
9513         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
9514         (splay_tree_callback): Define typedef.
9515         * target.c (splay_compare): Move to libgomp.h.
9516         (GOMP_target): Don't adjust *thr in any way around running offloaded
9517         task.
9518         (GOMP_target_ext): Likewise.  Handle target nowait.
9519         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
9520         return value from gomp_create_target_task, if false, fallthrough
9521         as if no dependencies exist.
9522         (gomp_target_task_fn): Change return type to bool, return true
9523         if the task should have another part scheduled later.  Handle
9524         target nowait.
9525         (gomp_load_plugin_for_device): Initialize async_run.
9526         * task.c (gomp_init_task): Initialize children_queue.
9527         (gomp_clear_parent_in_list): New.
9528         (gomp_clear_parent_in_tree): New.
9529         (gomp_clear_parent): Handle priorities.
9530         (GOMP_task): Likewise.
9531         (priority_queue_move_task_first,
9532         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
9533         New functions.
9534         (gomp_create_target_task): Use priority queues.  Change return type
9535         to bool, add state argument, return false if for async
9536         {{enter,exit} data,update} constructs no dependencies need to be
9537         waited for, handle target nowait.  Set task->fn to NULL instead of
9538         gomp_target_task_fn.
9539         (verify_children_queue): Remove.
9540         (priority_list_upgrade_task): New.
9541         (priority_queue_upgrade_task): New.
9542         (verify_task_queue): Remove.
9543         (priority_list_downgrade_task): New.
9544         (priority_queue_downgrade_task): New.
9545         (gomp_task_run_pre): Use priority queues.
9546         Abstract code out to priority_queue_downgrade_task.
9547         (gomp_task_run_post_handle_dependers): Use priority queues.
9548         (gomp_task_run_post_remove_parent): Likewise.
9549         (gomp_task_run_post_remove_taskgroup): Likewise.
9550         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
9551         tasks specially.
9552         (GOMP_taskwait): Likewise.
9553         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
9554         priority-queue_upgrade_task.
9555         (GOMP_taskgroup_start): Use priority queues.
9556         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
9557         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
9558         barrier.
9559         * taskloop.c (GOMP_taskloop): Handle priorities.
9560         * team.c (gomp_new_team): Call priority_queue_init.
9561         (free_team): Call priority_queue_free.
9562         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
9563         team created for target nowait in implicit parallel region.
9564         (gomp_team_start): For nested check, test thr->ts.level instead of
9565         thr->ts.team != NULL.
9566         * testsuite/libgomp.c/doacross-3.c: New test.
9567         * testsuite/libgomp.c/ordered-5.c: New test.
9568         * testsuite/libgomp.c/priority.c: New test.
9569         * testsuite/libgomp.c/target-31.c: New test.
9570         * testsuite/libgomp.c/target-32.c: New test.
9571         * testsuite/libgomp.c/target-33.c: New test.
9572         * testsuite/libgomp.c/target-34.c: New test.
9574 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
9576         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
9578         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
9579         loop is sequential.
9581 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
9583         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
9584         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
9586 2015-11-12  James Norris  <jnorris@codesourcery.com>
9587             Joseph Myers  <joseph@codesourcery.com>
9589         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
9590         * oacc-parallel.c (GOACC_declare): New function.
9591         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
9592         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
9593         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
9594         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
9595         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
9597 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
9599         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
9601 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
9603         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
9604         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
9606 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
9608         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
9609         inadvertent commit.
9611 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
9613         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
9614         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
9615         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
9616         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
9617         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
9619 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
9621         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
9622         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
9624 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
9625             Ilya Verbin  <ilya.verbin@intel.com>
9627         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
9628         GOMP_loop_nonmonotonic_dynamic_start,
9629         GOMP_loop_nonmonotonic_guided_next,
9630         GOMP_loop_nonmonotonic_guided_start,
9631         GOMP_loop_ull_nonmonotonic_dynamic_next,
9632         GOMP_loop_ull_nonmonotonic_dynamic_start,
9633         GOMP_loop_ull_nonmonotonic_guided_next,
9634         GOMP_loop_ull_nonmonotonic_guided_start,
9635         GOMP_parallel_loop_nonmonotonic_dynamic,
9636         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
9637         (GOMP_target_41): Renamed to ...
9638         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
9639         arguments.
9640         (GOMP_target_data_41): Renamed to ...
9641         (GOMP_target_data_ext): ... this.
9642         (GOMP_target_update_41): Renamed to ...
9643         (GOMP_target_update_ext): ... this.
9644         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
9645         GOMP_target_data_ext and GOMP_target_update_ext instead of
9646         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
9647         Export GOMP_loop_nonmonotonic_dynamic_next,
9648         GOMP_loop_nonmonotonic_dynamic_start,
9649         GOMP_loop_nonmonotonic_guided_next,
9650         GOMP_loop_nonmonotonic_guided_start,
9651         GOMP_loop_ull_nonmonotonic_dynamic_next,
9652         GOMP_loop_ull_nonmonotonic_dynamic_start,
9653         GOMP_loop_ull_nonmonotonic_guided_next,
9654         GOMP_loop_ull_nonmonotonic_guided_start,
9655         GOMP_parallel_loop_nonmonotonic_dynamic and
9656         GOMP_parallel_loop_nonmonotonic_guided.
9657         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
9658         GOMP_parallel_loop_nonmonotonic_guided,
9659         GOMP_loop_nonmonotonic_dynamic_start,
9660         GOMP_loop_nonmonotonic_guided_start,
9661         GOMP_loop_nonmonotonic_dynamic_next,
9662         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
9663         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
9664         GOMP_loop_ull_nonmonotonic_guided_start,
9665         GOMP_loop_ull_nonmonotonic_dynamic_next,
9666         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
9667         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
9668         functions.
9669         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
9670         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
9671         Use gomp_map_val function.
9672         (gomp_target_fallback_firstprivate): New static function.
9673         (GOMP_target_41): Renamed to ...
9674         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
9675         arguments.  Move firstprivate fallback handling into a new
9676         function.
9677         (GOMP_target_data_41): Renamed to ...
9678         (GOMP_target_data_ext): ... this.
9679         (GOMP_target_update_41): Renamed to ...
9680         (GOMP_target_update_ext): ... this.
9681         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
9682         gomp_map_0len_lookup instead of gomp_map_lookup.
9683         (omp_target_is_present): Use gomp_map_0len_lookup instead of
9684         gomp_map_lookup.
9685         * testsuite/libgomp.c/target-28.c: Likewise.
9686         * testsuite/libgomp.c/monotonic-1.c: New test.
9687         * testsuite/libgomp.c/monotonic-2.c: New test.
9688         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
9689         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
9690         * testsuite/libgomp.c/pr66199-5.c: New test.
9691         * testsuite/libgomp.c/pr66199-6.c: New test.
9692         * testsuite/libgomp.c/pr66199-7.c: New test.
9693         * testsuite/libgomp.c/pr66199-8.c: New test.
9694         * testsuite/libgomp.c/pr66199-9.c: New test.
9695         * testsuite/libgomp.c/reduction-11.c: New test.
9696         * testsuite/libgomp.c/reduction-12.c: New test.
9697         * testsuite/libgomp.c/reduction-13.c: New test.
9698         * testsuite/libgomp.c/reduction-14.c: New test.
9699         * testsuite/libgomp.c/reduction-15.c: New test.
9700         * testsuite/libgomp.c/target-12.c (main): Adjust for
9701         omp_target_is_present change for one-past-last element.
9702         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
9703         the same var is both mapped and privatized.
9704         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
9705         handling of zero-length array sections.
9706         * testsuite/libgomp.c/target-28.c: New test.
9707         * testsuite/libgomp.c/target-29.c: New test.
9708         * testsuite/libgomp.c/target-30.c: New test.
9709         * testsuite/libgomp.c/target-teams-1.c: New test.
9710         * testsuite/libgomp.c++/member-6.C: New test.
9711         * testsuite/libgomp.c++/member-7.C: New test.
9712         * testsuite/libgomp.c++/monotonic-1.C: New test.
9713         * testsuite/libgomp.c++/monotonic-2.C: New test.
9714         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
9715         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
9716         * testsuite/libgomp.c++/pr66199-3.C: New test.
9717         * testsuite/libgomp.c++/pr66199-4.C: New test.
9718         * testsuite/libgomp.c++/pr66199-5.C: New test.
9719         * testsuite/libgomp.c++/pr66199-6.C: New test.
9720         * testsuite/libgomp.c++/pr66199-7.C: New test.
9721         * testsuite/libgomp.c++/pr66199-8.C: New test.
9722         * testsuite/libgomp.c++/pr66199-9.C: New test.
9723         * testsuite/libgomp.c++/reduction-11.C: New test.
9724         * testsuite/libgomp.c++/reduction-12.C: New test.
9725         * testsuite/libgomp.c++/target-13.C: New test.
9726         * testsuite/libgomp.c++/target-14.C: New test.
9727         * testsuite/libgomp.c++/target-15.C: New test.
9728         * testsuite/libgomp.c++/target-16.C: New test.
9729         * testsuite/libgomp.c++/target-17.C: New test.
9730         * testsuite/libgomp.c++/target-18.C: New test.
9731         * testsuite/libgomp.c++/target-19.C: New test.
9733 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
9735         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
9736         and reduction copy.
9737         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9738         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9739         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9740         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9741         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
9742         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9743         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
9744         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
9745         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9746         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
9747         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
9748         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
9749         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
9750         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
9752 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
9754         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
9755         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
9756         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
9757         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
9758         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
9759         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
9760         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
9761         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
9763 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
9765         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
9766         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
9767         (GOMP_OFFLOAD_openacc_parallel): Likewise.
9768         * oacc-host.c (host_openacc_exec): Likewise.
9769         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
9771 2015-11-03  Julian Brown  <julian@codesourcery.com>
9772             Thomas Schwinge  <thomas@codesourcery.com>
9774         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
9775         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
9776         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
9777         Likewise.
9778         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
9779         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
9781 2015-11-03  James Norris  <jnorris@codesourcery.com>
9783         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
9784         file.
9785         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
9786         Likewise.
9787         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
9788         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
9789         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
9790         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
9791         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
9793 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
9795         * openacc.h (enum acc_device_t): Reformat. Ensure layout
9796         compatibility.
9797         (enum acc_async_t): Reformat.
9798         (acc_on_device): Declare compatible with builtin and provide C++
9799         wrapper.
9800         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
9802 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
9803             Cesar Philippidis  <cesar@codesourcery.com>
9805         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
9806         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
9807         ... this.  Add a description of the test at the top of the file.
9808         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
9809         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
9810         ... this.  Add a description of the test at the top of the file.
9812 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
9814         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
9815         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
9816         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
9817         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
9818         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
9819         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
9821 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9823         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
9824         dimensions.
9826 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
9828         PR testsuite/68063
9829         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
9831 2015-10-27  James Norris  <jnorris@codesourcery.com>
9833         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
9834         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
9836 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
9838         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
9839         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
9841         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
9842         acc_device_nvidia usage.
9843         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
9844         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
9845         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
9847         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
9848         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
9850         PR libgomp/66518
9851         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
9853         PR libgomp/65437
9854         PR libgomp/66518
9855         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
9856         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
9858 2015-10-23  Tom de Vries  <tom@codesourcery.com>
9860         PR testsuite/68063
9861         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
9863 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
9865         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
9866         vector_length.
9867         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9869 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
9870             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
9872         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
9873         to 0 when mapnum is 0.
9875 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9877         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
9878         Cast to int from int32_t.
9880 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
9881             Aldy Hernandez  <aldyh@redhat.com>
9882             Ilya Verbin  <ilya.verbin@intel.com>
9884         * config/linux/affinity.c (omp_get_place_num_procs,
9885         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
9886         * config/linux/doacross.h: New file.
9887         * config/posix/affinity.c (omp_get_place_num_procs,
9888         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
9889         * config/posix/doacross.h: New file.
9890         * env.c: Include gomp-constants.h.
9891         (struct gomp_task_icv): Rename run_sched_modifier to
9892         run_sched_chunk_size.
9893         (gomp_max_task_priority_var): New variable.
9894         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
9895         (handle_omp_display_env): Change _OPENMP value from 201307 to
9896         201511.  Print OMP_MAX_TASK_PRIORITY.
9897         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
9898         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
9899         chunk_size and run_sched_modifier to run_sched_chunk_size.
9900         (omp_get_max_task_priority, omp_get_initial_device,
9901         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
9902         omp_get_partition_place_nums): New functions.
9903         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
9904         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
9905         to chunk_size.
9906         (omp_get_num_places_, omp_get_place_num_procs_,
9907         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
9908         omp_get_place_proc_ids_8_, omp_get_place_num_,
9909         omp_get_partition_num_places_, omp_get_partition_place_nums_,
9910         omp_get_partition_place_nums_8_, omp_get_initial_device_,
9911         omp_get_max_task_priority_): New functions.
9912         * libgomp_g.h (GOMP_loop_doacross_static_start,
9913         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
9914         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
9915         GOMP_loop_ull_doacross_dynamic_start,
9916         GOMP_loop_ull_doacross_guided_start,
9917         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
9918         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
9919         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
9920         GOMP_target_data_41, GOMP_target_update_41,
9921         GOMP_target_enter_exit_data): New prototypes.
9922         (GOMP_task): Add prototype argument.
9923         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
9924         (struct gomp_doacross_work_share): New type.
9925         (struct gomp_work_share): Add doacross field.
9926         (struct gomp_task_icv): Rename run_sched_modifier to
9927         run_sched_chunk_size.
9928         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
9929         GOMP_TASK_UNDEFERRED.  Add comments.
9930         (struct gomp_task_depend_entry): Add comments.
9931         (struct gomp_task): Likewise.
9932         (struct gomp_taskgroup): Likewise.
9933         (struct gomp_target_task): New type.
9934         (struct gomp_team): Add comment.
9935         (gomp_get_place_proc_ids_8, gomp_doacross_init,
9936         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
9937         gomp_create_target_task, gomp_target_task_fn): New prototypes.
9938         (struct target_var_desc): New type.
9939         (struct target_mem_desc): Adjust comment.  Use struct
9940         target_var_desc instead of splay_tree_key for list.
9941         (REFCOUNT_INFINITY): Define.
9942         (struct splay_tree_key_s): Remove copy_from field.
9943         (struct gomp_device_descr): Add dev2dev_func field.
9944         (enum gomp_map_vars_kind): New enum.
9945         (gomp_map_vars): Add one argument.
9946         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
9947         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
9948         omp_get_place_num_procs, omp_get_place_num_procs_,
9949         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
9950         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
9951         omp_get_place_num_, omp_get_partition_num_places,
9952         omp_get_partition_num_places_, omp_get_partition_place_nums,
9953         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
9954         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
9955         omp_target_free, omp_target_is_present, omp_target_memcpy,
9956         omp_target_memcpy_rect, omp_target_associate_ptr and
9957         omp_target_disassociate_ptr.
9958         (GOMP_4.0.2): Renamed to ...
9959         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
9960         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
9961         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
9962         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
9963         GOMP_loop_doacross_static_start, GOMP_doacross_post,
9964         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
9965         GOMP_loop_ull_doacross_guided_start,
9966         GOMP_loop_ull_doacross_runtime_start,
9967         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
9968         GOMP_doacross_ull_wait.
9969         * libgomp.texi: Document omp_get_max_task_priority.
9970         Rename modifier argument to chunk_size for omp_set_schedule and
9971         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
9972         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
9973         to run_sched_chunk_size renaming.
9974         (GOMP_loop_ordered_runtime_start): Likewise.
9975         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
9976         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
9977         GOMP_parallel_loop_runtime_start): New functions.
9978         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
9979         to run_sched_chunk_size renaming.
9980         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
9981         GOMP_loop_doacross_guided_start): New functions or aliases.
9982         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
9983         run_sched_modifier to run_sched_chunk_size renaming.
9984         (GOMP_loop_ull_ordered_runtime_start): Likewise.
9985         (gomp_loop_ull_doacross_static_start,
9986         gomp_loop_ull_doacross_dynamic_start,
9987         gomp_loop_ull_doacross_guided_start,
9988         GOMP_loop_ull_doacross_runtime_start): New functions.
9989         (GOMP_loop_ull_doacross_static_start,
9990         GOMP_loop_ull_doacross_dynamic_start,
9991         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
9992         * oacc-mem.c (acc_map_data, present_create_copy,
9993         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
9994         to gomp_map_vars.
9995         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
9996         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
9997         instead of false to gomp_map_vars.
9998         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
9999         * omp.h.in (omp_lock_hint_t): New type.
10000         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
10001         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
10002         omp_get_place_num, omp_get_partition_num_places,
10003         omp_get_partition_place_nums, omp_get_initial_device,
10004         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
10005         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
10006         omp_target_associate_ptr, omp_target_disassociate_ptr): New
10007         prototypes.
10008         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
10009         (omp_lock_hint_none, omp_lock_hint_uncontended,
10010         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
10011         omp_lock_hint_speculative): New parameters.
10012         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
10013         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
10014         omp_get_place_num, omp_get_partition_num_places,
10015         omp_get_partition_place_nums, omp_get_initial_device,
10016         omp_get_max_task_priority): New interfaces.
10017         (omp_set_schedule, omp_get_schedule): Rename modifier argument
10018         to chunk_size.
10019         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
10020         (omp_lock_hint_none, omp_lock_hint_uncontended,
10021         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
10022         omp_lock_hint_speculative): New parameters.
10023         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
10024         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
10025         omp_get_place_num, omp_get_partition_num_places,
10026         omp_get_partition_place_nums, omp_get_initial_device,
10027         omp_get_max_task_priority): New functions and subroutines.
10028         * ordered.c: Include stdarg.h and string.h.
10029         (MAX_COLLAPSED_BITS): Define.
10030         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
10031         gomp_doacross_ull_init, GOMP_doacross_ull_post,
10032         GOMP_doacross_ull_wait): New functions.
10033         * target.c: Include errno.h.
10034         (resolve_device): If device is not initialized, call
10035         gomp_init_device on it.
10036         (gomp_map_lookup): New function.
10037         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
10038         Don't bump refcount if REFCOUNT_INFINITY.  Handle
10039         GOMP_MAP_ALWAYS_TO_P.
10040         (get_kind): Rename is_openacc argument to short_mapkind.
10041         (gomp_map_pointer): Use gomp_map_lookup.
10042         (gomp_map_fields_existing): New function.
10043         (gomp_map_vars): Rename is_openacc argument to short_mapkind
10044         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
10045         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
10046         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
10047         Adjust for tgt->list changed type and copy_from living in there.
10048         (gomp_copy_from_async): Adjust for tgt->list changed type and
10049         copy_from living in there.
10050         (gomp_unmap_vars): Likewise.
10051         (gomp_update): Likewise.  Rename is_openacc argument to
10052         short_mapkind.  Don't fail if object is not mapped.
10053         (gomp_load_image_to_device): Initialize refcount to
10054         REFCOUNT_INFINITY.
10055         (gomp_target_fallback): New function.
10056         (gomp_get_target_fn_addr): Likewise.
10057         (GOMP_target): Adjust gomp_map_vars caller, use
10058         gomp_get_target_fn_addr and gomp_target_fallback.
10059         (GOMP_target_41): New function.
10060         (gomp_target_data_fallback): New function.
10061         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
10062         (GOMP_target_data_41): New function.
10063         (GOMP_target_update): Adjust gomp_update caller.
10064         (GOMP_target_update_41): New function.
10065         (gomp_exit_data, GOMP_target_enter_exit_data,
10066         gomp_target_task_fn, omp_target_alloc, omp_target_free,
10067         omp_target_is_present, omp_target_memcpy,
10068         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
10069         omp_target_associate_ptr, omp_target_disassociate_ptr,
10070         gomp_load_plugin_for_device): New functions.
10071         * task.c: Include gomp-constants.h.  Include taskloop.c
10072         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
10073         (gomp_task_handle_depend): New function.
10074         (GOMP_task): Use it.  Add priority argument.  Use
10075         gomp-constant.h constants instead of hardcoded numbers.
10076         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
10077         (gomp_create_target_task): New function.
10078         (verify_children_queue, verify_taskgroup_queue,
10079         verify_task_queue): New functions.
10080         (gomp_task_run_pre): Call verify_*_queue functions.
10081         If an upcoming tied task is about to leave the sibling or
10082         taskgroup queues in an invalid state, adjust appropriately.
10083         Remove taskgroup argument.  Add comments.
10084         (gomp_task_run_post_handle_dependers): Add comments.
10085         (gomp_task_run_post_remove_parent): Likewise.
10086         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
10087         (GOMP_taskwait): Likewise.  Add comments.
10088         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
10089         problem such that the first non parent_depends_on task does not
10090         end up at the end of the children queue.
10091         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
10092         GOMP_TASK_UNDEFERRED.
10093         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
10094         * taskloop.c: New file.
10095         * testsuite/lib/libgomp.exp
10096         (check_effective_target_offload_device_nonshared_as): New proc.
10097         * testsuite/libgomp.c/affinity-2.c: New test.
10098         * testsuite/libgomp.c/doacross-1.c: New test.
10099         * testsuite/libgomp.c/doacross-2.c: New test.
10100         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
10101         Add map clause to target.
10102         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
10103         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
10104         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
10105         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
10106         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
10107         Likewise.
10108         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
10109         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
10110         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
10111         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
10112         not defined.  Use those where needed.
10113         * testsuite/libgomp.c/for-4.c: New test.
10114         * testsuite/libgomp.c/for-5.c: New test.
10115         * testsuite/libgomp.c/for-6.c: New test.
10116         * testsuite/libgomp.c/linear-1.c: New test.
10117         * testsuite/libgomp.c/ordered-4.c: New test.
10118         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
10119         only allowed on the loop iterator.
10120         * testsuite/libgomp.c/pr66199-3.c: New test.
10121         * testsuite/libgomp.c/pr66199-4.c: New test.
10122         * testsuite/libgomp.c/reduction-7.c: New test.
10123         * testsuite/libgomp.c/reduction-8.c: New test.
10124         * testsuite/libgomp.c/reduction-9.c: New test.
10125         * testsuite/libgomp.c/reduction-10.c: New test.
10126         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
10127         map(tofrom:s).
10128         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
10129         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
10130         * testsuite/libgomp.c/target-11.c: New test.
10131         * testsuite/libgomp.c/target-12.c: New test.
10132         * testsuite/libgomp.c/target-13.c: New test.
10133         * testsuite/libgomp.c/target-14.c: New test.
10134         * testsuite/libgomp.c/target-15.c: New test.
10135         * testsuite/libgomp.c/target-16.c: New test.
10136         * testsuite/libgomp.c/target-17.c: New test.
10137         * testsuite/libgomp.c/target-18.c: New test.
10138         * testsuite/libgomp.c/target-19.c: New test.
10139         * testsuite/libgomp.c/target-20.c: New test.
10140         * testsuite/libgomp.c/target-21.c: New test.
10141         * testsuite/libgomp.c/target-22.c: New test.
10142         * testsuite/libgomp.c/target-23.c: New test.
10143         * testsuite/libgomp.c/target-24.c: New test.
10144         * testsuite/libgomp.c/target-25.c: New test.
10145         * testsuite/libgomp.c/target-26.c: New test.
10146         * testsuite/libgomp.c/target-27.c: New test.
10147         * testsuite/libgomp.c/taskloop-1.c: New test.
10148         * testsuite/libgomp.c/taskloop-2.c: New test.
10149         * testsuite/libgomp.c/taskloop-3.c: New test.
10150         * testsuite/libgomp.c/taskloop-4.c: New test.
10151         * testsuite/libgomp.c++/ctor-13.C: New test.
10152         * testsuite/libgomp.c++/doacross-1.C: New test.
10153         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
10154         Replace offload_device with offload_device_nonshared_as.
10155         * testsuite/libgomp.c++/for-12.C: New test.
10156         * testsuite/libgomp.c++/for-13.C: New test.
10157         * testsuite/libgomp.c++/for-14.C: New test.
10158         * testsuite/libgomp.c++/linear-1.C: New test.
10159         * testsuite/libgomp.c++/member-1.C: New test.
10160         * testsuite/libgomp.c++/member-2.C: New test.
10161         * testsuite/libgomp.c++/member-3.C: New test.
10162         * testsuite/libgomp.c++/member-4.C: New test.
10163         * testsuite/libgomp.c++/member-5.C: New test.
10164         * testsuite/libgomp.c++/ordered-1.C: New test.
10165         * testsuite/libgomp.c++/reduction-5.C: New test.
10166         * testsuite/libgomp.c++/reduction-6.C: New test.
10167         * testsuite/libgomp.c++/reduction-7.C: New test.
10168         * testsuite/libgomp.c++/reduction-8.C: New test.
10169         * testsuite/libgomp.c++/reduction-9.C: New test.
10170         * testsuite/libgomp.c++/reduction-10.C: New test.
10171         * testsuite/libgomp.c++/reference-1.C: New test.
10172         * testsuite/libgomp.c++/simd14.C: New test.
10173         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
10174         * testsuite/libgomp.c++/target-5.C: New test.
10175         * testsuite/libgomp.c++/target-6.C: New test.
10176         * testsuite/libgomp.c++/target-7.C: New test.
10177         * testsuite/libgomp.c++/target-8.C: New test.
10178         * testsuite/libgomp.c++/target-9.C: New test.
10179         * testsuite/libgomp.c++/target-10.C: New test.
10180         * testsuite/libgomp.c++/target-11.C: New test.
10181         * testsuite/libgomp.c++/target-12.C: New test.
10182         * testsuite/libgomp.c++/taskloop-1.C: New test.
10183         * testsuite/libgomp.c++/taskloop-2.C: New test.
10184         * testsuite/libgomp.c++/taskloop-3.C: New test.
10185         * testsuite/libgomp.c++/taskloop-4.C: New test.
10186         * testsuite/libgomp.c++/taskloop-5.C: New test.
10187         * testsuite/libgomp.c++/taskloop-6.C: New test.
10188         * testsuite/libgomp.c++/taskloop-7.C: New test.
10189         * testsuite/libgomp.c++/taskloop-8.C: New test.
10190         * testsuite/libgomp.c++/taskloop-9.C: New test.
10191         * testsuite/libgomp.fortran/affinity1.f90: New test.
10192         * testsuite/libgomp.fortran/affinity2.f90: New test.
10194 2015-10-13  Tom de Vries  <tom@codesourcery.com>
10196         PR tree-optimization/67476
10197         * testsuite/libgomp.c/autopar-3.c: New test.
10198         * testsuite/libgomp.c/autopar-4.c: New test.
10199         * testsuite/libgomp.c/autopar-5.c: New test.
10200         * testsuite/libgomp.c/autopar-6.c: New test.
10201         * testsuite/libgomp.c/autopar-7.c: New test.
10202         * testsuite/libgomp.c/autopar-8.c: New test.
10204 2015-10-12  James Norris  <jnorris@codesourcery.com>
10206         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
10207         initializer.
10209 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
10211         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
10212         using load_gcc_lib.
10214 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
10216         * oacc-ptx.h: Remove file, moving its content into...
10217         * config/nvptx/fortran.c: ... here...
10218         * config/nvptx/oacc-init.c: ..., here...
10219         * config/nvptx/oacc-parallel.c: ..., and here.
10220         * config/nvptx/openacc.f90: New file.
10221         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
10222         (link_ptx): Don't link in predefined bits of PTX code.
10224 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
10225             Bernd Schmidt <bernds@codesourcery.com>
10227         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
10228         (struct targ_ptx_obj): New.
10229         (nvptx_tdata): Move earlier, change data format.
10230         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
10231         objects.
10232         (GOMP_OFFLOAD_load_image): Adjust.
10234 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
10236         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
10237         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
10238         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
10239         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
10240         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10241         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10242         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10243         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10244         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10245         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10246         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10247         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
10248         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
10249         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10250         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10251         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10252         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
10253         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10254         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10255         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10256         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10257         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10258         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
10259         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
10260         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10261         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10262         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
10263         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10264         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10265         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
10266         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
10267         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
10268         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
10269         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
10270         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10271         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10272         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10273         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10274         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10275         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10276         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10277         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10278         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
10279         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
10280         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
10281         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
10282         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
10283         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
10284         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
10285         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
10286         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
10287         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
10288         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
10289         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
10290         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
10291         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10292         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10293         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10294         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10295         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10296         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10297         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10298         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10300 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
10302         * oacc-init.c (acc_on_device): Force optimization level.
10304 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
10306         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
10307         (cuda_errlist): Delete.
10308         (cuda_error): Reimplement.
10310 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
10312         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
10313         array.
10314         * libgomp.map (GOACC_parallel_keyed): New.
10315         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
10316         all callers.
10317         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
10318         and take keyed varargs list.  Adjust call to exec_func.
10319         (GOACC_parallel): Force host fallback.
10320         * libgomp_g.h (GOACC_parallel): Remove.
10321         (GOACC_parallel_keyed): Declare.
10322         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
10323         (struct targ_gn_descriptor): Replace name field with launch field.
10324         (nvptx_exec): Lose separate geometry args, take array.  Process
10325         dynamic dimensions and adjust.
10326         (struct nvptx_tdata): Replace fn_names field with fn_descs.
10327         (GOMP_OFFLOAD_load_image): Adjust for change in function table
10328         data.
10329         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
10330         passing.
10331         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
10332         passing.
10334 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
10336         PR libgomp/67141
10337         * oacc-int.h (goacc_host_init): Add declaration.
10338         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
10339         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
10341 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
10342             Sebastian Pop  <s.pop@samsung.com>
10344         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
10345         match o/p.
10346         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
10347         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
10348         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
10349         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
10350         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
10352 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
10354         * configure.tgt: Add missing ;; in between nvptx and rtems
10355         snippets.
10357 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10359         * config/posix/pool.h (gomp_adjust_thread_attr): New.
10360         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
10361         (gomp_thread_pool_reservoir): Add priority member.
10362         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
10363         priority.
10364         (parse_thread_pools): Likewise.
10365         * team.c (gomp_team_start): Call configuration provided
10366         gomp_adjust_thread_attr(). Destroy thread attributes if
10367         necessary.
10368         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
10370 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10372         * config/posix/pool.h: New.
10373         * config/rtems/pool.h: Likewise.
10374         * config/rtems/proc.c: Likewise.
10375         * libgomp.h (gomp_thread_destructor): Declare.
10376         * team.c: Include configuration provided "pool.h".
10377         (gomp_get_thread_pool): Define in configuration.
10378         (gomp_team_end): Call configuration defined
10379         gomp_release_thread_pool().
10381 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10383         * config/rtems/bar.c: New.
10384         * config/rtems/bar.h: Likewise.
10385         * config/rtems/mutex.c: Likewise.
10386         * config/rtems/mutex.h: Likewise.
10387         * config/rtems/sem.c: Likewise.
10388         * config/rtems/sem.h: Likewise.
10389         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
10390         <sys/lock.h> header file.
10391         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
10392         supported by Newlib.
10393         * configure: Regenerate.
10395 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10397         * team.c (gomp_new_thread_pool): Delete and move content to ...
10398         (gomp_get_thread_pool): ... new function.  Allocate and
10399         initialize thread pool on demand.
10400         (get_last_team): Use gomp_get_thread_pool().
10401         (gomp_team_start): Delete thread pool initialization.
10403 2015-09-03  Tom de Vries  <tom@codesourcery.com>
10405         PR tree-optimization/65637
10406         * testsuite/libgomp.c/autopar-2.c: New test.
10408 2015-08-29  Tom de Vries  <tom@codesourcery.com>
10410         PR tree-optimization/46193
10411         * testsuite/libgomp.c/pr46193.c: New test.
10413 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
10415         libgomp/
10416         * libgomp.map: Add 4.0.2 version.
10417         * target.c (offload_image_descr): Add version field.
10418         (gomp_load_image_to_device): Add version argument.  Adjust plugin
10419         call.  Improve load mismatch diagnostic.
10420         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
10421         call.
10422         (GOMP_offload_regster): Make stub function, move bulk to ...
10423         (GOMP_offload_register_ver): ... here.  Process version argument.
10424         (GOMP_offload_unregister): Make stub function, move bulk to ...
10425         (GOMP_offload_unregister_ver): ... here.  Process version argument.
10426         (gomp_init_device): Process version field.
10427         (gomp_unload_device): Process version field.
10428         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
10429         macros.  Check plugin version.
10430         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
10431         loader and unloader types.
10432         * oacc-host.c: Include gomp-constants.h.
10433         (host_version): New.
10434         (host_load_image, host_unload_image): Adjust.
10435         (host_dispatch): Add host_version.
10436         * plugin/plugin-nvptx.c: Include gomp-constants.h.
10437         (GOMP_OFFLOAD_version): New.
10438         (GOMP_OFFLOAD_load_image): Add version arg and check it.
10439         (GOMP_OFFLOAD_unload_image): Likewise.
10440         * plugin/plugin-host.c: Include gomp-constants.h.
10441         (GOMP_OFFLOAD_version): New.
10442         (GOMP_OFFLOAD_load_image): Add version arg.
10443         (GOMP_OFFLOAD_unload_image): Likewise.
10445 2015-08-24  Tom de Vries  <tom@codesourcery.com>
10447         PR tree-optimization/65468
10448         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
10450 2015-08-24  Tom de Vries  <tom@codesourcery.com>
10452         PR tree-optimization/65468
10453         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
10455 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
10457         PR libgomp/66761
10458         PR libgomp/67303
10459         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
10460         (gomp_iter_guided_next): Idem.
10461         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
10462         (gomp_iter_ull_guided_next): Idem.
10463         * config/linux/wait.h (do_spin): Idem.
10465 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
10467         * libgomp-plugin.h (enum offload_target_type): Remove
10468         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
10469         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
10470         * openacc.h (enum acc_device_t): Likewise.
10471         * openacc_lib.h: Likewise.
10472         * oacc-init.c (name_of_acc_device_t): Don't handle it.
10473         (acc_on_device): Just use __builtin_acc_on_device.
10474         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
10475         of acc_on_device builtin.
10476         * plugin/plugin-host.h: Remove file.
10477         * plugin/plugin-host.c: Likewise, but salvage some content into...
10478         * oacc-host.c: ... this file.
10479         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
10480         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
10481         * Makefile.in: Regenerate.
10482         * configure: Likewise.
10483         * testsuite/lib/libgomp.exp
10484         (check_effective_target_openacc_host_nonshm_selected): Remove.
10485         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
10486         ACC_DEVICE_TYPE=host_nonshm.
10487         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10488         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10489         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
10490         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
10491         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
10492         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
10494 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
10495             Jakub Jelinek  <jakub@redhat.com>
10497         * config/nvptx/affinity.c: New file.
10498         * config/nvptx/alloc.c: Likewise.
10499         * config/nvptx/bar.c: Likewise.
10500         * config/nvptx/barrier.c: Likewise.
10501         * config/nvptx/critical.c: Likewise.
10502         * config/nvptx/env.c: Likewise.
10503         * config/nvptx/error.c: Likewise.
10504         * config/nvptx/fortran.c: Likewise.
10505         * config/nvptx/iter.c: Likewise.
10506         * config/nvptx/iter_ull.c: Likewise.
10507         * config/nvptx/libgomp-plugin.c: Likewise.
10508         * config/nvptx/lock.c: Likewise.
10509         * config/nvptx/loop.c: Likewise.
10510         * config/nvptx/loop_ull.c: Likewise.
10511         * config/nvptx/mutex.c: Likewise.
10512         * config/nvptx/oacc-async.c: Likewise.
10513         * config/nvptx/oacc-cuda.c: Likewise.
10514         * config/nvptx/oacc-host.c: Likewise.
10515         * config/nvptx/oacc-init.c: Likewise.
10516         * config/nvptx/oacc-mem.c: Likewise.
10517         * config/nvptx/oacc-parallel.c: Likewise.
10518         * config/nvptx/oacc-plugin.c: Likewise.
10519         * config/nvptx/omp-lock.h: Likewise.
10520         * config/nvptx/ordered.c: Likewise.
10521         * config/nvptx/parallel.c: Likewise.
10522         * config/nvptx/proc.c: Likewise.
10523         * config/nvptx/ptrlock.c: Likewise.
10524         * config/nvptx/sections.c: Likewise.
10525         * config/nvptx/sem.c: Likewise.
10526         * config/nvptx/single.c: Likewise.
10527         * config/nvptx/splay-tree.c: Likewise.
10528         * config/nvptx/target.c: Likewise.
10529         * config/nvptx/task.c: Likewise.
10530         * config/nvptx/team.c: Likewise.
10531         * config/nvptx/time.c: Likewise.
10532         * config/nvptx/work.c: Likewise.
10533         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
10534         * configure: Regenerate.
10535         * configure.tgt (config_path): Set to "nvptx" for target
10536         nvptx*-*-*.
10538 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
10540         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
10542 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
10544         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
10545         (cuda_errlist): Constify.
10546         (errmsg):  Move into ...
10547         (cuda_error): ... here.  Make smaller.
10548         (_XSTR, _STR): Delete.
10549         (cuda_synames): Delete.
10550         (verify_device_library): Delete.
10551         (nvptx_init): Don't call it.
10553 2015-07-28  Tom de Vries  <tom@codesourcery.com>
10555         * testsuite/libgomp.c/uns-outer-4.c: New test.
10557 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
10559         * testsuite/libgomp.c/pr66714.c: New test.
10561 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10563         PR libgomp/66950
10564         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
10565         (fib_ref): New function.
10566         (fib): Correct corner cases in the recursion.
10567         (main): Replace the non-simd loop with fib_ref call.
10568         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
10569         subroutine.
10570         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
10571         for the last array element value.  Replace the non-simd loop with
10572         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
10573         of the last array element with according Fibonacci sequence element.
10574         (fib): Correct corner cases in the recursion.
10576 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
10578         * target.c (gomp_offload_image_to_device): Rename to ...
10579         (gomp_load_image_to_device): ... here.
10580         (GOMP_offload_register): Adjust call.
10581         (gomp_init_device): Likewise.
10582         (gomp_unload_image_from_device): New.  Broken out of ...
10583         (GOMP_offload_unregister): ... here.  Call it.
10584         (gomp_unload_device): New.
10585         * libgomp.h (gomp_unload_device): Declare.
10586         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
10587         mem maps.
10589 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
10591         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
10592         wait=-specific if.
10593         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
10594         !=0 condition.
10595         (goacc_waits): Move !num_waits handling to ...
10596         (GOACC_wait): ... here, the only caller that might have zero waits.
10598         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
10599         (struct ptx_image_data): Move earlier, add fns field.
10600         (struct ptx_device): Add images and image_lock fields.
10601         (ptx_images, ptx_image_lock): Delete.
10602         (nvptx_open_device): Initialize images and image_lock fields.
10603         (nvptx_close_device): Destroy image_lock.
10604         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
10605         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
10606         fields.
10608 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
10610         * target.c (GOMP_offload_register): Use int for device type arg.
10611         (GOMP_offload_unregister): Likewise.
10613         * target.c (struct_offload_image_descr): Constify host_table.
10614         (gomp_offload_image_to_device): Likewise.
10615         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
10617         * libgomp.h (gomp_device_descr): Constify target data arguments.
10618         * target.c (struct offload_image_descr): Constify target_data.
10619         (gomp_offload_image_to_device): Likewise.
10620         (GOMP_offload_register): Likewise.
10621         (GOMP_offload_unregister): Likewise.
10622         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
10623         GOMP_OFFLOAD_unload_image): Constify target data.
10624         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
10625         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
10627 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
10629         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
10630         Workaround driver library const error.
10631         (struct nvptx_tdata, nvptx_tdata_t): New.
10632         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
10633         type.
10635 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10637         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
10638         of EPS parameter from integer to real.
10639         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
10640         type of EPS parameter from integer to real.
10642 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10644         * team.c (get_last_team): New.
10645         (gomp_new_team): Recycle last non-nested team if possible.
10646         (gomp_team_end): Move team work share list free lock destruction
10647         to ...
10648         (free_team): ... here.
10650 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10652         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
10653         and ref from int to double.  Replaced their comparison with
10654         an inequality of their difference and EPS.
10655         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
10656         comparison of pri and a reference number with an inequality of their
10657         difference and EPS.
10658         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
10659         the comparison of sum and sum_ref with an inequality of their
10660         difference and EPS.
10661         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
10662         the comparison of pri and a reference number with an inequality of
10663         their difference and EPS.
10665 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10667         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
10668         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
10669         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
10670         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
10671         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
10672         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
10673         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
10674         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
10675         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
10676         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
10677         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
10678         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
10679         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
10680         variables.
10681         (vec_mult): Likewise.  Add #pragma omp taskwait.
10682         (main): Adjust caller.
10683         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
10684         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
10685         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
10686         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
10687         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
10688         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
10689         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
10690         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
10691         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
10692         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
10693         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
10694         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
10695         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
10696         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
10697         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
10698         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
10699         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
10700         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
10701         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
10702         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
10703         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
10704         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
10705         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
10706         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
10707         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
10708         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
10709         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
10710         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
10711         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
10712         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
10713         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
10714         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
10715         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
10716         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
10717         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
10718         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
10719         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
10720         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
10721         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
10722         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
10723         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
10724         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
10725         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
10726         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
10727         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
10728         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
10729         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
10730         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
10731         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
10732         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
10733         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
10734         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
10735         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
10736         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
10737         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
10738         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
10739         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
10740         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
10741         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
10742         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
10743         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
10744         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
10745         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
10746         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
10747         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
10748         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
10749         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
10750         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
10751         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
10752         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
10753         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
10754         (vec_mult): Add !$omp taskwait.
10755         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
10756         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
10757         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
10758         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
10759         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
10760         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
10761         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
10762         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
10763         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
10764         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
10765         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
10766         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
10767         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
10768         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
10769         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
10770         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
10771         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
10772         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
10773         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
10774         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
10775         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
10776         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
10777         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
10778         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
10779         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
10780         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
10781         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
10782         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
10783         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
10784         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
10785         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
10786         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
10787         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
10788         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
10789         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
10790         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
10791         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
10792         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
10793         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
10794         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
10795         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
10796         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
10797         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
10798         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
10799         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
10800         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
10801         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
10802         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
10803         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
10804         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
10805         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
10806         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
10807         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
10808         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
10809         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
10810         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
10811         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
10812         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
10813         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
10814         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
10815         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
10816         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
10817         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
10818         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
10819         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
10820         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
10821         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
10823 2015-07-10  Tom de Vries  <tom@codesourcery.com>
10825         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
10826         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
10828 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
10830         PR libgomp/65099
10831         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
10832         in a 64-bit configuration.
10833         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
10834         offloading testing if no such device is available.
10835         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10836         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10838 2015-07-08  Tom de Vries  <tom@codesourcery.com>
10840         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
10841         second call to f.
10842         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10844 2015-07-07  Tom de Vries  <tom@codesourcery.com>
10846         PR tree-optimization/66642
10847         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
10848         iteration count case.
10849         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
10850         function, factor out of ...
10851         (main): ... here.  Test low iteration count case.
10853 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10855         * libgomp.h (gomp_thread_pool): Comment last_team field.
10857 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
10859         * testsuite/libgomp.c++/pr66702-1.C: Require
10860         vect_simd_clones effective target.
10861         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
10863 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10865         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
10866         already set.  Use DEFAULT_CFLAGS in dg-runtest.
10867         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
10868         "-O2".
10870 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10872         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
10873         already set.  Use DEFAULT_CFLAGS in dg-runtest.
10874         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
10875         * testsuite/libgomp.c++/pr64824.C: Same.
10876         * testsuite/libgomp.c++/pr64868.C: Same.
10877         * testsuite/libgomp.c++/pr66199-1.C: Same.
10878         * testsuite/libgomp.c++/pr66199-2.C: Same.
10879         * testsuite/libgomp.c++/target-2.C: Same.
10880         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
10881         -std=<standard> option.
10882         * testsuite/libgomp.c++/udr-11.C: Same.
10883         * testsuite/libgomp.c++/udr-12.C: Same.
10884         * testsuite/libgomp.c++/udr-13.C: Same.
10885         * testsuite/libgomp.c++/udr-14.C: Same.
10886         * testsuite/libgomp.c++/udr-15.C: Same.
10887         * testsuite/libgomp.c++/udr-16.C: Same.
10888         * testsuite/libgomp.c++/udr-17.C: Same.
10889         * testsuite/libgomp.c++/udr-18.C: Same.
10890         * testsuite/libgomp.c++/udr-19.C: Same.
10891         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
10892         * testsuite/libgomp.c++/simd-1.C: Same.
10893         * testsuite/libgomp.c++/simd-2.C: Same.
10894         * testsuite/libgomp.c++/simd-3.C: Same.
10895         * testsuite/libgomp.c++/simd-4.C: Same.
10896         * testsuite/libgomp.c++/simd-5.C: Same.
10897         * testsuite/libgomp.c++/simd-6.C: Same.
10898         * testsuite/libgomp.c++/simd-7.C: Same.
10899         * testsuite/libgomp.c++/simd-8.C: Same.
10900         * testsuite/libgomp.c++/simd-9.C: Same.
10901         * testsuite/libgomp.c++/simd10.C: Same.
10902         * testsuite/libgomp.c++/simd11.C: Same.
10903         * testsuite/libgomp.c++/simd12.C: Same.
10904         * testsuite/libgomp.c++/simd13.C: Same.
10906 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
10908         PR middle-end/66702
10909         * testsuite/libgomp.c++/pr66702-1.C: New test.
10910         * testsuite/libgomp.c++/pr66702-2.C: New test.
10912 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10914         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
10915         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
10916         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
10917         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
10919 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10921         PR tree-optimization/66652
10922         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
10923         using restrict pointers.
10924         (main): Add arguments to calls to f.
10925         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10927 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
10929         * configure.ac: Fix check for header <sys/sysctl.h>.
10930         * configure: Regenerate.
10931         * config.h.in: Likewise.
10933 2015-06-23  Tom de Vries  <tom@codesourcery.com>
10935         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
10936         abort.
10937         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
10939 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
10941         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
10942         acc_device_nvidia.
10944         PR libgomp/66518
10945         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
10946         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10948 2015-06-15  Tom de Vries  <tom@codesourcery.com>
10950         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
10951         dg-additional-options for any remaining options.
10952         * testsuite/libgomp.c/atomic-2.c: Same.
10953         * testsuite/libgomp.c/atomic-4.c: Same.
10954         * testsuite/libgomp.c/atomic-5.c: Same.
10955         * testsuite/libgomp.c/atomic-6.c: Same.
10956         * testsuite/libgomp.c/autopar-1.c: Same.
10957         * testsuite/libgomp.c/copyin-1.c: Same.
10958         * testsuite/libgomp.c/copyin-2.c: Same.
10959         * testsuite/libgomp.c/copyin-3.c: Same.
10960         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
10961         * testsuite/libgomp.c/nestedfn-5.c: Same.
10962         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
10963         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
10964         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
10965         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10966         * testsuite/libgomp.c/pr32362-1.c: Same.
10967         * testsuite/libgomp.c/pr32362-2.c: Same.
10968         * testsuite/libgomp.c/pr32362-3.c: Same.
10969         * testsuite/libgomp.c/pr39591-1.c: Same.
10970         * testsuite/libgomp.c/pr39591-2.c: Same.
10971         * testsuite/libgomp.c/pr39591-3.c: Same.
10972         * testsuite/libgomp.c/pr58392.c: Same.
10973         * testsuite/libgomp.c/pr58756.c: Same.
10974         * testsuite/libgomp.c/simd-1.c: Same.
10975         * testsuite/libgomp.c/simd-10.c: Same.
10976         * testsuite/libgomp.c/simd-11.c: Same.
10977         * testsuite/libgomp.c/simd-12.c: Same.
10978         * testsuite/libgomp.c/simd-13.c: Same.
10979         * testsuite/libgomp.c/simd-14.c: Same.
10980         * testsuite/libgomp.c/simd-15.c: Same.
10981         * testsuite/libgomp.c/simd-2.c: Same.
10982         * testsuite/libgomp.c/simd-3.c: Same.
10983         * testsuite/libgomp.c/simd-4.c: Same.
10984         * testsuite/libgomp.c/simd-5.c: Same.
10985         * testsuite/libgomp.c/simd-6.c: Same.
10986         * testsuite/libgomp.c/simd-7.c: Same.
10987         * testsuite/libgomp.c/simd-8.c: Same.
10988         * testsuite/libgomp.c/simd-9.c: Same.
10990 2015-06-15  Tom de Vries  <tom@codesourcery.com>
10992         * testsuite/libgomp.c/pr35625.c: Fix typo.
10994 2015-06-15  Tom de Vries  <tom@codesourcery.com>
10996         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
10997         in dg-options.
10998         * testsuite/libgomp.c/atomic-3.c: Same.
10999         * testsuite/libgomp.c/debug-1.c: Same.
11000         * testsuite/libgomp.c/nqueens-1.c: Same.
11001         * testsuite/libgomp.c/pr26171.c: Same.
11002         * testsuite/libgomp.c/pr48591.c: Same.
11003         * testsuite/libgomp.c/pr64824.c: Same.
11004         * testsuite/libgomp.c/pr64868.c: Same.
11005         * testsuite/libgomp.c/pr66133.c: Same.
11006         * testsuite/libgomp.c/pr66199-1.c: Same.
11007         * testsuite/libgomp.c/pr66199-2.c: Same.
11008         * testsuite/libgomp.c/target-8.c: Same.
11010 2015-06-15  Tom de Vries  <tom@codesourcery.com>
11012         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
11013         -std={gnu99,c99}.
11014         * testsuite/libgomp.c/for-1.c: Same.
11015         * testsuite/libgomp.c/for-2.c: Same.
11016         * testsuite/libgomp.c/for-3.c: Same.
11017         * testsuite/libgomp.c/pr35625.c: Same.
11018         * testsuite/libgomp.c/pr39154.c: Same.
11019         * testsuite/libgomp.c/simd-16.c: Same.
11020         * testsuite/libgomp.c/simd-17.c: Same.
11022 2015-06-13  Tom de Vries  <tom@codesourcery.com>
11024         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
11026 2015-06-13  Tom de Vries  <tom@codesourcery.com>
11028         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
11029         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
11030         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
11031         (N): Define.
11032         (main): Use N instead of hardcoded constants.
11034 2015-06-05  Tom de Vries  <tom@codesourcery.com>
11036         merge from gomp4 branch:
11037         2015-05-28  Tom de Vries  <tom@codesourcery.com>
11039         PR tree-optimization/65443
11040         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
11041         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
11042         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
11044 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11046         * testsuite/libgomp.graphite/bounds.c: Adjust for
11047         cleanup-tree-dump removal.
11048         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
11049         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
11050         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
11051         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
11052         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
11053         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
11054         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
11055         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
11056         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
11057         * testsuite/libgomp.graphite/pr41118.c: Likewise.
11059 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
11061         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
11062         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
11063         (futex_wake) [!__x86_64__]: Ditto.
11065 2015-05-28  Julian Brown  <julian@codesourcery.com>
11067         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
11068         function comment. Only call gomp_fatal if new argument is true.
11069         (acc_dev_num_out_of_range): New function.
11070         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
11071         acc_dev_num_out_of_range as appropriate.
11072         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
11073         (acc_get_device_num, acc_set_device_num): Update calls to
11074         resolve_device.
11075         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
11076         output.
11078 2015-05-28  Julian Brown  <julian@codesourcery.com>
11080         PR libgomp/65742
11081         * oacc-init.c (plugin/plugin-host.h): Include.
11082         (acc_on_device): Check whether we're in an offloaded region for
11083         host_nonshm
11084         plugin. Don't use __builtin_acc_on_device.
11085         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
11086         nonshm_exec flag in thread-local data.
11087         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
11088         data for host_nonshm plugin.
11089         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
11090         for host_nonshm plugin.
11091         * plugin/plugin-host.h: New.
11093 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
11095         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
11097 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
11099         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
11100         Declare as int.
11101         (FUTEX_PRIVATE_FLAG): Remove L suffix.
11102         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
11103         Declare as int.
11105 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
11107         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
11109 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
11111         * target.c (gomp_map_pointer): New function abstracting out
11112         GOMP_MAP_POINTER handling.
11113         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
11114         gomp_map_pointer().
11116 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
11118         PR middle-end/66199
11119         * testsuite/libgomp.c/pr66199-1.c: New test.
11120         * testsuite/libgomp.c/pr66199-2.c: New test.
11121         * testsuite/libgomp.c++/pr66199-1.C: New test.
11122         * testsuite/libgomp.c++/pr66199-2.C: New test.
11123         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
11124         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
11126 2015-05-19  Julian Brown  <julian@codesourcery.com>
11128         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
11129         on cuInit failure.
11131 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
11133         PR middle-end/66133
11134         * testsuite/libgomp.c/pr66133.c: New test.
11136 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
11138         * Makefile.in: Regenerated with automake-1.11.6.
11139         * aclocal.m4: Likewise.
11140         * config.h.in: Likewise.
11141         * configure: Likewise.
11142         * testsuite/Makefile.in: Likewise.
11144 2015-05-08  Jason Merrill  <jason@redhat.com>
11146         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
11147         _Complex.
11149         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
11151 2015-05-06  Julian Brown  <julian@codesourcery.com>
11153         * oacc-init.c (acc_device_lock): Add explanatory comment.
11154         (resolve_device): Add comment about locking requirement.
11155         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
11156         gomp_init_device and gomp_fini_device calls.
11157         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
11158         (acc_get_device_num, acc_set_device_num): Add locking around
11159         resolve_device and gomp_init_device calls.
11161 2015-05-06  Julian Brown  <julian@codesourcery.com>
11163         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
11164         goacc_thread_lock on error paths.
11165         * oacc-mem.c (lookup_host): Remove locking from function. Note
11166         locking requirement for caller in function comment.
11167         (lookup_dev): Likewise.
11168         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
11169         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
11170         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
11171         Add locking.
11173 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
11175         PR testsuite/65205
11176         PR libgomp/65993
11177         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
11178         don't expect "0x" prefix for "%p" format specifier, don't expect
11179         "(nil)" for NULL pointer.
11180         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11181         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11182         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11183         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11184         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11185         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11186         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11187         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11188         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11189         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11190         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11191         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11192         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11193         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11194         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11195         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11196         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11197         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11198         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11199         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11200         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11201         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11202         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11203         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11204         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11205         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11206         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11207         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11208         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
11209         accurately specify what we're looking for.
11210         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11211         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11212         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11213         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11214         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11216 2015-04-30  James Norris  <jnorris@codesourcery.com>
11218         PR testsuite/65205
11219         * testsuite/lib/libgomp.exp
11220         (check_effective_target_openacc_host_selected)
11221         (check_effective_target_openacc_host_nonshm_selected): New
11222         procedures.
11223         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
11224         dg-shouldfail.
11225         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11226         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11227         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11228         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11229         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11230         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11231         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11232         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11233         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11234         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11235         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11236         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11237         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11238         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11239         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11240         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11241         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11242         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11243         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11244         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11245         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11246         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11247         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11248         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11249         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11250         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11251         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11252         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11253         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11254         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11255         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11256         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11257         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11258         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11259         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11260         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11261         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11262         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11263         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11264         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11265         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11266         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11267         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11269 2015-04-08  Julian Brown  <julian@codesourcery.com>
11271         * libgomp.h (target_mem_desc: Remove mem_map field.
11272         (acc_dispatch_t): Remove open_device_func, close_device_func,
11273         get_device_num_func, set_device_num_func, target_data members.
11274         Change create_thread_data_func argument to device number instead of
11275         generic pointer.
11276         * oacc-async.c (assert.h): Include.
11277         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
11278         (acc_wait_all, acc_wait_all_async): Use current host thread's
11279         active device, not base_dev.
11280         * oacc-cuda.c (acc_get_current_cuda_device)
11281         (acc_get_current_cuda_context, acc_get_cuda_stream)
11282         (acc_set_cuda_stream): Likewise.
11283         * oacc-host.c (host_dispatch): Don't set open_device_func,
11284         close_device_func, get_device_num_func or set_device_num_func.
11285         * oacc-init.c (base_dev, init_key): Remove.
11286         (cached_base_dev): New.
11287         (name_of_acc_device_t): New.
11288         (acc_init_1): Initialise default-numbered device, not zeroth.
11289         (acc_shutdown_1): Close all devices of a given type.
11290         (goacc_destroy_thread): Don't use base_dev.
11291         (lazy_open, lazy_init, lazy_init_and_open): Remove.
11292         (goacc_attach_host_thread_to_device): New.
11293         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
11294         (acc_get_num_devices): Don't use base_dev.
11295         (acc_set_device_type): Reimplement.
11296         (acc_get_device_type): Don't use base_dev.
11297         (acc_get_device_num): Tweak logic.
11298         (acc_set_device_num): Likewise.
11299         (acc_on_device): Use acc_get_device_type.
11300         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
11301         (goacc_lazy_initialize): Reimplement with acc_init and
11302         goacc_attach_host_thread_to_device.
11303         * oacc-int.h (goacc_thread): Add base_dev field.
11304         (base_dev): Remove extern declaration.
11305         (goacc_attach_host_thread_to_device): Add prototype.
11306         * oacc-mem.c (acc_malloc): Use current thread's device instead of
11307         base_dev.
11308         (acc_free): Likewise.
11309         (acc_memcpy_to_device): Likewise.
11310         (acc_memcpy_from_device): Likewise.
11311         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
11312         goacc_lazy_initialize (throughout).
11313         (GOACC_parallel): Use tgt_offset to locate target functions.
11314         * target.c (gomp_map_vars): Don't set tgt->mem_map.
11315         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
11316         (gomp_load_plugin_for_device): Remove open_device, close_device,
11317         get_device_num, set_device_num openacc hook initialisation. Don't set
11318         openacc.target_data.
11319         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
11320         (GOMP_OFFLOAD_openacc_close_device)
11321         (GOMP_OFFLOAD_openacc_get_device_num)
11322         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
11323         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
11324         to int.
11325         * plugin/plugin-nvptx.c (ptx_inited): Remove.
11326         (instantiated_devices, ptx_dev_lock): New.
11327         (struct ptx_image_data): New.
11328         (ptx_devices, ptx_images, ptx_image_lock): New.
11329         (fini_streams_for_device): Reorder cuStreamDestroy call.
11330         (nvptx_get_num_devices): Remove forward declaration.
11331         (nvptx_init): Change return type to bool.
11332         (nvptx_fini): Remove.
11333         (nvptx_attach_host_thread_to_device): New.
11334         (nvptx_open_device): Return struct ptx_device* instead of void*.
11335         (nvptx_close_device): Change argument type to struct ptx_device*,
11336         return type to void.
11337         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
11338         (kernel_target_data, kernel_host_table): Remove static globals.
11339         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
11340         (GOMP_OFFLOAD_init_device): Reimplement.
11341         (GOMP_OFFLOAD_fini_device): Likewise.
11342         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
11343         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
11344         (GOMP_OFFLOAD_host2dev): Use ORD argument.
11345         (GOMP_OFFLOAD_openacc_open_device)
11346         (GOMP_OFFLOAD_openacc_close_device)
11347         (GOMP_OFFLOAD_openacc_set_device_num)
11348         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
11349         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
11350         (device number).
11352         testsuite/
11353         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
11355 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
11357         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
11358         * libgomp.h (struct gomp_memory_mapping): Remove.
11359         (struct target_mem_desc): Change type of mem_map from
11360         gomp_memory_mapping * to splay_tree_s *.
11361         (struct gomp_device_descr): Remove register_image_func, get_table_func.
11362         Add load_image_func, unload_image_func.
11363         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
11364         Remove offload_regions_registered.
11365         (gomp_init_tables): Remove.
11366         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
11367         to splay_tree_s *.
11368         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
11369         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
11370         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
11371         offload_regions_registered.
11372         Initialize load_image_func, unload_image_func, mem_map.root.
11373         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
11374         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
11375         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
11376         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
11377         gomp_memory_mapping *.  Use dev's lock and splay_tree.
11378         (lookup_dev): Use dev's lock.
11379         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
11380         (acc_is_present): Likewise.
11381         (acc_map_data): Likewise.
11382         (acc_unmap_data): Likewise.  Use dev's lock.
11383         (present_create_copy): Likewise.
11384         (delete_copyout): Pass dev to lookup_host instead of mem_map.
11385         (update_dev_host): Likewise.
11386         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
11387         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
11388         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
11389         (GOMP_OFFLOAD_get_table): Remove
11390         (GOMP_OFFLOAD_load_image): New function.
11391         (GOMP_OFFLOAD_unload_image): New function.
11392         * target.c (register_lock): New mutex for offload image registration.
11393         (num_devices): Do not guard with PLUGIN_SUPPORT.
11394         (gomp_realloc_unlock): New static function.
11395         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
11396         before gomp_fatal.
11397         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
11398         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
11399         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
11400         mem_map's.
11401         (gomp_unmap_vars): Likewise.
11402         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
11403         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
11404         (gomp_offload_image_to_device): New static function.
11405         (GOMP_offload_register): Add mutex lock.
11406         Call gomp_offload_image_to_device for all initialized devices.
11407         Replace gomp_realloc with gomp_realloc_unlock.
11408         (GOMP_offload_unregister): New function.
11409         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
11410         get_table_func from the plugin with calls to init_device_func and
11411         gomp_offload_image_to_device.
11412         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
11413         to splay_tree_s *.
11414         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
11415         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
11416         (GOMP_target_data): Do not call gomp_init_tables.
11417         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
11418         (gomp_load_plugin_for_device): Replace register_image and get_table
11419         with load_image and unload_image in DLSYM ().
11420         (gomp_register_images_for_device): Remove function.
11421         (gomp_target_init): Do not initialize current_device.mem_map.*,
11422         current_device.offload_regions_registered.
11423         Remove call to gomp_register_images_for_device.
11424         Do not free offload_images and num_offload_images.
11426 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
11428         PR fortran/65597
11429         * testsuite/libgomp.fortran/pr65597.f90: New test.
11431 2015-03-27  Tom de Vries  <tom@codesourcery.com>
11433         PR testsuite/65594
11434         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
11435         (init, check): New function.
11436         (foo): Change return type to void.
11437         (main): Call init and check.
11439 2015-03-27  Tom de Vries  <tom@codesourcery.com>
11441         PR testsuite/65594
11442         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
11443         (foo): Use M for non-inner loops to scale down test-case.
11445 2015-03-25  Kai Tietz  <ktietz@redhat.com>
11447         PR libgomp/64972
11448         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
11449         (GOACC_data_start): Likewise.
11450         * target.c (gomp_map_vars): Likewise.
11452 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
11454         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
11455         hppa*-*-hpux*.
11457 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
11459         * testsuite/libgomp.c/target-10.c: New test.
11460         * testsuite/libgomp.c++/target-4.C: New test.
11462 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
11464         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
11465         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
11467 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11469         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
11470         * configure.ac (*-*-rtems*): Assume Pthread is supported.
11471         (pthread.h): Check for this header file.
11472         * configure: Regenerate.
11474 2015-02-25  Tom de Vries  <tom@codesourcery.com>
11476         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
11477         (check_reduction_op, check_reduction_macro, max, min):
11478         Declare.
11479         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
11480         function.
11481         (main): Use new functions.
11483 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
11485         * target.c (gomp_load_plugin_for_device): Use const char * instead of
11486         char * for variables holding dlerror return values.
11487         (DLSYM_OPT): Ditto.
11489 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
11491         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
11493 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
11494             Cesar Philippidis  <cesar@codesourcery.com>
11496         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
11497         GOACC_ctaid, and GOACC_nctaid routines.
11499 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
11501         PR c/64824
11502         * testsuite/libgomp.c/atomic-18.c: New test.
11503         * testsuite/libgomp.c++/atomic-16.C: New test.
11505 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
11507         PR c/64824
11508         PR c/64868
11509         * testsuite/libgomp.c/pr64824.c: New test.
11510         * testsuite/libgomp.c/pr64868.c: New test.
11511         * testsuite/libgomp.c++/pr64824.C: New test.
11512         * testsuite/libgomp.c++/pr64868.C: New test.
11514 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
11516         PR libgomp/64635
11517         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
11518         Link with -lpthread.
11519         * config/aix/plugin-suffix.h: Delete.
11521 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
11523         PR libgomp/64635
11524         * configure.tgt (*-*-aix*): Use config_path "aix posix".
11525         (*-*-darwin*): Use config_path "bsd darwin posix".
11526         (*-*-hpux*): Use config_path "hpux posix".
11527         * target.c: Add include of plugin-suffix.h and use
11528         SONAME_SUFFIX macro.
11529         * config/aix/plugin-suffix.h: New file.
11530         * config/darwin/plugin-suffix.h: New file.
11531         * config/hpux/plugin-suffix.h: New file.
11532         * config/posix/plugin-suffix.h: New file.
11534 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
11536         PR middle-end/64734
11537         * libgomp.c/pr64734.c: New test.
11539 2015-01-23  Tom de Vries  <tom@codesourcery.com>
11541         PR libgomp/64672
11542         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
11544 2015-01-23  Tom de Vries  <tom@codesourcery.com>
11546         PR libgomp/64707
11547         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
11548         dg-options.
11550 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
11552         PR libgomp/64625
11553         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
11554         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
11555         formal parameter.  Update all users.
11556         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
11557         Document unused formal parameter.
11559 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
11561         * oacc-parallel.c: Don't include <alloca.h>.
11562         (GOACC_parallel): Use gomp_alloca instead of alloca.
11564 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
11566         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
11568 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
11569             James Norris  <jnorris@codesourcery.com>
11570             Tom de Vries  <tom@codesourcery.com>
11571             Julian Brown  <julian@codesourcery.com>
11572             Cesar Philippidis  <cesar@codesourcery.com>
11573             Nathan Sidwell  <nathan@codesourcery.com>
11574             Tobias Burnus  <burnus@net-b.de>
11576         * Makefile.am (search_path): Add $(top_srcdir)/../include.
11577         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
11578         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
11579         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
11580         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
11581         Include $(top_srcdir)/plugin/Makefrag.am.
11582         (nodist_libsubinclude_HEADERS): Add openacc.h.
11583         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
11584         openacc.f90, openacc.mod, openacc_kinds.mod.
11585         (omp_lib.mod): Generalize into...
11586         (%.mod): ... this new rule.
11587         (openacc_kinds.mod, openacc.mod): New rules.
11588         * plugin/configfrag.ac: New file.
11589         * configure.ac: Move plugin/offloading support into it.  Include
11590         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
11591         * plugin/Makefrag.am: New file.
11592         * testsuite/Makefile.am (OFFLOAD_TARGETS)
11593         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
11594         export.
11595         (libgomp-test-support.exp): New rule.
11596         (all-local): Depend on it.
11597         * Makefile.in: Regenerate.
11598         * testsuite/Makefile.in: Regenerate.
11599         * config.h.in: Likewise.
11600         * configure: Likewise.
11601         * configure.tgt: Harden shell syntax.
11602         * env.c: Include "oacc-int.h".
11603         (parse_acc_device_type): New function.
11604         (gomp_debug_var, goacc_device_type, goacc_device_num): New
11605         variables.
11606         (initialize_env): Initialize those.  Call
11607         goacc_runtime_initialize.
11608         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
11609         (gomp_fatal): Call gomp_vfatal.
11610         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
11611         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
11612         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
11613         (splay_tree_node, splay_tree, splay_tree_key)
11614         (struct target_mem_desc, struct splay_tree_key_s)
11615         (struct gomp_memory_mapping, struct acc_dispatch_t)
11616         (struct gomp_device_descr, gomp_acc_insert_pointer)
11617         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
11618         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
11619         (gomp_free_memmap, gomp_fini_device): New declarations.
11620         (gomp_vdebug, gomp_debug): New macros.
11621         Include "splay-tree.h".
11622         * libgomp.map (OACC_2.0): New symbol version.  Use for
11623         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
11624         acc_set_device_type_h_, acc_get_device_type,
11625         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
11626         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
11627         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
11628         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
11629         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
11630         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
11631         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
11632         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
11633         acc_copyin_array_h_, acc_present_or_copyin,
11634         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
11635         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
11636         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
11637         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
11638         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
11639         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
11640         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
11641         acc_update_device, acc_update_device_32_h_,
11642         acc_update_device_64_h_, acc_update_device_array_h_,
11643         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
11644         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
11645         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
11646         acc_is_present_64_h_, acc_is_present_array_h_,
11647         acc_memcpy_to_device, acc_memcpy_from_device,
11648         acc_get_current_cuda_device, acc_get_current_cuda_context,
11649         acc_get_cuda_stream, acc_set_cuda_stream.
11650         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
11651         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
11652         GOACC_update, GOACC_wait, GOACC_get_thread_num,
11653         GOACC_get_num_threads.
11654         (GOMP_PLUGIN_1.0): New symbol version.  Use for
11655         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
11656         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
11657         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
11658         GOMP_PLUGIN_acc_thread.
11659         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
11660         environment variable.
11661         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
11662         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
11663         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
11664         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
11665         (splay_tree_remove): New declarations.
11666         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
11667         (splay_tree_remove, splay_tree_lookup): Move into...
11668         * splay-tree.c: ... this new file.
11669         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
11670         (splay_tree_node, splay_tree, splay_tree_key)
11671         (struct target_mem_desc, struct splay_tree_key_s)
11672         (struct gomp_device_descr): Don't declare.
11673         (num_devices_openmp): New variable.
11674         (gomp_get_num_devices ): Use it.
11675         (gomp_init_targets_once): New function.
11676         (gomp_get_num_devices ): Use it.
11677         (get_kind, gomp_copy_from_async, gomp_free_memmap)
11678         (gomp_fini_device, gomp_register_image_for_device): New functions.
11679         (gomp_map_vars): Add devaddrs parameter.
11680         (gomp_update): Add mm parameter.
11681         (gomp_init_device): Move most of it into...
11682         (gomp_init_tables): ... this new function.
11683         (gomp_register_images_for_device): Remove function.
11684         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
11685         Make them hidden instead of static.
11686         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
11687         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
11688         (GOMP_target_end_data, GOMP_target_update)
11689         (gomp_load_plugin_for_device, gomp_target_init): Update for
11690         OpenACC changes.
11691         * oacc-async.c: New file.
11692         * oacc-cuda.c: Likewise.
11693         * oacc-host.c: Likewise.
11694         * oacc-init.c: Likewise.
11695         * oacc-int.h: Likewise.
11696         * oacc-mem.c: Likewise.
11697         * oacc-parallel.c: Likewise.
11698         * oacc-plugin.c: Likewise.
11699         * oacc-plugin.h: Likewise.
11700         * oacc-ptx.h: Likewise.
11701         * openacc.f90: Likewise.
11702         * openacc.h: Likewise.
11703         * openacc_lib.h: Likewise.
11704         * plugin/plugin-host.c: Likewise.
11705         * plugin/plugin-nvptx.c: Likewise.
11706         * libgomp-plugin.c: Likewise.
11707         * libgomp-plugin.h: Likewise.
11708         * libgomp_target.h: Remove file after merging content into the
11709         former file.  Update all users.
11710         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
11711         (offload_targets_s, offload_targets_s_openacc): New variables.
11712         (check_effective_target_openacc_nvidia_accel_present)
11713         (check_effective_target_openacc_nvidia_accel_selected): New
11714         procedures.
11715         (libgomp_init): Update for OpenACC changes.
11716         * testsuite/libgomp-test-support.exp.in: New file.
11717         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
11718         * testsuite/libgomp.oacc-c/c.exp: Likewise.
11719         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
11720         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
11721         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
11722         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
11723         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
11724         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
11725         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
11726         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
11727         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
11728         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
11729         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
11730         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11731         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
11732         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
11733         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
11734         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
11735         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
11736         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
11737         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
11738         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
11739         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
11740         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
11741         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11742         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11743         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11744         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11745         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11746         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11747         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11748         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
11749         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
11750         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
11751         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
11752         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11753         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
11754         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11755         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
11756         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
11757         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
11758         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
11759         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11760         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11761         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11762         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
11763         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11764         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11765         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11766         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11767         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11768         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
11769         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11770         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11771         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11772         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11773         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11774         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11775         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11776         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
11777         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11778         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
11779         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11780         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11781         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11782         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
11783         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
11784         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11785         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11786         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11787         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
11788         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11789         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11790         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11791         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
11792         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
11793         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11794         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11795         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
11796         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
11797         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
11798         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
11799         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11800         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11801         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11802         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
11803         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
11804         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11805         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11806         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
11807         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
11808         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
11809         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
11810         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11811         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11812         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11813         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11814         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
11815         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11816         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11817         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
11818         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
11819         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
11820         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11821         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
11822         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
11823         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
11824         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
11825         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
11826         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11827         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
11828         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
11829         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11830         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
11831         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
11832         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11833         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
11834         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
11835         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
11836         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
11837         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
11838         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
11839         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
11840         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
11841         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
11842         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
11843         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
11844         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
11845         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
11846         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
11847         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
11848         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
11849         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11850         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
11851         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
11852         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11853         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11854         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11855         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11856         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
11857         Likewise.
11858         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
11859         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
11860         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
11861         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
11862         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
11863         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11864         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11865         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11866         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11867         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11868         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11869         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11870         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11871         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11872         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11873         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11874         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11875         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11876         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11877         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11878         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11879         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11880         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11881         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11882         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11883         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11884         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11885         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11886         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11887         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11888         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11889         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11890         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11891         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11892         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11893         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11894         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11895         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11896         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11897         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11898         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11899         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11900         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11901         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11902         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11903         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11904         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11905         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11906         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11907         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11908         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11909         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11910         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11911         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11912         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11913         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11914         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11915         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11916         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11917         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11919 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
11920             Julian Brown  <julian@codesourcery.com>
11921             David Malcolm  <dmalcolm@redhat.com>
11923         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
11924         to "GNU Offloading and Multi Processing Runtime Library".  Change
11925         all users.
11926         * configure: Regenerate.
11927         * libgomp.texi: Update.
11929 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
11931         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
11932         "$tgt_dir/lib32".
11933         * configure: Regenerate.
11935         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
11936         "intelmic" in $offload_targets.
11938 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
11940         Update copyright years.
11942         * libgomp.texi: Bump @copying's copyright year.
11944 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11946         * testsuite/lib/libgomp.exp: Load target-utils.exp.
11947         Move load of target-supports.exp earlier.
11949 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
11951         * testsuite/libgomp.c/target-9.c: New test.
11953 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
11955         * config.h.in: Regenerate.
11956         * configure: Regenerate.
11957         * configure.ac: Add GCC_CHECK_EMUTLS.
11958         * libgomp.h: Add check for USE_EMUTLS: this case
11959         is equal to HAVE_TLS.
11960         * team.c: Likewise.
11962 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
11964         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
11966 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
11967             Ilya Verbin  <ilya.verbin@intel.com>
11969         * testsuite/libgomp.c/target-critical-1.c: New test.
11971 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
11973         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
11974         to dg-options unless expensive testing is on.
11975         (TESTITERS): Define to N if not defined.
11976         (main): Use TESTITERS instead of N.
11977         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
11978         dg-additional-options depending on whether expensive testing is on.
11979         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
11980         Decrease N to 100000 and CHUNKSZ to 10000.
11982 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
11984         PR fortran/63938
11985         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
11986         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
11988 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
11990         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
11992 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
11994         PR bootstrap/63784
11995         * configure: Regenerated.
11997 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
11999         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
12000         vect_simd_clones effective target.
12001         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
12003 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
12005         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
12006         of 32 as block_size.
12007         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
12008         instead of 32 as block_size.
12010 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
12011             Ilya Verbin  <ilya.verbin@intel.com>
12013         * Makefile.in: Regenerate.
12014         * configure: Regenerate.
12015         * configure.ac: Set up offload_additional_options,
12016         offload_additional_lib_paths and offload_targets.
12017         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
12018         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
12019         * testsuite/Makefile.in: Regenerate.
12020         * testsuite/lib/libgomp.exp (libgomp_init): Append
12021         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
12022         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
12023         build directory to LD_LIBRARY_PATH for intelmic offload targets.
12025 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
12026             Ilya Verbin  <ilya.verbin@intel.com>
12027             Kirill Yukhin  <kirill.yukhin@intel.com>
12028             Ilya Tocar  <ilya.tocar@intel.com>
12030         * testsuite/lib/libgomp.exp
12031         (check_effective_target_offload_device): New.
12032         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
12033         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
12034         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
12035         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
12036         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
12037         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
12038         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
12039         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
12040         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
12041         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
12042         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
12043         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
12044         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
12045         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
12046         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
12047         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
12048         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
12049         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
12050         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
12051         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
12052         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
12053         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
12054         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
12055         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
12056         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
12057         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
12058         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
12059         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
12060         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
12061         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
12062         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
12063         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
12064         * testsuite/libgomp.c/target-7.c: Fix test.
12065         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
12066         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
12067         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
12068         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
12069         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
12070         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
12071         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
12072         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
12073         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
12074         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
12075         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
12076         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
12077         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
12078         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
12079         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
12080         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
12081         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
12082         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
12083         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
12084         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
12085         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
12086         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
12087         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
12088         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
12089         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
12090         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
12091         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
12092         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
12093         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
12094         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
12095         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
12097 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
12098             Ilya Verbin  <ilya.verbin@intel.com>
12099             Thomas Schwinge  <thomas@codesourcery.com>
12100             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12102         * libgomp.map (GOMP_4.0.1): New symbol version.
12103         Add GOMP_offload_register.
12104         * libgomp_target.h: New file.
12105         * splay-tree.h: New file.
12106         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
12107         (gomp_target_init): New forward declaration.
12108         (gomp_is_initialized): New static variable.
12109         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
12110         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
12111         New structures.
12112         (offload_images, num_offload_images, devices, num_devices): New static
12113         variables.
12114         (splay_compare): New static function.
12115         (struct gomp_device_descr): New structure.
12116         (gomp_get_num_devices): Call gomp_target_init.
12117         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
12118         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
12119         (GOMP_offload_register): New function.
12120         (GOMP_target): Arrange for host callback to be performed in a separate
12121         initial thread and contention group, inheriting ICVs from
12122         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
12123         Add device initialization and lookup for target function in splay tree.
12124         (GOMP_target_data): Add device initialization and call gomp_map_vars.
12125         (GOMP_target_end_data): Call gomp_unmap_vars.
12126         (GOMP_target_update): Add device initialization and call gomp_update.
12127         (gomp_load_plugin_for_device, gomp_register_images_for_device)
12128         (gomp_target_init): New static functions.
12130 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
12131             Thomas Schwinge  <thomas@codesourcery.com>
12132             Ilya Verbin  <ilya.verbin@intel.com>
12133             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12135         * config.h.in: Regenerate.
12136         * configure: Regenerate.
12137         * configure.ac: Check for libdl, required for plugin support.
12138         (PLUGIN_SUPPORT): Define if plugins are supported.
12139         (enable_offload_targets): Support Intel MIC targets.
12140         (OFFLOAD_TARGETS): List of target names suitable for offloading.
12142 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12144         PR target/63610
12145         * configure: Regenerate.
12147 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12149         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
12151 2014-10-06  Marek Polacek  <polacek@redhat.com>
12153         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
12154         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
12155         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
12156         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
12158 2014-10-06  Marek Polacek  <polacek@redhat.com>
12160         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
12161         * testsuite/libgomp.c/nqueens-1.c: Likewise.
12162         * testsuite/libgomp.c/pr26943-3.c: Likewise.
12163         * testsuite/libgomp.c/pr26943-4.c: Likewise.
12164         * testsuite/libgomp.c/pr36802-2.c: Likewise.
12165         * testsuite/libgomp.c/pr36802-3.c: Likewise.
12166         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
12167         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
12168         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
12169         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
12170         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
12171         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
12172         * testsuite/libgomp.c/omp-single-1.c: Likewise.
12173         * testsuite/libgomp.c/omp-single-2.c: Likewise.
12174         * testsuite/libgomp.c/omp_matvec.c: Likewise.
12175         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
12176         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
12177         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
12178         declarations.
12180 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
12182         PR libgomp/61200
12183         * testsuite/libgomp.c/pr61200.c: New test.
12185 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
12187         PR c++/63248
12188         * testsuite/libgomp.c++/pr63248.C: New test.
12190 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
12192         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
12193         is not zero, but taskgroup->children is NULL and there are
12194         any task->children, schedule those instead of waiting.
12195         * testsuite/libgomp.c/depend-6.c: New test.
12196         * testsuite/libgomp.c/depend-7.c: New test.
12197         * testsuite/libgomp.c/depend-8.c: New test.
12198         * testsuite/libgomp.c/depend-9.c: New test.
12199         * testsuite/libgomp.c/depend-10.c: New test.
12201 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
12203         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
12204         (struct gomp_taskwait): New type.
12205         (struct gomp_task): Add taskwait and parent_depends_on, remove
12206         in_taskwait and taskwait_sem fields.
12207         (gomp_finish_task): Don't destroy taskwait_sem.
12208         * task.c (gomp_init_task): Don't init in_taskwait, instead init
12209         taskwait and parent_depends_on.
12210         (GOMP_task): For if (0) tasks with depend clause that depend on
12211         earlier tasks don't defer them, instead call
12212         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
12213         Initialize redundant_out field, for redundant out entries just
12214         move them at the end of linked list instead of removing them
12215         completely, and set redundant_out flag instead of redundant.
12216         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
12217         that task.
12218         (gomp_task_run_post_handle_dependers): If parent is in
12219         gomp_task_maybe_wait_for_dependencies and newly runnable task
12220         is not parent_depends_on, queue it in parent->children linked
12221         list after all runnable tasks with parent_depends_on set.
12222         Adjust for addition of taskwait indirection.
12223         (gomp_task_run_post_remove_parent): If parent is in
12224         gomp_task_maybe_wait_for_dependencies and task to be removed
12225         is parent_depends_on, decrement n_depend and if needed awake
12226         parent.  Adjust for addition of taskwait indirection.
12227         (GOMP_taskwait): Adjust for addition of taskwait indirection.
12228         (gomp_task_maybe_wait_for_dependencies): New function.
12229         * testsuite/libgomp.c/depend-5.c: New test.
12231 2014-07-13  Tobias Burnus  <burnus@net-b.de>
12233         * testsuite/libgomp.fortran/pr34020.f90: Make compile
12234         with TS 18508/Fortran 2015.
12236 2014-07-06  Marek Polacek  <polacek@redhat.com>
12238         PR c/6940
12239         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
12241 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
12243         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
12244         matches regex $lang_source_re, add $lang_include_flags to options.
12245         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
12246         * testsuite/libgomp.c++/c++.exp: Likewise.
12247         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
12248         and lang_include_flags instead of adding -fintrinsic-modules-path= to
12249         ALWAYS_CFLAGS.
12250         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
12252 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
12254         * testsuite/libgomp.fortran/fortran.exp: Explain
12255         gfortran-dg-runtest usage.
12257 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
12259         * testsuite/libgomp.fortran/simd5.f90: New test.
12260         * testsuite/libgomp.fortran/simd6.f90: New test.
12261         * testsuite/libgomp.fortran/simd7.f90: New test.
12263 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
12265         * testsuite/libgomp.c/for-2.c: Define SC to static for
12266         #pragma omp for simd testing.
12267         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
12268         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
12269         SC macro.
12270         * testsuite/libgomp.c/simd-14.c: New test.
12271         * testsuite/libgomp.c/simd-15.c: New test.
12272         * testsuite/libgomp.c/simd-16.c: New test.
12273         * testsuite/libgomp.c/simd-17.c: New test.
12274         * testsuite/libgomp.c++/for-10.C: Define SC to static for
12275         #pragma omp for simd testing.
12276         * testsuite/libgomp.c++/simd10.C: New test.
12277         * testsuite/libgomp.c++/simd11.C: New test.
12278         * testsuite/libgomp.c++/simd12.C: New test.
12279         * testsuite/libgomp.c++/simd13.C: New test.
12281         * testsuite/libgomp.fortran/aligned1.f03: New test.
12282         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
12283         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
12284         tasks with !$omp parallel !$omp single.
12285         * testsuite/libgomp.fortran/target8.f90: New test.
12286         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
12287         not to use trim in the combiner, instead call elemental function.
12288         (fn): New elemental function.
12289         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
12290         Make elemental.
12291         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
12292         omp_in): Likewise.
12293         * testsuite/libgomp.fortran/udr12.f90: New test.
12294         * testsuite/libgomp.fortran/udr13.f90: New test.
12295         * testsuite/libgomp.fortran/udr14.f90: New test.
12296         * testsuite/libgomp.fortran/udr15.f90: New test.
12298 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
12300         * omp_lib.f90.in (openmp_version): Set to 201307.
12301         * omp_lib.h.in (openmp_version): Likewise.
12302         * testsuite/libgomp.c/target-8.c: New test.
12303         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
12304         and inbranch clauses.
12305         * testsuite/libgomp.fortran/depend-3.f90: New test.
12306         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
12307         openmp_version.
12308         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12309         * testsuite/libgomp.fortran/target1.f90: New test.
12310         * testsuite/libgomp.fortran/target2.f90: New test.
12311         * testsuite/libgomp.fortran/target3.f90: New test.
12312         * testsuite/libgomp.fortran/target4.f90: New test.
12313         * testsuite/libgomp.fortran/target5.f90: New test.
12314         * testsuite/libgomp.fortran/target6.f90: New test.
12315         * testsuite/libgomp.fortran/target7.f90: New test.
12317 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
12319         PR fortran/60928
12320         * testsuite/libgomp.fortran/allocatable9.f90: New test.
12321         * testsuite/libgomp.fortran/allocatable10.f90: New test.
12322         * testsuite/libgomp.fortran/allocatable11.f90: New test.
12323         * testsuite/libgomp.fortran/allocatable12.f90: New test.
12324         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
12325         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
12326         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
12327         * testsuite/libgomp.fortran/associate1.f90: New test.
12328         * testsuite/libgomp.fortran/associate2.f90: New test.
12329         * testsuite/libgomp.fortran/procptr1.f90: New test.
12331 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
12333         * testsuite/libgomp.fortran/simd1.f90: New test.
12334         * testsuite/libgomp.fortran/udr1.f90: New test.
12335         * testsuite/libgomp.fortran/udr2.f90: New test.
12336         * testsuite/libgomp.fortran/udr3.f90: New test.
12337         * testsuite/libgomp.fortran/udr4.f90: New test.
12338         * testsuite/libgomp.fortran/udr5.f90: New test.
12339         * testsuite/libgomp.fortran/udr6.f90: New test.
12340         * testsuite/libgomp.fortran/udr7.f90: New test.
12341         * testsuite/libgomp.fortran/udr8.f90: New test.
12342         * testsuite/libgomp.fortran/udr9.f90: New test.
12343         * testsuite/libgomp.fortran/udr10.f90: New test.
12344         * testsuite/libgomp.fortran/udr11.f90: New test.
12346 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
12348         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
12349         vect_simd_clones effective target.
12350         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
12352 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
12354         PR middle-end/61252
12355         * testsuite/libgomp.c++/simd-9.C: New test.
12357 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
12359         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
12360         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
12361         texts according to their @menu entry positions.
12363 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
12365         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
12366         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
12367         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
12368         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
12369         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
12370         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
12371         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
12372         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
12373         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
12374         * testsuite/libgomp.fortran/depend-1.f90: New test.
12375         * testsuite/libgomp.fortran/depend-2.f90: New test.
12376         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
12377         * testsuite/libgomp.fortran/simd1.f90: New test.
12378         * testsuite/libgomp.fortran/simd2.f90: New test.
12379         * testsuite/libgomp.fortran/simd3.f90: New test.
12380         * testsuite/libgomp.fortran/simd4.f90: New test.
12381         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
12383 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
12385         * testsuite/libgomp.c/simd-10.c: New test.
12386         * testsuite/libgomp.c/simd-11.c: New test.
12387         * testsuite/libgomp.c/simd-12.c: New test.
12388         * testsuite/libgomp.c/simd-13.c: New test.
12390 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
12392         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
12393         atomic type clauses in any order and optional comma in between.
12394         * testsuite/libgomp.c++/atomic-15.C: Likewise.
12395         * testsuite/libgomp.c/atomic-17.c: Likewise.
12397         * testsuite/libgomp.c/simd-7.c: New test.
12398         * testsuite/libgomp.c/simd-8.c: New test.
12399         * testsuite/libgomp.c/simd-9.c: New test.
12400         * testsuite/libgomp.c/loop-16.c: New test.
12402 2014-04-02  Richard Henderson  <rth@redhat.com>
12404         * config/linux/futex.h (futex_wait): Get error value from errno.
12405         (futex_wake): Likewise.
12407 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
12409         PR c++/60331
12410         * testsuite/libgomp.c++/udr-11.C: New test.
12411         * testsuite/libgomp.c++/udr-12.C: New test.
12412         * testsuite/libgomp.c++/udr-13.C: New test.
12413         * testsuite/libgomp.c++/udr-14.C: New test.
12414         * testsuite/libgomp.c++/udr-15.C: New test.
12415         * testsuite/libgomp.c++/udr-16.C: New test.
12416         * testsuite/libgomp.c++/udr-17.C: New test.
12417         * testsuite/libgomp.c++/udr-18.C: New test.
12418         * testsuite/libgomp.c++/udr-19.C: New test.
12420 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
12422         Update copyright years
12424 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
12426         * hashtab.h: Use the standard form for the copyright notice.
12428 2014-01-02  Tobias Burnus  <burnus@net-b.de>
12430         * libgomp.texi: Bump @copying's copyright year.
12432 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
12434         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
12435         alloca () with __builtin_alloca ().
12436         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
12437         * testsuite/libgomp.c/lock-3.c: Likewise.
12438         * testsuite/libgomp.c/pr48591.c: Likewise.
12440 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
12442         PR testsuite/59534
12443         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
12444         comparisons.
12446 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
12448         PR libgomp/58756
12449         * testsuite/libgomp.c/pr58756.c: New test.
12451 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
12453         PR libgomp/59467
12454         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
12455         !$omp parallel.
12457 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
12459         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
12460         ALWAYS_CFLAGS.
12461         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
12462         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
12463         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
12464         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
12465         Likewise.
12467         * libgomp_g.h: Include <stddef.h> for size_t.
12469         * libgomp.spec.in: Update comment about libgomp's dependencies.
12470         * configure.ac: Likewise.
12471         * configure: Regenerate.
12473 2013-10-16  Tobias Burnus  <burnus@net-b.de>
12475         * libgomp.texi: (Runtime Library Routines): Update references for
12476         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
12477         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
12478         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
12479         (Environment Variables): Update references for OpenMP 4.0. Add
12480         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
12481         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
12482         order.
12484 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
12486         * env.c (parse_bind_var): Initialize value to avoid
12487         (false positive) warning.
12489 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
12491         PR libgomp/58691
12492         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
12493         to check variable.
12494         (gomp_init_num_threads): Move i variable declaration into
12495         #ifdef CPU_ALLOC_SIZE block.
12496         * config/linux/affinity.c (gomp_affinity_init_level): Test
12497         gomp_places_list_len == 0 rather than gomp_places_list == 0
12498         when checking for topology reading error.
12499         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
12500         * env.c (parse_affinity): Add ignore argument, if true, don't populate
12501         gomp_places_list, only parse env var and always return false.
12502         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
12503         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
12504         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
12505         and either of these variables were parsed correctly into a places
12506         list.
12508 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
12509             Jakub Jelinek  <jakub@redhat.com>
12511         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
12512         of 5 loopfn matches.
12513         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
12514         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
12515         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
12516         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
12517         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
12518         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12519         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12520         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
12522 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
12524         * Makefile.am (omp_lib.mod): Streamline rule.
12525         * Makefile.in: Regenerate.
12527         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
12528         exceptions.
12530         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
12531         * testsuite/libgomp.fortran/lib1.f90: Likewise.
12532         * testsuite/libgomp.fortran/lib2.f: Likewise.
12533         * testsuite/libgomp.fortran/lib3.f: Likewise.
12535         * configure.ac: Typo fix.
12536         * configure: Regenerate.
12538         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
12539         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12541         * omp.h.in: Don't touch the user's namespace.
12543 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
12544             Tobias Burnus  <burnus@net-b.de>
12545             Richard Henderson  <rth@redhat.com>
12547         * target.c: New file.
12548         * Makefile.am (libgomp_la_SOURCES): Add target.c.
12549         * Makefile.in: Regenerated.
12550         * libgomp_g.h (GOMP_task): Add depend argument.
12551         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12552         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12553         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
12554         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12555         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12556         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
12557         GOMP_taskgroup_start, GOMP_taskgroup_end,
12558         GOMP_parallel_sections): New prototypes.
12559         * fortran.c (omp_is_initial_device): Add ialias_redirect.
12560         (omp_is_initial_device_): New function.
12561         (ULP, STR1, STR2, ialias_redirect): Removed.
12562         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
12563         omp_set_default_device_8_, omp_get_default_device_,
12564         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
12565         functions.
12566         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12567         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12568         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
12569         @@GOMP_4.0.
12570         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
12571         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
12572         omp_set_default_device, omp_set_default_device_,
12573         omp_set_default_device_8_, omp_get_default_device,
12574         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
12575         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
12576         omp_get_team_num_): Export @@OMP_4.0.
12577         * team.c (struct gomp_thread_start_data): Add place field.
12578         (gomp_thread_start): Clear thr->thread_pool and
12579         thr->task before returning.  Use gomp_team_barrier_wait_final
12580         instead of gomp_team_barrier_wait.  Initialize thr->place.
12581         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
12582         team_cancelled and task_queued_count fields.
12583         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
12584         before calling pthread_exit.
12585         (gomp_free_thread): No longer static.  Use
12586         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
12587         (gomp_team_start): Add flags argument.  Set
12588         thr->thread_pool->threads_busy to nthreads immediately after creating
12589         new pool.  Use gomp_managed_threads_lock instead of
12590         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
12591         (gomp_team_end): Use gomp_managed_threads_lock instead of
12592         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
12593         of gomp_team_barrier_wait.  If team->team_cancelled, call
12594         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
12595         rather than thr->ts.work_share.
12596         (initialize_team): Don't call gomp_sem_init here.
12597         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
12598         caller.
12599         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
12600         * env.c (gomp_global_icv): Add default_device_var, target_data and
12601         bind_var initializers.
12602         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12603         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12604         gomp_places_list_len): New variables.
12605         (parse_bind_var, parse_one_place, parse_places_var): New functions.
12606         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
12607         sized places.
12608         (gomp_cancel_var): New global variable.
12609         (parse_int): New function.
12610         (handle_omp_display_env): New function.
12611         (initialize_env): Use it.  Initialize default_device_var.
12612         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
12613         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
12614         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
12615         been successfully parsed (and call gomp_init_affinity in that case).
12616         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12617         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12618         omp_get_team_num, omp_is_initial_device): New functions.
12619         * libgomp.h: Include stdlib.h.
12620         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
12621         Define.
12622         (struct target_mem_desc): Forward declare.
12623         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
12624         and thread_limit_var fields.
12625         (gomp_get_num_devices): New prototype.
12626         (gomp_cancel_var): New extern decl.
12627         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
12628         team_cancelled and task_queued_count fields.  Add comments about
12629         task_{,queued_,running_}count.
12630         (gomp_cancel_kind): New enum.
12631         (gomp_work_share_end_cancel): New prototype.
12632         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
12633         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
12634         and depend fields.
12635         (struct gomp_taskgroup): New type.
12636         (struct gomp_task_depend_entry,
12637         struct gomp_dependers_vec): New types.
12638         (gomp_finish_task): Free depend_hash if non-NULL.
12639         (struct gomp_team_state): Add place_partition_off
12640         and place_partition_len fields.
12641         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12642         gomp_places_list_len): New extern decls.
12643         (struct gomp_thread): Add place field.
12644         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12645         (gomp_init_thread_affinity): Add place argument.
12646         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12647         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12648         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12649         gomp_affinity_init_level, gomp_affinity_print_place): New
12650         prototypes.
12651         (gomp_team_start): Add flags argument.
12652         (gomp_thread_limit_var, gomp_remaining_threads_count,
12653         gomp_remaining_threads_lock): Remove.
12654         (gomp_managed_threads_lock): New variable.
12655         (struct gomp_thread_pool): Add threads_busy field.
12656         (gomp_free_thread): New prototype.
12657         * task.c: Include hashtab.h.
12658         (hash_entry_type): New typedef.
12659         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
12660         (gomp_init_task): Clear dependers, depend_hash, depend_count,
12661         copy_ctors_done and taskgroup fields.
12662         (GOMP_task): Add depend argument, handle depend clauses.  If
12663         gomp_team_barrier_cancelled or if it's taskgroup has been
12664         cancelled, don't queue or start new tasks.  Set copy_ctors_done
12665         field if needed.  Initialize taskgroup field.  If copy_ctors_done
12666         and already cancelled, don't discard the task.  If taskgroup is
12667         non-NULL, enqueue the task into taskgroup queue.  Increment
12668         num_children field in taskgroup.  Increment task_queued_count.
12669         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
12670         gomp_task_run_post_remove_taskgroup): New inline functions.
12671         (gomp_task_run_post_handle_depend_hash,
12672         gomp_task_run_post_handle_dependers,
12673         gomp_task_run_post_handle_depend): New functions.
12674         (GOMP_taskwait): Use them.  If more than one new tasks
12675         have been queued, wake other threads if needed.
12676         (gomp_barrier_handle_tasks): Likewise.  If
12677         gomp_team_barrier_cancelled, don't start any new tasks, just free
12678         all tasks.
12679         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
12680         * omp_lib.f90.in
12681         (omp_proc_bind_kind, omp_proc_bind_false,
12682         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
12683         omp_proc_bind_spread): New params.
12684         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12685         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12686         omp_get_team_num, omp_is_initial_device): New interfaces.
12687         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
12688         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
12689         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
12690         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
12691         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
12692         useless use omp_lib_kinds.
12693         * omp.h.in (omp_proc_bind_t): New typedef.
12694         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12695         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12696         omp_get_team_num, omp_is_initial_device): New prototypes.
12697         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
12698         through to gomp_team_start.
12699         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
12700         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
12701         Adjust gomp_parallel_loop_start callers.
12702         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12703         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12704         GOMP_loop_end_cancel): New functions.
12705         (GOMP_parallel_end): Add ialias_redirect.
12706         * hashtab.h: New file.
12707         * libgomp.texi (Environment Variables): Minor cleanup,
12708         update section refs to OpenMP 4.0rc2.
12709         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
12710         environment variables.
12711         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
12712         team->work_shares_to_free to thr->ts.work_share before calling
12713         free_work_share.
12714         (gomp_work_share_end_cancel): New function.
12715         * config/linux/proc.c: Include errno.h.
12716         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
12717         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
12718         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
12719         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
12720         gomp_cpuset_size is sizeof (cpu_set_t).
12721         (gomp_init_num_threads): Initialize gomp_cpuset_size,
12722         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
12723         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
12724         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
12725         contain any logical CPUs.
12726         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
12727         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
12728         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
12729         pthread_getaffinity_np.  Check gomp_places_list instead of
12730         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
12731         * config/linux/bar.c (gomp_barrier_wait_end,
12732         gomp_barrier_wait_last): Use BAR_* defines.
12733         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
12734         from state where needed.  Set work_share_cancelled to 0 on last
12735         thread.
12736         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
12737         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
12738         functions.
12739         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
12740         Add cpusetsize argument.
12741         (gomp_cpuset_size, gomp_cpusetp): Declare.
12742         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
12743         (affinity_counter): Remove.
12744         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
12745         if CPU_ALLOC_SIZE isn't defined.
12746         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
12747         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
12748         bind current thread to the first place.
12749         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
12750         pthread_setaffinity_np to gomp_places_list[place].
12751         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12752         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12753         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12754         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
12755         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
12756         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
12757         (gomp_barrier_t): Add awaited_final field.
12758         (gomp_barrier_init): Initialize awaited_final field.
12759         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
12760         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
12761         prototypes.
12762         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
12763         defines.
12764         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
12765         gomp_team_barrier_cancelled): New inline functions.
12766         (gomp_barrier_last_thread,
12767         gomp_team_barrier_set_task_pending,
12768         gomp_team_barrier_clear_task_pending,
12769         gomp_team_barrier_set_waiting_for_tasks,
12770         gomp_team_barrier_waiting_for_tasks,
12771         gomp_team_barrier_done): Use BAR_* defines.
12772         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
12773         (gomp_barrier_wait_end): Use BAR_* defines.
12774         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
12775         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
12776         Use BAR_* defines.
12777         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
12778         gomp_team_barrier_cancel): New functions.
12779         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
12780         argument.
12781         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12782         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12783         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12784         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
12785         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
12786         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
12787         (gomp_barrier_t): Add cancellable field.
12788         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
12789         gomp_team_barrier_cancel): New prototypes.
12790         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
12791         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
12792         gomp_team_barrier_cancelled): New inline functions.
12793         (gomp_barrier_wait_start, gomp_barrier_last_thread,
12794         gomp_team_barrier_set_task_pending,
12795         gomp_team_barrier_clear_task_pending,
12796         gomp_team_barrier_set_waiting_for_tasks,
12797         gomp_team_barrier_waiting_for_tasks,
12798         gomp_team_barrier_done): Use BAR_* defines.
12799         * barrier.c (GOMP_barrier_cancel): New function.
12800         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
12801         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
12802         omp_proc_bind_spread): New params.
12803         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12804         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12805         omp_get_team_num, omp_is_initial_device): New externals.
12806         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
12807         New functions.
12808         (gomp_resolve_num_threads): Adjust for thread_limit now being in
12809         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
12810         infinity.  If not nested, just return minimum of max_num_threads
12811         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
12812         to the returned value.  Otherwise, don't update atomically
12813         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
12814         (GOMP_parallel_end): Adjust for thread_limit now being in
12815         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
12816         infinity.  Adjust threads_busy in the pool rather than
12817         gomp_remaining_threads_count.  Remember team->nthreads and call
12818         gomp_team_end before adjusting threads_busy, if not nested
12819         afterwards, just set it to 1 non-atomically.  Add ialias.
12820         (GOMP_parallel_start): Adjust gomp_team_start caller.
12821         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
12822         * testsuite/libgomp.c/affinity-1.c: New test.
12823         * testsuite/libgomp.c/atomic-15.c: New test.
12824         * testsuite/libgomp.c/atomic-16.c: New test.
12825         * testsuite/libgomp.c/atomic-17.c: New test.
12826         * testsuite/libgomp.c/cancel-for-1.c: New test.
12827         * testsuite/libgomp.c/cancel-for-2.c: New test.
12828         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
12829         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
12830         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
12831         * testsuite/libgomp.c/cancel-sections-1.c: New test.
12832         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
12833         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
12834         * testsuite/libgomp.c/depend-1.c: New test.
12835         * testsuite/libgomp.c/depend-2.c: New test.
12836         * testsuite/libgomp.c/depend-3.c: New test.
12837         * testsuite/libgomp.c/depend-4.c: New test.
12838         * testsuite/libgomp.c/for-1.c: New test.
12839         * testsuite/libgomp.c/for-1.h: New file.
12840         * testsuite/libgomp.c/for-2.c: New test.
12841         * testsuite/libgomp.c/for-2.h: New file.
12842         * testsuite/libgomp.c/for-3.c: New test.
12843         * testsuite/libgomp.c/pr58392.c: New test.
12844         * testsuite/libgomp.c/simd-1.c: New test.
12845         * testsuite/libgomp.c/simd-2.c: New test.
12846         * testsuite/libgomp.c/simd-3.c: New test.
12847         * testsuite/libgomp.c/simd-4.c: New test.
12848         * testsuite/libgomp.c/simd-5.c: New test.
12849         * testsuite/libgomp.c/simd-6.c: New test.
12850         * testsuite/libgomp.c/target-1.c: New test.
12851         * testsuite/libgomp.c/target-2.c: New test.
12852         * testsuite/libgomp.c/target-3.c: New test.
12853         * testsuite/libgomp.c/target-4.c: New test.
12854         * testsuite/libgomp.c/target-5.c: New test.
12855         * testsuite/libgomp.c/target-6.c: New test.
12856         * testsuite/libgomp.c/target-7.c: New test.
12857         * testsuite/libgomp.c/taskgroup-1.c: New test.
12858         * testsuite/libgomp.c/thread-limit-1.c: New test.
12859         * testsuite/libgomp.c/thread-limit-2.c: New test.
12860         * testsuite/libgomp.c/thread-limit-3.c: New test.
12861         * testsuite/libgomp.c/udr-1.c: New test.
12862         * testsuite/libgomp.c/udr-2.c: New test.
12863         * testsuite/libgomp.c/udr-3.c: New test.
12864         * testsuite/libgomp.c++/affinity-1.C: New test.
12865         * testsuite/libgomp.c++/atomic-10.C: New test.
12866         * testsuite/libgomp.c++/atomic-11.C: New test.
12867         * testsuite/libgomp.c++/atomic-12.C: New test.
12868         * testsuite/libgomp.c++/atomic-13.C: New test.
12869         * testsuite/libgomp.c++/atomic-14.C: New test.
12870         * testsuite/libgomp.c++/atomic-15.C: New test.
12871         * testsuite/libgomp.c++/cancel-for-1.C: New test.
12872         * testsuite/libgomp.c++/cancel-for-2.C: New test.
12873         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
12874         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
12875         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
12876         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
12877         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
12878         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
12879         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
12880         * testsuite/libgomp.c++/cancel-test.h: New file.
12881         * testsuite/libgomp.c++/for-9.C: New test.
12882         * testsuite/libgomp.c++/for-10.C: New test.
12883         * testsuite/libgomp.c++/for-11.C: New test.
12884         * testsuite/libgomp.c++/simd-1.C: New test.
12885         * testsuite/libgomp.c++/simd-2.C: New test.
12886         * testsuite/libgomp.c++/simd-3.C: New test.
12887         * testsuite/libgomp.c++/simd-4.C: New test.
12888         * testsuite/libgomp.c++/simd-5.C: New test.
12889         * testsuite/libgomp.c++/simd-6.C: New test.
12890         * testsuite/libgomp.c++/simd-7.C: New test.
12891         * testsuite/libgomp.c++/simd-8.C: New test.
12892         * testsuite/libgomp.c++/target-1.C: New test.
12893         * testsuite/libgomp.c++/target-2.C: New test.
12894         * testsuite/libgomp.c++/target-2-aux.cc: New file.
12895         * testsuite/libgomp.c++/target-3.C: New test.
12896         * testsuite/libgomp.c++/taskgroup-1.C: New test.
12897         * testsuite/libgomp.c++/udr-1.C: New test.
12898         * testsuite/libgomp.c++/udr-2.C: New test.
12899         * testsuite/libgomp.c++/udr-3.C: New test.
12900         * testsuite/libgomp.c++/udr-4.C: New test.
12901         * testsuite/libgomp.c++/udr-5.C: New test.
12902         * testsuite/libgomp.c++/udr-6.C: New test.
12903         * testsuite/libgomp.c++/udr-7.C: New test.
12904         * testsuite/libgomp.c++/udr-8.C: New test.
12905         * testsuite/libgomp.c++/udr-9.C: New test.
12907 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
12909         PR testsuite/57605
12910         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
12911         ALWAYS_CFLAGS.
12913 2013-09-20  Alan Modra  <amodra@gmail.com>
12915         * configure: Regenerate.
12917 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
12919         * testsuite/libgomp.c/sections-2.c: New test.
12921 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12923         * testsuite/libgomp.fortran/strassen.f90:
12924         Add dg-skip-if aarch64_tiny.
12926 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
12927             Cesar Philippidis  <cesar@codesourcery.com>
12929         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
12930         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
12931         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
12932         * testsuite/libgomp.fortran/fortran.exp: Likewise.
12933         * testsuite/libgomp.graphite/graphite.exp: Likewise.
12934         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
12935         Use dg-runtest rather than gfortran-dg-runtest.
12937 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12939         * testsuite/libgomp.c/icv-2.c: Extend current handling of
12940         Linux-based x86 systems to cover all GNU systems.
12941         * testsuite/libgomp.c/lock-3.c: Likewise.
12942         * testsuite/libgomp.c/pr48591.c: Likewise.
12944 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
12946         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
12947         GNU/Hurd, as done for Linux-based systems.
12949         * config/posix/ptrlock.h: Fix comment.
12951 2013-05-27  Tobias Burnus  <burnus@net-b.de>
12953         PR fortran/57423
12954         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
12955         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
12956         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
12957         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
12958         omp_destroy_nest_lock): Correct arguments to match the one in
12959         the OpenMP spec.
12960         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
12961         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
12962         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
12963         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
12965 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
12967         * testsuite/libgomp.c/loop-13.c: New test.
12968         * testsuite/libgomp.c/loop-14.c: New test.
12969         * testsuite/libgomp.c/loop-15.c: New test.
12970         * testsuite/libgomp.c++/loop-13.C: New test.
12971         * testsuite/libgomp.c++/loop-14.C: New test.
12972         * testsuite/libgomp.c++/loop-15.C: New test.
12974 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
12976         PR middle-end/56217
12977         * testsuite/libgomp.c++/pr56217.C: New test.
12979 2013-02-01  Alan Modra  <amodra@gmail.com>
12981         * task.c (GOMP_task, GOMP_taskwait): Comment.
12983 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
12984             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
12986         PR libgomp/55561
12987         * config/linux/wait.h (do_spin): Use atomic load for addr.
12988         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
12989         for intptr and ptrlock.
12990         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
12991         for ptrlock.
12993 2013-01-22  Alan Modra  <amodra@gmail.com>
12995         PR libgomp/51376
12996         PR libgomp/56073
12997         * task.c (GOMP_task): Revert 2011-12-09 change.
12998         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
12999         barrier to read task->children..
13000         (gomp_barrier_handle_tasks): ..and matching atomic store with
13001         release barrier here when setting parent->children to NULL.
13003 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
13004             Tobias Burnus  <burnus@net-b.de>
13006         PR driver/55884
13007         * testsuite/libgomp.fortran/fortran.exp: Use
13008         -fintrinsic-modules-path= instead of
13009         -fintrinsic-modules-path.
13011 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
13013         Update copyright years.
13015 2012-12-19  Tobias Burnus  <burnus@net-b.de>
13017         * testsuite/libgomp.fortran/fortran.exp: Set
13018         -fintrinsic-modules-path.
13020 2012-12-19  Tobias Burnus  <burnus@net-b.de>
13022         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
13023         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
13025 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
13027         PR libgomp/55411
13028         * team.c (gomp_free_thread): Decrease gomp_managed_threads
13029         if pool had any threads_used.
13031 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
13033         * testsuite/libgomp.c++/pr24455.C: Use
13034         -Wl,-undefined,dynamic_lookup on darwin.
13036 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
13038         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
13040 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
13042         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
13044 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
13045             Jim MacArthur  <jim.macarthur@arm.com>
13046             Marcus Shawcroft  <marcus.shawcroft@arm.com>
13047             Nigel Stephens  <nigel.stephens@arm.com>
13048             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13049             Richard Earnshaw  <rearnsha@arm.com>
13050             Sofiane Naci  <sofiane.naci@arm.com>
13051             Stephen Thomas  <stephen.thomas@arm.com>
13052             Tejas Belagod  <tejas.belagod@arm.com>
13053             Yufeng Zhang  <yufeng.zhang@arm.com>
13055         * configure.tgt: Add AArch64.
13057 2012-10-04  Jason Merrill  <jason@redhat.com>
13059         * testsuite/libgomp.c++/tls-init1.C: New.
13061 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
13063         * configure: Regenerated.
13065 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
13067         * config/linux/mips/futex.h (sys_futex0): Change to static
13068         function with noinline, nomips16 attributes under MIPS16. Adjust
13069         asm statement to place 'li v0,SYS_futex' immediately before
13070         syscall insn.
13072 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
13074         * libgomp.texi (Library Index): Renamed from "Index" to prevent
13075         conflict with index.html on case-insensitive file systems.
13077 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
13079         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
13080         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
13082 2012-07-02  Richard Guenther  <rguenther@suse.de>
13083             Michael Matz  <matz@suse.de>
13084             Tobias Grosser <tobias@grosser.es>
13085             Sebastian Pop <sebpop@gmail.com>
13087         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
13088         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
13089         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
13090         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
13092 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
13094         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
13096 2012-06-22  Richard Guenther  <rguenther@suse.de>
13098         Merge from graphite branch
13099         2012-01-13  Tobias Grosser  <tobias@grosser.es>
13101         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13102         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
13104 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
13106         PR middle-end/53580
13107         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
13108         use GOMP_barrier () call instead.
13109         * testsuite/libgomp.c/pr26943-3.c: Likewise.
13110         * testsuite/libgomp.c/pr26943-4.c: Likewise.
13111         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
13112         call GOMP_barrier instead.
13113         * testsuite/libgomp.fortran/vla5.f90: Likewise.
13115 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
13117         PR libgomp/52993
13118         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
13119         argument to memset call.
13121 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13123         * configure: Regenerated.
13125 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13127         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
13129 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
13131         PR bootstrap/52812
13132         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
13134 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
13136         PR middle-end/52547
13137         * testsuite/libgomp.c/pr52547.c: New test.
13139 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13141         * testsuite/lib/libgomp.exp: load fortran-modules.exp
13143 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13145         * configure.tgt (mips-sgi-irix6*): Remove.
13147 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13149         * configure.tgt (alpha*-dec-osf*): Remove.
13151         * config/osf/sem.h: Remove.
13152         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
13154 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
13156         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
13158 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13160         PR libstdc++/52188
13161         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
13162         Remove ENABLE_SYMVERS_SOL2.
13163         * configure: Regenerate.
13164         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
13165         (PREPROCESS): New variable.
13166         (libgomp.ver): New target.
13167         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
13168         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
13169         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
13170         Use libgomp.ver.
13171         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
13172         * Makefile.in: Regenerate.
13174 2012-02-14  Walter Lee  <walt@tilera.com>
13176         * configure.tgt: Handle tilegx and tilepro.
13177         * config/linux/tile/futex.h: New file.
13179 2012-02-08  Richard Guenther  <rguenther@suse.de>
13181         PR tree-optimization/46886
13182         * testsuite/libgomp.c/pr46886.c: New testcase.
13184 2012-01-25  Matthias Klose  <doko@ubuntu.com>
13186         * config/linux/arm: Remove empty directory.
13187         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
13189 2011-12-09  Alan Modra  <amodra@gmail.com>
13191         PR libgomp/51376
13192         * task.c (GOMP_taskwait): Don't access task->children outside of
13193         task_lock mutex region.
13194         (GOMP_task): Likewise.
13196 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
13198         PR libgomp/51132
13199         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
13200         to file scope.
13201         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
13202         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
13203         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
13204         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
13205         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
13207 2011-12-02  Alan Modra  <amodra@gmail.com>
13209         * config/linux/affinity.c: Use atomic rather than sync builtin.
13210         * config/linux/lock.c: Likewise.
13211         * config/linux/ptrlock.h: Likewise.
13212         * config/linux/ptrlock.c: Likewise.
13213         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
13214         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
13215         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
13216         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
13217         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
13218         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
13219         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
13220         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
13221         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
13222         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
13224 2011-11-30  Alan Modra  <amodra@gmail.com>
13226         PR libgomp/51298
13227         * config/linux/bar.h: Use atomic rather than sync builtins.
13228         * config/linux/bar.c: Likewise.  Add missing acquire
13229         synchronisation on generation field.
13230         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
13231         double unlock.
13233 2011-11-30  Alan Modra  <amodra@gmail.com>
13235         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
13236         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
13237         * config/linux/mutex.h: Use atomic rather than sync builtins.
13238         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
13239         * config/linux/omp-lock.h: Comment fix.
13240         * config/linux/arm/mutex.h: Delete.
13241         * config/linux/powerpc/mutex.h: Delete.
13242         * config/linux/ia64/mutex.h: Delete.
13243         * config/linux/mips/mutex.h: Delete.
13245 2011-11-30  Alan Modra  <amodra@gmail.com>
13247         PR libgomp/51249
13248         * config/linux/sem.h: Rewrite.
13249         * config/linux/sem.c: Rewrite.
13251 2011-11-28  Richard Henderson  <rth@redhat.com>
13253         * libgomp.h (enum memmodel): New.
13255 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
13257         * configure: Regenerate.
13259 2011-10-10  Matthias Klose  <doko@ubuntu.com>
13261         * config/posix95: Remove empty directory.
13263 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
13265         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
13267 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
13269         PR fortran/49792
13270         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
13271         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
13273 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13275         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
13277 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13279         PR libgomp/49965
13280         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
13282 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
13284         * config/linux/proc.h: New.
13285         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
13286         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
13287         (gomp_init_num_threads): Update call to cpuset_popcount.
13288         (get_num_procs): Ditto.
13289         * config/linux/affinity.c (gomp_init_affinity): Call
13290         gomp_cpuset_popcount.
13292 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
13294         PR fortran/42041
13295         PR fortran/46752
13296         * omp.h.in (omp_in_final): New prototype.
13297         * omp_lib.f90.in (omp_in_final): New interface.
13298         (omp_integer_kind, omp_logical_kind): Remove
13299         and replace all its uses in the module with 4.
13300         (openmp_version): Change to 201107.
13301         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
13302         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
13303         kind for the parameters.
13304         (omp_in_final): New external.
13305         (openmp_version): Change to 201107.
13306         * task.c (omp_in_final): New function.
13307         (gomp_init_task): Initialize final_task.
13308         (GOMP_task): Remove unused attribute from flags.  Handle final
13309         tasks.
13310         (GOMP_taskyield): New function.
13311         (omp_in_final): Return true if if (false) or final (true) task
13312         or descendant of final (true).
13313         * fortran.c (omp_in_final_): New function.
13314         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
13315         (GOMP_3.0): Export GOMP_taskyield.
13316         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
13317         variables.
13318         (parse_unsigned_long_list): New function.
13319         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
13320         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
13321         even if parse_affinity returned false.
13322         * config/linux/affinity.c (gomp_init_affinity): Handle
13323         gomp_cpu_affinity_len == 0.
13324         * libgomp_g.h (GOMP_taskyield): New prototype.
13325         * libgomp.h (struct gomp_task): Add final_task field.
13326         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
13327         * team.c (gomp_team_start): Override new task's nthreads_var icv
13328         if list form OMP_NUM_THREADS has been used and it has value for
13329         the new nesting level.
13331         * testsuite/libgomp.c/atomic-11.c: New test.
13332         * testsuite/libgomp.c/atomic-12.c: New test.
13333         * testsuite/libgomp.c/atomic-13.c: New test.
13334         * testsuite/libgomp.c/atomic-14.c: New test.
13335         * testsuite/libgomp.c/reduction-6.c: New test.
13336         * testsuite/libgomp.c/task-5.c: New test.
13337         * testsuite/libgomp.c++/atomic-2.C: New test.
13338         * testsuite/libgomp.c++/atomic-3.C: New test.
13339         * testsuite/libgomp.c++/atomic-4.C: New test.
13340         * testsuite/libgomp.c++/atomic-5.C: New test.
13341         * testsuite/libgomp.c++/atomic-6.C: New test.
13342         * testsuite/libgomp.c++/atomic-7.C: New test.
13343         * testsuite/libgomp.c++/atomic-8.C: New test.
13344         * testsuite/libgomp.c++/atomic-9.C: New test.
13345         * testsuite/libgomp.c++/task-8.C: New test.
13346         * testsuite/libgomp.c++/reduction-4.C: New test.
13347         * testsuite/libgomp.fortran/allocatable7.f90: New test.
13348         * testsuite/libgomp.fortran/allocatable8.f90: New test.
13349         * testsuite/libgomp.fortran/crayptr3.f90: New test.
13350         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
13351         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
13352         * testsuite/libgomp.fortran/pointer1.f90: New test.
13353         * testsuite/libgomp.fortran/pointer2.f90: New test.
13354         * testsuite/libgomp.fortran/task4.f90: New test.
13356 2011-08-02  Tobias Burnus  <burnus@net-b.de>
13358         * libgomp.texi: Update OpenMP spec references to 3.1.
13359         (omp_in_final,OMP_PROC_BIND): New sections.
13360         (OMP_NUM_THREADS): Document that the value can be now a list.
13361         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
13363 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
13365         * config/linux/x86/futex.h: Check __x86_64__ instead of
13366         __LP64__.
13368 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
13370         PR middle-end/49897
13371         PR middle-end/49898
13372         * testsuite/libgomp.c/pr49897-1.c: New test.
13373         * testsuite/libgomp.c/pr49897-2.c: New test.
13374         * testsuite/libgomp.c/pr49898-1.c: New test.
13375         * testsuite/libgomp.c/pr49898-2.c: New test.
13377 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
13379         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
13380         for ia32 instead of ilp32.
13382         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
13383         * testsuite/libgomp.c/atomic-6.c: Likewise.
13385 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
13387         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
13388         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
13390 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13392         PR libgomp/45351
13393         * config/osf/sem.h: New file.
13394         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
13396 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13398         PR target/49541
13399         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
13400         ldflags.
13402 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
13404         * config/linux/wait.h (do_spin): New inline, largely copied
13405         from do_wait, just don't do futex_wait here, instead return true if
13406         it should be done.
13407         (do_wait): Implement using do_spin.
13408         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
13409         to prototype.
13410         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
13411         __sync_bool_compare_and_swap, pass the oldval to
13412         gomp_mutex_lock_slow.
13413         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
13414         If all mutex contenders are just spinning and not sleeping, don't
13415         change state to 2 unnecessarily.  Optimize the loop when state has
13416         already become 2 to use just one atomic operation per loop instead
13417         of two.
13418         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
13419         to prototype.
13420         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
13421         __sync_bool_compare_and_swap, pass the oldval to
13422         gomp_mutex_lock_slow.
13424 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
13426         PR libgomp/49490
13427         * iter.c (gomp_iter_static_next): For chunk size 0
13428         only use n ceil/ nthreads size for the first
13429         n % nthreads threads in the team instead of
13430         all threads except for the last few ones which
13431         get less work or none at all.
13432         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
13433         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
13434         chunk argument, set run_sched_modifier to 0 for static
13435         resp. 1 for other kinds.  If chunk argument is 0
13436         and not static, set value to 1.
13438 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
13440         PR c++/49043
13441         * testsuite/libgomp.c++/pr49043.C: New test.
13443         PR c++/48869
13444         * testsuite/libgomp.c++/pr48869.C: New test.
13446 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
13448         PR fortran/48894
13449         * fortran.c: Include limits.h.
13450         (TO_INT): Define.
13451         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
13452         *set.
13453         (omp_set_num_threads_8_, omp_set_schedule_8_,
13454         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
13455         omp_get_team_size_8_): Use TO_INT macro.
13456         * testsuite/libgomp.fortran/pr48894.f90: New test.
13458 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
13460         PR middle-end/48591
13461         * testsuite/libgomp.c/pr48591.c: New test.
13463 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13465         PR bootstrap/48135
13466         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
13467         * configure: Regenerate.
13469 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
13471         PR fortran/47886
13472         * testsuite/libgomp.fortran/task3.f90: New test.
13474 2011-02-24  Tobias Burnus  <burnus@net-b.de>
13476         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
13478 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
13480         PR libgomp/47854
13481         * libgomp.texi (omp_get_wtime): Don't say time in the past
13482         must be Unix Epoch.
13484 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
13486         PR libgomp/47804
13487         * testsuite/libgomp.fortran/fortran.exp: Check for both
13488         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
13489         but $blddir != "", still append ${blddir}/${lang_library_path}
13490         to ld_library_path.
13492 2011-02-16  Tobias Burnus  <burnus@net-b.de>
13494         PR libgomp/47758
13495         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
13496         of libquadmath.a before adding its libpath to ldflags.
13498 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
13500         PR libgomp/47731
13501         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
13502         to FUTEX_WAIT futex syscall.
13503         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
13505 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13507         * configure: Regenerate.
13509 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
13511         PR libstdc++/36104
13512         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
13514 2011-01-16  Gerald Pfeifer
13516         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
13518 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
13520         PR fortran/46874
13521         * libgomp.fortran/allocatable6.f90: New test.
13523 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13525         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
13526         * configure: Regenerate.
13528 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
13530         PR target/40125
13531         PR lto/46695
13532         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
13533         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
13534         * aclocal.m4: Regenerate.
13535         * configure: Regenerate.
13536         * Makefile.in: Regenerate.
13537         * testsuite/Makefile.in: Regenerate.
13539 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
13541         PR fortran/46753
13542         * libgomp.fortran/pr46753.f90: New test.
13544         PR libgomp/43706
13545         * env.c (initialize_env): Default to spin count 300000
13546         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
13547         is specified.
13549         PR libgomp/45240
13550         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
13551         at the end if sync builtins aren't supported.
13553 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13555         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
13557 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13559         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
13561 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
13563         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
13565 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13566             Tobias Burnus  <burnus@net-b.de>
13568         PR fortran/32049
13569         * configure.ac:
13570         * configure: Regenerate.
13572 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13574         * config/linux/futex.h: New.
13575         * config/linux/arm/mutex.h: New.
13576         * configure.tgt (arm*-*-linux*): Add config path.
13578 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
13580         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13582 2010-09-23  Tobias Burnus  <burnus@net-b.de>
13584         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
13585         Change Fortran datatype to LOGICAL.
13586         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
13587         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
13589 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13591         * configure: Regenerate.
13593 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
13595         * libgomp.texi: Add function keyword to a couple of Fortran
13596         interfaces, use integer instead of int for Fortran.
13598 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
13600         * libgomp.texi: Fix spelling and pasto problems throughout.
13601         Adjust prototypes to match code.
13603 2010-07-24  Tobias Burnus  <burnus@net-b.de>
13605         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
13606         silence -fwhole-file warning.
13608 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13610         * configure.tgt (*-*-solaris2.[56]*): Removed.
13612 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13614         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
13615         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
13616         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
13617         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
13618         targetting solaris2*.
13619         * configure: Regenerate.
13620         * config.h.in: Regenerate.
13622         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
13623         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
13624         Add libgomp_version_dep.
13625         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
13626         versioning.
13627         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
13628         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
13629         * Makefile.in: Regenerate.
13631         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
13632         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13633         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
13634         to common block, protected by
13635         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13637 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
13639         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
13641 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
13643         PR bootstrap/43170
13644         * configure: Regenerate.
13646 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13648         PR other/43620
13649         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
13650         * configure: Regenerate.
13651         * Makefile.in: Regenerate.
13652         * testsuite/Makefile.in: Regenerate.
13654 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
13656         PR c/43893
13657         * testsuite/libgomp.c/pr43893.c: New test.
13658         * testsuite/libgomp.c++/pr43893.C: New test.
13660 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
13662         PR middle-end/43570
13663         * testsuite/libgomp.fortran/vla8.f90: New test.
13665 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
13667         PR libgomp/43706
13668         * config/linux/affinity.c (gomp_init_affinity): Decrease
13669         gomp_available_cpus if affinity mask confines the process to fewer
13670         CPUs.
13671         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
13672         non-NULL, just return gomp_available_cpus.
13674         PR libgomp/43569
13675         * sections.c (gomp_sections_init): Initialize ws->mode.
13677 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13679         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
13680         not unused bar variable.
13681         * configure: Regenerate.
13683 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13685         * Makefile.in: Regenerate.
13686         * aclocal.m4: Regenerate.
13687         * testsuite/Makefile.in: Regenerate.
13689 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
13691         PR libgomp/42942
13692         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
13693         (initialize_env): Adjust callers.
13694         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
13695         when the argument is 0.
13697         * testsuite/libgomp.c/pr42942.c: New test.
13699 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
13701         PR middle-end/42644
13702         PR middle-end/42130
13703         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13704         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
13706 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13708         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
13709         * testsuite/libgomp.c++/task-6.C: Likewise.
13711 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
13713         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
13715 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
13717         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
13718         * configure: Regenerate.
13720 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
13722         PR fortran/42866
13723         * testsuite/libgomp.fortran/allocatable5.f90: New test.
13725 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
13727         * configure.ac: Test for executability of GFORTRAN.
13728         * configure: Regenerate.
13730 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13732         * configure: Regenerate.
13734 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
13736         PR libgomp/42602
13737         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
13739 2010-01-03  Richard Guenther  <rguenther@suse.de>
13741         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
13743 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
13745         * testsuite/libgomp.graphite/pr4118.c: New.
13747 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
13749         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
13750         for darwin, protect the test with require-effective-target tls_runtime.
13751         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
13753 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
13755         PR target/41605
13756         * testsuite/lib/libgomp.exp: Provide -B options to allow for
13757         link spec %s substitutions for static libraries.
13759 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
13761         PR testsuite/42135
13762         * libgomp.graphite/force-parallel-2.c: Reduce array size.
13764 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13766         * Makefile.in: Regenerate.
13767         * configure: Regenerate.
13768         * testsuite/Makefile.in: Regenerate.
13770 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
13772         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
13773         settings for LC_ALL and LANG.
13775 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
13777         PR fortran/42162
13778         * testsuite/libgomp.fortran/pr42162.f90: New test.
13780 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
13782         PR middle-end/42029
13783         * testsuite/libgomp.c/pr42029.c: New test.
13785 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
13787         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
13788         *s.  Accept ld version without text in ()s.
13789         * configure: Regenerated.
13791 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
13793         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
13795 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13797         PR libgomp/41418
13798         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
13799         or a hyphen (happens with fortran language disabled).
13800         * configure: Regenerate.
13802 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13804         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
13805         use sed script portable to Solaris /bin/sed for extracting ld
13806         version.
13807         * configure: Regenerate.
13809 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
13811         * testsuite/libgomp.graphite/bounds.c: New test.
13813 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13815         * Makefile.am (libgomp_la_LINK): New.
13816         * Makefile.in: Regenerate.
13818 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13820         * configure.ac (AC_PREREQ): Bump to 2.64.
13822 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13824         * Makefile.am (install-html, install-pdf): Remove.
13825         * Makefile.in: Regenerate.
13827         * Makefile.in: Regenerate.
13828         * aclocal.m4: Regenerate.
13829         * config.h.in: Regenerate.
13830         * configure: Regenerate.
13831         * testsuite/Makefile.in: Regenerate.
13833 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13835         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
13836         * Makefile.in: Regenerate.
13838 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
13840         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
13841         * Makefile.in: Regenerate.
13843 2009-08-19  Tobias Burnus  <burnus@net-b.de>
13845         PR fortran/41102
13846         omp_lib.h.in: Fix -std=f95 errors.
13848 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
13850         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
13851         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
13852         * testsuite/libgomp.graphite/graphite.exp: New.
13854 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
13856         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
13857         only build.
13859 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
13861         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
13862         needed memory barrier semantics.
13863         * config/linux/mips/mutex.h: New file.
13865 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13867         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
13869 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
13871         * configure: Regenerate.
13873 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
13875         PR testsuite/40699
13876         PR testsuite/40707
13877         PR testsuite/40709
13878         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
13879         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
13880         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
13882 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
13884         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
13885         options when choosing a multilib.
13887 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
13889         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
13890         ld_library_path.  Use add_path.  Add just find_libgcc_s to
13891         ld_library_path, not every libgcc multilib directory.
13892         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
13893         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
13894         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
13895         Use add_path.
13896         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
13898 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
13900         * Makefile.am (LTLDFLAGS): Define.
13901         (LINK): Define.
13902         * Makefile.in: Regenerate.
13904 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
13906         PR fortran/39718
13907         * testsuite/libgomp.fortran/fortran.exp: Don't link with
13908         libgfortranbegin, check existence of libgfortran.a instead of
13909         libgfortranbegin.a.
13911 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
13913         PR libgomp/40174
13914         * team.c (gomp_thread_start): Destroy thr->release semaphore.
13915         (gomp_free_pool_helper): Likewise.
13917 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
13918             Jakub Jelinek  <jakub@redhat.com>
13920         PR fortran/35423
13921         * testsuite/libgomp.fortran/workshare2.f90: New test.
13923 2009-04-09  Nick Clifton  <nickc@redhat.com>
13925         * iter.c: Change copyright header to refer to version 3 of the
13926         GNU General Public License with version 3.1 of the GCC Runtime
13927         Library Exception and to point readers at the COPYING3 and
13928         COPYING3.RUNTIME files and the FSF's license web page.
13929         * alloc.c: Likewise.
13930         * barrier.c: Likewise.
13931         * config/bsd/proc.c: Likewise.
13932         * config/linux/affinity.c: Likewise.
13933         * config/linux/alpha/futex.h: Likewise.
13934         * config/linux/bar.c: Likewise.
13935         * config/linux/bar.h: Likewise.
13936         * config/linux/ia64/futex.h: Likewise.
13937         * config/linux/ia64/mutex.h: Likewise.
13938         * config/linux/lock.c: Likewise.
13939         * config/linux/mips/futex.h: Likewise.
13940         * config/linux/mutex.c: Likewise.
13941         * config/linux/mutex.h: Likewise.
13942         * config/linux/powerpc/futex.h: Likewise.
13943         * config/linux/proc.c: Likewise.
13944         * config/linux/ptrlock.c: Likewise.
13945         * config/linux/ptrlock.h: Likewise.
13946         * config/linux/s390/futex.h: Likewise.
13947         * config/linux/sem.c: Likewise.
13948         * config/linux/sem.h: Likewise.
13949         * config/linux/sparc/futex.h: Likewise.
13950         * config/linux/wait.h: Likewise.
13951         * config/linux/x86/futex.h: Likewise.
13952         * config/mingw32/proc.c: Likewise.
13953         * config/mingw32/time.c: Likewise.
13954         * config/posix/affinity.c: Likewise.
13955         * config/posix/bar.c: Likewise.
13956         * config/posix/bar.h: Likewise.
13957         * config/posix/lock.c: Likewise.
13958         * config/posix/mutex.h: Likewise.
13959         * config/posix/proc.c: Likewise.
13960         * config/posix/ptrlock.h: Likewise.
13961         * config/posix/sem.c: Likewise.
13962         * config/posix/sem.h: Likewise.
13963         * config/posix/time.c: Likewise.
13964         * config/posix95/lock.c: Likewise.
13965         * critical.c: Likewise.
13966         * env.c: Likewise.
13967         * error.c: Likewise.
13968         * fortran.c: Likewise.
13969         * iter_ull.c: Likewise.
13970         * libgomp.h: Likewise.
13971         * libgomp_f.h.in: Likewise.
13972         * libgomp_g.h: Likewise.
13973         * loop.c: Likewise.
13974         * loop_ull.c: Likewise.
13975         * omp.h.in: Likewise.
13976         * omp_lib.f90.in: Likewise.
13977         * omp_lib.h.in: Likewise.
13978         * ordered.c: Likewise.
13979         * parallel.c: Likewise.
13980         * sections.c: Likewise.
13981         * single.c: Likewise.
13982         * task.c: Likewise.
13983         * team.c: Likewise.
13984         * work.c: Likewise.
13986 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
13988         * testsuite/config/default.exp: Change copyright header to refer to
13989         version 3 of the GNU General Public License and to point readers
13990         at the COPYING3 file and the FSF's license web page.
13992 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
13994         PR middle-end/39573
13995         * libgomp.c++/pr39573.C: New test.
13997 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
13999         PR other/39591
14000         * testsuite/libgomp.c/pr39591-1.c: New test.
14001         * testsuite/libgomp.c/pr39591-2.c: New test.
14002         * testsuite/libgomp.c/pr39591-3.c: New test.
14004 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
14006         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
14007         * testsuite/libgomp.c/atomic-6.c: Ditto.
14009 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
14011         PR c/39495
14012         * testsuite/libgomp.c/loop-12.c: New test.
14013         * testsuite/libgomp.c/loop-11.c: New test.
14014         * testsuite/libgomp.c++/loop-11.C: New test.
14015         * testsuite/libgomp.c++/loop-12.C: New test.
14016         * testsuite/libgomp.c++/for-8.C: New test.
14018 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14020         * configure: Regenerate.
14022 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
14024         PR middle-end/39154
14025         * testsuite/libgomp.c/pr39154.c: New test.
14027 2009-01-30  Ian Lance Taylor  <iant@google.com>
14029         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
14030         libgomp_ld_is_gold.  Get gold version number.
14031         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
14032         * configure: Rebuild.
14034 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
14036         * testsuite/lib/libgomp.exp: Add -B option for targets that
14037         use libgfortran.a%s in their specs.
14039 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
14041         PR libgomp/38086
14042         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
14043         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
14044         HAVE_AS_SYMVER_DIRECTIVE is not defined.
14045         * configure: Regenerated.
14046         * config.h.in: Likewise.
14048 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
14050         PR c++/38650
14051         * testsuite/libgomp.c/pr38650.c: New test.
14052         * testsuite/libgomp.c++/pr38650.C: New test.
14054 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
14056         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
14058 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
14060         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
14062 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14064         * configure: Regenerate.
14066 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
14068         PR middle-end/36802
14069         * testsuite/libgomp.c/pr36802-1.c: New test.
14070         * testsuite/libgomp.c/pr36802-2.c: New test.
14071         * testsuite/libgomp.c/pr36802-3.c: New test.
14073 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
14075         PR libgomp/38270
14076         * config/linux/powerpc/mutex.h: New.
14078 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
14080         PR c++/38257
14081         * testsuite/libgomp.c++/for-7.C: New test.
14083         PR c++/38348
14084         * testsuite/libgomp.c++/for-6.C: New test.
14086 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
14088         PR testsuite/28870
14089         * testsuite/lib/libgomp.exp: Include new timeout library files.
14090         (libgomp_target_compile): Set timeout value from new proc.
14092 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
14094         PR libgomp/37938
14095         * config/linux/ia64/mutex.h: New.
14097 2008-11-04  Tobias Burnus  <burnus@net-b.de>
14099         PR libgomp/37935
14100         * libgomp.texi (Runtime library routines, environment variables):
14101         Update for OpenMP version 3.0.
14103 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
14104             Steve Ellcey  <sje@cup.hp.com>
14106         * configure: Regenerate for new libtool.
14107         * Makefile.in: Ditto.
14108         * testsuite/Makefile.in: Ditto.
14110 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
14111             Andreas Tobler  <a.tobler@schweiz.org>
14113         * config/bsd/proc.c: New file.
14114         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
14115         * configure.ac: Check for header <sys/sysctl.h>
14116         * configure: Regenerate.
14117         * config.h.in: Likewise.
14119 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
14121         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
14123 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
14125         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
14126         * Makefile.in: Regenerated.
14127         * testsuite/Makefile.in: Regenerated.
14129 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
14131         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
14132         depend on blddir if blddir exists.
14133         (libgomp_target_compile): Likewise.
14134         * testsuite/libgomp.c++/c++.exp: Likewise.
14135         * testsuite/libgomp.fortran/fortran.exp: Likewise.
14137 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14139         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
14140         Do not list GPL as Invariant Section.
14142 2008-07-28  Ilie Garbacea  <ilie@mips.com>
14143             Chao-ying Fu  <fu@mips.com>
14145         * configure.tgt: Enable futex for MIPS.
14146         * config/linux/mips/futex.h: New file.
14148 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
14150         * team.c (gomp_team_end): Free team immediately if it has
14151         just one thread.
14153 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
14155         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
14156         * testsuite/libgomp.fortran/fortran.exp: Same.
14157         * testsuite/libgomp.c/c.exp: Same.
14158         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
14159         directory to library path first.
14161 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
14163         * env.c (parse_stacksize): Add cast to avoid warning.
14164         (parse_spincount): Likewise.
14166 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
14168         * testsuite/libgomp.c/loop-10.c: New test.
14169         * libgomp.c/loop-3.c (main): Add lastprivate clause.
14170         * libgomp.c++/loop-6.C (main): Likewise.
14172         PR debug/36617
14173         * testsuite/libgomp.c/debug-1.c: New test.
14175 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
14177         * testsuite/libgomp.c/nqueens-1.c: New test.
14179         PR c++/36523
14180         * testsuite/libgomp.c++/task-7.C: New function.
14182 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14184         * configure: Regenerate.
14186 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14188         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
14189         mutex when HAVE_SYNC_BUILTINS isn't defined.
14191 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14193         * libgomp.texi (omp_test_lock): Fix typo.
14195 2008-06-12  Tobias Burnus  <burnus@net-b.de>
14197         * omp_lib.f90.in: Add "implicit none".
14199 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
14201         PR middle-end/36506
14202         * testsuite/libgomp.c/reduction-5.c: New test.
14204 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
14206         * libgomp.h (struct gomp_task): Add in_tied_task field.
14207         * task.c (gomp_init_task): Initialize it.
14208         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
14209         unconditionally.  Don't call gomp_team_barrier_wake if
14210         current task is implicit or if(0) from implicit and number of
14211         running tasks is equal to nthreads - 1.
14213         PR libgomp/36471
14214         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
14215         omp_get_team_size_8): Fix pastos.
14217         PR libgomp/36469
14218         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
14219         * configure: Regenerated.
14220         * config.h.in: Regenerated.
14221         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
14222         defined.
14224 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
14226         PR bootstrap/36452
14227         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
14228         (GOMP_loop_ull_dynamic_start): Likewise.
14229         (GOMP_loop_ull_guided_start): Likewise.
14230         (GOMP_loop_ull_ordered_static_start): Likewise.
14231         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
14232         (GOMP_loop_ull_ordered_guided_start): Likewise.
14234 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
14235             Richard Henderson  <rth@redhat.com>
14236             Ulrich Drepper  <drepper@redhat.com>
14237             Jakob Blomer  <jakob.blomer@ira.uka.de>
14239         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
14240         Substitute also OMP_*LOCK_25*.
14241         * configure: Regenerated.
14242         * config.h.in: Regenerated.
14243         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
14244         ptrlock.c and task.c.
14245         * Makefile.in: Regenerated.
14246         * testsuite/Makefile.in: Regenerated.
14247         * task.c: New file.
14248         * loop_ull.c: New file.
14249         * iter_ull.c: New file.
14250         * libgomp.h: Include ptrlock.h.
14251         (enum gomp_task_kind): New type.
14252         (struct gomp_team): Add task_lock, task_queue, task_count,
14253         task_running_count, single_count fields.  Add
14254         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
14255         Remove work_share_lock, generation_mask,
14256         oldest_live_gen, num_live_gen and init_work_shares fields, add
14257         work work_share_list_alloc, work_share_list_free and work_share_chunk
14258         fields.  Change work_shares from pointer to pointers into an array.
14259         Change ordered_release field into gomp_sem_t ** from flexible array
14260         member.  Add implicit_task and initial_work_shares fields.
14261         Move close to the end of the struct.
14262         (struct gomp_team_state): Add single_count, last_work_share,
14263         active_level and level fields, remove work_share_generation.
14264         (gomp_barrier_handle_tasks): New prototype.
14265         (gomp_finish_task): New inline function.
14266         (struct gomp_work_share): Move chunk_size, end, incr into
14267         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
14268         next_ll fields.  Reshuffle fields.  Add next_alloc,
14269         next_ws, next_free and inline_ordered_team_ids fields, change
14270         ordered_team_ids into pointer from flexible array member.
14271         Add mode field.  Put lock and next into a different cache line
14272         from most of the write-once fields.
14273         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
14274         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
14275         gomp_iter_ull_guided_next): New prototypes.
14276         (gomp_new_icv): New prototype.
14277         (struct gomp_thread): Add thread_pool and task fields.
14278         (struct gomp_thread_pool): New type.
14279         (gomp_new_team): New prototype.
14280         (gomp_team_start): Change type of last argument.
14281         (gomp_new_work_share): Removed.
14282         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
14283         (gomp_work_share_init_done): New static inline.
14284         (gomp_throttled_spin_count_var, gomp_available_cpus,
14285         gomp_managed_threads): New extern decls.
14286         (gomp_init_task): New prototype.
14287         (gomp_spin_count_var): New extern var decl.
14288         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
14289         or no alias support, or if not PIC.
14290         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
14291         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
14292         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
14293         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
14294         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
14295         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
14296         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
14297         gomp_test_nest_lock_25): New prototypes.
14298         (omp_lock_symver, strong_alias): Define.
14299         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
14300         decls.
14301         (gomp_end_task): New.
14302         (struct gomp_task_icv, gomp_global_icv): New.
14303         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
14304         (struct gomp_task): New.
14305         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
14306         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
14307         (gomp_icv): New.
14308         (gomp_schedule_type): Reorder enum to match
14309         omp_sched_t.
14310         * team.c (struct gomp_thread_start_data): Add thread_pool and task
14311         fields.
14312         (gomp_thread_start): Add gomp_team_barrier_wait call.
14313         For non-nested case remove clearing of docked thread thr fields.
14314         Use pool fields instead of global gomp_* variables.  Use
14315         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
14316         Create tasks for each member thread.
14317         (free_team): Only destroy team barrier, task_lock here and free it.
14318         (gomp_free_thread): Free last_team if non-NULL.
14319         (gomp_team_end): Call gomp_team_barrier_wait instead of
14320         gomp_barrier_wait.  For nested case call one extra
14321         gomp_barrier_wait.  Move here some destruction from free_team.
14322         Call free_team on pool->last_team if any, rather than freeing
14323         current team.  Destroy work_share_list_free_lock ifndef
14324         HAVE_SYNC_BUILTINS.
14325         (gomp_new_icv): New function.
14326         (gomp_threads, gomp_threads_size, gomp_threads_used,
14327         gomp_threads_dock): Removed.
14328         (gomp_thread_destructor): New variable.
14329         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
14330         functions.
14331         (gomp_team_start): Create new pool if current thread doesn't have
14332         one.  Use pool fields instead of global gomp_* variables.
14333         Initialize thread_pool field for new threads.  Clear single_count.
14334         Change last argument from ws to team, don't create
14335         new team, set ts.work_share to &team->work_shares[0] and clear
14336         ts.last_work_share.  Don't clear ts.work_share_generation.
14337         If number of threads changed, adjust atomically gomp_managed_threads.
14338         Use gomp_init_task instead of gomp_new_task,
14339         set thr->task to the corresponding implicit_task array entry.
14340         Create tasks for each member thread.  Initialize ts.level.
14341         (initialize_team): Call pthread_key_create on
14342         gomp_thread_destructor.
14343         (team_destructor): New function.
14344         (new_team): Removed.
14345         (gomp_new_team): New function.
14346         (free_team): Free gomp_work_share blocks chained through next_alloc,
14347         instead of freeing work_shares and destroying work_share_lock.
14348         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
14349         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
14350         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
14351         of gomp_barrier_wait.
14352         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
14353         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
14354         if gomp_work_share_start returned true.  Don't unlock ws->lock.
14355         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
14356         of gomp_barrier_wait.
14357         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
14358         gomp_work_share_init_done if gomp_work_share_start returned true.
14359         Don't unlock ws->lock.
14360         * work.c: Include stddef.h.
14361         (free_work_share): Use work_share_list_free_lock instead
14362         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
14363         Call gomp_fini_work_share and then either free ws if orphaned, or
14364         put it into work_share_list_free list of the current team.
14365         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
14366         functions.
14367         (gomp_work_share_start, gomp_work_share_end,
14368         gomp_work_share_end_nowait): Rewritten.
14369         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
14370         (openmp_version): Set to 200805.
14371         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
14372         omp_sched_guided, omp_sched_auto): New parameters.
14373         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14374         omp_set_max_active_levels, omp_get_max_active_levels,
14375         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14376         omp_get_active_level): New interfaces.
14377         * omp_lib.h.in (openmp_version): Set to 200805.
14378         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
14379         omp_sched_guided, omp_sched_auto): New parameters.
14380         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14381         omp_set_max_active_levels, omp_get_max_active_levels,
14382         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14383         omp_get_active_level): New externals.
14384         * loop.c: Include limits.h.
14385         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
14386         GFS_AUTO.
14387         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
14388         Likewise.  Use gomp_icv.
14389         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
14390         ts.static_trip here.
14391         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
14392         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
14393         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
14394         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
14395         don't unlock ws->lock, otherwise lock it.
14396         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
14397         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
14398         (gomp_parallel_loop_start): Call gomp_new_team instead of
14399         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
14400         Adjust gomp_team_start caller.  Pass 0 as second argument to
14401         gomp_resolve_num_threads.
14402         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
14403         If adding ws->chunk_size nthreads + 1 times after end won't
14404         overflow, set ws->mode to 1.
14405         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
14406         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
14407         GOMP_loop_ull_ordered_static_start,
14408         GOMP_loop_ull_ordered_dynamic_start,
14409         GOMP_loop_ull_ordered_guided_start,
14410         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
14411         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
14412         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
14413         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
14414         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
14415         prototypes.
14416         * libgomp.map: Export lock routines also @@OMP_2.0.
14417         (GOMP_loop_ordered_dynamic_first,
14418         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
14419         GOMP_loop_ordered_static_first): Remove.
14420         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
14421         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
14422         GOMP_loop_ull_ordered_dynamic_next,
14423         GOMP_loop_ull_ordered_dynamic_start,
14424         GOMP_loop_ull_ordered_guided_next,
14425         GOMP_loop_ull_ordered_guided_start,
14426         GOMP_loop_ull_ordered_runtime_next,
14427         GOMP_loop_ull_ordered_runtime_start,
14428         GOMP_loop_ull_ordered_static_next,
14429         GOMP_loop_ull_ordered_static_start,
14430         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
14431         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
14432         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
14433         (omp_set_schedule, omp_get_schedule,
14434         omp_get_thread_limit, omp_set_max_active_levels,
14435         omp_get_max_active_levels, omp_get_level,
14436         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
14437         omp_set_schedule_, omp_set_schedule_8_,
14438         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
14439         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
14440         omp_get_max_active_levels_, omp_get_level_,
14441         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
14442         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
14443         New exports @@OMP_3.0.
14444         * omp.h.in (omp_sched_t): New type.
14445         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14446         omp_set_max_active_levels, omp_get_max_active_levels,
14447         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14448         omp_get_active_level): New prototypes.
14449         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
14450         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
14451         gomp_thread_limit_var, gomp_remaining_threads_count,
14452         gomp_remaining_threads_lock): New variables.
14453         (parse_spincount): New function.
14454         (initialize_env): Call gomp_init_num_threads unconditionally.
14455         Initialize gomp_available_cpus.  Call parse_spincount,
14456         initialize gomp_{,throttled_}spin_count_var
14457         depending on presence and value of OMP_WAIT_POLICY and
14458         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
14459         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
14460         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
14461         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
14462         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
14463         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
14464         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
14465         (gomp_global_icv): New.
14466         (parse_schedule): Use it.  Parse "auto".
14467         (omp_set_num_threads): Use gomp_icv.
14468         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
14469         Likewise.
14470         (omp_get_max_threads): Move from parallel.c.
14471         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14472         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
14473         add ialias.
14474         (parse_stacksize, parse_wait_policy): New functions.
14475         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
14476         both wrappers for compatibility and new locks.
14477         (omp_set_schedule, omp_get_schedule,
14478         omp_get_thread_limit, omp_set_max_active_levels,
14479         omp_get_max_active_levels, omp_get_level,
14480         omp_get_ancestor_thread_num, omp_get_team_size,
14481         omp_get_active_level): New ialias_redirect.
14482         (omp_set_schedule_, omp_set_schedule_8_,
14483         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
14484         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
14485         omp_get_max_active_levels_, omp_get_level_,
14486         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
14487         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
14488         New functions.
14489         * parallel.c: Include limits.h.
14490         (gomp_resolve_num_threads): Add count argument.  Rewritten.
14491         (GOMP_parallel_start): Call gomp_new_team and pass that as last
14492         argument to gomp_team_start.  Pass 0 as second argument to
14493         gomp_resolve_num_threads.
14494         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
14495         if gomp_thread_limit_var != ULONG_MAX.
14496         (omp_in_parallel): Implement using ts.active_level.
14497         (omp_get_max_threads): Move to env.c.
14498         (omp_get_level, omp_get_ancestor_thread_num,
14499         omp_get_team_size, omp_get_active_level): New functions,
14500         add ialias.
14501         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
14502         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
14503         gomp_iter_dynamic_next instead of the _locked variant and don't take
14504         lock around it, otherwise acquire it before calling
14505         gomp_iter_dynamic_next_locked.
14506         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
14507         gomp_iter_dynamic_next instead of the _locked variant and don't take
14508         lock around it.
14509         (GOMP_parallel_sections_start): Call gomp_new_team instead of
14510         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
14511         Adjust gomp_team_start caller.  Pass count as second argument to
14512         gomp_resolve_num_threads, don't adjust num_threads after the call.
14513         Use gomp_icv.
14514         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
14515         ws->chunk_size by incr.
14516         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
14517         code.
14518         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
14519         types.
14520         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
14521         (omp_check_defines): Check even the compat defines.
14522         * config/linux/ptrlock.c: New file.
14523         * config/linux/ptrlock.h: New file.
14524         * config/linux/wait.h: New file.
14525         * config/posix/ptrlock.c: New file.
14526         * config/posix/ptrlock.h: New file.
14527         * config/linux/bar.h (gomp_team_barrier_wait,
14528         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14529         (gomp_team_barrier_set_task_pending,
14530         gomp_team_barrier_clear_task_pending,
14531         gomp_team_barrier_set_waiting_for_tasks,
14532         gomp_team_barrier_waiting_for_tasks,
14533         gomp_team_barrier_done): New inlines.
14534         (gomp_barrier_t): Rewritten.
14535         (gomp_barrier_state_t): New typedef.
14536         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
14537         gomp_barrier_wait_start): Rewritten.
14538         (gomp_barrier_wait_end): Change second argument to
14539         gomp_barrier_state_t.
14540         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14541         inlines.
14542         * config/linux/bar.c: Include wait.h instead of libgomp.h and
14543         futex.h.
14544         (gomp_barrier_wait_end): Rewritten.
14545         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14546         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
14547         * config/posix/bar.h (gomp_barrier_t): Add generation field.
14548         (gomp_barrier_state_t): New typedef.
14549         (gomp_team_barrier_wait,
14550         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14551         (gomp_barrier_wait_start): Or all but low 2 bits from generation
14552         into the return value.  Return gomp_barrier_state_t.
14553         (gomp_team_barrier_set_task_pending,
14554         gomp_team_barrier_clear_task_pending,
14555         gomp_team_barrier_set_waiting_for_tasks,
14556         gomp_team_barrier_waiting_for_tasks,
14557         gomp_team_barrier_done): New inlines.
14558         (gomp_barrier_wait_end): Change second argument to
14559         gomp_barrier_state_t.
14560         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14561         inlines.
14562         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
14563         (gomp_barrier_wait_end): Change second argument to
14564         gomp_barrier_state_t.
14565         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14566         gomp_team_barrier_wake): New functions.
14567         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
14568         futex.h.
14569         (gomp_futex_wake, gomp_futex_wait): New variables.
14570         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
14571         * config/linux/lock.c: Rewrite to make locks task owned,
14572         for backwards compatibility provide the old entrypoints
14573         if symbol versioning.  Include wait.h instead of libgomp.h and
14574         futex.h.
14575         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
14576         * config/posix95/lock.c: Rewrite to make locks task owned,
14577         for backwards compatibility provide the old entrypoints
14578         if symbol versioning.
14579         * config/posix/lock.c: Rewrite to make locks task owned,
14580         for backwards compatibility provide the old entrypoints
14581         if symbol versioning.
14582         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
14583         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
14584         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
14585         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14586         (sys_futex0): Return error code.
14587         (futex_wake, futex_wait): If ENOSYS was returned, clear
14588         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14589         (cpu_relax, atomic_write_barrier): New static inlines.
14590         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14591         (futex_wake, futex_wait): If ENOSYS was returned, clear
14592         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14593         (cpu_relax, atomic_write_barrier): New static inlines.
14594         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14595         (sys_futex0): Return error code.
14596         (futex_wake, futex_wait): If ENOSYS was returned, clear
14597         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14598         (cpu_relax, atomic_write_barrier): New static inlines.
14599         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14600         (sys_futex0): Return error code.
14601         (futex_wake, futex_wait): If ENOSYS was returned, clear
14602         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14603         (cpu_relax, atomic_write_barrier): New static inlines.
14604         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14605         (sys_futex0): Return error code.
14606         (futex_wake, futex_wait): If ENOSYS was returned, clear
14607         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14608         (cpu_relax, atomic_write_barrier): New static inlines.
14609         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14610         (sys_futex0): Return error code.
14611         (futex_wake, futex_wait): If ENOSYS was returned, clear
14612         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14613         (cpu_relax, atomic_write_barrier): New static inlines.
14614         * config/linux/sem.c: Include wait.h instead of libgomp.h and
14615         futex.h.
14616         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
14617         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
14618         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
14619         types.
14620         (omp_nest_lock_t): Change owner into void *, add lock field.
14621         * config/posix95/omp-lock.h: Include semaphore.h.
14622         (omp_lock_25_t, omp_nest_lock_25_t): New types.
14623         (omp_lock_t): Use sem_t instead of mutex if semaphores
14624         aren't broken.
14625         (omp_nest_lock_t): Likewise.  Change owner to void *.
14626         * config/posix/omp-lock.h: Include semaphore.h.
14627         (omp_lock_25_t, omp_nest_lock_25_t): New types.
14628         (omp_lock_t): Use sem_t instead of mutex if semaphores
14629         aren't broken.
14630         (omp_nest_lock_t): Likewise.  Add owner field.
14632 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
14634         * testsuite/libgomp.c/collapse-1.c: New test.
14635         * testsuite/libgomp.c/collapse-2.c: New test.
14636         * testsuite/libgomp.c/collapse-3.c: New test.
14637         * testsuite/libgomp.c/icv-1.c: New test.
14638         * testsuite/libgomp.c/icv-2.c: New test.
14639         * testsuite/libgomp.c/lib-2.c: New test.
14640         * testsuite/libgomp.c/lock-1.c: New test.
14641         * testsuite/libgomp.c/lock-2.c: New test.
14642         * testsuite/libgomp.c/lock-3.c: New test.
14643         * testsuite/libgomp.c/loop-4.c: New test.
14644         * testsuite/libgomp.c/loop-5.c: New test.
14645         * testsuite/libgomp.c/loop-6.c: New test.
14646         * testsuite/libgomp.c/loop-7.c: New test.
14647         * testsuite/libgomp.c/loop-8.c: New test.
14648         * testsuite/libgomp.c/loop-9.c: New test.
14649         * testsuite/libgomp.c/nested-3.c: New test.
14650         * testsuite/libgomp.c/nestedfn-6.c: New test.
14651         * testsuite/libgomp.c/sort-1.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++/c++.exp: Add libstdc++-v3 build includes
14657         to C++ testsuite default compiler options.
14658         * testsuite/libgomp.c++/collapse-1.C: New test.
14659         * testsuite/libgomp.c++/collapse-2.C: New test.
14660         * testsuite/libgomp.c++/ctor-10.C: New test.
14661         * testsuite/libgomp.c++/for-1.C: New test.
14662         * testsuite/libgomp.c++/for-2.C: New test.
14663         * testsuite/libgomp.c++/for-3.C: New test.
14664         * testsuite/libgomp.c++/for-4.C: New test.
14665         * testsuite/libgomp.c++/for-5.C: New test.
14666         * testsuite/libgomp.c++/loop-8.C: New test.
14667         * testsuite/libgomp.c++/loop-9.C: New test.
14668         * testsuite/libgomp.c++/loop-10.C: New test.
14669         * testsuite/libgomp.c++/task-1.C: New test.
14670         * testsuite/libgomp.c++/task-2.C: New test.
14671         * testsuite/libgomp.c++/task-3.C: New test.
14672         * testsuite/libgomp.c++/task-4.C: New test.
14673         * testsuite/libgomp.c++/task-5.C: New test.
14674         * testsuite/libgomp.c++/task-6.C: New test.
14675         * testsuite/libgomp.fortran/allocatable1.f90: New test.
14676         * testsuite/libgomp.fortran/allocatable2.f90: New test.
14677         * testsuite/libgomp.fortran/allocatable3.f90: New test.
14678         * testsuite/libgomp.fortran/allocatable4.f90: New test.
14679         * testsuite/libgomp.fortran/collapse1.f90: New test.
14680         * testsuite/libgomp.fortran/collapse2.f90: New test.
14681         * testsuite/libgomp.fortran/collapse3.f90: New test.
14682         * testsuite/libgomp.fortran/collapse4.f90: New test.
14683         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
14684         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
14685         * testsuite/libgomp.fortran/lib4.f90: New test.
14686         * testsuite/libgomp.fortran/lock-1.f90: New test.
14687         * testsuite/libgomp.fortran/lock-2.f90: New test.
14688         * testsuite/libgomp.fortran/nested1.f90: New test.
14689         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
14690         * testsuite/libgomp.fortran/strassen.f90: New test.
14691         * testsuite/libgomp.fortran/tabs1.f90: New test.
14692         * testsuite/libgomp.fortran/tabs2.f: New test.
14693         * testsuite/libgomp.fortran/task1.f90: New test.
14694         * testsuite/libgomp.fortran/task2.f90: New test.
14695         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
14696         * testsuite/libgomp.fortran/vla5.f90: Likewise.
14697         * testsuite/libgomp.c/pr26943-2.c: Likewise.
14698         * testsuite/libgomp.c/pr26943-3.c: Likewise.
14699         * testsuite/libgomp.c/pr26943-4.c: Likewise.
14701 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
14703         PR c++/36308
14704         * testsuite/libgomp.c++/ctor-11.C: New test.
14705         * testsuite/libgomp.c++/ctor-12.C: New test.
14707 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
14709         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
14711 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
14713         PR middle-end/36106
14714         * testsuite/libgomp.c/atomic-5.c: New test.
14715         * testsuite/libgomp.c/atomic-6.c: New test.
14716         * testsuite/libgomp.c/autopar-1.c: New test.
14718 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14720         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
14721         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
14722         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
14723         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
14724         * configure: Regenerate.
14725         * Makefile.in, testsuite/Makefile.in: Likewise.
14727 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
14729         PR bootstrap/35457
14730         * aclocal.m4: Regenerate.
14731         * configure: Regenerate.
14733 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
14735         PR middle-end/35611
14736         * testsuite/libgomp.c/atomic-4.c: New test.
14738         PR libgomp/35625
14739         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
14740         (gomp_iter_guided_next): Likewise.
14741         * testsuite/libgomp.c/pr35625.c: New test.
14743 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14745         * aclocal.m4: Regenerate.
14746         * configure: Likewise.
14747         * Makefile.in: Likewise.
14748         * testsuite/Makefile.in: Likewise.
14750 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
14752         PR middle-end/35185
14753         * testsuite/libgomp.c++/pr35185.C: New test.
14755 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
14757         PR middle-end/35549
14758         * testsuite/libgomp.c/pr35549.c: New test.
14760 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
14762         * testsuite/libgomp.c/atomic-3.c: New test.
14764 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14766         PR fortran/33197
14767         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
14768         .F08 file suffixes.
14770 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
14772         PR libgomp/33131
14773         * configure.ac: Add ACX_HEADER_STRING.
14774         * env.c: Include strings.h.
14775         * aclocal.m4: Regenerate.
14776         * config.h.in: Regenerate.
14777         * configure: Regenerate.
14778         * Makefile.in: Regenerate.
14779         * testsuite/Makefile.in: Regenerate.
14781 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
14783         PR middle-end/35196
14784         * testsuite/libgomp.c/pr35196.c: New test.
14786         PR middle-end/35130
14787         * testsuite/libgomp.fortran/pr35130.f90: New test.
14788         * testsuite/libgomp.c/pr35130.c: New test.
14790 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
14792         PR middle-end/33880
14793         * testsuite/libgomp.c/pr33880.c: New test.
14794         * testsuite/libgomp.fortran/pr33880.f90: New test.
14796 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
14798         * configure: Regenerate.
14800 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
14802         * configure.ac: Move futex checking into ../config/futex.m4.
14803         * configure: Rebuilt.
14804         * aclocal.m4: Rebuilt.
14805         * Makefile.in: Rebuilt.
14807         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
14808         2007-10-15 ../config/tls.m4 change.
14810 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
14812         PR c++/34513
14813         * testsuite/libgomp.c/pr34513.c: New test.
14814         * testsuite/libgomp.c++/pr34513.C: New test.
14816 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
14818         PR target/32765
14819         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
14821 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
14823         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
14825 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
14827         * testsuite/libgomp.c/private-1.c: New test.
14829 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
14830             Paolo Bonzini  <bonzini@gnu.org>
14832         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
14833         instead of 'VPATH ='.
14834         * Makefile.in: Regenerate.
14836 2007-11-23  Matthias Klose  <doko@ubuntu.com>
14838         * configure.ac: Adjust makeinfo version check.
14839         * configure: Regenerate.
14841 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
14843         PR fortran/34020
14844         * testsuite/libgomp.fortran/pr34020.f90: New test.
14846 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
14848         PR c++/33894
14849         * testsuite/libgomp.c++/atomic-1.C: New test.
14851 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
14853         PR libgomp/33275
14854         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
14855         Make x and y integers rather than (implicit) reals.  Add private (j)
14856         clause to the last omp parallel.
14858 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
14860         * configure: Regenerate following changes to ../config/tls.m4.
14862 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
14864         * testsuite/libgomp.fortran/stack.f90: New test.
14866 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
14868         * config/mingw32/proc.c: New file.
14870 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
14872         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
14873         (main): Use __get_cpuid to get i386 target fetaures.
14874         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
14875         (main): Use __get_cpuid to get x86_64 target fetaures.
14877 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
14879         PR target/32765
14880         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
14881         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
14883 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
14885         PR fortran/32550
14886         * testsuite/libgomp.fortran/pr32550.f90: New test.
14887         * testsuite/libgomp.fortran/crayptr2.f90: New test.
14889 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
14891         * aclocal.m4: Regenerated.
14893 2007-07-05  Tobias Burnus  <burnus@net-b.de>
14895         PR fortran/32359
14896         * testsuite/libgomp.fortran/pr32359.f90: New.
14898 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
14900         PR libgomp/32468
14901         * sections.c (GOMP_parallel_sections_start): Only decrease
14902         number of threads to COUNT if dyn_var is true.
14903         * testsuite/libgomp.c/pr32468.c: New test.
14905 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14907         PR libgomp/26308
14908         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
14910 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
14912         PR middle-end/32362
14913         * testsuite/libgomp.c/pr32362-1.c: New test.
14914         * testsuite/libgomp.c/pr32362-2.c: New test.
14915         * testsuite/libgomp.c/pr32362-3.c: New test.
14917 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
14919         * team.c (gomp_team_start): Fix setting up thread_attr
14920         stack size.
14922 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
14924         * configure: Regenerate.
14926 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
14928         * Makefile.in: Regenerate.
14929         * configure: Regenerate.
14930         * aclocal.m4: Regenerate.
14931         * testsuite/Makefile.in: Regenerate.
14933 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
14935         * config/linux/proc.c: New file.
14937         PR libgomp/28482
14938         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
14940 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
14942         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
14944 2007-04-16  Matthias Klose  <doko@debian.org>
14946         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
14947         flags if not building with -m64.
14948         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
14949         flag for i?86-*-* targets, if current target matches -m64.
14951 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
14953         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
14954         * Makefile.in: Regenerate.
14956 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14958         PR testsuite/31369
14959         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
14960         ld_library_path.
14961         * testsuite/libgomp.fortran/fortran.exp: Likewise.
14963 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
14965         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
14966         decls.
14967         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
14968         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
14969         (parse_affinity): New function.
14970         (initialize_env): Call it and gomp_init_affinity.
14971         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
14972         create new pthread_attr_t and call gomp_init_thread_affinity
14973         on it for each thread before passing the attribute to pthread_create.
14974         * config/linux/affinity.c: New file.
14975         * config/posix/affinity.c: New file.
14976         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
14977         * configure: Rebuilt.
14978         * config.h.in: Rebuilt.
14979         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
14980         * Makefile.in: Rebuilt.
14982 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
14984         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
14985         *-*-darwin*.
14986         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
14987         and use it if found.
14989 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
14991         * testsuite/config/default.exp: New file.
14992         * testsuite/lib/libgomp.exp: New file.
14993         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
14994         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
14995         load_lib *, load_gcc_lib *): Move to libgomp.exp.
14996         (libgomp_load): Remove.
14997         * testsuite/lib/libgomp.exp (libgomp_init): Compute
14998         always_ld_library_path, not ld_library_path.  Set additional_flags
14999         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
15000         (target_compile): Do not call libgomp_init.  Append lang_library_path
15001         and lang_link_flags to options.
15002         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
15003         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
15004         here.
15005         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
15006         always_ld_library_path.  Set LD_LIBRARY_PATH here.
15007         * testsuite/libgomp.fortran/fortran.exp: Ditto.
15008         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
15009         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
15010         CX8 flag.
15011         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
15012         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
15013         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
15014         * testsuite/libgomp.c/pr29947-1.c: Ditto.
15015         * testsuite/libgomp.c/atomic-10.c: Ditto.
15017 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
15019         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
15020         dg-final cleanup-modules line.
15021         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
15022         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
15023         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
15024         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
15025         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
15026         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
15027         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
15029 2007-03-18  Andreas Schwab  <schwab@suse.de>
15031         * acinclude.m4: Adjust regular expression for ld version
15032         extraction.
15033         * configure: Regenerate.
15035 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
15037         * Makefile.am: Add install-pdf target as copied from
15038         automake v1.10 rules.
15039         * Makefile.in: Regenerate
15041 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
15043         PR libgomp/28486
15044         * configure: Regenerate.
15046         PR c++/30703
15047         * testsuite/libgomp.c++/pr30703.C: New test.
15049 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
15051         Revert:
15052         2006-07-05  Eric Christopher  <echristo@apple.com>
15053         * configure.ac: Depend addition of -pthread on host OS.
15054         * configure: Regenerate.
15056 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15058         * libgomp.texi: Fix spacing after abbreviations.
15060 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
15062         PR libgomp/30546
15063         * configure.ac: Add check for makeinfo
15064         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
15065         if an appropriate version of makeinfo is found.
15066         * aclocal.m4: Regenerated.
15067         * configure: Regenerated.
15068         * Makefile.in: Regenerated.
15069         * testsuite/Makefile.in: Regenerated.
15071 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
15073         PR libgomp/30540
15074         * libgomp.texi: More about implementation-dependent settings.
15076 2007-01-26  Tobias Burnus  <burnus@net-b.de>
15078         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
15080 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
15082         PR middle-end/30494
15083         * testsuite/libgomp.c/pr30494.c: New test.
15085 2007-01-15  Tom Tromey  <tromey@redhat.com>
15087         * configure: Rebuilt.
15088         * configure.ac: Fixed comment.
15090 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
15092         * libgomp.texi: Document implementation specific default values of
15093         environment variables.
15095 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
15097         PR libgomp/28209
15098         * libgomp.texi: New file.
15099         * configure.ac: Add --enable-generated-files-in-srcdir option.
15100         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
15101         files to srcdir.
15102         * Makefile.in: Regenerated.
15103         * config.h.in: Regenerated.
15104         * testsuite/Makefile.in: Regenerated.
15105         * NOTES: Removed.
15107 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
15109         PR libgomp/29949
15110         * env.c (omp_set_num_threads): Set illegal thread count to 1.
15112 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
15114         * configure: Regenerate.
15116 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
15118         PR libgomp/29947
15119         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
15120         start if there shouldn't be any loop iterations.
15121         (gomp_loop_ordered_static_start): Remove start == end test.
15122         * testsuite/libgomp.c/pr29947-1.c: New test.
15123         * testsuite/libgomp.c/pr29947-2.c: New test.
15125 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
15127         * configure.tgt: Force initial-exec TLS model on Linux only.
15129 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
15131         * configure: Regenerated.
15133 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
15135         * env.c (parse_schedule): Reject out of range values.
15136         (parse_unsigned_long): Reject out of range, negative or zero values.
15138 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
15140         PR fortran/29629
15141         * testsuite/libgomp.fortran/pr29629.f90: New test.
15143 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
15145         PR libgomp/29494
15146         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
15147         * config/posix95: New directory.
15148         * config/posix95/omp-lock.h: New file.
15149         * config/posix95/lock.c: Likewise.
15151 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
15153         * aclocal.m4: Regenerate.
15154         * configure: Regenerate.
15156 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
15158         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
15159         '<' to '<='.
15161 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
15163         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
15164         test.
15165         * configure: Regenerate.
15166         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
15168 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
15170         PR middle-end/25261
15171         PR middle-end/28790
15172         * testsuite/libgomp.c/nestedfn-4.c: New test.
15173         * testsuite/libgomp.c/nestedfn-5.c: New test.
15174         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
15176         PR fortran/29097
15177         * testsuite/libgomp.fortran/condinc1.f: New test.
15178         * testsuite/libgomp.fortran/condinc2.f: New test.
15179         * testsuite/libgomp.fortran/condinc3.f90: New test.
15180         * testsuite/libgomp.fortran/condinc4.f90: New test.
15181         * testsuite/libgomp.fortran/condinc1.inc: New file.
15183 2006-09-18  Tom Tromey  <tromey@redhat.com>
15185         * configure: Rebuilt.
15187 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
15189         PR c/28768
15190         PR preprocessor/14634
15191         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
15192         to AC_DEFINE.
15193         * configure: Regenerate.
15195 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
15197         * testsuite/libgomp.fortran/reduction3.f90: Change
15198         -2147483648 to -huge(i)-1 to avoid overflow.
15199         * testsuite/libgomp.fortran/reduction4.f90: Change
15200         Z'ffffffff' to not(0) to avoid overflow.
15202 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
15204         PR libgomp/25938
15205         * Makefile.am (libsubincludedir): New.
15206         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
15207         * Makefile.in: Regenerate.
15209 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
15211         PR libgomp/28725
15212         * env.c: Include ctype.h.
15213         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
15214         leading and/or trailing whitespace and compare strings case
15215         insensitively.
15217 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
15219         PR fortran/28390
15220         * testsuite/libgomp.fortran/pr28390.f: New test.
15222 2006-07-05  Eric Christopher  <echristo@apple.com>
15224         * configure.ac: Depend addition of -pthread on host OS.
15225         * configure: Regenerate.
15227 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
15229         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
15230         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
15231         defined.
15233 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
15235         PR libgomp/26175
15236         PR libgomp/26477
15237         * configure.ac: If neither --enable-linux-futex nor
15238         --disable-linux-futex is passed, determine the default by checking
15239         for compiling and/or running against NPTL.  With --enable-linux-futex,
15240         check if SYS_gettid and SYS_futex are defined.
15241         * configure: Rebuilt.
15243 2006-06-14  Richard Henderson  <rth@redhat.com>
15245         PR libgomp/28008
15246         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
15247         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
15249 2006-06-09  Richard Henderson  <rth@redhat.com>
15251         * env.c (gomp_nthreads_var): Change to unsigned long.
15252         (gomp_run_sched_chunk): Likewise.
15253         (parse_unsigned_long): Rename from parse_num_threads and generalize.
15254         (initialize_env): Initialize gomp_thread_attr.
15255         * libgomp.h (gomp_nthreads_var): Update decl.
15256         (gomp_run_sched_chunk): Likewise.
15257         (gomp_thread_attr): Declare.
15258         * team.c (gomp_thread_attr): Export.
15259         (initialize_team): Don't initialize it.
15261 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
15263         PR fortran/27916
15264         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
15265         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
15267 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
15269         * config/mingw32/time.c: New file.
15270         * configure.tgt: Use it.
15272 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
15274         * Makefile.am: Add install-html target. Add install-html to .PHONY
15275         * Makefile.in: Regenerate.
15277 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15279         PR libgomp/27612
15280         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
15281         * testsuite/libgomp.c/critical-1.c: Likewise.
15282         * testsuite/libgomp.c/loop-1.c: Likewise.
15283         * testsuite/libgomp.c/loop-2.c: Likewise.
15284         * testsuite/libgomp.c/single-1.c: Likewise.
15285         * testsuite/libgomp.c/ordered-1.c: Likewise.
15286         * testsuite/libgomp.c/ordered-2.c: Likewise.
15288 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
15290         PR middle-end/27416
15291         * libgomp.fortran/pr27416-1.f90: New test.
15293 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
15295         PR fortran/27395
15296         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
15297         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
15299 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
15301         PR c++/26943
15302         * testsuite/libgomp.c/pr26943-1.c: New test.
15303         * testsuite/libgomp.c/pr26943-2.c: New test.
15304         * testsuite/libgomp.c/pr26943-3.c: New test.
15305         * testsuite/libgomp.c/pr26943-4.c: New test.
15306         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
15307         * testsuite/libgomp.c++/pr26943.C: New test.
15309 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
15311         PR middle-end/27337
15312         * testsuite/libgomp.c++/pr27337.C: New test.
15314 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
15316         PR c/26171
15317         * testsuite/libgomp.c/pr26171.c: New test.
15319 2006-04-25  Richard Henderson  <rth@redhat.com>
15321         PR libgomp/25865
15322         * configure.ac: Use GCC_CHECK_TLS.
15323         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
15324         * Makefile.in, aclocal.m4, configure: Regenerate.
15326 2006-04-10  Matthias Klose  <doko@debian.org>
15328         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
15329         directory names containing underscores.
15331 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
15333         PR c++/26691
15334         * testsuite/libgomp.c++/pr26691.C: New test.
15336 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
15338         * testsuite/libgomp.fortran/retval2.f90: New test.
15340 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
15342         * testsuite/libgomp.c++: New directory.
15344 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
15346         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
15347         * config/posix/sem.c: Implement the above.
15349 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
15351         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
15352         define HAVE_BROKEN_POSIX_SEMAPHORES.
15353         * configure: Rebuilt.
15354         * config.h.in: Rebuilt.
15356 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
15358         PR bootstrap/26161
15359         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
15360         for the other pthread check.
15361         * configure: Regenerate.
15362         * config.h.in: Regenerate.
15364 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
15366         PR libgomp/25938
15367         PR libgomp/25984
15368         * Makefile.am (fincludedir): New variable.
15369         (nodist_include_HEADERS): Remove Fortran files.
15370         (nodist_finclude_HEADERS): New variable.
15371         * Makefile.in: Regenerated.
15373 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
15375         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
15376         Remove tests for returning assumed character length arrays.
15378 2006-02-12  Roger Sayle  <roger@eyesopen.com>
15379             John David Anglin  <dave@hiauly1.hia.nrc.ca>
15381         PR libgomp/25936
15382         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
15384 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
15386         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
15388 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
15390         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
15391         part of LD_LIBRARY_PATH manually.
15393 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
15395         PR libgomp/25852
15396         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
15397         libgomp_init.
15399 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
15401         PR libgomp/25884
15402         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
15403         * configure.ac (PERL): Don't set.
15404         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
15405         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
15406         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
15407         * omp.h.in: Wrap the new configure substitutions with @ characters.
15408         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
15409         * aclocal.m4, configure, Makefile.in: Regenerate.
15410         * mkomp_h.pl: Delete.
15412 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
15414         PR libgomp/25259
15415         * configure.ac: Use GCC_HEADER_STDINT.
15416         * libgomp.h: Include gstdint.h.
15417         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
15418         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
15420 2006-01-24  Richard Henderson  <rth@redhat.com>
15422         PR libgomp/25942
15423         * configure.ac: Add AM_MAINTAINER_MODE.
15424         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
15426 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
15428         * Makefile.in: Regenerate.
15429         * testsuite/Makefile.in: Regenerate.
15430         * aclocal.m4: Regenerate.
15432 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
15434         * config/posix/proc.c: Conditional include of sys/loadavg.h for
15435         Solaris.
15436         * configure.ac: Add check for loadavg.h.
15437         (link_gomp): Adjust comment.
15438         * configure: Regenerate.
15439         * config.h.in: Regenerate.
15441 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
15443         PR libgomp/25877
15444         * configure.ac: Remove check for alloca.h.
15445         * configure: Regenerate.
15446         * config.h.in: Regenerate.
15447         * libgomp.h: define gomp_alloca to be __builtin_alloca.
15448         * team.c: Remove use of alloca.h.
15449         Call gomp_alloca instead of alloca.
15451 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
15453         PR libgomp/25877
15454         * team.c: Add include of alloca.h.
15455         * configure.ac: Add check for alloca.h.
15456         * configure: Regenerate.
15457         * config.h.in: Regenerate.
15459 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
15461         PR fortran/25219
15462         * testsuite/libgomp.fortran/pr25219.f90: New test.
15464 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
15466         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
15467         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
15468         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
15469         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
15470         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
15471         testsuite/libgomp.fortran/threadprivate1.f90,
15472         testsuite/libgomp.fortran/threadprivate2.f90,
15473         testsuite/libgomp.fortran/threadprivate3.f90,
15474         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
15475         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
15476         testsuite/libgomp.fortran/omp_parse3.f90: Change required
15477         effective-target to TLS runtime.
15479         * testsuite/libgomp.fortran/pr25162.f: Require
15480         effective-target TLS runtime.
15482 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
15484         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
15485         * testsuite/libgomp.c/nestedfn-3.c: New test.
15487 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
15489         PR fortran/25162
15490         * testsuite/libgomp.fortran/pr25162.f: New test.
15492 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
15494         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
15495         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
15497 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
15499         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
15500         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
15501         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
15502         single.c, team.c, work.c, config/linux/alpha/futex.h,
15503         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
15504         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
15505         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
15506         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
15507         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
15508         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
15509         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
15510         FSF address.
15512 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
15514         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
15515         to nodist_noinst_HEADERS.
15516         * Makefile.in: Rebuilt.
15518         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
15519         add integer count field.
15520         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
15521         omp_nest_lock_t type change.
15522         (omp_init_nest_lock): Likewise.  Initialize count to 0.
15523         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
15524         Increment count.
15525         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
15526         Decrement count.
15527         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
15528         Increment count if successful and return the new nesting level.
15529         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
15530         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
15531         * testsuite/libgomp.c/lib-1.c: New test.
15532         * testsuite/libgomp.fortran/lib1.f90: New test.
15533         * testsuite/libgomp.fortran/lib2.f: New test.
15534         * testsuite/libgomp.fortran/lib3.f: New test.
15536 2005-11-17  Richard Henderson  <rth@redhat.com>
15538         PR 24845
15539         * Makefile.am (nodist_toolexeclib_HEADERS): New.
15540         * configure.ac (link_gomp): New.  Substitute it.
15541         (AC_CONFIG_FILES): Add libgomp.spec.
15542         * libgomp.spec.in: New file.
15543         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
15544         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
15546 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
15548         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
15549         reduction(-:var) behaving the same as reduction(+:var).
15550         * testsuite/libgomp.c/reduction-4.c: New test.
15552 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
15554         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
15555         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
15556         testsuite/libgomp.c/copyin-3.c,
15557         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
15558         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
15559         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
15560         testsuite/libgomp.c++/pr24455.C,
15561         testsuite/libgomp.fortran/threadprivate1.f90,
15562         testsuite/libgomp.fortran/threadprivate2.f90,
15563         testsuite/libgomp.fortran/threadprivate3.f90,
15564         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
15565         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
15566         testsuite/libgomp.fortran/omp_parse3.f90: Require
15567         effective-target TLS.
15569 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
15571         * HEADER: Remove.
15573 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
15575         PR libgomp/24797
15576         * team.c (initialize_team): Pass NULL rather than free as
15577         pthread_key_create destructor.  Initialize thread specific data
15578         pointer in initial thread to a static local variable rather than
15579         malloced memory.
15581 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
15583         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
15584         its location to ld_library_path.
15586 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
15588         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
15590 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
15592         * testsuite/libgomp.c: Rename from libgomp.dg.
15594 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
15596         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
15597         threadprivate variable 'i'.
15599 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
15601         * config/linux/s390/futex.h: New file.
15602         * configure.tgt: Use it.
15604         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
15605         before the parallel.
15607 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
15609         PR c++/24734
15610         * testsuite/libgomp.c++/master-1.C: New test.
15612 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
15614         * testsuite/libgomp.dg/copyin-3.c: New test.
15616 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
15618         * testsuite/libgomp.fortran/retval1.f90: New test.
15619         * testsuite/libgomp.fortran/vla7.f90: New test.
15621 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
15623         * testsuite/libgomp.fortran/vla2.f90: New test.
15624         * testsuite/libgomp.fortran/vla3.f90: New test.
15625         * testsuite/libgomp.fortran/vla4.f90: New test.
15626         * testsuite/libgomp.fortran/vla5.f90: New test.
15627         * testsuite/libgomp.fortran/vla6.f90: New test.
15629 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
15631         * config/linux/sparc/futex.h: New file.
15632         * configure.tgt: Use it.
15633         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
15635         * critical.c: Include stdlib.h.
15636         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
15637         ignoring return value.
15638         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
15639         LIBGOMP_CHECK_SYNC_BUILTINS check.
15640         * configure: Rebuilt.
15642 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
15644         * testsuite/libgomp.fortran/vla1.f90: New test.
15646 2005-10-31  Richard Henderson  <rth@redhat.com>
15648         * testsuite/libgomp.fortran/character2.f90: Fix race condition
15649         setting 's' in different threads.
15651 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
15653         * libgomp.h (attribute_hidden, ialias): Define.
15654         * config/posix/proc.c (omp_get_num_procs): Add ialias.
15655         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
15656         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
15657         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15658         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15659         omp_test_lock, omp_test_nest_lock): Likewise.
15660         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
15661         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15662         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15663         omp_test_lock, omp_test_nest_lock): Likewise.
15664         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
15665         omp_get_dynamic, omp_get_nested): Likewise.
15666         * parallel.c (omp_get_num_threads, omp_get_max_threads,
15667         omp_get_thread_num, omp_in_parallel): Likewise.
15668         * fortran.c (ialias_redirect): Define.
15669         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
15670         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
15671         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
15672         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
15673         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
15674         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
15675         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
15676         omp_get_wtime): Add ialias_redirect.
15678 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
15680         * fortran.c: Include stdlib.h.
15682 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
15684         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
15685         * Makefile.in: Regenerated.
15687 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
15689         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
15690         * libgomp_f.h.in (omp_check_defines): New function.
15691         * env.c: Include libgomp_f.h.
15692         (initialize_env): Call omp_check_defines.
15694         * testsuite/libgomp.dg/copyin-2.c: New test.
15695         * testsuite/libgomp.c++/copyin-2.C: New test.
15696         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
15698         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
15699         * testsuite/libgomp.fortran/sharing2.f90: New test.
15701         * testsuite/libgomp.dg/copyin-1.c: New test.
15702         * testsuite/libgomp.c++/copyin-1.C: New test.
15704 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
15706         * testsuite/libgomp.fortran/crayptr1.f90: New test.
15708         * testsuite/libgomp.fortran/workshare1.f90: New test.
15710         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
15711         only test.
15712         * libgomp.fortran/sharing1.f90: New test.
15714 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
15716         PR c++/24502
15717         * testsuite/libgomp.c++/loop-7.C: New test.
15719         * testsuite/libgomp.dg/nestedfn-2.c: New test.
15721         * testsuite/libgomp.dg/nestedfn-1.c: New test.
15722         * testsuite/libgomp.fortran/reduction6.f90: New test.
15723         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
15725 2005-10-23  Richard Henderson  <rth@redhat.com>
15727         * testsuite/libgomp.c++/ctor-1.C: New.
15728         * testsuite/libgomp.c++/ctor-2.C: New.
15729         * testsuite/libgomp.c++/ctor-3.C: New.
15730         * testsuite/libgomp.c++/ctor-4.C: New.
15731         * testsuite/libgomp.c++/ctor-5.C: New.
15732         * testsuite/libgomp.c++/ctor-6.C: New.
15733         * testsuite/libgomp.c++/ctor-7.C: New.
15734         * testsuite/libgomp.c++/ctor-8.C: New.
15735         * testsuite/libgomp.c++/ctor-9.C: New.
15737 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
15739         PR 24455
15740         * testsuite/libgomp.c++/pr24455-1.C: New test.
15741         * testsuite/libgomp.c++/pr24455.C: New test.
15742         * testsuite/libgomp.dg/pr24455-1.c: New test.
15743         * testsuite/libgomp.dg/pr24455.c: New test.
15745 2005-10-20  Richard Henderson  <rth@redhat.com>
15747         * testsuite/libgomp.c++/loop-6.C: New.
15748         * testsuite/libgomp.dg/loop-3.c: New.
15750 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
15752         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
15753         explicitly private.
15754         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
15755         explicitly shared.
15757 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
15759         * testsuite/libgomp.fortran/jacobi.f: New test.
15761 2005-10-19  Richard Henderson  <rth@redhat.com>
15763         * configure.tgt (i?86-linux): Default to with_arch instead of
15764         CFLAGS.  Add -mtune to match target_cpu.
15765         (x86_64-linux): Tune to i686.
15767         * fortran.c (omp_test_nest_lock_): Fix typo.
15769 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
15771         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
15772         gomp_ordered_sync): Do nothing if team->nthreads == 1.
15773         * testsuite/libgomp.dg/ordered-3.c: New test.
15775         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
15776         Remove volatile keyword.
15778         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
15779         in COMMON block to avoid warnings on 64-bit targets.
15781 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
15783         * testsuite/libgomp.dg/shared-3.c: New test.
15785 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
15787         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
15788         * testsuite/libgomp.fortran/reduction5.f90: New test.
15790 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
15792         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
15793         dg-options.
15794         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
15795         flush loop now that __sync_synchronize has proper memory barrier.
15796         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
15797         Add -ffixed-form to dg-options.
15799 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
15801         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
15802         from subdirectories.
15803         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
15804         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
15805         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
15806         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
15807         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
15808         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
15809         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
15810         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
15811         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
15812         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
15813         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
15814         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
15815         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
15816         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
15817         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
15818         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
15819         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
15820         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
15821         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
15822         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
15823         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
15824         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
15825         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
15826         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
15827         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
15829 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
15831         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
15832         lang_library_path exists.  Use find instead of glob to gather tests.
15833         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
15835 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
15837         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
15838         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
15839         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
15840         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
15841         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
15842         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
15843         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
15844         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
15845         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
15846         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
15847         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
15848         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
15849         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
15851 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
15853         * testsuite/libgomp.dg/vla-1.c: New test.
15855         * testsuite/libgomp.fortran/reference2.f90: New test.
15857         * testsuite/libgomp.fortran/character2.f90: Remove explicit
15858         declaration of omp_get_thread_num.
15859         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
15860         use omp_lib.
15862         * testsuite/libgomp.fortran/reduction1.f90: New test.
15863         * testsuite/libgomp.fortran/reduction2.f90: New test.
15864         * testsuite/libgomp.fortran/reduction3.f90: New test.
15865         * testsuite/libgomp.fortran/reduction4.f90: New test.
15867 2005-10-13  Richard Henderson  <rth@redhat.com>
15869         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
15870         * Makefile.in: Regenerate.
15871         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
15872         * libgomp.h: Include bar.h.
15873         (struct gomp_barrier): Remove.
15874         (struct gomp_team): Add barrier.  Replace master_barrier with
15875         master_release.  Replace threads with ordered_release.
15876         (struct gomp_thread): Replace barrier with release.
15877         * ordered.c (gomp_ordered_first): Update for ordered_release change.
15878         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
15879         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
15880         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
15881         (GOMP_single_copy_end): Likewise.
15882         * team.c (gomp_threads_dock): New.
15883         (gomp_barrier_init, gomp_barrier_destroy): Remove.
15884         (gomp_thread_start): Use gomp_barrier_wait.
15885         (new_team, free_team): Update for gomp_team changes.
15886         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
15887         (gomp_team_end): Use gomp_barrier_wait.
15888         (initialize_team): Update for gomp_thread changes.
15889         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
15890         (gomp_work_share_end_nowait): Use atomic ops when available.
15891         * config/linux/bar.c, config/linux/bar.h: New files.
15892         * config/posix/bar.c, config/posix/bar.h: New files.
15894 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
15896         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
15897         * testsuite/libgomp.dg/single-2.c: New test.
15899         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
15900         lang_link_flags): Unset, so that they aren't inherited from previously
15901         sourced *.exp.
15903         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
15905 2005-10-12  Richard Henderson  <rth@redhat.com>
15907         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
15908         (libgomp_init): Use lang_test_file, lang_library_path, and
15909         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
15911         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
15912         (lang_test_file, lang_link_flags): New.
15913         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
15915         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
15916         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
15917         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
15918         testsuite/libgomp.c++/parallel-1.C,
15919         testsuite/libgomp.c++/reduction-1.C,
15920         testsuite/libgomp.c++/reduction-2.C,
15921         testsuite/libgomp.c++/reduction-3.C,
15922         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
15923         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
15924         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
15925         New files, largely cribbed from the C testsuite.
15927 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
15929         * testsuite/libgomp.fortran/character1.f90: New test.
15930         * testsuite/libgomp.fortran/character2.f90: New test.
15932         * testsuite/libgomp.dg/nested-1.c: New test.
15933         * testsuite/libgomp.dg/nested-2.c: New test.
15934         * testsuite/libgomp.fortran/do1.f90: New test.
15935         * testsuite/libgomp.fortran/do2.f90: New test.
15937         * testsuite/libgomp.fortran/reference1.f90: New test.
15939 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
15941         * testsuite/libgomp.dg/reduction-1.c: New test.
15942         * testsuite/libgomp.dg/reduction-2.c: New test.
15943         * testsuite/libgomp.dg/reduction-3.c: New test.
15945 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
15947         * testsuite/libgomp.dg/atomic-1.c: New test.
15948         * testsuite/libgomp.dg/atomic-2.c: New test.
15950 2005-10-09  Richard Henderson  <rth@redhat.com>
15952         * critical.c (atomic_lock): New.
15953         (initialize_critical): Initialize it.
15954         (GOMP_atomic_start, GOMP_atomic_end): New.
15955         * libgomp.map: Export them.
15956         * libgomp_g.h: Declare them.
15958         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
15960 2005-10-02  Richard Henderson  <rth@redhat.com>
15962         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
15963         to XCFLAGS instead of CFLAGS.
15965 2005-09-30  Richard Henderson  <rth@redhat.com>
15967         * configure.ac: Determine whether -pthread or -lpthread is needed.
15968         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
15969         * Makefile.in, configure: Rebuild.
15971 2005-09-28  Richard Henderson  <rth@redhat.com>
15973         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
15974         * testsuite/libgomp.dg/omp-single-3.c: New test.
15976 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
15978         * testsuite/libgomp.dg/omp-single-2.c: New test.
15979         * testsuite/libgomp.dg/shared-2.c: Fix return code.
15981 2005-09-27  Richard Henderson  <rth@redhat.com>
15983         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
15984         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
15986 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
15988         * testsuite/libgomp.dg/omp-loop03.c: New test.
15990 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
15992         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
15994 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
15996         * testsuite/libgomp.dg/omp-single-1.c: New test.
15997         * testsuite/libgomp.dg/shared-1.c: Return 0.
15998         Add prototype for abort.
15999         * testsuite/libgomp.dg/shared-2.c: Likewise.
16001 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
16003         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
16004         constructs.
16006 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
16008         * testsuite/libgomp.dg/shared-1.c: New test.
16009         * testsuite/libgomp.dg/shared-2.c: New test.
16011 2005-09-24  Richard Henderson  <rth@redhat.com>
16013         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
16015 2005-09-24  Richard Henderson  <rth@redhat.com>
16017         * iter.c (gomp_iter_static_next): Round up when computing number
16018         of iterations.  Don't bother distributing a remainder equally.
16020         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
16021         Don't call srand.  Zero b before testing.
16022         (main): New.
16024 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
16026         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
16027         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
16029 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
16031         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
16032         without !$omp end do, followed immediately by subroutine end.
16034 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
16036         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
16038 2005-09-22  Richard Henderson  <rth@redhat.com>
16040         * critical.c (GOMP_critical_name_start): Change argument to void**.
16041         Reuse the pointer space if the mutex fits.
16042         (GOMP_critical_name_end): Likewise.
16043         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
16044         * libgomp_g.h (GOMP_critical_name_start): Update decl.
16045         (GOMP_critical_name_end): Likewise.
16046         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
16047         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
16049 2005-09-20  Richard Henderson  <rth@redhat.com>
16051         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
16052         (create_lock_lock): New.
16053         (initialize_critical): Initialize it.
16054         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
16055         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
16057 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
16059         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
16061 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
16063         * testsuite/libgomp.dg/omp-loop01.c: New test.
16064         * testsuite/libgomp.dg/omp-loop02.c: New test.
16066 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
16068         * configure.ac (AC_PROG_FC): Add.
16069         (USE_FORTRAN): New automake conditional.
16070         * configure: Rebuilt.
16071         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
16072         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
16073         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
16074         Add rules to build them.
16075         * Makefile.in: Rebuilt.
16076         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
16077         OMP_NEST_LOCK_KIND.
16078         * libgomp.map: Add Fortran wrappers.
16079         * libgomp_f.h.in: New file.
16080         * omp_lib.h.in: New file.
16081         * omp_lib.f90.in: New file.
16082         * fortran.c: New file.
16083         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
16084         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
16085         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
16086         libgfortran has been built.
16087         * testsuite/libgomp.fortran/fortran.exp: New file.
16088         * testsuite/libgomp.fortran/omp_cond1.f: New test.
16089         * testsuite/libgomp.fortran/omp_cond2.f: New test.
16090         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
16091         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
16092         * testsuite/libgomp.fortran/omp_hello.f: New test.
16093         * testsuite/libgomp.fortran/omp_orphan.f: New test.
16094         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
16095         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
16096         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
16097         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
16098         * testsuite/libgomp.fortran/omp_reduction.f: New test.
16099         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
16100         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
16102 2005-08-30  Richard Henderson  <rth@redhat.com>
16104         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
16105         function for when aliases are not usable.
16106         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
16107         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
16108         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
16109         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
16110         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
16111         GOMP_loop_ordered_guided_next): Likewise.
16112         * ordered.c (GOMP_ordered_start): Likewise.
16114 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
16116         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
16117         * testsuite/libgomp.dg/omp_hello.c: Fix return code
16118         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
16119         * testsuite/libgomp.dg/omp_orphan.c: Likewise
16120         * testsuite/libgomp.dg/omp_reduction.c: Likewise
16121         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
16122         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
16123         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
16124         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
16126 2005-07-07  Eric Christopher  <echristo@redhat.com>
16127             Diego Novillo  <dnovillo@redhat.com>
16129         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
16130         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
16131         up code.
16132         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
16133         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
16134         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
16135         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
16136         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
16137         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
16138         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
16140 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
16142         * TOPLEVEL.patch: Remove.
16144 2005-05-16  Richard Henderson  <rth@redhat.com>
16146         * configure.ac: Test for clock_gettime.
16147         * config.h.in, configure: Rebuild.
16148         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
16149         (omp_get_wtime): Use clock_gettime if available.
16150         (omp_get_wtick): Use clock_getres if available.
16152 2005-05-11  Richard Henderson  <rth@redhat.com>
16154         * config/linux/ia64/futex.h: New file.
16155         * configure.tgt: Use it.
16157         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
16159 2005-05-07  Richard Henderson  <rth@redhat.com>
16161         * config/linux/powerpc/futex.h: New file.
16162         * configure.tgt: Use it.
16164         * config/linux/i486/futex.h: Merge ...
16165         * config/linux/x86_64/futex.h: ... into ...
16166         * config/linux/x86/futex.h: ... here.
16167         * configure.tgt: Update to match.
16169 2005-05-06  Richard Henderson  <rth@redhat.com>
16171         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
16172         * config/linux/i486/futex.h: Likewise.
16173         * config/linux/x86_64/futex.h: Likewise.
16175         * config/linux/lock.c: New file.
16176         * config/linux/omp-lock.h: New file.
16178         * critical.c, env.h: Don't include omp.h
16179         * config/posix/lock.c: Include libgomp.h instead of omp.h.
16180         * config/posix/time.c: Likewise.
16181         * config/posix/omp-lock.h: New file.
16182         * libgomp.h: Include omp-lock.h and omp.h.
16183         * Makefile.am (nodist_include_HEADERS): New.
16184         (omp.h): New rule.
16185         * configure.ac (PERL): New.
16186         * mkomp_h.pl: New file.
16187         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
16188         with templates.
16189         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
16191         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
16192         build directory.  Re-add -march=i486 hack.
16194         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
16195         (libgomp_link_flags): Remove.
16196         (libgomp_initialized): Remove.
16197         (libgomp_init): Don't protect from reinitialization.  Copy code
16198         from libstdc++ for getting the multilib set correctly.
16200 2005-05-05  Richard Henderson  <rth@redhat.com>
16202         * config/linux/alpha/futex.h: New file.
16203         * configure.tgt (alpha*-*-linux*): Use it.
16205         * config/posix/mutex.c: New file.
16206         * config/posix/sem.c: Use libgomp.h.
16208         * configure.tgt (x86_64-linux): Also test CC for -m32.
16209         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
16211         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
16212         after $gccpath.
16214         * Makefile.am (SUBDIRS): New.
16215         (libgomp_la_LDFLAGS): Add -lpthread.
16216         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
16217         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
16219         * libgomp_g.h: New file.
16220         * libgomp.h: Split out all public declarations to libgomp_g.h.
16221         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
16222         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
16223         * config/linux/sem.h: Likewise.
16224         * config/posix/sem.h: Likewise.
16226         * Makefile.am (AM_LDFLAGS): New.
16227         (libgomp_version_script): Split out from ...
16228         (libgomp_la_LDFLAGS): ... here.
16229         (libgomp_version_info): New.
16230         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
16231         (LIBGOMP_ENABLE): New.
16232         (LIBGOMP_CHECK_LINKER_FEATURES): New.
16233         (LIBGOMP_ENABLE_SYMVERS): New.
16234         * configure.ac (AC_INIT): Version 1.0.
16235         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
16236         (enable-linux-futex): Likewise.  Rename from enable-futex.
16237         (libtool_VERSION): New.
16238         (LIBGOMP_ENABLE_SYMVERS): Use it.
16239         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
16240         * Makefile.in, aclocal.m4, configure: Rebuild.
16242         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
16243         (gomp_mutex_unlock_slow): Fix typo.
16244         * config/linux/sem.c: Similarly.
16245         (gomp_sem_post_slow): Fix typo.
16246         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
16247         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
16248         [__PIC__] (sys_futex0): Don't use tmp output in asm.
16250         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
16251         (libgomp_la_LDFLAGS): Add top_srcdir to path.
16252         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
16253         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
16254         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
16255         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
16256         LDFLAGS.  Pull enable_futex check to top-level.
16257         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
16258         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
16260         First attempt at real configury.
16261         * Makefile, config.h: Remove file.
16262         * Makefile.am, Makefile.in: New file.
16263         * acinclude.m4 aclocal.m4: New file.
16264         * configure.ac, configure.tgt, configure: New file.
16266         * config/posix/lock.c: Rename from sys-lock.c.
16267         * config/posix/mutex.h: Rename from sys-mutex.h.
16268         * config/posix/sem.c: Rename from sys-sem.c.
16269         * config/posix/sem.h: Rename from sys-sem.h.
16270         * config/posix/proc.c: Rename from sys-proc.c.
16271         * config/posix/time.c: Rename from sys-proc.c.
16273         * config/linux/mutex.c: New file.
16274         * config/linux/mutex.h: New file.
16275         * config/linux/sem.c: New file.
16276         * config/linux/sem.h: New file.
16277         * config/linux/i486/futex.h: New file.
16278         * config/linux/x86_64/futex.h: New file.
16280 2005-05-04  Richard Henderson  <rth@redhat.com>
16282         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
16283         * libgomp.h: Declare them.
16284         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
16285         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
16287 2005-05-04  Richard Henderson  <rth@redhat.com>
16289         * libgomp-1 code drop
16291 2005-05-04  Richard Henderson  <rth@redhat.com>
16293         * iter.c (gomp_iter_static_next): Return tri-state on 0.
16294         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
16295         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
16296         (gomp_iter_static_next): Update.
16297         (gomp_ordered_static_next): Update.
16298         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
16299         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
16300         totally empty range.
16301         (gomp_loop_ordered_static_next): Refine test for calling
16302         gomp_ordered_static_next.
16303         * testsuite/ordered-1.c: Add case for more threads than iterations.
16305         * iter.c (gomp_iter_runtime_next_locked): Remove.
16306         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
16307         gomp_loop_guided_start, gomp_loop_ordered_static_start,
16308         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
16309         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
16310         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
16311         gomp_loop_ordered_guided_next): Downcase name, make static, add
16312         an external alias with the old name.
16313         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
16314         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
16315         switch and call one of the above static functions.
16316         * libgomp.h: Update.
16318         * work.c (gomp_work_share_start): Lock the mutex for !first too.
16319         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
16320         GOMP_loop_guided_start, GOMP_loop_runtime_start,
16321         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
16322         GOMP_loop_ordered_guided_start): Update to match.
16323         * sections.c (GOMP_sections_start): Likewise.
16324         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
16326         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
16327         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
16328         Use bounds check instead of modulus.
16329         (gomp_ordered_sync): Split out of GOMP_ordered_start.
16330         (gomp_ordered_last): Don't sync with ordered_owner here.
16331         (gomp_ordered_next): Likewise.
16332         (gomp_ordered_static_loop_next): Likewise.
16333         * loop.c, libgomp.h: Update to match.
16335         * libgomp.h (GOMP_barrier): Declare.
16337         * testsuite/barrier-1.c: New file.
16338         * testsuite/critical-1.c: New file.
16339         * testsuite/ordered-2.c: New file.
16340         * testsuite/ordered-1.c: New file.
16341         * testsuite/sections-1.c: New file.
16342         * testsuite/single-1.c: New file.
16343         * testsuite/Makefile (TESTS): Add them.
16345 2005-05-04  Richard Henderson  <rth@redhat.com>
16347         * libgomp.h (struct gomp_work_share): Add ordered_owner.
16348         * loop.c (GOMP_loop_static_start): If not the startup thread,
16349         acquire the mutex to wait for initialization complete.
16350         (GOMP_loop_ordered_static_start): Likewise.
16351         (GOMP_loop_ordered_runtime_start): Likewise.
16352         (GOMP_loop_ordered_static_first): Remove.
16353         (GOMP_loop_ordered_dynamic_first): Remove.
16354         (GOMP_loop_ordered_guided_first): Remove.
16355         (GOMP_loop_ordered_runtime_first): Remove.
16356         * ordered.c (gomp_ordered_loop_first): Post to own release when
16357         we're the first thread.
16358         (gomp_ordered_loop_last): Wait on release if not owner.
16359         (gomp_ordered_loop_next): Likewise.
16360         (gomp_ordered_static_loop_init): New.
16361         (gomp_ordered_static_loop_next): Use ordered_owner.
16362         (GOMP_ordered_start): Likewise.
16363         * work.c (gomp_new_work_share): Initialize ordered_owner.
16365 2005-05-03  Richard Henderson  <rth@redhat.com>
16367         * Makefile (OPT): New.
16368         (CFLAGS): Use it.
16370         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
16371         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
16372         * libgomp.h, libgomp.map, NOTES: Update to match.
16374         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
16375         Add initialized and thr members.
16376         (gomp_thread_start): Pause when initially spawned to wait for
16377         the whole team to be created.
16378         (gomp_team_start): Release team members at the end.
16380         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
16381         (f_foo_1): Use GOMP_loop_end.
16382         (f_foo_2): Use GOMP_loop_end_nowait.
16384         * testsuite/loop-2.c: New file.
16385         * testsuite/Makefile (TESTS): Add it.
16387 2005-05-03  Richard Henderson  <rth@redhat.com>
16389         * iter.c (gomp_iter_static_next): Fix overflow check typo.
16390         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
16391         * team.c (new_team): Initialize oldest_live_gen to 1 if no
16392         initial work_share.
16394         * testsuite/Makefile: New file.
16395         * testsuite/loop-1.c: New file.
16397 2005-05-03  Richard Henderson  <rth@redhat.com>
16399         Initial implementation and checkin.
16401 Copyright (C) 2005-2021 Free Software Foundation, Inc.
16403 Copying and distribution of this file, with or without modification,
16404 are permitted in any medium without royalty provided the copyright
16405 notice and this notice are preserved.